Cinterion 'simstatus'
Colin Helliwell
colin.helliwell at ln-systems.com
Wed Mar 8 12:45:33 UTC 2017
I'll look for a command which can achieve the same test - perhaps the function could switch over to the alternative if it gets an 'unsupported' error? (My modems give a "+CME ERROR: 22")
> On 08 March 2017 at 12:32 Aleksander Morgado <aleksander at aleksander.es> wrote:
>
> On Wed, Mar 8, 2017 at 1:00 PM, <colin.helliwell at ln-systems.com> wrote:
>
> > The Cinterion plugin, when initialising a modem, does 20 tries of
> > AT^SIND="simstatus" (after_sim_unlock_context_step).
> >
> > This isn’t supported by my modems – but there may well be an alternative
> > command which could be used. However I’m not sure what it’s *actually*
> > trying to check for?
>
> It's trying to see if the SIM card is ready to be used. Usually after
> the SIM PIN unlock operation the SIM card may need some time to get
> initialized; if we're too quick asking things after that we may get
> errors. See this example I just got yesterday with a different modem:
>
> ModemManager[20729]: [1488923142.478228]
> [mm-broadband-modem.c:6418] modem_messaging_load_initial_sms_parts():
> Listing SMS parts in storage 'sm'
> ModemManager[20729]: [1488923142.478249]
> [mm-broadband-modem.c:5532] mm_broadband_modem_lock_sms_storages():
> Locking SMS storages to: mem1 (SM), mem2 (none)...
> ModemManager[20729]: [1488923142.478284]
> [mm-port-serial.c:1220] mm_port_serial_open(): (ttyUSB0) device open
> count is 3 (open)
> ModemManager[20729]: [1488923142.478324]
> [mm-port-serial.c:1277] _close_internal(): (ttyUSB0) device open count
> is 2 (close)
> ModemManager[20729]: [1488923142.478361]
> [mm-port-serial-at.c:459] debug_log(): (ttyUSB0): -->
> 'AT+CPMS="SM"'
> ModemManager[20729]: [1488923142.550085]
> [mm-port-serial-at.c:459] debug_log(): (ttyUSB0): <-- ''
> ModemManager[20729]: [1488923142.551088]
> [mm-port-serial-at.c:459] debug_log(): (ttyUSB0): <-- '+CMS '
> ModemManager[20729]: [1488923142.552082]
> [mm-port-serial-at.c:459] debug_log(): (ttyUSB0): <-- 'ERROR:'
> ModemManager[20729]: [1488923142.553082]
> [mm-port-serial-at.c:459] debug_log(): (ttyUSB0): <-- ' 314'
> ModemManager[20729]: [1488923142.554086]
> [mm-port-serial-at.c:459] debug_log(): (ttyUSB0): <-- ''
> ModemManager[20729]: [1488923142.554163]
> [mm-serial-parsers.c:364] mm_serial_parser_v1_parse(): Got failure
> code 314: SIM busy
> ModemManager[20729]: [1488923142.554198]
> [mm-iface-modem-messaging.c:775] load_initial_sms_parts_ready():
> Couldn't load SMS parts from storage 'sm': 'SIM busy'
>
> --
> Aleksander
> https://aleksander.es
More information about the ModemManager-devel
mailing list