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

Rf module
Table of Contents

Advertisement

Get started with MicroPython
3. Press Ctrl+E to enter paste mode.
4. At the MicroPython >>> prompt, right-click and select the Paste option. Once you paste the
code, it executes immediately.

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 3 Zigbee RF Module. 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 ttssh2.osdn.jp/index.html.en.
n
Picocom for Linux, see
n
Source code and in-depth information, see github.com/npat-efault/picocom.
n

Tera Term for Windows

With the XBee 3 Zigbee RF Module 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 3 Zigbee RF Module 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 bps. 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 bps.
5. Click Setup and Serial Port. The Tera Term: Serial port setup window appears.
Digi XBee® 3 Zigbee® RF Module
if time.ticks_diff(time.ticks_ms(), last_sent) > interval:
temp = "Temperature: {}C".format(xbee.atcmd("TP"))
print("\tsending " + temp)
try:
except Exception as err:
last_sent = time.ticks_ms()
time.sleep(0.25)
. We recommend changing to Transparent mode [0], as most of the
developer.ridgerun.com/wiki/index.php/Setting_up_Picocom_-_Ubuntu
xbee.transmit(xbee.ADDR_COORDINATOR, temp)
print(err)
.
, change AP API Enable to another mode and click
Exit MicroPython mode
37

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the XBee 3 ZigBee and is the answer not in the manual?

Table of Contents