请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:CC2530 Thread 中讨论的其他器件:Z-stack
尊敬的所有人:
在07-5123-06-ZigBee-cluster-library-specification 中,3.13.2.4.5 RSSI Ping 命令。 由于 zdoIncomingMsg_t 结构没有 RSSI 值字段,pfnLocationRsp 函数如何知道 RSSI 的值?
// zclGeneral_ProcessInLocationClient()内的代码
case COMMAND_LOCATE_RSSI_ping: if ( PCBs->pfnLocationRsp ) { rsp.un.locationType =*pData; rsp.srcAddr =&(pInMsg->msg->srcAddr); rsp.cmdID = pInMsg->hdr.commandID; //通知应用程序 pcs->pfnLocationRsp(&rsp ); } 中断; //... 其他代码
typedef 结构 { osal_event_hdr_t hdr; zAddrType_t srcAddr; uint8 wasBroadcast; cid_t clusterid; uint8 SecurityUse; uint8. TransSeq; uint8. asdualen; uint16 macDestAddr; uint8 *ASDU; uint16 macSrcAddr; }zdoIncomingMsg_t;
BR、
Barry