Friday, October 15, 2021

How to use EmberZnet Cli command to send IAS WD command.

The following steps show you how to EmberZnet Cli command to send IAS WD command. 

1. Use any EFR32 to run SoC coordinator such as Z3Light example.

2. Use Cli "raw 0x502 {01000010000F0000}" to compose IAS WD command with raw data.

    Detail format of raw data in { } can be found in 2.4.1 General ZCL Frame Format of ZCL specification.

    01: Frame Control Field which can find details in section 2.4.1.1 of ZCL specification. 01 means "Command is specific or local to a cluster"

    00: Transaction sequence number

    00: Command identifier. Since we use "Command is specific or local to a cluster" in Frame Control Field. This command identifier should be matched to different cluster. In this case, it's IAS WD cluster (0x0502) Start warning (0x00) command which can be found in section 8.4.2.2 Commands Received of ZCL specification.

    10000F0000: Command Payload which is detailed in section 8.4.2.2.1.1 Payload Format of ZCL specification. 10 is Warning mode(Burglar)+Strobe(No)+Siren level(Low Level Sound). 000F is Warning Duration. 0000 is Strobe Duty Cycle and Strobe level.

3. Use Cli "send 0xD265 1 1" to send command to destination node with short address 0xD265 and endpoint 1.

4. You can verified the command is sent successfully on sniffer.



No comments:

Post a Comment