
API Operation
Send ZDO commands with the API
XBee/XBee-PRO® S2C ZigBee® RF Module
208
Frame data fields
Offset
Description
Transmission options
22
All bits must be set to 0.
Data payload
23
The required payload for a ZDO command. All multi-byte ZDO
parameter values (u16, u32, 64- bit address) must be sent in little
endian byte order.
The Active Endpoints Request includes the following payload:
[16-bit NwkAddrOfInterest]
Note
The 16-bit address in the API example (0x1234) is sent in little
endian byte order (0x3412).
24
25
Example
The following example shows how you can use the Explicit API frame to send an “Active Endpoints”
request to discover the active endpoints on a device with a 16-bit address of 0x1234.
Frame data fields
Offset
Example
Start delimiter
0
0x7E
Length
MSB 1
0x00
LSB 2
0x17
Frame type
3
0x11
Frame ID
4
0x01
64-bit destination address
MSB 5
0x00
6
0x00
7
0x00
8
0x00
9
0x00
10
0x00
11
0xFF
LSB12
0xFF
16-bit Destination
Network Address
MSB 13
0xFF
LSB 14
0xFE
Source endpoint
15
0x00
Destination endpoint
16
0x00
Cluster ID
17
0x00
18
0x05