USB HID Devices

The library you mention is now hosted on google see http://code.google.com/p/csharp-usb-hid-driver/ Perhaps these are helpful too: https://github.com/mikeobrien/HidLibrary http://www.usbhidnetclass.com/ (commercial) (usbhidnetclass.org previously) http://www.codeproject.com/KB/cs/USB_HID.aspx http://janaxelson.com/hidpage.htm http://www.codeproject.com/KB/system/HIDAche.aspx?q=C%23+and+USB+HID+Devices http://www.codeproject.com/Tips/530836/Csharp-USB-HID-Interface

windows – How to enumerate all connected USB devices’ device path?

MSDN says that there’s a generic USB device interface class named GUID_DEVINTERFACE_USB_DEVICE with the GUID {A5DCBF10-6530-11D2-901F-00C04FB951ED}: The system-supplied USB hub driver registers instances of GUID_DEVINTERFACE_USB_DEVICE to notify the system and applications of the presence of USB devices that are attached to a USB hub. Here’s a code example that seems to do what you want … Read more

Get the drive letter of USB drive in PowerShell

Try: gwmi win32_diskdrive | ?{$_.interfacetype -eq “USB”} | %{gwmi -Query “ASSOCIATORS OF {Win32_DiskDrive.DeviceID=`”$($_.DeviceID.replace(‘\’,’\\’))`”} WHERE AssocClass = Win32_DiskDriveToDiskPartition”} | %{gwmi -Query “ASSOCIATORS OF {Win32_DiskPartition.DeviceID=`”$($_.DeviceID)`”} WHERE AssocClass = Win32_LogicalDiskToPartition”} | %{$_.deviceid} Tested with one and more than one USB device plugged-in.

Transferring data USB

I was trying to send data over the wrong baud rate. Here’s the code that works. Posting it for everyone who is using FTDI devices and needs help. private Runnable mLoop = new Runnable() { @Override public void run() { UsbDevice dev = sDevice; if (dev == null) return; UsbManager usbm = (UsbManager) getSystemService(USB_SERVICE); UsbDeviceConnection … Read more

tech