How to send the nrf9160 to sleep mode and wakup up periodically every 6hour ?

Hi, 

I am using the nrf91 Thingy board for our pilot project. 

I am trying to save as much power as possible since we have to depend on a lithium battery for the power. Our idea is for both chips in the nrf91 thingy board to work in combination to solve our specific problem. I am planning to connect to the network every 6 hours, and then exchange data over MQTT between the server and the device. The server will also send the active hours window, so we can schedule the time to wake up. Additionally, I am planning to add a push button to the nrf52840 to wake up the device if there is any need while in sleep mode.

Questions:

  • I just wanted to know how to schedule an alarm on the nrd91 to wake up after 6hr.
  • Is it possible to keep the UART communication (uart1 between nrf91 and nrf52) open and wake up on an event from nrf52?
  • We are facing some disconnection issues with the. aws_iot lib. It is quite unpredictable, sometimes we are able to get a stable connection for almost 40 hours, but sometimes will get AWS_IOT_EVT_DISCONNECTED after 3-4 hours, Is this an expected behaviour? But for now, we have implemented a heartbeat data exchange between the client and server on every 3 minutes and added a reboot logic on the disconnection. The ping interval is 60Sec. Is there any better workaround?

Thanks

Tom Victor

  • Hi Tom,

    Tom Victor said:
    Just one more question in the context of PSM and eDRX, Is it possible to receive data over MQTT while the PSM is enabled or is it best suited for data transmission-only applications?

    It is not possible to receive data when the device enters power saving mode, eDRX can help to extend the LTE connection active time. 

    PSM is suited for telemetry data transmission applications, so the device can sleep most of the time(not reachable by the server) and wake up periodically to send data to the server.

     Best regards,

    Charlie

  • Just to be clear:

    The device sleeps in both cases, eDRX and PSM. And the ratio of sleep and active is the base for the savings. For eDRX it sleeps for a couple of seconds or minutes, and in PSM for hours or days. For eDRX the SIM-card may be important, at least my SIM cards are consuming about 20µA additional current in eDRX sleep compared to PSM sleep.

    If you want to limit the power consumption in eDRX and you use longer intervals, e.g. 655s, then your device does not receive messages for 10 minutes (including the TCP internal/injected IP messages). If your TCP connection is stable with a 10 minutes "quiet phase", is something you need to test. If you use a shorter interval (163s is close to your current 3 minutes), then you need to check your savings.

Related