No simcard

I am using the nRF9160 aws_iot sample. I was now trying somethings that are not optimal situations.

For example, I made some FIFO buffer to write in measurements in one thread and send them in another thread. Independent of connectivity the measurements will be logged. Now I tried this by taking out the simcard. After a bit it starts writing the buffer and when I put back the simcard it reconnects and starts sending his buffer.

I also tried to start up the device without a simcard and put it in later. Sometimes it will be detected, and the device starts connecting and sending data but other times it is like the simcard insertion is not detected and it keeps acting like there is no simcard present.

My question is, how can I force the device to check for a simcard or force the device to try to start up again? Or should it always come online by itself, but do you have to wait one time longer than the other time?

Parents
  • Hi,

    if you take out the SIM card, you need to restart the entire registration process and sockets management, look in the AT command guide, you can get %XSIM notifications when the SIM is not detected anymore, the interaction with the SIM usually happens on network events, so it may take some time after the SIM removal and actual notifications depending on your network configuration.

    Also capture network related notifications such as CGEV, CEREG.

    Thanks,

    Reuven

  • Thanks for your answer, I can see these notifications at the debug output, but is there a standard way in the SDK to put an event handler on these notifications?

Reply Children
Related