Get started with MicroPython
Note
You can easily copy and paste code from the online version of this Guide. Use caution with the
PDF version, as it may not maintain essential indentations.
Now you have a system based on the XBee Smart Modem that sends an SMS in response to a certain
input, in this case a simple button press.
Note
If you have problems pasting the code, see
Failed to send
SMS.
Exit MicroPython mode
To exit MicroPython mode:
1. In the XCTU MicroPython Terminal, click the green Close button
2. Click Close at the bottom of the terminal to exit the terminal.
3. In XCTU's Configuration working mode
the Write button
examples use this mode.
Other terminal programs
If you do not use the MicroPython Terminal in XCTU, you can use other terminal programs to
communicate with the XBee Smart Modem. If you use Microsoft Windows, follow the instructions for
Tera Term, if you use Linux, follow the instructions for picocom. To download these programs:
Tera Term for Windows; see https://ttssh2.osdn.jp/index.html.en.
n
Picocom for Linux; see
n
Ubuntu
and for the source code and in-depth information
efault/picocom.
Tera Term for Windows
With the XBee Smart Modem in MicroPython mode (AP = 4), you can access the MicroPython prompt
using a terminal.
1. Open Tera Term. The Tera Term: New connection window appears.
2. Click the Serial radio button to select a serial connection.
3. From the Port: drop-down menu, select the COM port that the XBee Smart Modem is
connected to.
4. Click OK. The COMxx - Tera Term VT terminal window appears and Tera Term attempts to
connect to the device at a baud rate of 9600 b/s. The terminal will not allow communication
with the device since the baud rate setting is incorrect. You must change this rate as it was
previously set to 115200 b/s.
5. Click Setup and Serial Port. The Tera Term: Serial port setup window appears.
Digi XBee3 Cellular LTE-M Global Smart Modem User Guide
Syntax error at line
, change AP API Enable to another mode and click
. We recommend changing to Transparent mode [0], as most of the
https://developer.ridgerun.com/wiki/index.php/Setting_up_Picocom_-_
Exit MicroPython mode
1. For SMS failures, see
.
https://github.com/npat-
Error
54
Need help?
Do you have a question about the XB3-C-A2-UT series and is the answer not in the manual?