Good day
I intend to use a power saving mode to turn on a device for a set amount of time. During this, the device would still need to receive commands over mqtt. Is this possible?
Thank you in advance.
Kind regards,
Hassan.
Good day
I intend to use a power saving mode to turn on a device for a set amount of time. During this, the device would still need to receive commands over mqtt. Is this possible?
Thank you in advance.
Kind regards,
Hassan.
Hi,
I intend to use a power saving mode to turn on a device for a set amount of time. During this, the device would still need to receive commands over mqtt. Is this possible?
This depends on several of your applications requirements.
Ideally, to maintain a TCP connection (mqtt is TCP based), you need to keep it alive. This keep-alive can differ from cellular network-to-network, due to routing within the specific telecom provider. For some networks, this is several minutes, for others it can be up to 30 minutes.
If you have a RX driven application, meaning an application that is supposed to act on a command from the internet, you need to poll the server in your wanted interval. This interval depends on what your application requires in terms of latency.
For a RX driven application, you usually run eDRX, as it can have lower sleep intervals (down to seconds area).
Kind regards
Håkon
Good day
Thank you so much for the assistance. I'm having a little trouble. Once I enable PSM using
Hi Hassan,
An active time of 15 minutes means that you will not enter PSM before 15 minutes after your previous on-air transaction.
If you send something, then wait 15 minutes, the nRF shall enter PSM.
Is this what you want? Normally, the active time is in the range of seconds to single-digit minutes.
Kind regards,
Håkon
Good day
I've changed the active time to
Hi,
Each time you send data from your firmware, it will break the power saving mode. If you send data frequently, you will effectively never enter PSM.
Can you try adjusting the config CONFIG_MQTT_KEEPALIVE to a higher value? for instance 300 seconds.
Kind regards,
Håkon