主题中讨论的其他器件:SIMPLELINK-CC13X2-26X2-SDK
你好!
我正在尝试使 Zigbee 基础项目正常工作。 问题是、在进行通信并通过 btn2的印刷机发送消息(由监听器确认)后 、在第二个电路板的 zclSampleSw_processAfIncomingMsgInd 中没有接收到包含 ID = 0xf00d 的数据包。 我出了什么问题?
我连接协调器和路由器项目以及 ubiqua 捕获。
发送代码(zc_light 项目的唯一修改):
Zstack_LongAddr_t bindAddr; uint16_t shortAddr = 0; uint8_t EP = 0; uint8_t transID = 0; uint8_t theMessageData[]={"\0\0\30Hello World"};
静态空 zclSampleLight_processKey (uint8_t key、button_EventMask buttonEvents) { if (buttonEvents & button_ev_clicked) { if (key ==CONFIG_BTN_LEFT) { Zstack_bdbStartCommissioningReq_t Zstack_bdbStartCommissioningReq; zstack_bdbStartCommissioningReq.commissioning_mode = zclSampleLight_BdbCommissioningModes; Zstackapi_BdbStartCommissioningReq (appServiceTaskId、&ZStack_BdbStartCommissioningReq); } if (key ==CONFIG_BTN_RIGHT) { ZStack_getZCLFrameCounterRsp_t PRSP; Zstackapi_getZCLFrameCounterReq (appServiceTaskId、&PRSP); MessageData[1]= transID++; Zstack_afDataReq_t pReq; pReq.dstAddr.addrMode = ZStack_AADDRMode_broadcast; pReq.dstAddr.addr.shortAddr = 0xFFFF; pREQ.dstAddr.endpoint = EP; pREQ.pRelayList =空; pREQ.n_RELAYLIST = 0; pREQ.srcEndpoint = SAMPLELIGHT_终结 点; pREQ.clusterID = 0xF00D; pReq.transID =&(PRDS.zclFrameCounter); pREQ.options.ackRequest = false; pREQ.options.apsSecurity = true; pREQ.options.limitConcentrator = false; pReq.options.skipRouting = false; pReq.options.suppressRouteDisc = false; pREQ.options.nandcardProfileID = false; pREQ.radius = AF_DEFAULT_RADIUS; pREQ.n_PAYLOAD = sizeof (MessageData); pReq.pPayload = MessageData; Zstackapi_AfDataReq (appServiceTaskId、&pReq); } }
为了接收、我使用了不进行任何修改的 ZR_SW 工程。