
Transmission, addressing, and routing
Data transmission examples
XBee/XBee-PRO® S2C ZigBee® RF Module
81
AT firmware
To send a data packet in transparent mode, set the
DH
and
DL
commands to match the 64- bit
address of the destination device.
DH
must match the upper 4-bytes, and
DL
must match the lower 4
bytes. Since the coordinator always receives a 16-bit address of 0x0000, a 64-bit address of
0x0000000000000000 is the coordinator's address (in ZB firmware). The default values of
DH
and
DL
are 0x00, which sends data to the coordinator.
Example 1: Send a transmission to the coordinator.
In this example, a '\r' refers to a carriage return character.
A router or end device can send data in two ways. First, set the destination address (
DH
and
DL
commands) to 0x00.
1. Enter command mode ('+++').
2. After receiving an OK\r, issue the following commands:
n
ATDH0\r
n
ATDL0\r
n
ATCN\r
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 unicast transmission to
the coordinator.
Alternatively, if the coordinator's 64-bit address is known, you can set
DH
and
DL
to the coordinator's
64-bit address. Suppose the coordinator's address is 0x0013A200404A2244.
1. Enter command mode ('+++')
2. After receiving an OK\r, issue the following commands:
a. ATDH13A200\r
b. ATDL404A2244\
c. ATCN\r
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 unicast transmission to
the coordinator.
API firmware
Use the transmit request, or explicit transmit request frame (0x10 and 0x11 respectively) to send
data to the coordinator. The 64-bit address can either be set to 0x0000000000000000, or to the 64-bit
address of the coordinator. The 16-bit address should be set to 0xFFFE when using the 64-bit address
of all 0x00s.
To send an ASCII “1” to the coordinator's 0x00 address, use the following API frame:
7E 00 0F 10 01 0000 0000 0000 0000 FFFE 00 00 31 C0
If you use the explicit transmit frame, set the the cluster ID to 0x0011, the profile ID to 0xC105, and
the source and destination endpoints to 0xE8. These are the recommended defaults for data
transmissions in the Digi profile.
You can send the same transmission using the following explicit transmit frame:
7E 00 15 11 01 0000 0000 0000 0000 FFFE E8 E8 0011 C105 00 00 31 18
Содержание 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 ...