Digi XBee 3 Cellular LTE-M User Manual page 89

Smart modem
Table of Contents

Advertisement

Update the firmware
The bootloader answers with the maximum supported baud rate (in ASCII) and, just
n
after that, the bootloader changes its baud rate to that value. Change your baud rate to
match the max supported rate.
If the bootloader does not answer to this command, remain at the current rate.
n
6. Send the I command (initialization command). This command erases the current firmware from
the device.
7. Transfer the firmware to the device using the transfer protocol shown below.
Transfer the firmware to the device
1. You must split the file into 512 byte blocks.
2. Transfer each block using the following structure, with block index and CRC16 sent in little
endian byte:
P [2 bytes for block index] [block data with page size length] [2 bytes for CRC16]
Note
CRC16 is calculated only with the bytes of the page to be sent, and is initialized with
0x0000. The polynomial used for the CRC16 is 0x8005.
3. After each block is transfered, wait for a response. Options are:
0x55 - ACK: This is the expected answer.
n
0x12: Checksum/CRC16 error.
n
0x13: Flash write/verify error.
n
Note
If an error occurs, you may try to transfer each block up to three times.
4. Verify and write the firmware to flash.
a. Send the C command (verify) to verify and write the firmware to the flash.
b. Verify that the answer to this command is 0x55 (ACK). Any other result is an error.
5. Wait a couple of seconds for the firmware to be installed and start running.
Use a host processor to update the device firmware for XBee 3
devices over UART after *10
This process explains how to update the device firmware for XBee 3 Cellular devices over UART with a
firmware version after *10.
Update the modem firmware
1. Make sure you have the correct version of the device firmware for your XBee device.
2. Enter programming (bootloader) mode.
a. Send the %P command. The %P command must be sent an argument derived from the SL
parameter of the device being updated. The argument is the value of SL added to the value
0xDB8A and then masked by performing a bitwise-AND with 0x3FFF. For example:
i. Run ATSL to get the address value, which is in hex.
ATSL
123456
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
Update the device firmware
89

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xbee 3 cellular nb-iot

Table of Contents