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

Scene Extension field sets

Hi.

 

I want to configure a scene when I create it on a node. So I need to use the Extension field sets, described in the ZCL 3.7.2.4.2.1. I see that the stack has a macro named ZB_ZCL_SCENES_INIT_FIELDSET that can be used for that purpose. Has anyone worked with it and can give me a clue on how to actually use it?

 

Additionally I want to be able to read back my scene configuration.

ZCL 3.7.2.5.2.1 describes the payload format for a View Scene Response. The extension field sets are also defined here. In the structure used to parse the ViewSceneResponse from the stack (zb_zcl_scenes_view_scene_res_fixed_size_s) no extension field defined.

Does that mean it really is not included in the response passed from the stack or is it just not handled in the struct?

Or is there any other way to read back these extension field sets?

Best Regards

Lutz

Parents
  • Hi Lutz

    After searching the DevZone archive, I'm afraid it seems this has not been discussed here before, but that doesnt' mean it hasn't been used by anyone, so users are welcome to add any information. In the zb_zcl_scenes.h header file of the Zigbee SDK there is a small description on the function and its parameters: 

    /** @brief Adds fieldset into the buffer for sending command
        @param cmd_struct_ptr - pointer to the place in the buffer to put data to
        @param cluster identifier the fieldset under consideration belongs to
        @param fs_length - summary length of the attributes in the fieldset
        @attention The order of the attribute values in the fieldset is significant
    */
    #define ZB_ZCL_SCENES_INIT_FIELDSET(cmd_struct_ptr, cluster, fs_length) \
      {                                                                     \
        ZB_ZCL_PACKET_PUT_DATA16_VAL((cmd_struct_ptr), (cluster));          \
        ZB_ZCL_PACKET_PUT_DATA8((cmd_struct_ptr), (fs_length));             \
      }

    As for the View Scene Response, I have asked our Zigbee development team for , as I'm not able to answer what the case is for the extension field here. I'll update you when I hear back from the devs.

    Best regards,

    Simon

Reply
  • Hi Lutz

    After searching the DevZone archive, I'm afraid it seems this has not been discussed here before, but that doesnt' mean it hasn't been used by anyone, so users are welcome to add any information. In the zb_zcl_scenes.h header file of the Zigbee SDK there is a small description on the function and its parameters: 

    /** @brief Adds fieldset into the buffer for sending command
        @param cmd_struct_ptr - pointer to the place in the buffer to put data to
        @param cluster identifier the fieldset under consideration belongs to
        @param fs_length - summary length of the attributes in the fieldset
        @attention The order of the attribute values in the fieldset is significant
    */
    #define ZB_ZCL_SCENES_INIT_FIELDSET(cmd_struct_ptr, cluster, fs_length) \
      {                                                                     \
        ZB_ZCL_PACKET_PUT_DATA16_VAL((cmd_struct_ptr), (cluster));          \
        ZB_ZCL_PACKET_PUT_DATA8((cmd_struct_ptr), (fs_length));             \
      }

    As for the View Scene Response, I have asked our Zigbee development team for , as I'm not able to answer what the case is for the extension field here. I'll update you when I hear back from the devs.

    Best regards,

    Simon

Children
No Data
Related