Hi Deng, On 20/12/2011 09:44, Deng, Ying An wrote: > > Hi, > > We are facing a problem in oFono when using 3G modems: > > A CDMA2000 modem can have same PID with WCDMA modem, or TDS-CDMA modem > -- 3G modem vendors already confirm they do that. > > That's to say, if following current strategy, it will be a problem to > install proper driver for this kind of 3G modem. > > So, is it feasible to find out a solution such as to probe the modem > firstly, find out what kind of network modes it supports, and then > install the driver? > > The way to probe the modem could be some action as to read the > capability or get system mode, or issue some specific AT command that > only response to certain network mode? > Indeed, we could use for Huawei modems for instance the AT^SYSINFO command and retrieve the sys_mode field and parse it, I have found this in public Huawei specifications: : System mode. The values are as follows: 0 No service. 1 AMPS mode 2 CDMA mode 3 GSM/GPRS mode 4 HDR mode 5 WCDMA mode 8 CDMA/HDR HYBRID mode Thus we can chose accordingly the drivers to create oFono atoms. Kind regards, Guillaume