On Wed, Mar 8, 2017 at 1:00 PM, <colin.helliw...@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]: <debug> [1488923142.478228] [mm-broadband-modem.c:6418] modem_messaging_load_initial_sms_parts(): Listing SMS parts in storage 'sm' ModemManager[20729]: <debug> [1488923142.478249] [mm-broadband-modem.c:5532] mm_broadband_modem_lock_sms_storages(): Locking SMS storages to: mem1 (SM), mem2 (none)... ModemManager[20729]: <debug> [1488923142.478284] [mm-port-serial.c:1220] mm_port_serial_open(): (ttyUSB0) device open count is 3 (open) ModemManager[20729]: <debug> [1488923142.478324] [mm-port-serial.c:1277] _close_internal(): (ttyUSB0) device open count is 2 (close) ModemManager[20729]: <debug> [1488923142.478361] [mm-port-serial-at.c:459] debug_log(): (ttyUSB0): --> 'AT+CPMS="SM"<CR>' ModemManager[20729]: <debug> [1488923142.550085] [mm-port-serial-at.c:459] debug_log(): (ttyUSB0): <-- '<CR>' ModemManager[20729]: <debug> [1488923142.551088] [mm-port-serial-at.c:459] debug_log(): (ttyUSB0): <-- '<LF>+CMS ' ModemManager[20729]: <debug> [1488923142.552082] [mm-port-serial-at.c:459] debug_log(): (ttyUSB0): <-- 'ERROR:' ModemManager[20729]: <debug> [1488923142.553082] [mm-port-serial-at.c:459] debug_log(): (ttyUSB0): <-- ' 314<CR>' ModemManager[20729]: <debug> [1488923142.554086] [mm-port-serial-at.c:459] debug_log(): (ttyUSB0): <-- '<LF>' ModemManager[20729]: <debug> [1488923142.554163] [mm-serial-parsers.c:364] mm_serial_parser_v1_parse(): Got failure code 314: SIM busy ModemManager[20729]: <debug> [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 _______________________________________________ ModemManager-devel mailing list ModemManager-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel