usb

android 2013 nexus 7 and windows 8.1 x-64 drivers

旧街凉风 提交于 2020-01-17 11:00:11
问题 i have made drivers work for the 2012 nexus 7, and a few other android devces. i just got 6 2013 nexus 7's and can not seem to get the drivers installed. i upgraded the software to 6.0.1. but i am unable to get to the screen shown here. adb does not find any devices. in ptp mode, windows finds most of these and assigns a usb driver 6.3.9600.17415 dated 2006. trying update the driver to add a more specific driver fails because windows does not know it's a phone. using have disk fails when

Can I Use Windows Hid API Calls in UWP (HidD_GetPreparsedData)?

允我心安 提交于 2020-01-16 13:02:39
问题 I am trying to access Hid (USB) devices connected to my computer on UWP. I have no problem enumerating the devices and talking to them through Windows API calls in .NET Core. In UWP, I can enumerate the devices, but when I call HidD_GetPreparsedData with the same device (https://msdn.microsoft.com/en-us/library/windows/hardware/ff539679(v=vs.85).aspx), it returns false. I'm thinking that because UWP has its own HID library, I'm supposed to use that, but I'm hoping to reuse my existing code.

Serial communication between pc and Arduino through USB

浪尽此生 提交于 2020-01-16 08:42:01
问题 I have some C++ code that I need to use for serial communication between PC and Arduino. The file "Serial.cpp" is including a file called "stdafx.h" that doesn't exist in the project or anywhere on my computer, which obviously causes an error. Other than that, I also get other errors, such as C2065 'CSerial': undeclared identifier . Here are the three files that are in the project: Serial.h #ifndef __SERIAL_H__ #define __SERIAL_H__ #pragma once #include <Windows.h> #include <memory.h> #define

Serial communication between pc and Arduino through USB

自作多情 提交于 2020-01-16 08:40:11
问题 I have some C++ code that I need to use for serial communication between PC and Arduino. The file "Serial.cpp" is including a file called "stdafx.h" that doesn't exist in the project or anywhere on my computer, which obviously causes an error. Other than that, I also get other errors, such as C2065 'CSerial': undeclared identifier . Here are the three files that are in the project: Serial.h #ifndef __SERIAL_H__ #define __SERIAL_H__ #pragma once #include <Windows.h> #include <memory.h> #define

SetupComm, SetCommState, SetCommTimeouts fail with USB device

本秂侑毒 提交于 2020-01-15 15:30:35
问题 i am opening a USB device: for communication using CreateFile : HANDLE hUsb = CreateFile("\\.\LCLD9", GENERIC_READ | GENERIC_WRITE, 0, null, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, 0); The call succeeds (i.e. hUsb is not equal to INVALID_HANDLE_VALUE). But then it comes time to do what we do with every serial port: SetupComm (set receive and transit buffer sizes) SetCommState (set flow-control, baud rate, etc) SetCommTimeouts (set timeouts) Each of these calls with GetLastError code of 1 . E.g.:

SetupComm, SetCommState, SetCommTimeouts fail with USB device

泄露秘密 提交于 2020-01-15 15:30:08
问题 i am opening a USB device: for communication using CreateFile : HANDLE hUsb = CreateFile("\\.\LCLD9", GENERIC_READ | GENERIC_WRITE, 0, null, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, 0); The call succeeds (i.e. hUsb is not equal to INVALID_HANDLE_VALUE). But then it comes time to do what we do with every serial port: SetupComm (set receive and transit buffer sizes) SetCommState (set flow-control, baud rate, etc) SetCommTimeouts (set timeouts) Each of these calls with GetLastError code of 1 . E.g.:

Need to write driver for USB peripheral device?

╄→гoц情女王★ 提交于 2020-01-15 09:12:13
问题 I'm working on designing a USB peripheral which will occasionally connect to a Windows PC, and transfer a few KB of data in each direction. There will be a custom PC application that controls the data transfers, using a proprietary protocol (i.e. for the USB payloads). I see at the following link that Microsoft describes how to write a driver for a USB device. But do I need one? Developing Windows client drivers for USB devices The PC application is the only application that we intend to know

Need to write driver for USB peripheral device?

帅比萌擦擦* 提交于 2020-01-15 09:12:07
问题 I'm working on designing a USB peripheral which will occasionally connect to a Windows PC, and transfer a few KB of data in each direction. There will be a custom PC application that controls the data transfers, using a proprietary protocol (i.e. for the USB payloads). I see at the following link that Microsoft describes how to write a driver for a USB device. But do I need one? Developing Windows client drivers for USB devices The PC application is the only application that we intend to know

How can I detect a USB port being used for charging in Linux?

假装没事ソ 提交于 2020-01-15 06:54:11
问题 I'm using a USB port on the Raspberry Pi 3 Model B to charge an accessory via a USB magnetic charging cable. I want to detect when the cable is plugged in and removed from the Pi . I've been plugging in and removing this cable and looking for any traces of this being detected on Linux. So far, I've tried: monitoring udev events by udevadm monitor . tailing the system logs in /var/log etc. running an inotify watch on the /dev directory for new devices looking around in /sys/bus/usb/devices for

libusb-1.0 - Where does the data go after a successful libusb_bulk_transfer() call?

烈酒焚心 提交于 2020-01-14 06:37:27
问题 I ran the following code sample obtained from a tutorial here: http://www.dreamincode.net/forums/topic/148707-introduction-to-using-libusb-10/ I ran it against a tablet running Android 4 attached via USB to a MacBook Pro running Mac OS X Mountain Lion. The output contained "Writing Successful!" so I assume libusb_bulk_transfer() worked correctly. My question is where did the 4 bytes of data got transferred to? Can I save it to a file on the Android tablet? Thanks for your help! #include