Other Parts Discussed in Thread: SYSCONFIG, Z-STACK
This is a direct continuation of this thread: LAUNCHXL-CC26X2R1: No router response at AF commands - Zigbee & Thread forum - Zigbee & Thread - TI E2E support forums
I have set ZCL_CLUSTER_ID_GENERAL_ON_OFF as an input and output cluster now.
I also have disabled Green Power as it has no use and have added bdb commitioning and it does the binding automaticaly.
I have added in the zclSampleSw_processAfIncomingMsgInd function the following lines:
if(afMsg.cmd.DataLength==3 && afMsg.clusterId == 0x06){
zclSampleSw_DstAddr.addrMode = afMsg.srcAddr.addrMode;
zclSampleSw_DstAddr.endPoint = afMsg.endPoint;
zclSampleSw_DstAddr.addr.shortAddr = afMsg.srcAddr.addr.shortAddr;
Zstackapi_getZCLFrameCounterReq(appServiceTaskId, &rsp);
zclGeneral_SendOnOff_CmdToggle( SAMPLESW_ENDPOINT, &zclSampleSw_DstAddr, 0, rsp.zclFrameCounter );
so when I toggle relay from ZR the LED in ZC turns on but I still don't get a response that it did receive the command and turned on the LED.
This appears to be a problem only on AF commands, for example I always get responses from ZDO commands