10444 questions

12453 answers

19377 comments

21853 members

0 votes
93 views 0 comments
by

FW: RUT9_R_00.07.00.2
Modem FW: EC25ECGAR06A04M1G

I ran into problems with SMS utilities and went through almost all sms commands and run into seemingly endless loop issue with switch_sim in at least certain situation.

If the router doesn't have 2nd SIM installed (or there is a physical problem with SIM or something) and switch_sim-command is sent, router seems to get stuck in loop trying to switch to SIM that is not inserted:

Thu Oct 28 09:46:34 2021 daemon.info unhandler[2377]: modem_init: send to gsmd 'AT+QCFG='roamserviceex'
Thu Oct 28 09:46:34 2021 daemon.info unhandler[2377]: modem_init: get from gsmd ERROR
Thu Oct 28 09:46:34 2021 daemon.info unhandler[2377]:
Thu Oct 28 09:46:34 2021 daemon.info unhandler[2377]: modem_init[1-1][0]: gprsattach
Thu Oct 28 09:46:34 2021 daemon.info unhandler[2377]: modem_init[1-1][1]: dhcppktfltr
Thu Oct 28 09:46:35 2021 daemon.info unhandler[2377]: modem_init[1-1][2]: AT+CFUN=0
Thu Oct 28 09:46:35 2021 daemon.info unhandler[2377]: modem_init[2]: send to gsmd 'AT+CFUN=0'
Thu Oct 28 09:46:35 2021 daemon.info unhandler[2377]: modem_init[2]: get from gsmd OK
Thu Oct 28 09:46:35 2021 daemon.info unhandler[2377]:
Thu Oct 28 09:46:35 2021 daemon.info unhandler[2377]: modem_init[1-1][3]: AT+CFUN=1
Thu Oct 28 09:46:35 2021 daemon.info unhandler[2377]: modem_init[3]: send to gsmd 'AT+CFUN=1'
Thu Oct 28 09:46:38 2021 daemon.info unhandler[2377]: modem_init[3]: get from gsmd OK
Thu Oct 28 09:46:38 2021 daemon.info unhandler[2377]:
Thu Oct 28 09:46:38 2021 daemon.info unhandler[2377]: modem_init[1-1][4]: AT+CMEE=2
Thu Oct 28 09:46:38 2021 daemon.info unhandler[2377]: modem_init[4]: send to gsmd 'AT+CMEE=2'
Thu Oct 28 09:46:38 2021 daemon.info unhandler[2377]: modem_init[4]: get from gsmd OK
Thu Oct 28 09:46:38 2021 daemon.info unhandler[2377]:
Thu Oct 28 09:46:38 2021 daemon.info unhandler[2377]: modem_init[1-1][5]: AT+CREG=2
Thu Oct 28 09:46:38 2021 daemon.info unhandler[2377]: modem_init[5]: send to gsmd 'AT+CREG=2'
Thu Oct 28 09:46:38 2021 daemon.info unhandler[2377]: modem_init[5]: get from gsmd OK
Thu Oct 28 09:46:38 2021 daemon.info unhandler[2377]:
Thu Oct 28 09:46:38 2021 daemon.info unhandler[2377]: modem_init[1-1][6]: AT+CPIN?
Thu Oct 28 09:46:38 2021 daemon.info unhandler[2377]: modem_init[1-1][5]: send to gsmd 'AT+CPIN?'
Thu Oct 28 09:46:38 2021 daemon.info unhandler[2377]: modem_init[1-1][5]: get from gsmd '+CME ERROR: SIM not inserted
Thu Oct 28 09:46:38 2021 daemon.info unhandler[2377]:
Thu Oct 28 09:46:40 2021 daemon.info unhandler[2377]: modem_init[1-1][5]: send to gsmd 'AT+CPIN?'
Thu Oct 28 09:46:40 2021 daemon.info unhandler[2377]: modem_init[1-1][5]: get from gsmd '+CME ERROR: SIM not inserted
Thu Oct 28 09:46:40 2021 daemon.info unhandler[2377]:
Thu Oct 28 09:46:42 2021 daemon.info unhandler[2377]: modem_init[1-1][5]: send to gsmd 'AT+CPIN?'
Thu Oct 28 09:46:42 2021 daemon.info unhandler[2377]: modem_init[1-1][5]: get from gsmd '+CME ERROR: SIM not inserted
Thu Oct 28 09:46:42 2021 daemon.info unhandler[2377]:
Thu Oct 28 09:46:44 2021 daemon.info unhandler[2377]: modem_init[1-1][5]: send to gsmd 'AT+CPIN?'
Thu Oct 28 09:46:44 2021 daemon.info unhandler[2377]: modem_init[1-1][5]: get from gsmd '+CME ERROR: SIM not inserted
Thu Oct 28 09:46:44 2021 daemon.info unhandler[2377]:
Thu Oct 28 09:46:46 2021 daemon.info unhandler[2377]: modem_init[1-1][5]: send to gsmd 'AT+CPIN?'
Thu Oct 28 09:46:46 2021 daemon.info unhandler[2377]: modem_init[1-1][5]: get from gsmd '+CME ERROR: SIM not inserted
Thu Oct 28 09:46:46 2021 daemon.info unhandler[2377]:
Thu Oct 28 09:46:48 2021 daemon.info unhandler[2377]: modem_init[1-1][5]: send to gsmd 'AT+CPIN?'
Thu Oct 28 09:46:48 2021 daemon.info unhandler[2377]: modem_init[1-1][5]: get from gsmd '+CME ERROR: SIM not inserted
Thu Oct 28 09:46:48 2021 daemon.info unhandler[2377]:
Thu Oct 28 09:46:58 2021 daemon.info unhandler[2377]: modem_init: send to gsmd 'AT+QCFG='roamserviceex'
Thu Oct 28 09:46:58 2021 daemon.info unhandler[2377]: modem_init: get from gsmd ERROR
Thu Oct 28 09:46:58 2021 daemon.info unhandler[2377]:

and so on.. It doesn't accept any SMS commands anymore (probably because it is still processing switch_sim). After waiting 10 or so minutes I rebooted the router, which solves the issue. Any SMSs received after switch_sms are then processed after reboot.

There should probably be a timeout of some kind for switch_sim.

1 Answer

0 votes
by

Hello,

Thank you for your feedback.
I was able to recreate same issue.
I will forward this information to our RnD department in order to solve this.

For now as permanent fix, please edit etc/config/sms_utils file, by adding these lines:
option value 'off'
option seconds '5'

Best regards,

Sigitas