I've got a serial GPRS modem on /dev/ttyUSB0. It works great with wvdial, hardware is fine etc. etc. but as the systems we are going to be rolling out will be using multiple modems, each with a different telephone network, each modem will have differing username/password combinations amongst other parameters.
Now, the sharp witted of you may also note they are USB modems converted to serial devices - this is where the problem is sprung. If, for example, a device dies, or is disconnected for whatever reason - the other modems will "shift" along the device chain, so /dev/ttyUSB1 will become /dev/ttyUSB0 - which when used with wvdial will not work - incorrect username/password.
So - I've been tasked with finding out how to interrogate the modem into fessing up which network it will be connecting to. (i.e. which chip ID does the sim within hold) but I can't find anything anywhere that is going to let me run a series of terminal (using bash, btw) commands to do said interrogation.
Does anyone know how I can communicate with this modem?
Now, the sharp witted of you may also note they are USB modems converted to serial devices - this is where the problem is sprung. If, for example, a device dies, or is disconnected for whatever reason - the other modems will "shift" along the device chain, so /dev/ttyUSB1 will become /dev/ttyUSB0 - which when used with wvdial will not work - incorrect username/password.
So - I've been tasked with finding out how to interrogate the modem into fessing up which network it will be connecting to. (i.e. which chip ID does the sim within hold) but I can't find anything anywhere that is going to let me run a series of terminal (using bash, btw) commands to do said interrogation.
Does anyone know how I can communicate with this modem?