I've played with code that enumerate usb devices,etc..but haven't figured
how to associate the usb device
with a /dev/ttyUSBnn device properly/correctly or how? ...don't know enough
yet
eg modem on device
ls /proc/bus/usb/002
001  002

the falcom modem is the 002 device,

yet the serial device is attached to /dev/ttyUSB0.......


anyway, perhaps all I should do is enumerate the /dev/ttyUSBnn directory
names ??
and as all of these I will need to open and check for modem, may as well ?
not so trivial searching/enumerating a directory in LINUXX.....trivial stuff
in windows...
anyone got a C code snippet to search LINUX directories ?.......
I'm examining ls.c atm for
hints........Grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
and didn't find anything searching the web.........


----- Original Message ----- 
From: fred
To: devel
Sent: Wednesday, August 09, 2006 9:03 AM
Subject: detecting modems on USB


the primary configuration of a modem is the device,
now with USB, it can be by chance whether the kernel attaches your modem to
ttyUSB0 or ttyUSB1...or what if you have many modems,
and you want to be specific about which modem is where because you have them
registered with different operators.
Anyone thought about this?
I think perhaps a id config needed in
group = smsc
smsc = at

the id, maybe on AT+CIMI, or serial no, or somehow specified to be any or or
of these.....


Reply via email to