
Transmission, addressing, and routing
Data transmission examples
XBee/XBee-PRO® S2C ZigBee® RF Module
82
The 16-bit address is set to 0xFFFE. This is required when sending to a 64-bit address of 0x00s.
Suppose the coordinator's 64-bit address is 0x0013A200404A2244. The following transmit request API
frame (0x10) sends an ASCII “1” to the coordinator:
7E 00 0F 10 01 0013 A200 404A 2244 0000 0000 31 18
Example 2: Send a broadcast transmission
In this example, a '\r' refers to a carriage return character.
Perform the following steps to configure a broadcast transmission:
1. Enter command mode ('+++')
2. After receiving an OK\r, issue the following commands:
n
ATDH0\r b
n
ATDLffff\r
n
ATCN\r 3
3. Verify that each of the three commands returned an OK\r response.
4. After setting these command values, all serial characters are sent as a broadcast transmission.
API frame
A transmit request API frame (0x10) can send an ASCII “1” in a broadcast transmission using the
following API frame:
7E 00 0F 10 01 0000 0000 0000 FFFF FFFE 00 00 31 C2
The destination 16-bit address is set to 0xFFFE for broadcast transmissions.
Example 3: Send an indirect (binding) transmission.
This example uses the explicit transmit request frame (0x11) to send a transmission using indirect
addressing through the binding table. It assumes the binding table has already been set up to map a
source endpoint of 0xE7 and cluster ID of 0x0011 to a destination endpoint and 64 bit destination
address. The message data is a manufacturing specific profile message using profile ID 0xC105,
command ID 0x00, a ZCL Header of 151E10, transaction number EE, and a ZCL payload of
000102030405:
7E 001E 11 e4 FFFFFFFFFFFFFFFF FFFE E7 FF 0011 C105 00 04 151E10EE000102030405 14
Note
The 64 bit destination address has been set to all 0xFF values, and the destination endpoint set
to 0xFF. The Tx Option 0x04 indicates indirect addressing. The 64 bit destination address and
destination endpoint are completed by looking up data associated with binding table entries. This
matches the following example.
Example 4: Send a multicast (group ID) broadcast.
This example uses the explicit transmit request frame (0x11) to send a transmission using
multicasting. It assumes the destination devices already have their group tables set up to associate
an active endpoint with the group ID (0x1234) of the multicast transmission. The message data is a
manufacturing specific profile message using profile ID 0xC105command ID 0x00, a ZCL Header of
151E10, transaction number EE, and a ZCL payload of 000102030405:
7E 001E 11 01 FFFFFFFFFFFFFFFF 1234 E6 FE 0001 C105 00 08 151E10EE000102030405 BC
Содержание XBee
Страница 1: ...XBee XBee PRO S2C ZigBee RF Module User Guide ...
Страница 259: ...AT commands Execution commands XBee XBee PRO S2C ZigBee RF Module 259 Parameter range N A Default N A ...
Страница 289: ...Regulatory information ANATEL Brazil XBee XBee PRO S2C ZigBee RF Module 289 ...
Страница 290: ...Regulatory information ANATEL Brazil XBee XBee PRO S2C ZigBee RF Module 290 ...
Страница 303: ...Load ZigBee firmware on 802 15 4 devices Background 304 Load ZB firmware 305 XBee XBee PRO S2C ZigBee RF Module 303 ...