Scanno, on 20 September 2012 - 02:31 PM, said:
Eduardo,
Is there an easy way to test and support more huawei modems? I still have to test my e153 USB modem with the latest ril. Last time I tested it, it did not work. I guess it should be something like changing/adding at strings somewhere. Or am I mistaken?
In fact, i do suspect that it would be easier than that. Most Huawei modem use exactly the same AT commands. The main difference is the amount of USB serial port emulated, and some modems instead of using a ppp session over ttyUSB0, they just create a new network interface. The RIL should support those.
But, something missing is autodetection of ports.
The E169 3G modem, when plugged in, creates 3 virtual serial ports
ttyUSB0, used for modem data and ppp links
ttyUSB1, used as a diagnostics port (not used by RIL right now)
ttyUSB2, used to send commands to the modem, even if a ppp session is running. But, you can alos use ttyUSB0 to send commands when no ppp session is running. ppp sessions are used for 3G connectivity
The EM770W 3G modem, , when plugged in, creates 5 virtual serial ports:
ttyUSB0, used for modem data and ppp links
ttyUSB1, used as a diagnostics port (used by RIL to support voice, as there is an AT command to redirect audio through this port)
ttyUSB2, used to send commands to the modem, even if a ppp session is running. But, you can alos use ttyUSB0 to send commands when no ppp session is running. ppp sessions are used for 3G connectivity
ttyUSB3: Used to get NMEA GPS data (the EM770W also has a GPS function builtin)
ttyUSB4: Used to send propietary AT control commands to the GPS
There are some other Huawei modems that are not using this port layout. And some others, besides creating ttyUSB ports, also create a network interface, and use it instead of the ppp link. What you must find out if the number of ports your modem is creating. The first thing we need to know is the port used to control the modem. And we must also know if it requires a ppp link or a network interface to create a 3G connection. All those thing can easily be checked by plugging the modem and looking at dmesg for the ports being created...