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.

[参考译文] CC2530:ZCL 通用位置

Guru**** 2540720 points
Other Parts Discussed in Thread: Z-STACK

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum/567198/cc2530-zcl-general-location

器件型号: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

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好 Barry、

    堆栈已经计算了相邻器件的 RSSI 平均值、因此您不需要在该回调中使用该参数、而是可以从相邻器件表或关联表中检索 RSSI 平均值、 只需查看链接信息->rxLqi,它位于与您所要求的设备关联的条目中。

    希望这对您有所帮助!
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Luis:

    感谢您提供有用的信息。 我在 Z-Stack 中找到了一些涉及“linkInfo->rxLqi”的地方。 它们都位于 ZDRApp.c 和 ZDObject.c 中 这些与以下职能和结构有关:

     

    ZDO_ProcessMgmtLqiReq( zdoIncomingMsg_t *inMsg )

    ZDO_JoinConfirmCB (uint16 PanId、ZStatus_t Status)

     

    关联的设备_t

     

    但是、在 Z-Stack API.pdf 或我从 TI 网站找到的其他文档中、没有有关这些函数/结构用法的说明。 您是否会更具体地告诉我如何访问应用程序框架层内的邻居表或关联表? 非常感谢。

     

    BR、

    Barry

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Barry、

    您可以通过添加头文件 assocList.h 和 nwk_util.h 直接查看此结构

    AssociatedDevList[]

    邻居表[]

    对于关联表、有此搜索函数 AssocGetWithShort、我没有看到返回邻居的函数、但您可以在数组中搜索它。

    希望这对您有所帮助!