XBee/XBee‐PRO DigiMesh 2.4 RF Modules 1.XBee/XBee‐PRO DigiMesh 2.4 RF Modules The XBee/XBee-PRO DigiMesh 2.4 RF Modules were engineered to support the unique needs of low-cost, low-power wireless sensor networks. The modules require minimal power and provide reliable delivery of data between remote devices. Key Features Long-range Data Integrity...
PAN ID, Channel and Addresses PAN ID, Channel and Addresses Agency Approvals United States (FCC Part 15.247) OUR-XBEE OUR-XBEEPRO Industry Canada (IC) 4214A XBEE 4214A XBEEPRO Europe (CE) ETSI ETSI (Max. 10 dBm transmit power output)* R201WW08215111" (Max. 10 dBm transmit power Japan...
Analog Input 0 or Digital I/O 0 * Function is not supported at the time of this release Design Notes: The XBee modules do not specifically require any external circuitry or specific connections for proper operation. However, there are some general design guidelines that are recommended to help with troubleshooting and building a robust design.
XBee™ & XBee‐Pro™ RF Modules Electrical Characteristics DC Characteristics (VCC = 2.8 ‐ 3.4 VDC) Symbol Characteristic Condition Typical Unit Input Low Voltage All Digital Inputs 0.35 * VCC Input High Voltage All Digital Inputs 0.7 * VCC = 2 mA, VCC >= 2.7 V Output Low Voltage = -2 mA, VCC >= 2.7 V Output High Voltage VCC - 0.5...
Serial Communications The XBee/XBee-PRO 2.4 DigiMesh RF Modules interface to a host device through a logic-level asynchronous serial port. Through its serial port, the module can communicate with any logic and voltage compatible UART; or through a level translator to any serial device (For example: Through a Digi proprietary RS-232 or USB interface board).
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Internal Data Flow Diagram Serial RF TX Receiver Transmitter Buffer Buffer RF Switch Antenna Processor Port RF RX Serial Transmit DOUT Receiver Buffer Buffer Serial Receive Buffer When serial data enters the RF module through the DIN Pin (pin 3), the data is stored in the serial receive buffer until it can be processed.
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Serial Interface Protocols The XBee modules support both transparent and API (Application Programming Interface) serial interfaces. Transparent Operation When operating in transparent mode, the modules act as a serial line replacement. All UART data received through the DIN pin is queued up for RF transmission. When RF data is received, the data is sent out through the DOUT pin.
XBee/XBee‐PRO DigiMesh 2.4 RF Modules As a general rule of thumb, API firmware is recommended when a device: • sends RF data to multiple destinations • sends remote configuration commands to manage devices in the network • receives IO samples from remote devices • receives RF data packets from multiple devices, and the application needs to know which device sent which packet •...
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Receive Mode If a valid RF packet is received, the data is transferred to the serial transmit buffer. Command Mode To modify or read RF Module parameters, the module must first enter into Command Mode - a state in which incoming serial characters are interpreted as commands.
Page 15
"Command Reference Tables" chapter. Sleep Mode Sleep mode allows the RF module to enter a low power state. The XBee DigiMesh 2.4 modules support a network synchronized sleep to conserve power. Sleep functionality is discussed in detail in Chapter 4.
API devices can send configuration commands to set or read the configuration settings of any device in the network. Device Placement For a mesh network installation to be successful, the installer must be able to determine where to place individual XBee devices to establish reliable links throughout the mesh network.
Node Discovery The node discovery command can be used to discover all Digi modules that have joined a network. Issuing the ND com- mand sends a broadcast node discovery message throughout the network. All devices that receive the command will send a response that includes the device’s addressing information, node identifier string (see NI command), and other relevant...
Causes a node which is configured with sleeping router nomination enabled (see description of the ATSO – sleep options Configured for sleep command in the XBee module’s Product Manual) to immediately nominate itself as the network sleep coordinator. Issues an ATRE to restore module parameters Either to default values.
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Associate LED The Associate pin (pin 15) can provide indication of the device's sleep status and diagnostic information. To take advantage of these indications, an LED can be connected to the Associate pin as shown in the figure above. The Associate LED functionality is enabled by setting the D5 command to 1 (enabled by default).
IC command is a bitmask that can be used to set which digital IO lines should be monitored for a state change. If one or more bits in IC is set, an IO sample will be transmitted as soon as a state change is observed in one of the monitored digi- tal IO lines.
DigiMesh modules utilize direct-sequence spread spectrum modulation and operate on a fixed channel. There are 16 oper- ating channels defined in the 2.4 GHz frequency band. XBee modules support all 16 channels and XBee-PRO modules sup- port 12 of the 16 channels. The operating channel on a module is selected using the CH command.
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Broadcast Addressing Broadcast transmissions will be received and repeated by all routers in the network. Because ACKs are not used the origi- nating node will send the broadcast multiple times. By default a broadcast transmission is sent four times. Essentially the extra transmissions become automatic retries without acknowledgments.
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Transmission Timeouts When a node receives an API TX Request (API configured modules) or an RO timeout occurs (modules configured for Transparent Mode) the time required to route the data to its destination depends on a number of configured parameters, whether the trans- mission is a unicast or a broadcast, and if the route to the destination address is known.
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Sleeping Routers The Sleeping Router feature of DigiMesh makes it possible for all nodes in the network to synchronize their sleep and wake times. All synchronized cyclic sleep nodes enter and exit a low power state at the same time. This forms a cyclic sleeping network. Nodes synchronize by receiving a special RF packet called a sync message which is sent by a node acting as a sleep coordinator.
Page 26
XBee/XBee‐PRO DigiMesh 2.4 RF Modules network will not apply the new settings until the beginning of the next wake time. See the Changing Sleep Parameters section below for more information. A sleeping router network is robust enough that an individual node can go several cycles without receiving a sync message (due to RF interference, for example).
Page 27
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Becoming a Sleep Coordinator A node can become a sleep coordinator in one of four ways: Preferred Sleep Coordinator Option A node can be specified to always act as a sleep coordinator. This is done by setting the preferred sleep coordinator bit (bit 0) in the sleep options parameter (ATSO) to 1.
XBee/XBee‐PRO DigiMesh 2.4 RF Modules If a sleep compatible node has missed three or more sync messages (presumably because the sleep coordinator has been disabled) it may become a sleep coordinator. Depending on the platform and other configured options such a node will eventually nominate itself after a number of cycles without a sync. A nominated node will begin acting as the new network sleep coordinator.
Page 29
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Choose NN and NH. Based on the placement of the nodes in your network select appropriate values for the Network Hops (NH) and Network Delay Slots (NN) parameters. Note: The default values of NH and NN have been optimized to work for the majority of network deployments. In most cases it is suggested that these parameters are not modified from the default values.
Page 30
XBee/XBee‐PRO DigiMesh 2.4 RF Modules If one of these methods are not used it is necessary to wait for the network to wake up before the new node can be added. The new node should be placed in range of the network with a sleep period which is shorter than the wake period of the network.
XBee/XBee‐PRO DigiMesh 2.4 RF Modules If a network has multiple subnets that have drifted out of phase with each other, then follow the following steps to get the subnets back in phase: Place a sleep support node in range of both subnets. Select a node in the subnet which you desire the other subnet to sync up with. Use this node to slightly change the sleep cycle settings of the network (increment ST for example).
Digi data endpoint Destination Endpoint. Set/read application layer destination ID value. This value will be used as the 0-0xFF 0xE8 destination endpoint for all data transmissions. The default value (0xE8) is the Digi data endpoint. Cluster Identifier. 0-0xFFFF 0x11 Set/read application layer cluster ID value.
Page 33
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Serial Interfacing Commands AT Name and Description Parameter Range Default Command Baud rate. Set or read serial interface rate (speed for data transfer between radio modem and host). Values from 0-8 select preset standard rates. Values at 0x7A and above select the actual baud rate. Baud rates above 250,00 bps are not supported.The...
Page 34
XBee/XBee‐PRO DigiMesh 2.4 RF Modules I/O Commands I/O Commands AT Name and Description Parameter Range Default Command 0 - Disabled 1 - RSSI PWM 2 - PWM Output PWM0/DIO10 Configuration. 3 - Digital input, monitored Select/Read function for the DIO10 line of the RF module...
Page 35
XBee/XBee‐PRO DigiMesh 2.4 RF Modules I/O Commands AT Name and Description Parameter Range Default Command 0 - Disabled 1 - Associated indication 2 - Analog input, single ended AD5/DIO5 Configuration. 3 - Digital input, monitored Select/Read function 4 - Digital output, default 5 - Digital output, default high 0 –...
Page 36
Forces a read of all enabled digital and analog input lines. XBee Sensor Sample. Forces a sample to be taken on an XBee Sensor device. This command can only be issued to an XBee sensor device using an API remote command.
Page 37
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Diagnostics Diagnostics Commands AT Name and Description Parameter Range Default Command Firmware Version. Read firmware version of the module. 0 - 0xFFFF [read-only] Firmware-set Hardware Version. Read hardware version of the module. 0 - 0xFFFF [read-only] Factory-set RF Errors Read the number of times the RF receiver detected a CRC or length error.
Page 38
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Node Identification Node Identification Commands AT Name and Description Parameter Range Default Command PAN ID. Set or read the user network address. Nodes must have the same network address to communicate. Changes to ID should be written to non-volatile memory using...
Page 39
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Sleep Commands AT Name and Description Parameter Range Default Command Wake Time. Units of msec, represented in hex. Note 1: the minimum value for ST is a function of SP, SS, MT, NN, and NH. If the user 0x45-0x36EE80 0x7D0 (2 seconds) attempts to set the value of ST too low it will automatically be increased to a minimum effective value.
Page 40
AT Name and Description Parameter Range Default Command Channel. 0x0B - 0x1A (XBee) 0x0C Set/Read the channel number used for transmitting and receiving data between RF 0x0C - 0x17 (XBee-PRO) modules (uses 802.15.4 protocol channel numbers). Network Identifier. 0 - 0xFFFF 0x7FFF Set/Read the network identifier for the network.
Page 41
XBee/XBee‐PRO DigiMesh 2.4 RF Modules DigiMesh Mesh Commands: Network Level Commands AT Name and Description Parameter Range Default Command Network Hops Set or read the maximum number of hops expected to be seen in a network route. This value doesn't limit the number of hops allowed, but it is used to 1 to 0xFF calculate timeouts waiting for network acknowledgements.
UART Data Frame. Please note that Digi may add new frame types to future versions of firmware, so please build into your software interface the ability to filter out additional API frames with unknown Frame Types.
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Note: In the above example, the length of the raw data (excluding the checksum) is 0x0002 and the checksum of the non-escaped data (excluding frame delimiter and length) is calculated as: 0xFF - (0x23 + 0x11) = (0xFF - 0x34) = 0xCB.
Page 44
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Modem Status API Identifier Value: (0x8A) RF module status messages are sent from the module in response to specific conditions. Modem Status Frames Frame Fields Offset Example Description Start Delimiter 0 0x7E MSB 1 0x00 Length Number of bytes between the length and the checksum...
Page 45
XBee/XBee‐PRO DigiMesh 2.4 RF Modules AT Command Response API Identifier Value: (0x88) Response to previous command. In response to an AT Command message, the module will send an AT Command Response message. Some com- mands will send back multiple frames (for example, the ND (Node Discover) command).
Page 46
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Remote AT Command Request API Identifier Value: (0x17) Allows for module parameter registers on a remote device to be queried or set Remote AT Command Request Frame Fields Offset Example Description Start Delimiter 0 0x7E MSB 1 0x00 Length Number of bytes between the length and the checksum...
Page 47
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Remote Command Response API Identifier Value: (0x97) If a module receives a remote command response RF data frame in response to a Remote AT Command Request, the module will send a Remote AT Command Response message out the UART. Some commands may send back multiple frames--for example, Node Discover (ND) command.
Page 48
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Transmit Request API Identifier Value: (0x10) A TX Request message will cause the module to send RF Data as an RF Packet. Transmit Request Frame Fields Offset Example Description Start Delimiter 0 0x7E MSB 1 0x00 Length Number of bytes between the length and the checksum...
Page 49
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Explicit Addressing Command Frame API Identifier Value: (0x11) Allows application layer fields (endpoint and cluster ID) to be specified for a data transmission. Explicit Addressing Command Frame Frame Fields Offset Example Description Start Delimiter 0 0x7E MSB 1 0x00 Length Number of bytes between the length and the checksum...
Page 50
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Transmit Status API Identifier Value: 0x8B When a TX Request is completed, the module sends a TX Status message. This message will indicate if the packet was transmitted successfully or if there was a failure. TX Status Frames Frame Fields Offset Example...
Page 51
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Receive Packet API Identifier Value: (0x90) When the module receives an RF packet, it is sent out the UART using this message type. RX Packet Frames Frame Fields Offset Example Description Start Delimiter 0 0x7E MSB 1 0x00 Length Number of bytes between the length and the checksum...
Page 52
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Explicit Rx Indicator API Identifier Value:(0x91) When the modem receives a RF packet it is sent out the UART using this message type (when AO=1). Explicit RX Indicators Frame Fields Offset Example Description Start Delimiter 0 0x7E MSB 1 0x00 Length...
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Appendix A: Definitions Definitions Terms and Definitions Personal Area Network - A data communication network with a defined set of characteristics that isolates it from other like devices Network Address The 16-bit address is used for compatibility and has an address of 0xFFFE DigiMesh Definitions...
Appendix B: Agency Certifications United States (FCC) XBee/XBee-PRO DigiMesh 2.4 RF Modules comply with Part 15 of the FCC rules and regulations. Compliance with the labeling requirements, FCC notices and antenna usage guidelines is required. To fulfill FCC Certification requirements, the OEM must comply with the following regulations: The system integrator must ensure that the text on the external label provided with this device is placed on the outside of the final product [Figure A-01].
Page 55
The modules are FCC-approved for fixed base station and mobile applications on channels 0x0B - 0x1A (XBee) and 0x0C - 0x17 (XBee-PRO). If the antenna is mounted at least 20cm (8 in.) from nearby persons, the application is considered a mobile application. Antennas not listed in the table must be tested to comply with FCC Section 15.203 (Unique Antenna Connectors) and Section...
Page 56
XBee/XBee‐PRO DigiMesh 2.4 RF Modules XBee RF Module: High Gain Antenna Summary The following antenna types have been tested and approved for use with the XBee Module: Antenna Type: Yagi RF Module was tested and approved with 15 dBi antenna gain with 7.9 dB cable loss. Any Yagi type antenna with 7.1 dBi gain or less can be used with no cable loss.
EMC and safety. Important Note Digi does not list the entire set of standards that must be met for each country. Digi customers assume full responsibility for learning and meeting the required guidelines for each country in their distribution market.
14.2 dBm). Any Flat Panel type antenna with 14.2 dBi gain or less can be used with no cable-loss. XBee-PRO RF Module (@ 10 dBm Transmit Power, PL parameter value must equal 0, or use Inter- national variant)
XBee/XBee‐PRO DigiMesh 2.4 RF Modules Japan (Telec) In order to use the XBee-PRO in Japan, you must order the International version. The Interna- tional XBee-PRO RF Modules are limited to a transmit power output of 10 dBm. Labeling Requirements A clearly visible label on the outside of the final product enclosure must display the following text:...
Need help?
Do you have a question about the XBee and is the answer not in the manual?
Questions and answers