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
  • Hi,

    Can you upload a sniffer log of this as a pcap file?
    Make sure to start the sniffer before the coordinator starts the network so the sniffer has the network key, or share the network key here so I can decrypt the packets.

    Best regards,
    Marte

  • snifferlog.pcap


    Hello Marte,

    You will find in attachment the sniffer log. I started to sniff just before i flash my nrf-dk board with my network coordinator sample, so it should be early enough to gather all information i guess.

    Also how do you decrypt packets with network key ? Is there any documentation about it ?

    Thank you for your reply.

  • Hi,

    I do not see any packets related to the sensor being sent in the sniffer log. How are you trying to set up so that the coordinator receives the events from the sensor?

    uart:~$ zdo match_desc 0xffff 0xffff 0x0104 2 0x0402 0x0403 0

    Make sure to use the correct cluster ID for the clusters implemented on your device. The format of the match_desc command is as follows:

    zdo match_desc h:dst_addr
                   h:req_addr h:prof_id
                   d:n_input_clusters [h:input cluster IDs ...]
                   d:n_output_clusters [h:output cluster IDs ...]

    So in the above you are sending for a match descriptor request for devices with the Temperature Measurement (0x0402) and Pressure Measurement (0x0403) clusters implemented.

    AminGat said:
    Also how do you decrypt packets with network key ? Is there any documentation about it ?

    If you have the network key you can add it in Wireshark the same way the ZigbeeAlliance09 and Nordic Examples keys are added in Configuring Wireshark for Zigbee.

    Best regards,
    Marte

Reply
  • Hi,

    I do not see any packets related to the sensor being sent in the sniffer log. How are you trying to set up so that the coordinator receives the events from the sensor?

    uart:~$ zdo match_desc 0xffff 0xffff 0x0104 2 0x0402 0x0403 0

    Make sure to use the correct cluster ID for the clusters implemented on your device. The format of the match_desc command is as follows:

    zdo match_desc h:dst_addr
                   h:req_addr h:prof_id
                   d:n_input_clusters [h:input cluster IDs ...]
                   d:n_output_clusters [h:output cluster IDs ...]

    So in the above you are sending for a match descriptor request for devices with the Temperature Measurement (0x0402) and Pressure Measurement (0x0403) clusters implemented.

    AminGat said:
    Also how do you decrypt packets with network key ? Is there any documentation about it ?

    If you have the network key you can add it in Wireshark the same way the ZigbeeAlliance09 and Nordic Examples keys are added in Configuring Wireshark for Zigbee.

    Best regards,
    Marte

Children
Related