在XBee ZigBee中,如何从协调器获取所有终端设备的RSSI [英] In XBee ZigBee, how to get RSSI of all end-devices from coordinator

查看:306
本文介绍了在XBee ZigBee中,如何从协调器获取所有终端设备的RSSI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为每个终端设备获取RSSI的正确方法是什么?

What is the right way to get RSSI for each end-device?

场景:在API模式的XBee Series 2无线电模块上使用ZigBee固件,我有一个协调器和多个终端设备.每隔几秒钟,每个终端设备都会向协调器发送一个数据包,其中包含诸如温度等传感器信息.

Scenario: Using ZigBee firmware on XBee Series 2 radio modules, API mode, I have one coordinator and multiple end-devices. Every few seconds, each end-device sends the coordinator a packet contains sensor information such as temperature...

  1. 我在任何要解析的API框架中都没有看到RSSI字段.

  1. I don't see RSSI field in any API frame to parse.

如果我只是盲目地读取存储了最后一个接收到的数据包的RSSI的pin6(或使用DB命令),我仍然不知道该RSSI属于哪个终端设备.

If I just blindly read pin6 (or using DB command) which stored RSSI of the last received packet, I still don't know which end-device this RSSI belongs to.

推荐答案

我不认为您要接收的任何API框架中都可以将其作为字段使用.您可以使用ATDB命令获取RSSI值,但是在声明状态时,您不知道它与哪个远程设备关联.

I don't believe it's available as a field in any of the API frames you're going to receive. You can use the ATDB command to get an RSSI value, but as you state you don't know which remote device it's associated with.

如果您真正使用的是终端设备(而不是路由器),则可以向每个设备发送远程ATDB命令,并且响应将指示您来自终端设备的父路由器的信号强度,因为所有帧都将来自该单个设备(作为最后一跳).

If you're truly using end devices (and not routers), then you could send a remote ATDB command to each, and the response would give you an indication of the signal strength from the end device's parent router, since all frames will be coming from that single device (as the last hop).

即使使用路由器,也可以保证获得远程AT请求帧的RSSI值-尽管您不知道网状网络中的哪个无线电是到达目标的最后一跳.

Even with a router, you're probably guaranteed to get the RSSI value of the remote AT request frame -- although you won't know which radio on the mesh network was the last hop to your target.

如果您有一个由协调器和终端设备组成的网络,那么协调器就是父级,您将指出终端设备的接收能力,这可能足以满足您的应用要求.

If you have a network of a coordinator and end devices, then the coordinator is the parent and you'll have an indication of how well the end devices are able to receive -- that may be enough for your application.

这篇关于在XBee ZigBee中,如何从协调器获取所有终端设备的RSSI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆