API to detect usb device
Can some one please point to any API or links where i can detect a USB device and other interfaces to t开发者_如何转开发ransfer data into it.I am trying to do this on linux
Take a look at libusb - it's cross-platform.
Can you see your device in the command output lsusb
? If yes, then you must check the vendor Id and Product Id of the same.
Probably in Linux there is already a driver available to make bulk data transfer from concerned USB device (your USB device).
You can check this (http://www.linux-usb.org/usb.ids) to verify whether a driver is available or not.
To make your own program and API's, as stated above libusb
is a place to start, if you don't want to write a driver for your device.
精彩评论