Hi,
I'm using the mqtt_simple example to develop a new application.
I want you to tell me what lines of code I need to add for the nRF9160 to work in the minimum power consumption mode.
Thank You!
Neculai
Hi,
I'm using the mqtt_simple example to develop a new application.
I want you to tell me what lines of code I need to add for the nRF9160 to work in the minimum power consumption mode.
Thank You!
Neculai
Hi,
First, you want to disable the serial interface, as this adds approx. 600 uA to the sleep current.
This is done by creating the folder "child_image" and file spm.conf within this folder.
That child_image\spm.conf shall hold:
CONFIG_SERIAL=n
The same configuration should also be added to the prj.conf:
CONFIG_SERIAL=n
For entering eDRX or PSM, you will need to change one of these to "true":
https://github.com/nrfconnect/sdk-nrf/blob/v1.9.1/samples/nrf9160/mqtt_simple/src/main.c#L535-L536
And setup your wanted edrx or PSM intervals.
Here's a current example of a initial connection and the nRF eventually entering PSM:

Kind regards,
Håkon
Hi,
First, you want to disable the serial interface, as this adds approx. 600 uA to the sleep current.
This is done by creating the folder "child_image" and file spm.conf within this folder.
That child_image\spm.conf shall hold:
CONFIG_SERIAL=n
The same configuration should also be added to the prj.conf:
CONFIG_SERIAL=n
For entering eDRX or PSM, you will need to change one of these to "true":
https://github.com/nrfconnect/sdk-nrf/blob/v1.9.1/samples/nrf9160/mqtt_simple/src/main.c#L535-L536
And setup your wanted edrx or PSM intervals.
Here's a current example of a initial connection and the nRF eventually entering PSM:

Kind regards,
Håkon