EasyManua.ls Logo

Digi XBee 3 User Manual

Digi XBee 3
293 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #217 background imageLoading...
Page #217 background image
AT commands MicroPython commands
Digi XBe 3 Cellular LTE Cat 1 AT&T Smart Modem User Guide
217
MicroPython commands
The following commands relate to using MicroPython on the XBee Smart Modem.
PS (Python Startup)
Sets whether or not the XBee Smart Modem runs the stored Python code at startup.
Range
0 - 1
Parameter Description
0 Do not run stored Python code at startup.
1 Run stored Python code at startup.
Default
0
PY (MicroPython Command)
Interact with the XBee Smart Modem using MicroPython. PY is a command with sub-commands.
These sub-commands are arguments to PY.
PYB (Bundled Code Report)
You can store compiled code in flash using the os.bundle() function in the MicroPython REPL; refer to
the Digi MicroPython Programming Guide. The PYB sub-command reports details of the bundled code.
In Command mode, it returns two lines of text, for example:
bytecode: 619 bytes (hash=0x0900DBCE)
bundled: 2017-05-09T15:49:44
The messages are:
n bytecode:The size of bytecode stored in flash and its 32-bit hash. A size of 0 indicates that
there is no stored code.
n bundled:A compilation timestamp. A timestamp of 2000-01-01T00:00:00 indicates that the
clock was not set during compilation.
In API mode, PYB returns three 32-bit big-endian values:
n bytecode size
n bytecode hash
n timestamp as seconds since 2000-01-01T00:00:00
PYE (Erase Bundled Code)
PYEinterrupts any running code, erases any bundled code and then does a soft-reboot on the
MicroPython subsystem.
PYV (Version Report)
Report the MicroPython version.

Table of Contents

Other manuals for Digi XBee 3

Question and Answer IconNeed help?

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

Digi XBee 3 Specifications

General IconGeneral
ModelXBee 3
CategoryModem
Frequency Bands2.4 GHz, 868 MHz, 900 MHz
InterfaceUART, SPI, I2C
Operating Temperature-40° C to +85° C
Power Supply2.1V to 3.6V
AntennaExternal or onboard
Transmit Powerup to 20 dBm
SecurityAES encryption
ProtocolsZigbee, 802.15.4, DigiMesh

Summary

Getting Started with the XBee Smart Modem

Connect Hardware and Install XCTU

Step-by-step instructions for connecting hardware and installing XCTU utility.

Update Firmware and Check Connection

Procedures for updating device firmware and verifying cellular connection status.

XBee Connection Examples

Getting Started with MicroPython

MicroPython Basics and Setup

Introduction to MicroPython and setting up the environment using XCTU.

Update the Firmware

Update Device and Cellular Firmware

Procedures for updating device and cellular firmware using XCTU.

Update Telit Modem Firmware with XFP Utility

Instructions for updating the Telit modem firmware using the XFP utility.

AT Commands Reference

Special, Cellular, and Network Commands

Reference for special, cellular, and network configuration AT commands.

I/O, Sleep, and Mode Commands

Configuration commands for I/O settings, sleep modes, and operating modes.

File System, BLE, Socket, and API Commands

Commands for file system, BLE, sockets, and API frame management.

Troubleshooting Guide

Related product manuals