This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Shut down the Modem nRF9160

Dear All,

I want to program a device to perform the following actions:

Start->configure modem to connect to NB IOT, adjust the PSM and EDRX->potentially send a message->switch off the modem and go to sleep.

To configure the modem, I am using the following AT commands:

    "AT+CFUN=0",
    "AT%XSYSTEMMODE=0,1,0,0",
    "AT+CFUN=1",
    "AT+CGDCONT?",
    "AT+COPS=3,2",
    "AT+CEREG=2",
    "AT+CPSMS=1,\"\",\"\",\"01010001\",\"00000111\"",
    "AT+CEDRXS=0"

In order to switch off the modem, I send: AT+CFUN=0.
But then, when I send AT+CFUN?, the response of the modem is +CFUN: 4. Even if I wait for 30 seconds, the response is the same.

I need the modem to switch of completely, because the device could be plugged on a battery and inactive for a long time and I would like it to stay as low power as possible during this time.

Thank you in advance

Parents
  • I may be wrong but I believe that I've read about this somewhere. If memory serves me well, cfun 4 means that modem is offline but its interface to MCU is up. When you at+cfun=0 you also turn the MCU interface off. Bun when you query the modem again with at+cfun=? interface wakes up and you have cfun 4 again.

     In the other words, don't at your modem after at+cfun=0

     Can you compare current consumption before and after at+cfun=0 ?

Reply
  • I may be wrong but I believe that I've read about this somewhere. If memory serves me well, cfun 4 means that modem is offline but its interface to MCU is up. When you at+cfun=0 you also turn the MCU interface off. Bun when you query the modem again with at+cfun=? interface wakes up and you have cfun 4 again.

     In the other words, don't at your modem after at+cfun=0

     Can you compare current consumption before and after at+cfun=0 ?

Children
No Data
Related