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

How to reduce power consumption in mqtt_simple project with small keep alive

Hello, Nordic community,

I built and successfully run mqtt_simple project on our MQTT broker using v1.1.0 firmware and NCS.

I edited CONFIG_SERIAL=n in spm and mqtt_simple example.

 

Case 1: I configured and uploaded code on a device with 60 seconds keep-alive. After a successful connection with the MQTT broker, device is ideal(no transmission of messages) for 15 seconds. after 15 seconds I transmitted a message to the device from broker but the message is not received by device instantly it was received after 20-40 seconds. current consumption in this situation was

connecting current : 55-60mA

after connection ideal state (No transmission of messages): 20-25mA

current consumption during message transmission: 35-45mA

Case 2: I configured and uploaded code on a device with 5 seconds keep-alive. After a successful connection with the MQTT broker, device is ideal(no transmission of messages) for 15 seconds. after 15 seconds I transmitted a message to the device from broker and the message received by device instantly. current consumption in this situation was

connecting current : 55-60mA

after connection ideal state (No transmission of messages): 45-50mA

current consumption during message transmission: 45-50mA

how can I achieve the current consumption to 20-25mA with 5 seconds keep-alive?

Thanks,

Nikunj

Parents
  • Hi.

    One possible reason for not seeing a drop in the current consumption is that the device does not enter RRC idle mode. How long it takes to enter RRC idle depends on the network, but 5 seconds might not be enough time to be released from the network.

    You can see if your device enters RRC idle by using the +CSCON AT command to subscribe to connection status notifications.

    Best regards,

    Didrik

  • Thanks for reply Didrik,

    I am using vodafone ireland SIM for connection.

    I need faster message transfer from server to device for that I used 5 seconds.

    Is there any other alternative for faster message transfer?

    Thanks,

    Nikunj

  • Hello Nordic Community,

    I found the issue during just next to manufacturing phase. Is there any alternative for faster message transfer(from broker to device) with lower power consumption?

    any suggestion regarding this would be helpful. I am just using default mqtt_simple code with 5 seconds keep alive period on own mqtt broker. The reason behind 5 second is faster messages are transfer, any other alternative I can also try.

    How can I suppose to reduce current consumption?

    Thanks,

    Nikunj

Reply
  • Hello Nordic Community,

    I found the issue during just next to manufacturing phase. Is there any alternative for faster message transfer(from broker to device) with lower power consumption?

    any suggestion regarding this would be helpful. I am just using default mqtt_simple code with 5 seconds keep alive period on own mqtt broker. The reason behind 5 second is faster messages are transfer, any other alternative I can also try.

    How can I suppose to reduce current consumption?

    Thanks,

    Nikunj

Children
Related