Digi International Inc XBEEPRO2 Manual Do Utilizador

Página de 155
XBee®/XBee‐PRO® ZB RF Modules 
© 2011 Digi International, Inc.
     127
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
Frame-specific 
Data 
LSB 2 0x19
Frame Type
3 0x11
Frame ID
4 0x01
Identifies the UART data frame for the host to correlate 
with a subsequent transmit status. If set to 0, no transmit 
status frame will be sent out the UART.
64-bit 
Destination
Address
MSB 5 0x00
64-bit address of the destination device (big endian byte 
order). For unicast transmissions, set to the 64-bit 
address of the destination device, or to 
0x0000000000000000 to send a unicast to the 
coordinator. Set to 0x000000000000FFFF for broadcast.
6 0x13
7 0xA2
8 0x00
9 0x40
10 0x40
11 0x12
12 0x34
16-bit 
Destination
Network 
Address
MSB 13 0x56
16-bit address of the destination device (big endian byte 
order). Set to 0xFFFE for broadcast, or if the 16-bit 
address is unknown. 
LSB 14 0x78
Source 
Endpoint
15 0x41
Set to the source endpoint on the sending device. (0x41 
arbitrarily selected).
Destination 
Endpoint
16 0x42
Set to the destination endpoint on the remote device. 
(0x42 arbitrarily selected)
Cluster ID
MSB 17 0x07
Set to the cluster ID that corresponds to the ZCL 
command being sent.
0x0701 = Demand response and load control cluster ID
LSB 18 0x01
Profile ID
MSB 19 0x01
Set to the profile ID supported on the device. 
0x0109 = Smart Energy profile ID.
LSB 20 0x09
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
All bits must be set to 0.
Data Payload
ZCL Frame 
Header
Frame Control
23 0x09
Bitfield that defines the command type and other relevant 
information in the ZCL command. See the ZCL 
specification for details.
Transaction 
Sequence 
Number
24 0x01
A sequence number used to correlate a ZCL command 
with a ZCL response. (The hardware version response 
will include this byte as a sequence number in the 
response.) The value 0x01 was arbitrarily selected.
25 0x00
Since the frame control "frame type" bits are 01, this byte 
specifies a cluster-specific command. Command ID 0x00 
in the Demand Response and Load Control cluster is a 
Load Control Event command. (See Smart Energy 
specification.)