Work With Flash Memory; Over-The-Air Firmware Updates - Digi XBee SX 868 User Manual

Radio frequency (rf) module
Hide thumbs Also See for XBee SX 868:
Table of Contents

Advertisement

Advanced application features
if the GPM memory does not contain a valid image. If the image is valid, the device resets and begins
using the new firmware.
Field name
GPM_CMD_ID
GPM_STATUS
GPM_BLOCK_NUM
GPM_START_INDEX
GPM_NUM_BYTES
GPM_DATA
Example
To verify a firmware image previously loaded into the GPM on a target device with serial number
0x0013a200407402ac, format a FIRMWARE_VERIFY packet as follows (spaces added to delineate
fields):
7E 001C 11 01 0013A200407402AC FFFE E6 E6 0023 C105 00 00 05 00 0000 0000 0000 1F
Assuming all transmissions were successful and that the firmware image previously loaded into the
GPM is valid, the following API packets would be output the source node's serial interface:
7E 0007 8B 01 FFFE 00 00 00 76
7E 001A 91 0013A200407402AC FFFE E6 E6 0023 C105 C1 85 00 0000 0000 0000 5F

Work with flash memory

When working with the General Purpose Memory, observe the following limitations:
Flash memory write operations are only capable of changing binary 1s to binary 0s. Only the
n
erase operation can change binary 0s to binary 1s. For this reason, you should erase a flash
block before performing a write operation.
When performing an erase operation, you must erase the entire flash memory block—you
n
cannot erase parts of a flash memory block.
Flash memory has a limited lifetime. The flash memory on which the GPM is based is rated at
n
20,000 erase cycles before failure. Take care to ensure that the frequency of erase/write
operations allows for the desired product lifetime. Digi's warranty does not cover products that
have exceeded the allowed number of erase cycles.
Over-the-air firmware upgrades erase the entire GPM. Any user data stored in the GPM will be
n
lost during an over-the-air upgrade.

Over-the-air firmware updates

There are two methods of updating the firmware on the device. You can update the firmware locally
with XCTU using the device's serial port interface. You can also update firmware using the device's RF
interface (over-the-air updating.)
XBee® SX 868 RF Module User Guide
Command-specific description
Should be set to FIRMWARE_VERIFY_AND_INSTALL_RESPONSE
(0x86).
A 1 in the least significant bit indicates the GPM does not contain a
valid firmware image. All other bits are reserved at this time.
This field is unused for this command. Set to 0.
This field is unused for this command. Set to 0.
This field is unused for this command. Set to 0.
This field is unused for this command.
Over-the-air firmware updates
62

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents