Page 1
Digi XBee3® 802.15.4 Radio Frequency (RF) Module User Guide...
Page 2
Information in this document is subject to change without notice and does not represent a commitment on the part of Digi International. Digi provides this document “as is,” without warranty of any kind, expressed or implied, including, but not limited to, the implied warranties of fitness or merchantability for a particular purpose.
Page 3
To provide feedback on this document, email your comments to techcomm@digi.com Include the document title and part number (Digi XBee3® 802.15.4 RF Module User Guide, 90002273 B) in the subject line of your email. Digi XBee3® 802.15.4 RF Module User Guide...
Change the firmware protocol Regulatory information Get started Verify kit contents Assemble the hardware Plug in the XBee3 802.15.4 RF Module Unplug an XBee3 802.15.4 RF Module Configure the device using XCTU Configure remote devices Configure the devices for a range test Perform a range test Configure the XBee3 802.15.4 RF Module...
Page 5
Example: Remote AT command in API mode Digital I/O change detection I/O line passing Digital line passing Example: Digital line passing Analog line passing Example: Analog line passing Output sample data Output control I/O behavior during sleep Digital I/O lines Digi XBee3® 802.15.4 RF Module User Guide...
Page 7
EC (CCA Failures) Sleep settings commands SM command SP command ST command DP (Disassociated Cyclic Sleep Period) SO command FP (Force Poll) UART interface commands BD command NB command SB command FT command RO command Digi XBee3® 802.15.4 RF Module User Guide...
Page 8
AV (Analog Voltage Reference) IT (Samples before TX) IF command IO command I/O line passing commands IA (I/O Input Address) IU command T0 command T1 command T2 command T3 command T4 command T5 command Digi XBee3® 802.15.4 RF Module User Guide...
Page 9
RX Packet: 16-bit address I/O frame - 0x83 AT Command Response frame - 0x88 TX Status frame - 0x89 Modem Status frame - 0x8A Transmit Status frame - 0x8B Receive Packet frame - 0x90 Digi XBee3® 802.15.4 RF Module User Guide...
Page 10
Create the Image Notify request Query Next Image request Query Next Image response Image Block request Image Block response Upgrade End request Upgrade End response OTA error handling Default response commands Upgrade End Request error statuses Digi XBee3® 802.15.4 RF Module User Guide...
The devices require minimal power and provide reliable delivery of data between devices. The devices operate within the ISM 2.4 GHz frequency band. The XBee3 802.15.4 RF Module uses XBee3 hardware and the Silicon Labs EFR32 chipset. As the name suggests, the 802.15.4 module is over-the-air compatible with our Legacy 802.15.4 modules (S1 and S2C hardware).
Digi XBee3® 802.15.4 RF Module User Guide Applicable firmware and hardware Applicable firmware and hardware This manual supports the following firmware: 802.15.4 version 20xx It supports the following hardware: XBee3 Change the firmware protocol You can switch the firmware loaded onto the XBee3 hardware to run any of the following protocols: Zigbee 802.15.4...
Page 13
This section covers the following tasks and features: Verify kit contents Assemble the hardware Configure the device using XCTU Configure remote devices Configure the devices for a range test Perform a range test Digi XBee3® 802.15.4 RF Module User Guide...
Get started Verify kit contents Verify kit contents The XBee3 802.15.4 RF Module development kit contains the following components: Part XBee3 Zigbee SMT module (3) XBee Grove development board (3) Micro USB cable (3) Antenna - 2.4 GHz, half-wave dipole, 2.1 dBi, U.FL female, articulating...
Follow these steps to connect the XBee devices to the boards included in the kit: 1. Plug one XBee3 802.15.4 RF Module into each XBee Grove Development Board. When you connect the development board to a PC for the first time, the PC automatically installs drivers, which may take a few minutes to complete.
XBee3 802.15.4 RF Module. CAUTION! Make sure the board is not powered when you remove the XBee3 802.15.4 RF Module.
Page 17
9. Click the Write radio settings button The remote XBee device now has a different LED blink time. 10. To return to the default LED blink times, change the LT parameter back to 0 for XBEE_B. Digi XBee3® 802.15.4 RF Module User Guide...
8. Disconnect REMOTE_DEVICE from the computer, remove it from XCTU, and connect it to a power supply, laptop, or portable battery. 9. Leave LOCAL_DEVICE connected to the computer. Perform a range test 1. Go to the XCTU display for radio 1. Digi XBee3® 802.15.4 RF Module User Guide...
Page 19
Get started Perform a range test 2. Click to discover remote devices within the same network. The Discover remote devices dialog appears. 3. Click Add selected devices. Digi XBee3® 802.15.4 RF Module User Guide...
Page 20
5. Change the Range Test type to Loopback. 6. In the Select the local radio device area, select radio 1. XCTU automatically selects the Discovered device option, and the Start Range Test button is active. Digi XBee3® 802.15.4 RF Module User Guide...
Page 21
XCTU prompts you to enable the loopback jumper. Plug in the XBee3 802.15.4 RF Module has pictures that show the jumper in the UART position—move the jumper to the left on the surface-mount device or down on the through- hole device puts it in loopback mode If the test is running properly, the packets sent should match the packets received.
Page 22
BR (data rate) parameter on both radios. When the test is complete, click Stop Range Test. XCTU displays another loopback jumper warning screen reminding you to put the loopback jumper back in its original position. Digi XBee3® 802.15.4 RF Module User Guide...
Page 23
Get started Perform a range test Digi XBee3® 802.15.4 RF Module User Guide...
Configure the XBee3 802.15.4 RF Module Software libraries Software libraries One way to communicate with the XBee3 802.15.4 RF Module is by using a software library. The libraries available for use with the XBee3 802.15.4 RF Module include: XBee Java library XBee Python library The XBee Java Library is a Java API.
Configure the XBee3 802.15.4 RF Module XBee Network Assistant Setting a custom default that has already been set or setting a custom default to the factory default value will not reclaim the space used by the previous value. The new value takes effect but the old value still occupies space in memory, reducing the number of custom defaults that can be set.
AT commands. When you want to read or set any parameter of the XBee3 802.15.4 RF Module using this mode, you have to send an AT command. Every AT command starts with the letters AT followed by the two characters that identify the command and then by some optional configuration values.
Every AT command starts with the letters AT, which stands for "attention." The AT is followed by two characters that indicate which command is being issued, then by some optional configuration values. To read a parameter value stored in the device’s register, omit the parameter field. Digi XBee3® 802.15.4 RF Module User Guide...
AT command parameters. Valid formats for hexidecimal values include with or without a leading 0x for example FFFF or 0xFFFF. Response to AT commands When using AT commands to set parameters the XBee3 802.15.4 RF Module responds with OK<cr> if successful and ERROR<cr> if not. Apply command changes Any changes you make to the configuration command registers using AT commands do not take effect until you apply the changes.
Receive mode This is the default mode for the XBee3 802.15.4 RF Module. The device is in Receive mode when it is not transmitting data. If a destination node receives a valid RF packet, the destination node transfers the data to its serial transmit buffer.
Serial communication Serial interface Serial receive buffer Serial transmit buffer UART data flow Flow control Digi XBee3® 802.15.4 RF Module User Guide...
UART data flow Devices that have a UART interface connect directly to the pins of the XBee3 802.15.4 RF Module as shown in the following figure. The figure shows system data flow in a UART-interfaced environment.
Flow control For serial communication to occur, you must configure the UART of both devices (the microcontroller and the XBee3 802.15.4 RF Module) with compatible settings for the baud rate, parity, start bits, stop bits, and data bits. Each data byte consists of a start bit (low), 8 data bits (least significant bit first) and a stop bit (high).
2. If the host does not allow the device to transmit data out from the serial transmit buffer due to being held off by hardware flow control. Digi XBee3® 802.15.4 RF Module User Guide...
This section specifies how SPI is implemented on the device, what the SPI signals are, and how full duplex operations work. SPI communications Full duplex operation Low power operation Select the SPI port Force UART operation Digi XBee3® 802.15.4 RF Module User Guide...
SPI communications SPI communications The XBee3 802.15.4 RF Module supports SPI communications in slave mode. Slave mode receives the clock signal and data from the master and returns data to the master. The following table shows the signals that the SPI port uses on the device.
Full duplex operation Full duplex operation When using SPI on the XBee3 802.15.4 RF Module the device uses API operation without escaped characters to packetize data. The device ignores the configuration of AP because SPI does not operate in any other mode. SPI is a full duplex protocol, even when data is only available in one direction.
If you configure a device with only the SPI enabled and no SPI master is available to access the SPI slave port, you can recover the device to UART operation by holding DIN / CONFIG low at reset time. Digi XBee3® 802.15.4 RF Module User Guide...
Page 40
Command mode on the UART port. You can then send the appropriate commands to the device to configure it for UART operation. If you write those parameters, the device comes up with the UART enabled on the next reset. Digi XBee3® 802.15.4 RF Module User Guide...
Monitor I/O lines I/O sample data format API frame support On-demand sampling Periodic I/O sampling Digital I/O change detection I/O line passing Digital line passing Output sample data Output control I/O behavior during sleep Digi XBee3® 802.15.4 RF Module User Guide...
I/O support Legacy support Legacy support By default, the XBee3 802.15.4 RF Module is configured to operate in a legacy configuration. This provides network and application compatibility with XBee S1 802.15.4 and XBee S2C 802.15.4 devices. Use AO command to determine which outgoing API frames are emitted and what I/O lines are used for sampling.
If you use a mixed network of XBee3 and legacy S1 or S2C devices, you must set AO to 2 in order to transmit sample data that is compatible with these devices. Regardless of the AO setting, if an XBee3 802.15.4 RF Module receives an I/O sample packet from an S1 or S2C device, it always outputs the legacy data format.
2-byte value. For a 10-bit ADC, the acceptable range is from 0x0000 to 0x03FF. To convert this value to a useful voltage level, apply the following formula: ADC / 1023 (vREF) = Voltage Digi XBee3® 802.15.4 RF Module User Guide...
Regardless of how I/O data is generated, the format of the sample data is always represented as a series of bytes in the following format which is compatible with the S1 802.15.4 and S2C 802.15.4 devices: Digi XBee3® 802.15.4 RF Module User Guide...
Page 46
AD0 and continues sequentially for each enabled analog input channel up to AD3. If the analog portion of the channel mask is 0, then no analog sample bytes are included. Digi XBee3® 802.15.4 RF Module User Guide...
If the analog channel mask is 0x00, then no analog sample bytes is included. API frame support I/O samples generated using Periodic I/O sampling (IR) and Digital I/O change detection (IC) are transmitted to the destination address specified by DH and DL. In order to display the sample data, Digi XBee3® 802.15.4 RF Module User Guide...
API mode (AP = 1 or 2). The sample data is represented as an I/O sample API frame. There are three types of I/O sample frames that are supported by the XBee3 802.15.4 RF Module: 0x92 - Enhanced I/O sample frame...
Indicates the AT command that this response corresponds to 0x49 0x53 = IS Status Indicates success or failure of the AT command 00 = OK if no I/O lines are enabled, this will return 01 (ERROR) Digi XBee3® 802.15.4 RF Module User Guide...
Indicates the AT command that this response corresponds to 0x49 0x53 = IS Command Status Indicates success or failure of the AT command 00 = OK if no I/O lines are enabled, this will return 01 (ERROR) Digi XBee3® 802.15.4 RF Module User Guide...
IT (Samples before TX) specifies how many I/O samples can be transmitted in a single OTA packet. Any single-byte value (0 - 0xFF) is accepted for input. However, the value is adjusted downward based on Digi XBee3® 802.15.4 RF Module User Guide...
Mask which indicates which digital and analog lines are enabled. Even though mask multiple samples are being gathered, there will only ever be one channel mask per frame. (0x0604 = 0000 0110 0000 0100b = ADC0, ADC1, DIO3) Digi XBee3® 802.15.4 RF Module User Guide...
In the top graph, the humps indicate that the sample was not taken at that exact moment and needed to wait for the next IR sample period. Digi XBee3® 802.15.4 RF Module User Guide...
Digital line passing is only available on pins D0 through P3. You cannot use UART and SPI pins for line passing. Example: Digital line passing A sampling XBee3 802.15.4 RF Module is configured with the following settings: AT command Parameter value D2 command...
When this device receives an incoming I/O sample, if the source address matches the one set by IA, the device sets the PWM output of P0 to match the ADC input of D0 of the receiver. This output level holds for thirty seconds before the pin returns to a digital output low state. Digi XBee3® 802.15.4 RF Module User Guide...
PWM output pins set by analog line passing are shutdown during sleep and revert to their preset values (M0 and M1) on wake. This happens regardless of whether the timeout has expired or not. Digi XBee3® 802.15.4 RF Module User Guide...
Networking terms MAC Mode configuration Clear Channel Assessment (CCA) Retries configuration Transmit status based on MAC mode and XBee retries configurations Addressing Peer-to-peer networks Master/slave networks Direct and indirect transmission Encryption Maximum payload Digi XBee3® 802.15.4 RF Module User Guide...
Medium Access Control (MAC) Mode configures two functions: 1. Enables or disables the use of a Digi header in the 802.15.4 RF packet. When the Digi header is enabled (MM = 0 or 3), duplicate packet detection is enabled as well as certain AT commands.
This is enabled by default and provides a minimal amount of reliability to unicast transmissions. If you are operating in a MAC Mode that enables the Digi header (MM=0 or MM=3), then you can optionally include Application-Layer retries using the RR command command.
The tables also report the transmit status reported when the device detects energy above the CCA threshold (when a CCA failure happens). The following table applies in either of these cases: Digi header is disabled. Digi header is enabled and XBee Retries (RR parameter) is equal to 0 (default configuration). CCA failure Destination reachable Destination unreachable...
Every RF data packet sent over-the-air contains a Source Address and Destination Address field in its header. The XBee3 802.15.4 RF Module conforms to the 802.15.4 specification and supports both short 16-bit addresses and long 64-bit addresses. A unique 64-bit IEEE source address is assigned at the factory and can be read with the SL (Serial Number Low) and SH (Serial Number High) commands.
Peer-to-peer networks Peer-to-peer networks By default, XBee3 802.15.4 RF Modules are configured to operate within a peer-to-peer network topology and therefore are not dependent upon master/slave relationships. Our peer-to-peer architecture features fast synchronization times and fast cold start times. This default configuration accommodates a wide range of RF data applications.
If A2 bit 0 is set, the coordinator performs an active scan. The active scan process sends a beacon request to the broadcast address (0xFFFF) and the broadcast PAN ID (0xFFFF) and listens for beacons responses. This process is repeated for each channel specified in SC. Digi XBee3® 802.15.4 RF Module User Guide...
API mode, or as a remote command. Modem status messages Not all device status messages are related with association, but for completeness all device status types reported by XBee3 802.15.4 RF Module are listed in the following table. Type Meaning 0x00 Hardware reset.
Coordinator formed a new network. 0x0D Input voltage is too high, which prevents transmissions. Association indicator status codes The XBee3 802.15.4 RF Module can potentially give any of the status codes in response to AI command in the following table.
It is more difficult to use indirect messaging with pin sleep than with cyclic sleep because the end device must wake up periodically to poll for the data from the coordinator. Otherwise, the coordinator Digi XBee3® 802.15.4 RF Module User Guide...
ENC-MIC-64 ENC-MIC-128 Yes The XBee3 802.15.4 RF Module only supports security levels 0 and 4. It does not support message integrity checks. EE 0 selects security level 0 and EE 1 selects security level 4. When using encryption, all devices in the network must use the same 16-byte encryption key for valid data to get through.
4. If you are using the long source address (MY = 0xFFFE), the maximum achievable payload is reduced by 6 bytes (size of long address (8) - size of short address (2) = 6). Digi XBee3® 802.15.4 RF Module User Guide...
The XBee/XBee-PRO S2C 802.15.4 and XBee3 802.15.4 RF Modules enhance transmission by implementing a transmission queue that allows the device to transmit to several devices at the same time.
Page 70
The sender is an XBee3 802.15.4 RF Module, and the receiver is a Legacy 802.15.4 module. The sender has the Digi header enabled (MM = 0 or 3) and RR (XBee Retries) > 0. The sender sends broadcast and unicast messages at the same time to the Legacy 802.15.4 module without waiting for the transmission status of the previous packet.
To accommodate these requirements, modules include features to aid in placing devices, configuring devices, and network diagnostics. Remote configuration commands Node discovery Digi XBee3® 802.15.4 RF Module User Guide...
ID in the remote command request is set to 0 , indicating that the request is sent without acknowledgment. Node discovery Node discovery has three variations as shown in the following table: Digi XBee3® 802.15.4 RF Module User Guide...
Directed node discovery in compatibility mode The behavior of the Legacy 802.15.4 module (S1 hardware) varies with the default behavior described above for the directed node discovery command. The Legacy module does not complete the command Digi XBee3® 802.15.4 RF Module User Guide...
DH/DL is set to that short address (with DH at 0 and DL set to the value of MY). If the responding node has a long address (MY is 0xFFFE), then DH/DL are set to the SH/SL of the responding node. Digi XBee3® 802.15.4 RF Module User Guide...
In order to increase battery life, the device sleeps, which means it stops operating. It can be woken by a timer expiration or a pin. Sleep modes Sleep parameters Sleep current Sleep pins Sleep conditions Digi XBee3® 802.15.4 RF Module User Guide...
The Cyclic Sleep modes allow devices to periodically check for RF data. When the SM parameter is set to 4, the XBee3 802.15.4 RF Module is configured to sleep, then wakes once per cycle to check for data from a coordinator. The Cyclic Sleep Remote sends a poll request to the coordinator at a specific interval set by the SP (Cyclic Sleep Period) parameter.
SM command SP command ST command DP (Disassociated Cyclic Sleep Period) SO command Sleep current The following table shows the sleep current during the XBee3 802.15.4 RF Module sleep modes. Sleep mode Sleep current SM command setting Pin sleep Cyclic sleep <1 µA @ 25 ºC...
In addition, the wake time is extended by an additional ST time when new OTA data or serial data is received. 2. Sleep Request pin is not asserted when operating in pin sleep mode 3. Data is waiting to be sent OTA. Digi XBee3® 802.15.4 RF Module User Guide...
Sets or displays the operational compatibility with the Legacy 802.15.4 device (S1 hardware). This parameter should only be set when operating in a mixed network that contains XBee Series 1 devices. Parameter range 0 - 3 Bit field: Digi XBee3® 802.15.4 RF Module User Guide...
Page 81
Default This bit does not typically need to be set. However, when the XBee3 802.15.4 RF Module is streaming broadcasts in transparent mode to a Legacy 802.15.4 module (S1 hardware), and RR > 0, set this bit to avoid a watchdog reset on the Legacy 802.15.4 module.
ND (Node Discover) command. The NT value is transmitted along with the ND command; remote nodes set up a random hold-off time based on this timeout. Once the ND command has ended, the base discards any responses it receives. Digi XBee3® 802.15.4 RF Module User Guide...
The MAC Mode serves two purposes: Enable/disable the use of a Digi header, which enables advanced features. Enable/disable MAC-Layer acknowledgments. The default configuration enables a Digi-specific header to every RF packet. This header includes information that allows for some advanced features: Network discovery support...
The following commands configure the device for a master/slave 802.15.4 network. CE command The routing mode of the XBee3 802.15.4 RF Module. The XBee3 802.15.4 RF Module does not allow association until bit 2 of A2 (Coordinator Association) set. Parameter range...
It operates on the channel determined by the CH parameter. Channel reassignment Coordinator performs an Energy Scan to find the quietest channel out of the channels to be scanned determined by the SC parameter. The Coordinator then operates on that channel. Digi XBee3® 802.15.4 RF Module User Guide...
The following commands affect the source and destination addressing for the device. SH command Displays the upper 32 bits of the unique IEEE 64-bit extended address assigned to the XBee in the factory. Digi XBee3® 802.15.4 RF Module User Guide...
This destination address is also used for outgoing I/O samples in both Transparent and API modes. To transmit using a 16-bit address, set DH to 0 and DL less than 0xFFFF. 0x000000000000FFFF is the broadcast address (DH = 0, DL = 0xFFFF). Parameter range 0 - 0xFFFFFFFF Default Digi XBee3® 802.15.4 RF Module User Guide...
The RR value does not need to be set on all devices for retries to work. If retries are enabled, the transmitting device sets a bit in the Digi RF Packet header that requests the receiving device to send an ACK. If the transmitting device does not receive an ACK within 200 ms, it re-sends the packet within a random period up to 48 ms.
Set this command parameter the same on all devices in a network. The entire payload of the packet is encrypted using the key and the CRC is computed across the ciphertext. Parameter range 128-bit value (up to 16 bytes) Default Digi XBee3® 802.15.4 RF Module User Guide...
The CA parameter is measured in units of -dBm. The CCA threshold is set upon device initialization, any change to the CCA threshold must be written to flash with the WR command and the module reset (power cycle or FR command) before the new threshold is observed. Digi XBee3® 802.15.4 RF Module User Guide...
For example, if DB returns 0x60, then the RSSI of the last packet received was -96 dBm. If the XBee3 802.15.4 RF Module has been reset and has not yet received a packet, DB reports 0. This value is volatile (the value does not persist in the device's memory after a power-up sequence).
Starts an energy detect scan. This command accepts an argument to specify the time in milliseconds to scan all channels. The device loops through all the available channels until the time elapses. It Digi XBee3® 802.15.4 RF Module User Guide...
RF activity. When operating in Pin Sleep (SM = 1), D8 command must be set as a peripheral (D8=1) in order for the device to sleep. Digi XBee3® 802.15.4 RF Module User Guide...
The device only stays awake for ST time if RF or UART activity is detected upon wakeup or bit 8 of SO command is set to 1. Coordinator and End Device ST values must be equal. Parameter range 0x1 - 0x36EE80 (x 1 ms) Digi XBee3® 802.15.4 RF Module User Guide...
SP operations Always wake A device configured for cyclic sleep will always remain awake for ST for ST time time before returning to sleep Set all other option bits to 0. Default Digi XBee3® 802.15.4 RF Module User Guide...
Parameter range 0 - 2 Parameter Description No parity Even parity Odd parity Default SB command Sets or displays the number of stop bits for UART communications. Parameter range 0 - 1 Digi XBee3® 802.15.4 RF Module User Guide...
When you enable API, you must format the serial data as API frames because Transparent operating mode is disabled. Parameter range 0 - 2 Parameter Description API disabled (operate in Transparent mode) Digi XBee3® 802.15.4 RF Module User Guide...
Use this when debugging OTA firmware updates by enabling client-side messages to be sent out of the serial port. Parameter range 0 - 2 Parameter Description Suppress ZCL output Reserved Output supported ZCL packets Default Digi XBee3® 802.15.4 RF Module User Guide...
CTS flow control Digital input Digital output, low Digital output, high RS-485 enable, low Tx (0 V on transmit, high when idle) RS-485 enable, high Tx (high on transmit, 0 V when idle) Default Digi XBee3® 802.15.4 RF Module User Guide...
The following commands affect the SPI serial interface on SMT and MMT variants. These commands are not applicable to the through-hole variant of the XBee3; see D1 through D4 and P2 for through- hole SPI support. Digi XBee3® 802.15.4 RF Module User Guide...
0, 1, 4, 5 Parameter Description Disabled SPI_MOSI Digital output, low Digital output, high Default P7 command Sets or displays the DIO17/SPI_SSEL configuration (Micro pin 14/SMT pin 15). This only applies to surface-mount and micro devices. Digi XBee3® 802.15.4 RF Module User Guide...
Digital output, low Digital output, high Default P9 command Sets or displays the DIO19/SPI_ATTN configuration (Micro pin 11/SMT pin 12). This only applies to surface-mount and micro devices. Parameter range 0, 1, 4, 5 Digi XBee3® 802.15.4 RF Module User Guide...
Digital output, low Digital output, high Default I/O settings commands The following commands configure the various I/O lines available on the XBee3 802.15.4 RF Module. D0 command Sets or displays the DIO0/ADC0/CB configuration (TH pin 20/SMT pin 33). Parameter range...
When configured as PWM output (2): you can use M0 to explicitly control the PWM0 output. When used with Analog line passing, PWM0 corresponds with ADC0. Parameter range 0 - 5 Parameter Description Disabled RSSI PWM output Digi XBee3® 802.15.4 RF Module User Guide...
By default, pull-up resistors are enabled on all disabled I/O lines. The following table defines the bit-field map for PR and PD commands. I/O line DIO4 DIO3 DIO2 DIO1 DIO0 DIO6/RTS DIO8/DTR/Sleep_Rq UART_DIN DIO5/Associate DIO9/Awake_SLEEP DIO12 DIO10/PWM-RSSI DIO11 Digi XBee3® 802.15.4 RF Module User Guide...
The PWM period is 64 µs and there are 0x03FF (1023 decimal) steps within this period. When M0 = 0 (0% PWM), 0x01FF (50% PWM), 0x03FF (100% PWM), and so forth. Parameter range 0 - 0x3FF Digi XBee3® 802.15.4 RF Module User Guide...
If LT = 0, the device uses the default blink rate: 500 ms for a sleep coordinator, 250 ms for all other nodes. Parameter range 0, 0x14 - 0xFF (x 10 ms) Default Digi XBee3® 802.15.4 RF Module User Guide...
When operating in API mode (AP = 1), the command immediately returns an OK response. The data follows in the normal API format for DIO data. Extended I/O capability If A0 is set to 0 or 1, the XBee3 802.15.4 RF Module's IS I/O options are D0 command D9 command...
IT after setting it reports the actual number of samples in a packet. Parameter range 0x1 - 0xFF Default IF command The number of sleep cycles that elapse between periodic I/O samples. Digi XBee3® 802.15.4 RF Module User Guide...
IA is set to 0xFFFF. Note To enable API output, you must set AP command to an API mode (AP = 1 or 2). Parameter range 0 - 1 Parameter Description Disabled Enabled Digi XBee3® 802.15.4 RF Module User Guide...
0, there is no timeout. Parameter range 0 - 0xFF Default T4 command Specifies how long pin D4 command holds a given value before it reverts to configured value. If set to 0, there is no timeout. Digi XBee3® 802.15.4 RF Module User Guide...
Default T8 command Specifies how long pin D8 command holds a given value before it reverts to configured value. If set to 0, there is no timeout. Parameter range 0 - 0xFF Default Digi XBee3® 802.15.4 RF Module User Guide...
Specifies how long both PWM outputs (P0, P1) output a given PWM signal before it reverts to the configured value (M0/M1). If set to 0, there is no timeout. This timeout only affects these pins when they are configured as PWM output. Digi XBee3® 802.15.4 RF Module User Guide...
Default VH command Reads the bootloader version of the device. Parameter range Default HV command Display the hardware version number of the device. Parameter range 0 - 0xFFFF [read-only] Default Set in firmware Digi XBee3® 802.15.4 RF Module User Guide...
1 °C = 0x0001 and -1°C = 0xFFFF Parameter range 0 - 0xFFFF (Celsius) [read-only] Default DD command Stores the Digi device type identifier value. Use this value to differentiate between multiple types of devices. Parameter range 0 - 0xFFFFFFFF Default...
Immediately writes parameter values to non-volatile flash memory so they persist through a power cycle. Operating network parameters are persistent and do not require a WR command for the device to reattach to the network. Digi XBee3® 802.15.4 RF Module User Guide...
Remote AT Command Request frame - 0x17. %F (Set Custom Default) When %F is received, the XBee3 802.15.4 RF Module takes the next command received and applies it to both the current configuration and the custom defaults, so that when defaults are restored with command the custom value is used.
AT commands Custom default commands R1 (Restore Factory Defaults) Restores factory defaults, ignoring any custom defaults set using %F (Set Custom Default). Parameter range Default Digi XBee3® 802.15.4 RF Module User Guide...
Page 128
Operate in API mode API mode overview Use the AP command to set the operation mode API frame format Digi XBee3® 802.15.4 RF Module User Guide...
2. Append it with the byte you want to escape, XORed with 0x20. In API mode with escaped characters, the length field does not include any escape characters in the frame and the firmware calculates the checksum with non-escaped data. Digi XBee3® 802.15.4 RF Module User Guide...
Page 131
1. Add all bytes of the packet, except the start delimiter 0x7E and the length (the second and third bytes). 2. Keep only the lowest 8 bits from the result. 3. Subtract this quantity from 0xFF. Digi XBee3® 802.15.4 RF Module User Guide...
Page 132
Subtract 0x47 from 0xFF and you get 0xB8 (0xFF - 0x47 = 0xB8). 0xB8 is the checksum for this data packet. If an API data packet is composed with an incorrect checksum, the XBee3 802.15.4 RF Module will consider the packet invalid and will ignore the data.
0x04 = Send packet with Broadcast PAN ID. Set all other bits to 0. The RF data length can be up to 110 bytes, but may be less depending on RF data 14-n other factors discussed in Maximum payload. Digi XBee3® 802.15.4 RF Module User Guide...
0x04 = Send packet with Broadcast PAN ID. Set all other bits to 0. RF data The RF data length can be up to 116 bytes, but may be less depending on other factors discussed in Maximum payload. Digi XBee3® 802.15.4 RF Module User Guide...
The following example illustrates an AT Command frame where the device's SL parameter value is queried. Frame data fields Offset Example Start delimiter 0x7E Length MSB 1 0x00 LSB 2 0x04 Frame type 0x08 Digi XBee3® 802.15.4 RF Module User Guide...
Page 137
Frame data fields Offset Example Start delimiter 0x7E Length MSB 1 0x00 LSB 2 0x08 Frame type 0x08 Frame ID 0x4D AT command 0x44 (D) 0x4C (L) Parameter value 7-10 0xFF 0xFF Checksum 0x1C Digi XBee3® 802.15.4 RF Module User Guide...
You can set the broadcast radius from 0 up to NH. If set to 0, the value of NH specifies the broadcast radius (recommended). This parameter is only used for broadcast transmissions. You can read the maximum number of payload bytes with the NP command. Digi XBee3® 802.15.4 RF Module User Guide...
Page 139
The example shows how to send a transmission to a device if you disable escaping (AP = 1), with destination address 0x0013A200 400A0127, and payload “TxData0A”. Frame data fields Offset Example Start delimiter 0x7E Length MSB 1 0x00 LSB 2 0x16 Frame type 0x10 Frame ID 0x01 Digi XBee3® 802.15.4 RF Module User Guide...
ID, and profile ID. This frame causes the device to send payload data as an RF packet to a specific destination, using specific source and destination endpoints, cluster ID, and profile ID. Digi XBee3® 802.15.4 RF Module User Guide...
Page 141
21-22 Data 23-n Data that is sent to the destination device. Payload Transmit Options bit field Transmit Request frame - 0x10. Example The following example sends a data transmission to a device with: Digi XBee3® 802.15.4 RF Module User Guide...
Command name: two ASCII characters that identify the command. 16-17 Command 18-n If present, indicates the parameter value you request for a given register. parameter If no characters are present, it queries the register. Digi XBee3® 802.15.4 RF Module User Guide...
Bit field: 0 = [reserved]. 1 = Packet was a broadcast packet. 2 = Packet was broadcast across all PANs. 3-7 = [reserved]. The RF data that the device receives. Received 14-n data Digi XBee3® 802.15.4 RF Module User Guide...
Options Bit 1 = Packet was a broadcast packet. Bit 2 = Packet was broadcast across all PANs. Bits 3 - 7 = [reserved]. RF data The RF data that the device receives. Digi XBee3® 802.15.4 RF Module User Guide...
DIO lines. DIO lines that do not have sampling enabled return 0. If no DIO line is enabled, no bytes are included in the frame. Digi XBee3® 802.15.4 RF Module User Guide...
Page 148
AD0 to AD5. The following table shows the Channel Indicator and Digital Samples bit fields. Bit field Description Reserved 3 bits A3 - A0 4 analog bits D8 - D0 9 digital bits Digi XBee3® 802.15.4 RF Module User Guide...
DIO lines. DIO lines that enabled) do not have sampling enabled return 0. If no DIO line is enabled, no (see bit field bytes are included in the frame. table below) Digi XBee3® 802.15.4 RF Module User Guide...
Page 150
AD0 to AD5. n - 1 ADCn ADCn The following table shows the Channel Indicator bit field. Bit field Description Reserved 3 bits A3 - A0 4 analog bits D8 - D0 9 digital bits Digi XBee3® 802.15.4 RF Module User Guide...
If you change the BD parameter on a local device with a frame ID of 0x01, and the parameter is valid, the user receives the following response. Frame data fields Offset Example Start delimiter 0x7E Length MSB 1 0x00 LSB 2 0x05 Digi XBee3® 802.15.4 RF Module User Guide...
Page 152
Offset Example Frame type 0x88 Frame ID 0x01 AT command 0x42 (B) 0x44 (D) Command status 0x00 Command data (No command data implies the parameter was set rather than queried) Checksum 0xF0 Digi XBee3® 802.15.4 RF Module User Guide...
0x000000000000FFFF), status 0x01 and 0x21 will never be returned because broadcasts are sent unacknowledged. Example The following example shows a successful status received. Frame data fields Offset Example Start delimiter 0x7E Length MSB 1 0x00 LSB 2 0x03 Digi XBee3® 802.15.4 RF Module User Guide...
Page 154
Frame descriptions TX Status frame - 0x89 Frame data fields Offset Example Frame type 0x89 Frame ID 0x01 Status 0x00 Checksum 0x75 Digi XBee3® 802.15.4 RF Module User Guide...
When a device powers up, it returns the following API frame. Frame data fields Offset Example Start delimiter 0x7E Length MSB 1 0x00 LSB 2 LSB 2 0x02 Frame type 0x8A Status 0x00 Checksum 0x75 Digi XBee3® 802.15.4 RF Module User Guide...
In the following example, the destination device reports a successful unicast data transmission. The outgoing Transmit Request that this response frame came from uses Frame ID of 0x47. Frame Fields Offset Example Start delimiter 0x7E Digi XBee3® 802.15.4 RF Module User Guide...
Page 157
Transmit Status frame - 0x8B Frame Fields Offset Example Length MSB 1 0x00 LSB 2 0x07 Frame type 0x8B Frame ID 0x47 Reserved 0xFF 0xFE Transmit retry count 0x00 Delivery status 0x00 Reserved 0x02 Checksum 0x2E Digi XBee3® 802.15.4 RF Module User Guide...
RxData. If AO = 0 on the receiving device, it sends the following frame out its serial interface. Frame data fields Offset Example Start delimiter 0x7E Digi XBee3® 802.15.4 RF Module User Guide...
If a device sends the transmission: With source and destination endpoints of 0xE0 Cluster ID = 0x2211 Profile ID = 0xC105 If AO = 1 on the receiving device, it sends the following frame out its serial interface. Digi XBee3® 802.15.4 RF Module User Guide...
Page 161
LSB 11 0xAA Reserved 0xFF 0xFE Source endpoint 0xE0 Destination endpoint 0xE0 Cluster ID 0x22 0x11 Profile ID 0xC1 0x05 Receive options 0x02 Received data 0x52 0x78 0x44 0x61 0x74 0x61 Checksum 0x68 Digi XBee3® 802.15.4 RF Module User Guide...
AD1. It reads the digital lines to be 0x0014 and the analog sample value is 0x0225. The complete example frame is: 7E00 1492 0013 A200 4052 2BAA FFFE 0101 001C 0200 1402 25F9 Digi XBee3® 802.15.4 RF Module User Guide...
Page 163
MSB 12 0xFF LSB 13 0xFE Receive options 0x01 Number of samples 0x01 Digital channel mask 0x00 0x1C Analog channel mask 0x02 Digital samples (if included) 0x00 0x14 Analog sample 0x02 0x25 Checksum 0xF5 Digi XBee3® 802.15.4 RF Module User Guide...
0 = OK 1 = ERROR 2 = Invalid Command 3 = Invalid Parameter 4 = Remote Command Transmission Failed Command data 18-n The value of the requested register in hexadecimal notation (non-ASCII). Digi XBee3® 802.15.4 RF Module User Guide...
The file version field contains additional hardware/software compatibility information. We recommend that if you intend to perform an OTA update, you use the OTA header extracted from the file so that you can avoid undesired behavior. Digi XBee3® 802.15.4 RF Module User Guide...
Storage Hardware/software compatibility The Hardware Software Compatibility number ensures that an incompatible firmware is not flashed on to the XBee3 802.15.4 RF Module. To obtain this value, query %C (Hardware/Software Compatibility) on the target device. You can successfully update the device to a firmware if, and only if, the value of %C of the image is greater than or equal to the value returned by the device when you query %C.
The server sends the Image Notify message to the client informing the device of the presence of an update image. The Image Notify message is sent when the upgrade process is initiated from the server. Digi XBee3® 802.15.4 RF Module User Guide...
The server emits the following frame after receiving the request from the client: Frame data fields Offset Example Comments Start delimiter 0x7E Length MSB 1 0x00 LSB 2 0x1E Frame Type 0x91 Digi XBee3® 802.15.4 RF Module User Guide...
Page 171
16-bit source address 0x28 LSB 0x2F Source Endpoint 0xE8 Destination Endpoint 0xE8 Cluster ID 0x00 0x19 Profile ID 0xC1 0x05 Receive options 0x01 Data ZCL frame Frame control 0x01 payload header Transaction sequence 0x00 number Digi XBee3® 802.15.4 RF Module User Guide...
0x7E - NOT_AUTHORIZED: The server is not authorized to update the client. Frame data fields Offset Example Comments Start delimiter 0x7E Length MSB 1 0x00 LSB 2 0x24 Frame Type 0x11 Frame ID 0x01 Digi XBee3® 802.15.4 RF Module User Guide...
The size of the OTA upgrade image is usually obtained by the client in the Query Next Image response message and hence it knows the exact number of Image Block requests it needs to send. Digi XBee3® 802.15.4 RF Module User Guide...
SUCCESS status on being able to retrieve the data for the client. The server uses the file offset sent by the client to determine the location of the requested data within the OTA upgrade image. If you wish to cancel the update process, send an ABORT (0x95) status. Digi XBee3® 802.15.4 RF Module User Guide...
Page 178
0x40 64 byte blocks Data Image Block Size payload payload 0xEB- Data Image Block Data An image block of the size 0x00 payload payload mentioned in Image Block Size 0x4E Checksum Digi XBee3® 802.15.4 RF Module User Guide...
The status field in the Upgrade End request informs the server of any errors during the download or verification of the OTA firmware update image on the client. The error codes that could be reported Digi XBee3® 802.15.4 RF Module User Guide...
Page 185
ZCL OTA Command Status Error Message 0x06 0x94 Client Timed Out Upgrade End Request 0x96 Invalid OTA Image 0x95 Client Aborted Upgrade 0x05 Storage Erase Failed 0x87 Contact Tech Support (Highly unlikely to occur) Digi XBee3® 802.15.4 RF Module User Guide...
Need help?
Do you have a question about the XBee3 802.15.4 and is the answer not in the manual?
Questions and answers