Rajeev
Rajeev

Reputation: 46969

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 transfer data into it.I am trying to do this on linux

Upvotes: 0

Views: 2119

Answers (2)

Paul R
Paul R

Reputation: 213120

Take a look at libusb - it's cross-platform.

Upvotes: 3

Abhijit
Abhijit

Reputation: 19

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.

Upvotes: 1

Related Questions