Aggressively sleeping devices
If a device is asynchronously sleeping, and keeping it awake for all of ST time is undesired, then we recommend performing a scheduled upgrade in the following manner:
- Configure the sleeping node for indirect messaging:
Configure the sleeping device with the following parameters:
- CE = 0 (router)
DH, DL should be set to match SH, SL of the OTA server device
- Make sure that ST and SP of the sleeping device and OTA server radio match.
- Set all of the transmit option fields of the API frames sent to the OTA server device to 0x40.
- Download the firmware/file system image to the sleeping device as described in this section.
- When sending the Upgrade End Response frame set the upgradeTime to 0xFFFFFFFF—instructing the sleeping device to wait for another upgrade end request before applying the upgrade.
- Wait for the desired amount of time to pass.
- When the time to have the sleeping device apply its upgrade has arrived, send a second Upgrade End Response to the sleeping device with the currentTime and upgradeTime fields both set to 0x0000. This causes the sleeping device to apply the upgrade immediately.