
Get started with MicroPython
Use picocom in Linux
Digi XBee® 3 802.15.4 RF Module User Guide
49
n
Data
: 8 bit
n
Parity
: none
n
Stop
: 1 bit
n
Flow control
: hardware
n
Transmit delay
: N/A
7. Click
OK
to apply the changes to the serial port settings. The settings should go into effect
right away.
8. To verify that local echo is not enabled and that extra line-feeds are not enabled:
a. In Tera Term, click
Setup
and select
Terminal
.
b. In the
New-line
area of the
Tera Term: Serial port setup
window, click the
Receive
drop-down menu and select
AUTO
if it does not already show that value.
c. Make sure the
Local echo
box is not checked.
9. Click
OK
.
10. Press
Ctrl
+
B
to get the MicroPython version banner and prompt.
MicroPython v1.9.3-716-g507d0512 on 2018-02-20; XBee3 802.15.4 with EFR32MG
Type "help()" for more information.
>>>
Now you can type MicroPython commands at the
>>>
prompt.
Use picocom in Linux
With the XBee 3 802.15.4 RF Module in MicroPython mode (
AP
=
4
), you can access the MicroPython
prompt using a terminal.
Note
The user must have read and write permission for the serial port the XBee 3 802.15.4 RF Module
is connected to in order to communicate with the device.
1. Open a terminal in Linux and type
picocom -b 115200 /dev/ttyUSB0
. This assumes you have
no other USB-to-serial devices attached to the system.
2. Press
Ctrl
+
B
to get the MicroPython version banner and prompt. You can also press
Enter
to
bring up the prompt.
If you do have other USB-to-serial devices attached:
1. Before attaching the XBee 3 802.15.4 RF Module, check the directory
/dev/
for any devices
named
ttyUSBx
, where
x
is a number. An easy way to list these is to type:
ls /dev/ttyUSB*
.
This produces a list of any device with a name that starts with
ttyUSB
.
2. Take note of the devices present with that name, and then connect the XBee 3 802.15.4 RF
Module.
3. Check the directory again and you should see one additional device, which is the XBee 3
802.15.4 RF Module.
4. In this case, replace
/dev/ttyUSB0
at the top with
/dev/ttyUSB<number>
, where
<number>
is the new number that appeared.
It connects and shows "Terminal ready".