usb

How might I retrieve the port number of a USB device that is connected to a USB port?

房东的猫 提交于 2019-12-23 02:52:14
问题 How might I retrieve the port number of a USB device that is connected to a USB port, using VB6? I can already get the USB Device name, let's say: \\?\USB#Vid_0801&Pid_2250#7&91e2848&0&1#{4d36e978-e325-11ce-bfc1-08002be10318} How do I automatically detect what port number is assigned to it? I am making a program that will automatically determine the port number of a specific device attached to any of the USB port and start communicating on it automatically. 回答1: to view the available comports

Read Raw USB Input on Windows

旧巷老猫 提交于 2019-12-22 21:44:56
问题 I have device that is a USB HID Human Interface that sends keycodes to usb host when I press the keys and I just can't find a simple program that will dump all the input data that comes in my USB port? (with source code available of course. USBlyzer does it, but it's shareware) 回答1: Check out libusb and #USBLib Both are open sourse. #USBLib is a .net wrapper around the multi platform libusb. 来源: https://stackoverflow.com/questions/7373247/read-raw-usb-input-on-windows

Read Raw USB Input on Windows

对着背影说爱祢 提交于 2019-12-22 21:44:11
问题 I have device that is a USB HID Human Interface that sends keycodes to usb host when I press the keys and I just can't find a simple program that will dump all the input data that comes in my USB port? (with source code available of course. USBlyzer does it, but it's shareware) 回答1: Check out libusb and #USBLib Both are open sourse. #USBLib is a .net wrapper around the multi platform libusb. 来源: https://stackoverflow.com/questions/7373247/read-raw-usb-input-on-windows

USB Accessory not communicating after restart

坚强是说给别人听的谎言 提交于 2019-12-22 18:09:06
问题 I'm trying to figure out why my application does not start communicating with the USB accessory after the phone restarts. If I unplug the cable and plug it back in, the communication resumes. The application is targeted at Android API 19. At the app install I set it to always be the Home app and when I first connect it to the accessory I check the box to always permit the access to the current accessory. So when I restart the phone, the app opens up automatically, it goes through the steps of

Where in the Linux source does recognition of specific USB devices happen?

烂漫一生 提交于 2019-12-22 18:04:56
问题 I have a specific USB device whose Linux driver source code I would like to examine. My understanding is that the first step a USB driver takes is to register itself capable of handling a device with a specific vendor ID and product ID. In my case, the vendor ID is 0BDA and the product ID is 8187 . Given this information, is there a way I can find the source file that registers itself as capable of handling this device, with a view to then finding out what other source files actual implement

USB audio For Android Platform

核能气质少年 提交于 2019-12-22 12:43:25
问题 I am using Android 4.2.2 on Qualcomm APQ8064 Chip set. I want to enable audio output to the USB headset. I tried using aplay command but no luck. The driver for usb-audio is already there in the code. Everything is integrated but i don't get any output on the usb-headset. Any flags that need to be set?? Any lead will be of great help. @Micheal:Following are the logs for the same, I just noticed that below logs from AudioUsbALSA can also be seen when the USB headset is not connected. 3502:I

USB audio For Android Platform

落花浮王杯 提交于 2019-12-22 12:43:16
问题 I am using Android 4.2.2 on Qualcomm APQ8064 Chip set. I want to enable audio output to the USB headset. I tried using aplay command but no luck. The driver for usb-audio is already there in the code. Everything is integrated but i don't get any output on the usb-headset. Any flags that need to be set?? Any lead will be of great help. @Micheal:Following are the logs for the same, I just noticed that below logs from AudioUsbALSA can also be seen when the USB headset is not connected. 3502:I

How to check if USB connected mode is enabled on android?

好久不见. 提交于 2019-12-22 11:32:54
问题 I have an app on the android market and users often connect their devices to their computers to add music into the apps folder. I have specifically stated in the instructions that android apps cannot communicate with the sd card while usb connected mode is enabled. Apparently this is not stupid proof enough. Is there a way to detect in java if the USB is connected? I have seen it done with broadcast receivers, but this is such a stupid way to do it. This won't work if the user starts the app

How to get OS version and Device Name of an Android device connected via USB with C#.net (VS2010/4.0+)?

心已入冬 提交于 2019-12-22 10:05:31
问题 I want to build a windows application in C#.net which should identify the installed Adroid OS version (e.g. 4.0) and user friendly Device Name (e.g. Samsung Galaxy S3, Samsung Galaxy Tab 8.9 etc.) when you connect an Android device to your computer via USB. I tried with the System.Management class to identify the connected USB devices on my machine, however, the problems I had were: I just have 3 USB ports and connected the Samsung Galaxy Tab 8.9 on one of the USB ports and tried to get the

Get Serial Number of USB HDD (Mac OS)

被刻印的时光 ゝ 提交于 2019-12-22 09:48:22
问题 i've already searched stackoverflow.com and google for an answer but couldn't find anything. I've got the bsdName of a partition (disk1s1) which belongs to an external USB HDD (disk1). I need to find out the serial number of that external HDD. I already tried the following (look for a service with the bsd Name): io_service_t io_service = IOServiceGetMatchingService(kIOMasterPortDefault,IOBSDNameMatching(kIOMasterPortDefault, 0, [@"disk1" cStringUsingEncoding:NSUTF8StringEncoding])); The