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.

CC2652 Zigbee Green Power Commissioning

Other Parts Discussed in Thread: SYSCONFIG

已经从官网商城中购入两套 CC26X2R LaunchPad,准备利用 TI 官方提供的 SimpleLink CC26X2 SDK 的 GPD 和 GP Sink 例程构建符合ZigBee Alliance 发布的 《ZigBee PRO Green Power feature Specification》 (ZigBee Document 095499) Green Power Device 和 具有 Green Power Sink 功能的网关。

但当我按照TI 官方提供的 SimpleLink CC26X2 SDK 的 Green Power On/Off Switch APP (gpd_switch_CC26X2R1_LAUNCHXL_tirtos_ccs) 和

Zigbee Coordinator Light Sink Example App (zc_light_sink_CC26X2R1_LAUNCHXL_tirtos_ccs) 进行 Commissioning 和 Paring 时,我发现SimpleLink CC26X2 SDK所提供的这两个例程并没有提供如《ZigBee PRO Green Power feature Specification》 (ZigBee Document 095499) 给出的 GP commissioning Procedure 进行 Commissioning 和 Paring。具体讲就是 gpd switch 在开始 Commissioning 时没有产生 channel request 的 GPDF,GP Sink 也没有接收处理由 GPD 发出的 channel request 的 GPDF,而是需要在配置信息中分别给出具体的 Channel 和 Commissioning 配置信息。
请问,TI 官方是否有给出符合ZigBee Alliance 发布的 《ZigBee PRO Green Power feature Specification》 (ZigBee Document 095499) 规范中的 GP commissioning Procedure 例程和解决方案?
多谢您的回复!

  • 所有i例程已经包含在SDK中了
    看下这里的说明dev.ti.com/.../node
  • 多谢您的回复。我已经找到这个SDK并参考了SDK所提供的例程,但是没有看到或找到这个SDK所提供的例程如何处理符合Zigbee Green Power 规范的来自 GPD 的 Channel Request GPDF并给出 Channel Configuration Command 从而完成 Commissioning 和 Pairing。我在例程中也看到了相应的 Channel Configuration Process 和 Send Channel Configuration Command API 函数,但查看了例程,这两个API 函数并没有在例程中被实际调用。所以想问 TI 是否给出了解决方案。多谢您费心再次帮忙找到解决方案!
  • 你用的SDK版本是目前最新的4.40嗎? SDK 4.40 的gpd_switch例程文件已經有說明如下了

    Green Power Commissioning screen
    
    Send the On/Off GPDF from the Green Power Device Switch which has Auto-Commissioning enabled. Then from the Green Power Sink Commissioning Screen disable the GP commissioning mode.
    
    Once the GP commissioning mode is disabled, sending the On/Off GPDF with the Green Power Device Switch will toggle the Light Sink LED and the Application status line will be updated accordingly.

  • 确定现在使用的SDK是4.40的。我知道这个例程中的 Commissioning 过程,也按照这个例程文件中的说明实现了 GPD 与 GP Sink 之间的 Commissioning 和 Paring,完全没有问题。
    我的问题是这个Commissioning过程和Zigbee Green Power规范中给出的GP Commissioning过程有很大的不同,规范中给出的GPD是要先通过 Channel Request GDPF 向 GP Proxy 和 Sink 请求可用的工作信道,GP Proxy 和 Sink接收到信道请求的Channel Request GDPF后进行相应的处理,并向GPD发送 Channel Configuration Command ,从而告知GPD相应的工作信道和配置信息,GPD按照这个信道和配置信息开始进入Commissioning。从 4.40 SDK给出的例程上看,信道的配置信息是通过 SysConfig 文件实现的,从而不需要使用Channel Request和Channel Configuration的方式。但我们要做的项目是需要通过Channel Request和Channel Configuration实现信道配置从而启动Commissioning和Pairing的。
    所以还是想问是否TI官方能够给出符合Zigbee Green Power规范中Channel Request和Channel Configuration的方式的Commissioning和Pairing解决方案。
  • 例程gpd_switch中用到了,你可以在 gpd_sw.c中查看
    //Send the frame
    GreenPowerDataFrameSend(&gpdfReq ,gpdChannel, TRUE);
  • 非常感谢您的回复!
    对于例程gpd_switch,我已经在程序中周期性调用了GreenPowerDataFrameSend(&gpdfReq ,gpdChannel, TRUE) 函数,并在 11~26 信道周期性产生发出了 Channel Request 信号,这部分没有什么问题。
    主要的问题是在 Sink 例程中。我使用了 SDK 给出的zc_light_sink例程,按照例程说明的步骤是可以和gpd_switch进行Commissioning和Pairing。但是用 Wireshark 进行抓包分析时,发现例程中的gpd_switch进行Commissioning和Pairing过程并不是按照 Zigbee联盟的Zigbee Green Power 规范给出的Commissioning流程,GPD 发出 Channel Request, GPP/GPS 给出Channel Configuration响应,确定通信信道和参数后才开始进行Commissioning。而是通过Sysconfig 提前设定了通信信道等参数,随后程序中直接使用这些参数来进行Commissioning和Pairing的。
    我目前从事的项目要求安按照Zigbee联盟的Zigbee Green Power 规范给出的Commissioning流程来进行Commissioning和Pairing,因此来论坛看看是否能找到解决方案和建议。
    再次感谢您的工作!
  • 例程是在初始化中加入了这些参数设置
    在zclSampleLight_initParameters中