I now burn the official routine through the serial port input instructions, want to make NRF52840 dongle read zigBee terminal equipment (temperature and humidity sensor) value, but now I should input which instructions can obtain the value of the terminal equipment or query the terminal equipment at this time of the state?
My current method is: Query the short address -> Query the endpoint-> query the cluster. However, I often encountered situations where the endpoint could not be found, or occasionally the endpoint could be found, but the query cluster could not be found. I have some problems with this method and would like you to give me some Pointers on which commands to use to get the state or value of the terminal device. I'll post the commands I've used so far below:
bdb role zc -> Set the coordinator ZC
bdb start
bdb legacy enable
zdo mgmt_lqi 0x0000 -> Query short Address
zdo active_ep XXXX -> Query the endpoint based on the short address of the device (XXXX is the short address )
zdo simple_desc_req XXXX Y -> Query clusters by short address and endpoint (XXXX is the short address, and Y is endpoint )
zcl attr read <h:dst_addr> <d:ep> <h:cluster> [-c] <h:profile> <h:attr_id> (Now I want to use this command to get the status or value of the terminal device)
Now I am desperately looking for you to show me the direction, I am not sure how to use some commands correctly to achieve the purpose, I hope you can give me some guidance. thank you !
