Re: [MM] [PATCH] novatel-lte: use $NWMDN to read own number when +CNUM fails

2012-11-05 Thread Aleksander Morgado
> The number(s) returned by +CNUM include the number return by $NWMDN. > Ideally, we should be able to just use +CNUM. But probably due to some > firmware issue, +CNUM sometimes returns ERROR unexpectedly shortly after > the SIM interface becomes ready. It also returns ERROR for an > unactivated S

Re: [MM] [PATCH] novatel-lte: use $NWMDN to read own number when +CNUM fails

2012-11-05 Thread Ben Chan
The number(s) returned by +CNUM include the number return by $NWMDN. Ideally, we should be able to just use +CNUM. But probably due to some firmware issue, +CNUM sometimes returns ERROR unexpectedly shortly after the SIM interface becomes ready. It also returns ERROR for an unactivated SIM.$NWM

Re: [MM] [PATCH] novatel-lte: use $NWMDN to read own number when +CNUM fails

2012-11-05 Thread Aleksander Morgado
On 04/11/12 02:00, Ben Chan wrote: > +CNUM may return ERROR when the modem fails to read the own numbers from > the SIM card or when the SIM card hasn't been activated. Use $NWMDN to > read the MDN as a fallback, which distinguishes these two cases. Just wondering, shouldn't the plugin try to read

[MM] [PATCH] novatel-lte: use $NWMDN to read own number when +CNUM fails

2012-11-03 Thread Ben Chan
+CNUM may return ERROR when the modem fails to read the own numbers from the SIM card or when the SIM card hasn't been activated. Use $NWMDN to read the MDN as a fallback, which distinguishes these two cases. --- plugins/novatel/mm-broadband-modem-novatel-lte.c | 103 ++ 1 fil