Zigbee : How to receive data from an IAS ZONE sensor with 52840DK board

Hello,

I Have an IAS ZONE sensor: Door/Window Sensor DWZB1-CE.

Basically, i want to receive events from this sensor which indicate whether the door is closed or open. On my 52840DK board i have flashed network_coordinator sample which I added the following :

#define DOOR_ENDPOINT 2

/* Declare attribute list for Identify cluster (client). */
ZB_ZCL_DECLARE_IDENTIFY_CLIENT_ATTRIB_LIST(
    simple_sensor_identify_client_attr_list);

/* Declare attribute list for Temperature Measurement cluster (client). */
ZB_ZCL_DECLARE_IAS_ZONE_CLIENT_ATTRIB_LIST(
    ias_zone_client_attr_list);

/* Declare cluster list for the door watcher. */
ZB_DECLARE_DOOR_CLUSTER_LIST(
    door_clusters,
    basic_attr_list,
    simple_sensor_identify_client_attr_list,
    identify_attr_list,
    ias_zone_client_attr_list);

/* Declare endpoint for the door watcher. */
ZB_DECLARE_DOOR_EP(
    door_ep,
    DOOR_ENDPOINT,
    door_clusters);

When i start my board and reset my sensor I have the following logs:
I: Device update received (short: 0x3751, long: 3425b4fffebe8e77, status: 1)                                
I: Device update received (short: 0x6002, long: 3425b4fffebe8e77, status: 1)                                        
I: New device commissioned or rejoined (short: 0x6002)                                                              
I: Joining period extended.
I: Device authorization event received (short: 0x6002, long: 3425b4fffebe8e77, authorization type: 1, authorization status: 0)
I: Unimplemented signal (signal: 54, status: 0)
I: Network steering finished
I: Unimplemented signal (signal: 54, status: 0)

So commisionning works fine. However when i try to close, open door sensor, nothing happen. I try to use sniffer, but the result is the same. I tried using zdo match_desc as suggested here but there only the following logs:

uart:~$ zdo match_desc 0xffff 0xffff 0x0104 2 0x0402 0x0403 0
Sending broadcast request.
 I: Unimplemented signal (signal: 50, status: 0)
Done

How should i modify my code in order to have open/close door event ? Is there any tutorial up to date to implement ias zone sensor ?

Parents Reply
  • Hi Amin,

    I see that you are not receiving any responses to the match descriptor request, even though the IAS Zone cluster should be implemented as an input cluster on the IAS Zone sensor, and not output.
    Can you try sending a simple descriptor request to the sensor to get a list of all input and output clusters on the device?

    zdo simple_desc_req h:dst_addr d:ep

    Best regards,
    Marte

Children
Related