nRF91 modem connection blackout after SIM disable loops

Hello! 

Based on some tests, I've seen that modem disables attach logic for at least half an hour in case it has tried to connect to network at least twice with disabled SIM. My assumption is that the same Modem Reset Loop restriction kicks in, because even the SIM is again enabled, modem need to be running for some time (once it was around 30 minutes, sometimes its longer) before it can again establish connection successfully or AT%XFCTORYRESET=0 need to be issued to modem - the same behavior as with reset loop restriction. I have seen the same issue on multiple devices

As far as my testing went I did not manage to receive any specific notification about this event by setting %MDMEV=2 AT command (I was kinda hoping to see LTE_LC_MODEM_EVT_RESET_LOOP). 

The SIM disabling is a necessary feature for devices that are not used in field, so that we don't have to pay for data, that actually are not necessary. Turning off the device in that case is not an option. 

It is pretty easy to replicate. Program the sample on device, disable SIM and let connect logic go in a loop few times. If you let only one connection loop to go thru, after power reset device manages to regain connection to network. I let it run for 3 loops, then enabled SIM and did a power reset. The mentioned timeout appears only after at least 2 (based on couple of tests) unsuccessful connect events. And no this is not the actual modem loop reset restriction because of the resets, in field device is never reset manually, I tested our FW with a continuously running device firmware which has a connect/reconnect logic with timeouts implemented and the same timeout appeared.
I am using mfw_nrf91x1_2.0.4 and nRF SDK v3.2.4
Question is can I somehow detect when this happens on MCU side? Because currently it brings in a connection delay. We have a battery powered device and keeping the modem on for 30 minutes non stop is not really an option here. As mentioned we have implemented reconnect/retry logic with increasing timeout attempts (modem shut down gracefully between each attempt) and with that device connects to server almost half day later when SIM was enabled and device had power reset.
  • Hi Øyvind,

     

    Now my apologies for the late reply. Was kinda flooded with other tasks and did not have time to get back to you with this.

    Based on your suggestion, I subscribed to both +CNEC and +CGEV and now I can clearly see in firmware when the SIM gets disabled. Now I just need to fix existing logic to handle these timeouts and AT responses correctly.

    I just have one small additional follow up question - if for some reason RPM restriction is triggered, device waits in offline/airplane mode until the timeout exceeds and then connects again to network. After 90 seconds I power off device after which the restriction again persists. So my guess that the restriction will be cleared in somewhat similar way as it is with modem reset loop restriction meaning graceful shutdown or when device has been connected to network for specific amount of time. Is this true or not? 

    Other than that, thanks for your support, this will help us avoid these type of situation in future

  • Hello,

    Our modem team points out:

    This part is not true for RPM: "or when device has been connected to network for specific amount of time". Otherwise, the restriction behaves similarly to the reset loop restriction: the modem will recover automatically after some delay (which may differ from the reset loop restriction), and you should not cut power to let the restriction timer run in modem.

    Let me know if this answers your question. 

    Kind regards,
    Øyvind

Related