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.

give me some advice about how to control anyone of the been binded devices.请教在HomeAutomation例程中如何单独控制绑定表中的某一设备

TI工程师:

     你好,我目前使用HomeAutomation中的例程已实现绑定,绑定后通过按键可控制目标设备LED翻转,但在绑定表里的所有设备的LED都会翻转。所以请教下如何通过zclGeneral_SendOnOff_CmdToggle( SAMPLESW_ENDPOINT, &zclSampleSw_DstAddr, false, 0)或者zcl_SendCommand()实现控制绑定表中的任一设备。比如我设置绑定表最大为4。我现在想控制表中的第二个设备翻转,该怎么操作。

 非常感谢!

 

Dear TI engineer:

 Now,I'm studying "HomeAutomation" and I have binded 2 Light devices to the Switch device.And when I push SW1,which will call zclGeneral_SendOnOff_CmdToggle( SAMPLESW_ENDPOINT, &zclSampleSw_DstAddr, false, 0),the LED of 2 Light devices will toggle.So I wanna to know How to Control someone Light Device toggle rather than All The Devices by using zclGeneral_SendOnOff_CmdToggle() or zcl_SendCommand() or some other methods.

Thanks in advance!

  • 你是想一个按键控制多个灯?

  • 问题已经解决,被网上的一句“绑定后即可使用一个无效的地址来代替目标地址”误导了。另外请教一个问题,协调器使用按键触发允许其他设备加入,调用这个函数NLME_PermitJoiningRequest()。那么设备绑定入网是使用ZDP_EndDeviceBindReq()还是ZDP_MatchDescReq()。测试了一下设备要使用EndDeviceBindReq(),同时协调器也要使用EndDeviceBindReq()才能绑定。有没有一个绑定函数是协调器只需要触发允许其他设备入网然后设备通过按键触发这个函数就能自动绑定到协调器上的。

    十分感谢!

  • 你好,请问你用zcl_SendCommand()控制任一设备是怎样子实现的?希望能指点一下,谢谢

  • 有问题可以加我QQ87906234,或者给我QQ发邮件

x 出现错误。请重试或与管理员联系。