usb

How to find the drive letter of an USB mass storage drive using VID and PID in C#?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-04 05:54:22
问题 We design a USB MSD product, for that we need to write a C# application which will do some processing on the files stored in the memory. Can anybody advise me,how to detect whether an USB device with a particular VID+PID is connected to the computer and if so, what is the drive letter(Or root drive path)? I could able to find examples to detect whether a particular( VID+PID ) USB device is present or not. And also could able to find example programs to detect the available removable drives

Installing the Android USB driver - not happening

送分小仙女□ 提交于 2020-01-04 04:20:17
问题 Using AVD, I successfully obtained the USB driver. I followed the instructions on this page USB Driver for Windows but Windows never prompted with the "Found new hardware..." message. I'm running Vista x64 SP2 and I can see the amd64 folder under ~\Android SDK\tools\usb_driver. The Manage Devices applet shows no listing for "ADB Interface" so it certainly appears that it is not there. I tried a scan for hardware changes -- nada. And running "adb devices" comes back empty (as expected). How do

USB 24bits audiostream descriptors

送分小仙女□ 提交于 2020-01-04 03:51:25
问题 I am working on a demo for an USB headset and I have a question about the audio endpoint descriptors of the USB. I have a working 8-48kHz 16bit audio stream and I can select any sample frequency in the windows properties of an audio device. I use the following descriptors: Code: // Interface 2: Speaker, alternate setting 1. Type 1 format descriptor. static const UsbAudioStreamingType1DescriptorType UsbIfd2Format = { sizeof(UsbAudioStreamingType1DescriptorType), // uint8 bLength; UDESC_CS

Discover multiple USB-IrDA devices, open and connect a socket for each

♀尐吖头ヾ 提交于 2020-01-04 02:32:07
问题 For any good sockets programmers out there: Is it possible to enumerate multiple active IrDA devices connected to the PC through USB ports using sockets? If so, how? This is really my main question. The remainder of the post rounds out the details and describes what I have tried. I am developing an application on Windows 7, using Microsoft SDK and an ANSI C compiler. The application design requires it to detect any IrDA devices in range, connect using sockets, and communicate to multiple

How do I programmatically disable/enable the physical keyboard in Android?

社会主义新天地 提交于 2020-01-03 05:12:13
问题 I have an application that I'm developing that uses a USB HID device connected to a Motorola Xoom for some input. However, the majority of the time I still want to use the on-screen keyboard. Is there a way to disable/enable the use of hardware keyboard in Android 3.0+? I'd like the application to behave like it would, had there not been a keyboard connected. 回答1: well one solution you can think of is .. @Override public boolean onKeyDown(int keyCode, KeyEvent event) { return true; }

Failed to Connect FT232RL Device with Pylibftdi (Thorlabs APT DC Motor Controller)

我是研究僧i 提交于 2020-01-03 01:58:27
问题 I have a Thorlabs DC motor controller, which can be detected with the following dmesg log: usb 5-2: new full-speed USB device number 6 using uhci_hcd usb 5-2: New USB device found, idVendor=0403, idProduct=faf0 usb 5-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 5-2: Product: APT DC Motor Controller usb 5-2: Manufacturer: Thorlabs usb 5-2: SerialNumber: 83858610 ftdi_sio 5-2:1.0: FTDI USB Serial Device converter detected usb 5-2: Detected FT232RL usb 5-2: Number of endpoints

Can linux signal my Qt program when a particular USB device is connected?

房东的猫 提交于 2020-01-03 00:54:13
问题 I want linux to inform my Qt program by a signal when a particular USB device is connected. Storage devices like flash disk or hard drive. How can I do this? What are your suggestions? UPDATE: I have found that QtDbus can provide the functionality that I need but I have not figure out how exactly. Is there anyone can give information about getting USB device notification with QtDbus? I have been reading this tutorial: http://dbus.freedesktop.org/doc/dbus-tutorial.html This tutorial says: D

Android USB to Samsung Eclipse Cannot Connect

半城伤御伤魂 提交于 2020-01-03 00:54:12
问题 Right now I am trying to connect to Samsung Captivate. I see the device, but adb devices shows and empty list. Debugging in Eclipse I cannot see the device. I see it in the Windows 7 device list however. phone says connected. But adb devices does not list anything. What else do I need to do? 回答1: Samsung has a separate driver for connecting their Android devices for to Windows machines. I think there is an option in Kies to install this. 回答2: This solution is to connect via wifi, so there is

Chrome App usb DigitalPersona fingerprinted reader not found

狂风中的少年 提交于 2020-01-02 13:58:21
问题 I'm trying develop Google Chrome App(or extension, not sure) to use DigitalPersona fingerprint reader on Windows. Following : https://developer.chrome.com/apps/usb https://github.com/GoogleChrome/chrome-app-samples/tree/master/usb var DEVICE_INFO = { "vendorId": 1466, //0x05BA "productId": 10 //0x000A }; chrome.usb.findDevices(DEVICE_INFO, call_method); Result is "App was granted the 'usbDevices' permission, but device not found". p.s. the usb information above was found in windows device

Discover serial ports in C#

半城伤御伤魂 提交于 2020-01-02 10:20:12
问题 I'm writing an application that communicates by sending bytes to the USB port. I'd like to allow the user to choose the port and to do that, I use SerialPort.GetPortNames() . Unfortunately, it returns an empty array. The method supposedly reads the registry for data (HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM), but the SERIALCOMM directory is missing. When I run the program on Linux, it lists my four USB ports, as expected. How can I fix the registry/discover the ports in a different