Results 1 to 1 of 1
I've been using the usb api's to discover a usb device. I can get the bus number and device number and follow it to /sys/bus/usb/devices/x-x.
My problem is that I ...
- 09-02-2008 #1Just Joined!
- Join Date
- Sep 2008
- Posts
- 1
Help Equating USB Bus-Dev to /dev/ttyUSBx Programmatically
I've been using the usb api's to discover a usb device. I can get the bus number and device number and follow it to /sys/bus/usb/devices/x-x.
My problem is that I need to equate that to the appropriate dev in the /dev directory. It usually starts with ttyUSB. On some systems though I've seen it pop up under /dev/tts/USBx.
So, simply put, is there anyway to programmatically obtain the /dev filename from the bus/device number?
Any help would be greatly appreciated.
Thanks,
Chuck


Reply With Quote