This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

zb_zcl_ias_zone.h is out dated !

8.2.2.4.1 Zone Status Change Notification Command

According to the spec and the device I am communicating with the Change Notification Req is defined as below:

Bits                      16                        8                          8              16

Data Type        map16                 map8                    uint8        uint16

Field Name  Zone Status        Extended Status     Zone ID     Delay

But the code have it implemented as:

File: zb_zcl_ias_zone.h

/*! @brief Structure representsation of Zone Status Change Notification
 * see ZCL spec 8.2.2.4.1.1 */
typedef ZB_PACKED_PRE struct zb_zcl_ias_zone_status_change_not_s
{
  /** Zone Status, see @ref zb_zcl_ias_zone_zonestatus_e*/
  zb_uint16_t zone_status;
  /** Extended Status */
  zb_uint8_t extended_status;
} ZB_PACKED_STRUCT zb_zcl_ias_zone_status_change_not_t;

  • Hi Jimmy,

    I think this is fixed in the new SDK release which came out this week, in nRF5 SDK for Thread and Zigbee v3.0 it is defined like this:

    /******************************* Zone Status Change Notification ******************************/
    
    /*! @brief Structure representsation of Zone Status Change Notification
     * see ZCL spec 8.2.2.4.1.1 */
    typedef ZB_PACKED_PRE struct zb_zcl_ias_zone_status_change_not_s
    {
      /** Zone Status, see @ref zb_zcl_ias_zone_zonestatus_e*/
      zb_uint16_t zone_status;
      /** Extended Status */
      zb_uint8_t extended_status;
      /** Zone ID*/
      zb_uint8_t zone_id;
      /** Delay */
      zb_uint16_t delay;
    } ZB_PACKED_STRUCT zb_zcl_ias_zone_status_change_not_t;
    

    Best Regards,

    Marjeris

  • Thanks, is there any porting information about what needs to change when compiling using the new SDK ? 

    I get some strange error after changing the SDK, guessing there are some files that should be changed or defines that needs to be added.

Related