Hi,
I am feeding data from an external modem using a serial-usb convertor dongle (I am a newbie when it comes to reading USB devices by the way). I have written a c program to read the bytes on /dev/ttyUSB0 and this works fine. However, if another usb device was plugged into the computer before my device then presumably I would need to read ttyUSB1 instead. So how do interrogate the operating system to find out which /dev/ttyUSB.. is currently in use and thus communicate to my program which usb device my program should read from?
I'm sure this is a pretty basic question so I have done searches and looked at the faqs etc but have not been able to find what I am looking for. So any help appreciated.
Regards,
Mary