主题中讨论的其他器件: CC2652R、 Z-stack
我正在尝试实现 具有 OTA 软件狗 示例的协调器(cc2538与 ZStack 3.0.2)与具有通用示例的路由器(具有最新 SDK 的 cc2652R)之间的远程通信。 我从路由器发送消息、并且可以在数据包监听器中看到它、但协调器没有收到消息。 我必须做些什么才能使它正常工作?
数据包的屏幕截图:

路由器代码:
if(_btn == gRightButtonHandle)
{
zstack_getZCLFrameCounterRsp_t pRsp;
Zstackapi_getZCLFrameCounterReq(appServiceTaskId, &pRsp);
StubAPS_SetInterPanChannel(0x0F);
dstAddr.addrMode= afAddrBroadcast;
dstAddr.addr.shortAddr = NWK_BROADCAST_SHORTADDR_DEVALL;
dstAddr.endPoint = STUBAPS_INTER_PAN_EP;
dstAddr.panId = 0xFFFF;
static uint8_t inter_msg[] = {"HELLO, WORLD!"};
if(AF_DataRequest(&dstAddr,
&zclGenericAppEpDesc,
0x0000,
sizeof(inter_msg),
inter_msg,
&(pRsp.zclFrameCounter),
AF_DISCV_ROUTE,
AF_DEFAULT_RADIUS) == afStatus_SUCCESS )
{
}
else{
StubAPS_SetIntraPanChannel();
}
//Zstackapi_bdbResetLocalActionReq(appServiceTaskId);
}
