LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   USB programming (https://www.linuxquestions.org/questions/linux-software-2/usb-programming-285503/)

The_Nerd 02-02-2005 05:13 PM

USB programming
 
Hello! I need to do some USB programming. What is the best place to start? It would be best if it was OSI, but it doesn't have to be. I see there is libusb (http://libusb.sourceforge.net), but it is only V0.1, is this a working decent library? Also, I have never done any USB programming. What should I know?

By USB programming, I mean that I need to open a USB port and access data from it.

Andrew Benton 02-02-2005 05:44 PM

libusb is good. It's at version 0.1.8. To access a USB port you'll need to use a device driver built into the kernel or as a loadable module. For instance, the module usb-storage can access many devices (cameras, external hard disks, mp3 players). When you load a module it usually communicates with user space through a node in /dev. I don't know much about programing, I've only learnt enough to get my hardware working

The_Nerd 02-03-2005 11:05 AM

Thanks.

Funny... Probably the only non-programmer on the programming forum is the one who was willing to help (and has).

Oh well, it is probably because all the other programmers are helping other people. I know how that is in this forum. ;)


All times are GMT -5. The time now is 01:22 PM.