Example - Digi XBee 3 ZigBee User Manual

Rf module
Table of Contents

Advertisement

API Operation
Frame fields
ZCL
payload

Example

In this example, the Frame Control field (offset 23) is constructed as follows:
Name
Frame Type
Manufacturer Specific
Direction
Disable Default
Response
Reserved
For more information, see the Zigbee Cluster Library specification.
Frame data fields
Start delimiter
Length
Frame type
Frame ID
Digi XBee® 3 Zigbee® RF Module
Send Zigbee cluster library (ZCL) commands with the API
Offset Description
Transaction
24
A sequence number used to correlate a ZCL command
sequence
with a ZCL response. (The hardware version response
number
will include this byte as a sequence number in the
response.) The value 0x01 was arbitrarily selected.
Command
25
Since the frame control "frame type" bits are 00, this
ID
byte specifies a general command. Command ID 0x00
is a Read Attributes command.
The payload for a "Read Attributes" command is a list
Attribute ID 26
of Attribute Identifiers that are being read.
Note
endian byte order (0x0300). All multi- byte ZCL header
and payload values must be sent in little endian byte
order.
27
0xFF minus the 8 bit sum of bytes from offset 3 to this
byte.
Bits Example Value Description
0-1
00 - Command acts across the entire profile.
2
0 - The manufacturer code field is omitted from the ZCL Frame
Header.
3
0 - The command is being sent from the client side to the server
side.
4
0 - Default response not disabled.
5-7
Set to 0.
The 16-bit Attribute ID (0x0003) is sent in little
Offset
Example
0
0x7E
MSB 1
0x00
LSB 2
0x19
3
0x11
4
0x01
246

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the XBee 3 ZigBee and is the answer not in the manual?

Table of Contents