Digi International Inc XB3C1 Manual Do Utilizador

Página de 146
Get started with MicroPython
Use the MicroPython Terminal in XCTU
Digi XBee3 Cellular LTE Cat 1 Smart Modem User Guide
48
5. To put the XBee Smart Modem into MicroPython mode, in the AP field select MicroPython
REPL [4] and click the Write button
.
6. Note what COM port(s) the XBee Smart Modem is using, because you will need this information
when you use terminal communication.
Use the MicroPython Terminal in XCTU
You can use the MicroPython Terminal to communicate with the XBee Smart Modem when it is in
MicroPython mode.
1
This requires XCTU 6.3.7 or higher. To enter MicroPython mode, follow the steps
in
To use the MicroPython Terminal:
1. Click the Tools drop-down menu
and select MicroPython Terminal. The terminal opens.
2. Click Open.
3. In the Select the Serial/USB port area, click the COM port that the device uses.
4. Verify that the baud rate and other settings are correct.
5. Click OK. The Open icon changes to Close
, indicating that the device is properly connected.
You can now type or paste MicroPython code in the terminal.
Example: hello world
1. At the MicroPython >>> prompt, type the Python command: print("Hello, World!")
2. Press Enter to execute the command. The terminal echos back Hello, World!.
Example: turn on an LED
1. Note the DS4 LED on the XBIB board. The following image highlights it in a red box. The LED is
normally off.
1
See
if you do not use the MicroPython Terminal in XCTU.