<div dir="ltr">Hi,<br><br>We are facing an issue with a Quectel EC21-A module and Twilio SIM cards using ModemManager v1.12.8. I found similar error logs with Soracom SIM cards and other Quectel modems as well.<br><br>A new and freshly activated Twilio SIM card would not work unless the modem is reset. Rebooting does not make the issue go away. After the modem is reset the SIM card start working. IPv6 is disabled.<br><br>The non-verbose logs are:<br><br>```<br>May 13 16:54:07 f79fae5 ModemManager[1139]: Simple connect started...<br>May 13 16:54:07 f79fae5 ModemManager[1139]: Simple connect state (4/8): Wait to get fully enabled<br>May 13 16:54:07 f79fae5 ModemManager[1139]: Simple connect state (5/8): Register<br>May 13 16:54:07 f79fae5 ModemManager[1139]: Simple connect state (6/8): Bearer<br>May 13 16:54:07 f79fae5 ModemManager[1139]: Simple connect state (7/8): Connect<br>May 13 16:54:07 f79fae5 ModemManager[1139]: Modem /org/freedesktop/ModemManager1/Modem/0: state changed (registered -> connecting)<br>May 13 16:54:08 f79fae5 ModemManager[1139]: error: couldn't start network: QMI protocol error (14): 'CallFailed'<br>May 13 16:54:08 f79fae5 ModemManager[1139]: call end reason (1): 'generic-unspecified'<br>May 13 16:54:08 f79fae5 ModemManager[1139]: verbose call end reason (3,2504): [cm] invalid-sim-state<br>May 13 16:54:08 f79fae5 ModemManager[1139]: Modem /org/freedesktop/ModemManager1/Modem/0: state changed (connecting -> registered)<br>```<br><br>Verbose logs are attached to the email as well.<br><br>mmcli information:<br>```<br>  -----------------------------------<br>  General  |               dbus path: /org/freedesktop/ModemManager1/Modem/0<br>           |               device id: 96138e92ba9fd4b4beb94bfb733052f4aad0ea7b<br>  -----------------------------------<br>  Hardware |            manufacturer: QUALCOMM INCORPORATED<br>           |                   model: QUECTEL Mobile Broadband Module<br>           |       firmware revision: EC21AFAR05A06M4G<br>           |          carrier config: Commercial-TMO_VoLTE<br>           | carrier config revision: 05010505<br>           |            h/w revision: 10000<br>           |               supported: gsm-umts, lte<br>           |                 current: gsm-umts, lte<br>           |            equipment id: 861412042008842<br>  -----------------------------------<br>  System   |                  device: /sys/devices/platform/32e50000.usb/ci_hdrc.1/usb1/1-1<br>           |                 drivers: option1, qmi_wwan<br>           |                  plugin: Quectel<br>           |            primary port: cdc-wdm0<br>           |                   ports: ttyUSB0 (qcdm), ttyUSB2 (at), cdc-wdm0 (qmi), wwan0 (net), <br>           |                          ttyUSB3 (at)<br>  -----------------------------------<br>  Status   |                    lock: sim-pin2<br>           |          unlock retries: sim-pin (3), sim-pin2 (10), sim-puk (10), sim-puk2 (10)<br>           |                   state: registered<br>           |             power state: on<br>           |             access tech: umts<br>           |          signal quality: 47% (recent)<br>  -----------------------------------<br>  Modes    |               supported: allowed: 3g; preferred: none<br>           |                          allowed: 4g; preferred: none<br>           |                          allowed: 3g, 4g; preferred: 3g<br>           |                          allowed: 3g, 4g; preferred: 4g<br>           |                 current: allowed: 3g, 4g; preferred: 4g<br>  -----------------------------------<br>  Bands    |               supported: utran-4, utran-5, utran-2, eutran-2, eutran-4, eutran-12<br>           |                 current: utran-4, utran-5, utran-2, eutran-2, eutran-4, eutran-12<br>  -----------------------------------<br>  IP       |               supported: ipv4, ipv6, ipv4v6<br>  -----------------------------------<br>  3GPP     |                    imei: 861412042008842<br>           |             operator id: 310260<br>           |           operator name: Twilio<br>           |            registration: home<br>  -----------------------------------<br>  3GPP EPS |    ue mode of operation: csps-1<br>  -----------------------------------<br>  SIM      |               dbus path: /org/freedesktop/ModemManager1/SIM/0<br>```<br><br>The NetworkManager connection profile is:<br>```<br>[connection]<br>id=cellular<br>type=gsm<br>autoconnect=false<br><br>[gsm]<br>apn=<a href="http://wireless.twilio.com">wireless.twilio.com</a><br>number=*99#<br><br>[ipv4]<br>method=auto<br><br>[ipv6]<br>method=ignore<br>```<br><br>I kept `autoconnect` as `false` for simplicity, since the problem occurs when the NM connection is brought up.<br><br>Do you think there could be any way in resolving this without resetting the modem?<br><br>Thanks a lot,<br>Zahari<br></div>