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,

    The IAS Zone sensor responds that the data type is invalid in the configure reporting response:

    In the configure reporting command, the data type is 0x00 (no data).

    The ZoneState attribute is an enum8, which has data type ID 0x30.

    Please note that the data type field of the subscribe shell command is decimal, and not hex, so you need to use 48 as ID:

    zcl subscribe on h:addr d:ep 0x0500 0x0104 0 48 [d:min interval (s)] [d:max interval (s)]

    Best regards,
    Marte

Children
Related