Configure Remote Manager keepalive interval
Note Digi Remote Manager requires TCP and will not work with NB-IoT, unless the carrier supports TCP.
Managing the data usage and the keepalive interval is important if you have the MO (Remote Manager Options) command bit 0 set to 1 or if you have enabled the Request connect feature in Remote Manager.
Digi Remote Manager is enabled on the XBee by default and has a 60 second keepalive interval, which can result in excessive cellular data usage, depending on your plan. The K1 and K2 commands can be used to tune the keepalive interval. Your carrier will disconnect an inactive socket automatically if there is no activity, so you need to tune this value based on your carrier’s disconnect timeout.
You can further reduce your data usage by periodically duty cycling your Remote Manager connection, either from MicroPython or your host processor. For example, you could enable the Remote Manager connection for 2 hours a day and then disable the connection for 22 hours. Your host processor or MicroPython program would need to keep track of the time to ensure the time interval.