3

i was just wondering if somebody could give me any pointers about how to use USB ports on Ubuntu(and other unix systems) &&/|| (and/or :]) windows. I was trying to googling some stuff up but i failed horribly. Even names of libraries to be used etc would be appriciated.

Thanks, Tomas Herman

Arg
  • 1,926
  • 21
  • 32

2 Answers2

3

You can use libusb for direct access to USB. http://www.libusb.org/

If you instead wish to use a USB serial port or other device for which the OS already has drivers, look for other means. E.g. /dev/input/event* or /dev/ttyUSB* devices on Linux.

Tronic
  • 10,250
  • 2
  • 41
  • 53
  • 1
    One thing to note: libusb 1.0 and later is only supported for some Unixen; Mac OS X and Windows are not supported. libusb 0.1 is cross-platform. – Mike DeSimone Jan 18 '10 at 21:26
2

Two quick links for you:

http://www.linux-usb.org/ - The Linux USB project

http://www.libusb.org/ - "...the libusb project. It aims to create a library for use by user level applications to access USB devices regardless of OS."

Bandi-T
  • 3,231
  • 1
  • 20
  • 15