Digi International Inc XBEEPRO2 Manual Do Utilizador

Página de 155
XBee®/XBee‐PRO® ZB RF Modules 
© 2011 Digi International, Inc.
     107
Example: Send a data transmission to the coordinator (64-bit address of 0x00s) using a source 
endpoint of 0xA0, destination endpoint 0xA1, cluster ID =0x1554, and profile ID 0xC105. Payload 
will be "TxData".
Frame Fields
Offset Example
Description
A
P
I
 
P
a
c
k
e
t
Start Delimiter
0 0x7E
Length
MSB 1 0x00
Number of bytes between the length and the checksum
LSB 2 0x1A
Frame-specific Data  Frame Type
3 0x11
Frame ID
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.
64-bit Destination
Address
MSB 5 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
6 0x00
7 0x00
8 0x00
9 0x00
10 0x00
11 0x00
12 0x00
16-bit Destination
Network Address
MSB 13 0xFF
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.
LSB 14 0xFE
Source Endpoint
15 0xA0
Source endpoint for the transmission.
Destination Endpoint
16 0xA1
Destination endpoint for the
transmission.
Cluster ID
17 0x15
Cluster ID used in the transmission
18 0x54
Profile ID
19 0xC1
Profile ID used in the transmission
20 0x05
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
Bitfield of supported transmission options. Supported 
values include the following: 
0x01 - Disable ACK
0x20 - Enable APS encryption (if EE=1) 
0x40 - Use the extended transmission timeout for this 
destination
Enabling APS encryption decreases the maximum 
number of RF payload bytes by 4 (below the value 
reported by NP). 
Setting the extended timeout bit causes the stack to set 
the extended transmission timeout for the destination 
address. (See chapter 4.)
All unused and unsupported bits must be set to 0. 
Data Payload
23 0x54
Data that is sent to the destination device
24 0x78
25 0x44
26 0x61
27 0x74
28 0x61
Checksum
29 0x3A
0xFF - the 8 bit sum of bytes from offset 3 to this byte.