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

Power Profile of Serial LTE Modem with MQTT communication

Hello NordicSemi and Developpers,

I am working on a project with using the nRF9160 SiP and running a slightly modified version of the Serial LTE Modem sample from the nRF connect SDK. I am using the in-built MQTT library to transmit data (30bytes) to a broker once every minute. The data comes from nRF52840 via uart to the nRF9160. Given that I am often transmit, I need the modem to stay connected with MQTT  keep alive = 3600, so going to long sleep periods is not in question for during the session duration.

Above is the power profile for a complete cycle

  • 1. I power profiled the consumption of the nRF9160 custom board and DK too separately (PPK2) and notice that every MQTT Tx shows peaks with about 12s to 13s duration ? is this normal? Why do the peaks take so long even though the data is received within the first 2 seconds by my broker?

  • 2. After transmission, there are 24 peaks about 86.3mA each spaced 1.3s apart from each other and finally an 18s drop down to 20mA which I assume is idle state, why the 24 peaks? why i the idle current so high? 

  • 3. I ran the same test with the unmodified Serial LTE Modem code and it shows similar results. Could you please verify/confirm that this behaviour is nor with MQTT communication ?

Thanks for you patient and reply in advance.

Best regards,

Styve.N

Parents
  • Hi, Styve!

    Thanks for reaching out. 

    1. The peaks you are seeing after transmission are expected. This is a duration of time, given by the RRC Inactive Timer, where the device stays connected to and reachable by the network. Unfortunately the timer is decided by the network provider, so it's not much we can do about it. You could look into using Release Assist Indication (RAI), though that is not recommended when using TCP based protocols.

    2. I'm not exactly sure where the peaks you are seeing here originates from. Is your device configured to use either or both of the LTE power saving mechanisms PSM and eDRX? The peaks could be related to the device being configured to stay active for some time before going to sleep. The high current you are seeing in the idle state can have many explanations. The modem draws current if not offline or in PSM and as explained in our power optimization documentation the serial interface (and other peripherals) must be deactivated for optimal low-power operation.

    3. The behavior you are seeing is more or less expected for MQTT over a cellular network. However, the current draw of your device can be significantly improved by employing PSM or some other way to make the device sleep in between transmissions. 

    Hope this helps with your troubles.

    Best regards,
    Carl Richard

Reply
  • Hi, Styve!

    Thanks for reaching out. 

    1. The peaks you are seeing after transmission are expected. This is a duration of time, given by the RRC Inactive Timer, where the device stays connected to and reachable by the network. Unfortunately the timer is decided by the network provider, so it's not much we can do about it. You could look into using Release Assist Indication (RAI), though that is not recommended when using TCP based protocols.

    2. I'm not exactly sure where the peaks you are seeing here originates from. Is your device configured to use either or both of the LTE power saving mechanisms PSM and eDRX? The peaks could be related to the device being configured to stay active for some time before going to sleep. The high current you are seeing in the idle state can have many explanations. The modem draws current if not offline or in PSM and as explained in our power optimization documentation the serial interface (and other peripherals) must be deactivated for optimal low-power operation.

    3. The behavior you are seeing is more or less expected for MQTT over a cellular network. However, the current draw of your device can be significantly improved by employing PSM or some other way to make the device sleep in between transmissions. 

    Hope this helps with your troubles.

    Best regards,
    Carl Richard

Children
No Data
Related