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.

    Ok, I found the answer to the second part of my question:

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

    All I need is actually in the buffer. It is just not handled by the macro “ZB_ZCL_SCENES_GET_VIEW_SCENE_RES_COMMON” and not included in the structure “zb_zcl_scenes_view_scene_res_fixed_size_s”.

    Looking at the buffer from the response I see:

    00 70 4A 02 02 00 00 06 00 01 01 08 00 01 FE 00 03 0B F8 75 24 69 00 11 D0 00 00 19 00                        

    Meaning:

    00          - Status

    70 4A     - Group 4A 70

    02          - Scene ID

    02 00     - Transition Time 00 02

    00          - String

    Extension Fields:

                    06 00     - Cluster On/Off (ZCL 3.8.2.6)

                    01          - lenth 1

                    01          - state 1

                   

                    08 00     - Cluster Level (ZCL 3.10.2.6)

                    01          - lenth 1

                    FE         - level 99 %

                   

                    00 03     - Cluster Color Control (ZCL 5.2.2.5)

                    0B          - lenth 11

                    F8 75     - CurrentX

                    24 69     - CurrentY

                    00 11     - EnhancedCurrentHue

                    D0         - CurrentSaturation

                    00         - ColorLoopActive

                    00         - ColorLoopDirecti

                    19 00     - ColorLoopTime

    By extending the macro and the structure, this works for me. That might help others struggling with Scene extension fields.

     

    The first part of my question still remains:

    How I configure a scene when I add it using the macro ZB_ZCL_SCENES_INIT_FIELDSET?

Reply
  • Hi.

    Ok, I found the answer to the second part of my question:

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

    All I need is actually in the buffer. It is just not handled by the macro “ZB_ZCL_SCENES_GET_VIEW_SCENE_RES_COMMON” and not included in the structure “zb_zcl_scenes_view_scene_res_fixed_size_s”.

    Looking at the buffer from the response I see:

    00 70 4A 02 02 00 00 06 00 01 01 08 00 01 FE 00 03 0B F8 75 24 69 00 11 D0 00 00 19 00                        

    Meaning:

    00          - Status

    70 4A     - Group 4A 70

    02          - Scene ID

    02 00     - Transition Time 00 02

    00          - String

    Extension Fields:

                    06 00     - Cluster On/Off (ZCL 3.8.2.6)

                    01          - lenth 1

                    01          - state 1

                   

                    08 00     - Cluster Level (ZCL 3.10.2.6)

                    01          - lenth 1

                    FE         - level 99 %

                   

                    00 03     - Cluster Color Control (ZCL 5.2.2.5)

                    0B          - lenth 11

                    F8 75     - CurrentX

                    24 69     - CurrentY

                    00 11     - EnhancedCurrentHue

                    D0         - CurrentSaturation

                    00         - ColorLoopActive

                    00         - ColorLoopDirecti

                    19 00     - ColorLoopTime

    By extending the macro and the structure, this works for me. That might help others struggling with Scene extension fields.

     

    The first part of my question still remains:

    How I configure a scene when I add it using the macro ZB_ZCL_SCENES_INIT_FIELDSET?

Children
No Data
Related