Hello!
I am using NRF1960 Feather boars and NRF Connect v1.7.0 for developing firmware.
I have a task to send data to server using LTE-M in 2 cases:
- periodically status update (for example every 3 hours);
- on trigger event (For example, if somebody push button, device need to connect some information for server as soon as possible (in best scenario under 2 seconds, if possible))
I must use some power saving mode - PSM during inactivity time, to save battery.
The question is - how to correctly implement that?
I have read some tutorials about implementing LTE-M:
As I understand, I could use TAU timer for periodically sending data to server. As before sending data, TAU process is needed, it is recommended to make data interval equal to TAU timer or multiply of that. But how exactly can I achieve that? How to synchronize those 2 events, that after TAU timer expires, it automatically send data after TAU procedure?
But what would be suggested way to request data from server during trigger event?
Could it be good idea to to do these steps avoiding to use TAU timer (to be honest I do not understand purpose of TAU timer if TAU procedure is done before sending data automatically)?
- Initialize LTE module
- Sending modem to offline mode
- And then using regular timer or trigger event send LTE modem to normal mode (lte_lc_normal() and send all status data or request needed data)
- And again send modem to offline mode
I would be glad to hear some advices or some some tutorials who which explains how to achieve this correctly to optimize battery usage, data usage (LTE-M usage costs) and get some small data from server under couple of seconds in trigger event.