[ale] usbdevfs confusion

Christopher Bergeron christopher at bergeron.com
Sun Nov 14 14:52:03 EST 2004


Can anyone help me figure out usbdevfs?  I'm trying to access a USB 
serial device using it, however, I'm not sure how I attach to it.

The device is listed as 004 when I run  "lsusb".  When I look in 
/proc/bus/usb/001/  I see the device listed as: 004.  However, when I 
try to open the device from my program:  programname -d 
/proc/bus/usb/001/004, it doesn't work.

I also tried creating a node in /dev for "ttyUSB0" (using mknod c 188 
0), and that doesn't work either.

Is usbdevfs not meant to be accessed as a file device like /dev is?

Can anyone shed any light on this for me?  I'm pretty confused here.

Thanks!
-CB




More information about the Ale mailing list