Exit Micropython Mode; Other Terminal Programs; Tera Term For Windows - Digi XBee 3 Cellular LTE-M User Manual

Smart modem
Table of Contents

Advertisement

Get started with MicroPython
if uart_data:
stdin_data = sys.stdin.buffer.read(-1)
if stdin_data:
time.sleep_ms(5)
u = uart_init()
uart_relay(u)
You only need to call uart_init() once.
Call uart_relay() to pass data between the UARTs.
Send Ctrl-C to exit relay mode.
When done, call u.close() to close the secondary UART.

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
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
sys.stdout.buffer.write(uart_data)
u.write(stdin_data)
. We recommend changing to Transparent mode [0], as most of the
https://developer.ridgerun.com/wiki/index.php/Setting_up_Picocom_-_
.
, change AP API Enable to another mode and click
https://github.com/npat-
Exit MicroPython mode
41

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xbee 3 cellular nb-iot

Table of Contents