Clean shutdown
Digi strongly recommends performing a clean shutdown procedure on your XBee cellular devices before removing power from the devices. Performing a shutdown allows the module to unregister from the cellular network and safely store operating parameters. Failure to shutdown properly has the potential to result in delays resuming network operation and in some rare instances may result in an unrecoverable module failure.
Use the following method to perform a clean shutdown.
SD (Shutdown) command
You should use the SD command to safely shut down a device before removing power. This is the recommended method.
Issue the SD command. When the shut down process is complete, the device returns OK. After the device responds OK, you can safely remove power from the device.
The device will return ERROR if any of the following actions are in progress:
- Over-the-air update of the cellular component
- Local update of the cellular component
- Over-the-air update of the XBee firmware.
In addition, if the radio can't be fully shut down within two minutes, the device returns ERROR.
You can verify the state of the device using the AI command. After you issue the SD command and a response has been returned (either OK or ERROR), issue the AI command. If the shutdown was successful, 2D is returned.