
Update the firmware
Update the device firmware
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
87
5. Click
Data Files
.
6. Click
Upload Files
; browse and select the *.gbl firmware file to upload it.
7. Send an HTTP SCI request to Remote manager with the path of the .gbl file; see the example
below.
import base64
import requests
# Location of firmware image on Remote Manager
firmware_path = '~/XBXC.gbl'
# Remote Manager device ID of the device being updated
device_id = '00010000-00000000-03526130-70153378'
# Remote Manager username and password
username = "my_remote_manager_username"
password = "my_remote_manager_password"
url = 'https://remotemanager.digi.com/ws/sci'
# Form update_firmware request
data = """
<sci_request version="1.0">
<update_firmware filename="firmware.gbl">
<targets>
<device id="{}"/>
</targets>
<file>{}</file>
</update_firmware>
</sci_request>
""".format(device_id, firmware_path)
# Post request
r = requests.post(url, auth=(username, password), data=data)
if (r.status_code != 200) or ("error" in r.content.decode('utf-8')):
print("firmware update failed")
else:
print("firmware update success")
Use a host processor to update the modem firmware for XBee 3
devices over UART prior to *10
This process explains how to update the modem firmware for XBee 3 Cellular devices with a modem
firmware version prior to *10 (11410 and 31010).
Update the modem firmware
1. Make sure you have the correct version of the modem firmware for your XBee device.
2. Enter programming (bootloader) mode. Use one of the following methods: AT commands or
hardware signaling.
n
AT commands
a. Send the %P command. The %P command must be sent an argument derived from
the SL parameter of the module being updated. The argument is the value of SL
added to the value 0xDB8A and then masked by performing a bitwise-AND with