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:

  1. Configure the sleeping node for indirect messaging:
    1. Configure the sleeping device with the following parameters: 

      • CE = 0 (router)
      • DH, DL should be set to match SHSL of the OTA server device

    2. Make sure that ST and SP of the sleeping device and OTA server radio match.
    3. Set all of the transmit option fields of the API frames sent to the OTA server device to 0x40.
  2. Download the firmware/file system image to the sleeping device as described in this section.
    1. 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.
  3. Wait for the desired amount of time to pass.
  4. 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.