Hi Yang, On 10 February 2010 11:17, Gu, Yang <[email protected]> wrote: > 1. Once connecting this modem to PC via USB, we can get 5 tty ports: ttyUSB0, > ttyUSB1, ttyUSB2, ttyUSB3 and ttyUSB4. The correct way to talk to this modem > is using ttyUSB2. I'm not sure if I handled this correctly in file udev.c.
If there are more devices on the system that have a USB serial interface the ttyUSBn numbers will be different so it would be more reliable to decide based on some other characteristic of ttyUSB2 than the name (don't know which, maybe you can retrieve USB config/interface number). If there's nothing better, then maybe take n = 2 + the lowest number of the five devices. Regards, _______________________________________________ ofono mailing list [email protected] http://lists.ofono.org/listinfo/ofono
