API frame examples
A transmit request API frame (0x10) can send an ASCII 1 in a broadcast transmission using the following API frame:
7E 00 0F 10 01 0000 0000 0000 FFFF FFFE 00 00 31 C2
The destination 16-bit address is set to 0xFFFE for broadcast transmissions.
Example: Send an indirect (binding) transmission.
This example uses the explicit transmit request frame (0x11) to send a transmission using indirect addressing through the binding table. It assumes the binding table has already been set up to map a source endpoint of D5 and cluster ID of 0x0001 to a destination endpoint and 64 bit destination address. The message data is a manufacturing specific profile message using profile ID 0xC105, command ID 0x00, a ZCL Header of 151E10, transaction number EE, and a ZCL payload of 000102030405:
7E 00 1E 11 01 FF FF FF FF FF FF FF FF FF FF D5 D5 00 01 C1 05 00 04 15 1E 10 EE 00 01 02 03 04 05 42
Note The 64 bit destination address has been set to all 0xFF values, and the destination endpoint set to 0xFF. The Tx Option 0x04 indicates indirect addressing. The 64 bit destination address and destination endpoint are completed by looking up data associated with binding table entries. This matches the following example.
Example: Send a multicast (group ID) broadcast.
This example uses the explicit transmit request frame (0x11) to send a transmission using multicasting. It assumes the destination devices already have their group tables set up to associate an active endpoint with the group ID (0x1234) of the multicast transmission. The message data is a manufacturing specific profile message using profile ID 0xC105 command ID 0x00, a ZCL Header of 151E10, transaction number EE, and a ZCL payload of 000102030405:
7E 00 1E 11 01 FF FF FF FF FF FF FF FF 12 34 D5 D5 00 01 C1 05 00 08 15 1E 10 EE 00 01 02 03 04 05 F6
Note The 64 bit destination address has been set to all 0xFF values, and the destination endpoint set to 0xFE. The Tx Option 0x08 indicates use of multicast (group) addressing.