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.
1、我是用debug打断点的方式测试的,设备查询、添加、删除群组是zclGeneral_HdlInSpecificCommands中的断点能收到数据,遥控器控制的时候,zclGeneral_HdlInSpecificCommands中的断点就无反应,遥控器在客户那边可以跟别的设备配对、控制ok的。
2、是触控开关的时候,自己发一个开关的状态给网关,网关来通知手机软件,然后软件界面更新状态。我通过这种方式发送始终不成功,是否因为调用该方法不能发给网关,还是传参错误,还是里面的zcl_destAddr赋值错误。cl_SendCommand( endPoint, &zcl_destAddr, ZCL_CLUSTER_ID_GEN_ON_OFF,cmd, TRUE, ZCL_FRAME_CLIENT_SERVER_DIR,TRUE, 0, zcl_SeqNum, 0, NULL);
1,你在应用层是否有注册对Scene命令的处理
参考Z-Stack Lighting 1.0.2里面的代码
static zclGeneral_AppCallbacks_t zllSampleLight_GenCmdCBs =
{
zllSampleLight_BasicResetCB, // Basic Cluster Reset command
zllSampleLight_IdentifyCB, // Identify command
#ifdef ZCL_EZMODE
NULL, // Identify EZ-Mode Invoke command
NULL, // Identify Update Commission State command
#endif
zllSampleLight_IdentifyEffectCB, // Identify Trigger Effect command
zllSampleLight_IdentifyQueryRspCB, // Identify Query Response command
zllSampleLight_OnOffCB, // On/Off cluster commands
zllSampleLight_OnOff_OffWithEffectCB, // On/Off cluster enhanced command Off with Effect
zllSampleLight_OnOff_OnWithRecallGlobalSceneCB, // On/Off cluster enhanced command On with Recall Global Scene
zllSampleLight_OnOff_OnWithTimedOffCB, // On/Off cluster enhanced command On with Timed Off
#ifdef ZCL_LEVEL_CTRL
zclLevel_MoveToLevelCB, // Level Control Move to Level command
zclLevel_MoveCB, // Level Control Move command
zclLevel_StepCB, // Level Control Step command
zclLevel_StopCB, // Level Control Stop command
#endif
#ifdef ZCL_GROUPS
NULL, // Group Response commands
#endif
#ifdef ZCL_SCENES
zllSampleLight_SceneStoreCB, // Scene Store Request command
zllSampleLight_SceneRecallCB, // Scene Recall Request command
NULL, // Scene Response command
#endif
#if ZCL_ALARMS
NULL, // Alarm (Response) commands
#endif
#ifdef SE_UK_EXT
NULL, // Get Event Log command
NULL, // Publish Event Log command
#endif
NULL, // RSSI Location command
NULL // RSSI Location Response command
};
2,目的地址的endpoint对吗?另外网关On/OFF应该是client,你的开关的ON/OFF应该是server吧。你可以report Attribute试试。
查看你返回使用的目的地址还有发送方式对不对。如果使用zclSampleLight_DstAddr.addrMode = (afAddrMode_t)AddrNotPresent; 查看目的地址是否正确