
Get started with the XBee Smart Modem Development Kit
Configure and update your XBee
Digi XBee3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
36
6. Run the script. Type:
python update.py <
arguments
>
where <
arguments
> includes the serial port (COM# port or
/dev/tty#
device, where # is
the port number) and any optional parameters needed for the environment. For more
information, see
Windows example
C:\Users\admin\over-the-
wire>C:\Users\admin\AppData\Local\Programs\Python\Python37-
32\python.exe update.py COM17
Linux examples
$ python update.py /dev/tty5
$ python update.py COM10 --baud=115200
7. Press
Enter
to begin running the script. For a detailed description of how the update script
works, see
.
8. When complete, a
digi-update.log
text file is created, which contains a copy of the log
messages emitted to the terminal while the script was running.
9. A successful update appears as:
2019-06-27 16:06:28,479 update.py: INFO: Reading cellular component version
string (ATMV)...
2019-06-27 16:06:28,501 update.py: INFO: Update successful. New MV value:
L0.0.00.00.05.06,A.02.01
2019-06-27 16:06:28,502 update.py: INFO: Cellular component update successful.
2019-06-27 16:06:28,503 update.py: INFO: Restoring previous baud rate and RTS/CTS
configuration.
2019-06-27 16:06:28,743 update.py: INFO: Completed update of XBee3 Cellular
device with IMEI 352753090861053
2019-06-27 16:06:28,744 update.py: INFO: Updates complete. This script should
automatically exit in a moment. If it does not exit, use Ctrl-C to stop the
script.
How the script works
The behavior of the update script is detailed below, so that you can implement the same behavior in a
different programming language, or as part of one's host application.
1. Establish communications with the XBee3 Cellular LTE-M/NB-IoT modem. The Digi XBee Python
library does this by querying the
parameter, and observing that a response frame is
generated.
2. Query the firmware version of the XBee3 Cellular modem's cellular component, using
.
n
If the value is not "L0.0.00.00.05.06,A.02.00", this update does not apply.
n
If the value is "L0.00.00.05.06,A.02.01", this update is not necessary, as the cellular
component is already running the expected firmware.
3. Query the IMEI of the XBee3 Cellular modem. This can be done by reading the
value, or by
concatenating
and
.