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.

CC2652R: zcl_SendCommand()发送返回0xC2的问题

Part Number: CC2652R


Hi,

我使用的是simplelink_cc13x2_26x2_sdk_5_10_00_48中的examples(sampleapp)为样板,编出来的coordinator、router和end device。

网络中有1个coordinator,5个router,5个end device。coordinator和router/end device之间用zcl_SendCommand()互相发送数据。

其中router和end device发给coordinator的数据是定期发送,没有出现过问题。

coordinator根据需要向router和end device发送数据,大部分情况下也是正常的。但某个时刻会发现给其中一个router设备发送数据时会返回0xC2,此后再发送就都返回0xC2。但同时这个router发给coordinator的数据还是正常的收发。此时其它所有设备的数据收发还是正常的。

coordinator发送数据的code:

......

zclGateway_DstAddr.panId = _NIB.nwkPanId;
zclGateway_DstAddr.addrMode = (afAddrMode_t)Addr64Bit; 
zclGateway_DstAddr.endPoint = GATEWAY_ENDPOINT;

zcl_memcpy(zclGateway_DstAddr.addr.extAddr, cfg.extAddr, 8);  //指定的router的ext地址

ret = zcl_SendCommand( GATEWAY_ENDPOINT, &zclGateway_DstAddr, ZCL_CLUSTER_ID_XXXX_BASIC,
COMMAND_ID_XXXX, TRUE, ZCL_FRAME_SERVER_CLIENT_DIR,
FALSE, 0, zcl_getFrameCounter(), sizeof(data), (uint8_t *)&data );

......

请问这种情况有可能是什么原因?如何进行debug?谢谢!