This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TI-Zstaack中Group Scene的实现过程?

 请教ti问题:

想要实现一个情景功能:一个情景开关,一个on/off设备(2个ep),情景1 全on,情景 2 全off

问题1:Add scene 和 Store Scene有什么区别?

Add scene数据包中的Extension field sets,是告诉设备情景想要控制的目标状态

Store Scene需要用户新增回调,将当前的状态获取,作为情景想要控制的目标状态

问题2:

协调器向on/off设备发送Add Scene 还是 Store Scene?

协调器向情景设备发送Add Scene 还是 Store Scene?

谢谢。

  • ZED 可以通过zclGeneral_SendAddScene 去添加场景。
    zclGeneral_SendAddScene(SAMPLESW_ENDPOINT, &dstAddr, &nightScene, FALSE, Rsp.zclFrameCounter);
    以及通过zclGeneral_SendSceneRecall去管理场景。

    ZC 可以通过zclGeneral_SendSceneStore 设置ZED 的场景。
    下面是我们提供的一个IAS的zone 的例子可以通过 git clone 去下载
    git.ti.com/.../z-stack-example-apps
  • IAS的zone 的例子??与Group Scene有什么关系?
  • 那个例子使用group scene 你可以去作为一个参考
  • 您好:
    步骤如下是否正确?

    (1)Add Group ,协调器发送;

    (2)Store Scene,协调器发送;
    on /off设备必须要有回调获取目标控制状态。情景设备可以不需要

    这里也可以发送Add Scene,但是对on /off设备必须要有Extension field sets字段,情景设备可以不需要;

    (3)Recall Scene,情景设备广播

    谢谢
  • 你可以下载那个例程去看一下,这要却决于你的具体应用场景。

    举例说明:

    light 作为协调器 switch 作为终端:
    switch 去发送Add Group 和Add Scene, switch 去发送Recall Scene去控制light。
    实际应用中Store Scene很少用到。
    为了更好帮助你理解和应用group和scene 请看下面的文档中:Part 2: Groups and Scenes Clusters
    dev.ti.com/.../node