Download XBee SE Manual
Transcript
XBee®/XBee‐PRO® SE RF Modules The 64-bit destination address should be set to 0x000000000000FFFF for a broadcast transmission (to all devices). The coordinator can be addressed by either setting the 64-bit address to all 0x00s and the 16-bit address to 0xFFFE, OR by setting the 64-bit address to the coordinator's 64-bit address and the 16-bit address to 0x0000. For all other transmissions, setting the 16-bit address to the correct 16-bit address can help improve performance when transmitting to multiple destinations. If a 16-bit address is not known, this field should be set to 0xFFFE (unknown). The Transmit Status frame (0x8B) will indicate the discovered 16-bit address, if successful. The broadcast radius can be set 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. The options byte may be set to 0x20 to invoke APS end-to-end security. This requires an application link key to have been previously established between the source and destination nodes. The maximum number of payload bytes can be read with the NP command. Note: if source routing is used, the RF payload will be reduced by two bytes per intermediate hop in the source route. Frame Fields Start Delimiter Offset Example Description 0 0x7E Length MSB 1 0x00 LSB 2 0x1A Frame-specific Data Frame Type Frame ID Number of bytes between the length and the checksum 3 0x11 4 0x01 Identifies the UART data frame for the host to correlate with a subsequent ACK (acknowledgement). If set to 0, no response is sent. MSB 5 0x00 6 0x00 64-bit Destination Address 7 0x00 8 0x00 9 0x00 10 0x00 Set to the 64-bit address of the destination device. The following addresses are also supported: 0x0000000000000000 - Reserved 64-bit address for the coordinator 0x000000000000FFFF - Broadcast address 11 0x00 A P I 12 0x00 16-bit Destination Network Address P a c k e t Source Endpoint Destination Endpoint Cluster ID Profile ID MSB 13 0xFF LSB 14 0xFE Set to the 16-bit address of the destination device, if known. Set to 0xFFFE if the address is unknown, or if sending a broadcast. 15 0xA0 Source endpoint for the transmission. 16 0xA1 Destination endpoint for the transmission. 17 0x15 18 0x54 19 0xC1 20 0x05 Cluster ID used in the transmission Profile ID used in the transmission Broadcast Radius 21 0x00 Sets the maximum number of hops a broadcast transmission can traverse. If set to 0, the transmission radius will be set to the network maximum hops value. Transmit Options 22 0x00 0, or 0x20 if APS end-to-end security should be invoked. 23 0x54 24 0x78 Data Payload 25 0x44 26 0x61 Data that is sent to the destination device 27 0x74 28 0x61 Checksum © 2010 Digi International, Inc. 29 0x3A 0xFF - the 8 bit sum of bytes from offset 3 to this byte. 92