路由器 AT 配置中的 Xbee 系列 2 具有连接到 XBee 的引脚 20 AD0 的电位计抽头输出,应该每 100 毫秒发送一次模拟数据。它是用 ATD02 和 ATIR64 设置的。
Coordinator API 配置中的 Xbee Series 2 已连接到计算机。
使用 XCTU 终端,我们可以看到协调器不断从路由器接收 Explicit RX Indicator 帧。然而,路由器 XBee 上没有包含 AD0 读取的模拟数据的帧。
使用 Python 和 XBee 模块,我们也注意到同样的事情,只是接收到 rx_explicit 帧,没有包含模拟数据样本!
{'profile': '\xc1\x05', 'source_addr': '6T', 'dest_endpoint': '\xe8', 'rf_data': '\x01\x00\x00\x01\x02(', 'source_endpoint': '\xe8', 'options': '\x01', 'source_addr_long': '\x00\x13\xa2\x00@\xb1\x92\x13', 'cluster': '\x00\x92', 'id': 'rx_explicit'}
{'profile': '\xc1\x05', 'source_addr': '6T', 'dest_endpoint': '\xe8', 'rf_data': '\x01\x00\x00\x01\x02I', 'source_endpoint': '\xe8', 'options': '\x01', 'source_addr_long': '\x00\x13\xa2\x00@\xb1\x92\x13', 'cluster': '\x00\x92', 'id': 'rx_explicit'}
{'profile': '\xc1\x05', 'source_addr': '6T', 'dest_endpoint': '\xe8', 'rf_data': '\x01\x00\x00\x01\x01\xeb', 'source_endpoint': '\xe8', 'options': '\x01', 'source_addr_long': '\x00\x13\xa2\x00@\xb1\x92\x13', 'cluster': '\x00\x92', 'id': 'rx_explicit'}
{'profile': '\xc1\x05', 'source_addr': '6T', 'dest_endpoint': '\xe8', 'rf_data': '\x01\x00\x00\x01\x01\xce', 'source_endpoint': '\xe8', 'options': '\x01', 'source_addr_long': '\x00\x13\xa2\x00@\xb1\x92\x13', 'cluster': '\x00\x92', 'id': 'rx_explicit'}
你认为可能发生了什么?我通过用 Arduino 读取它来检查 AD0 的值,确实有一个值要读取。
请您参考如下方法:
您期望的框架类型是什么? rx_explicit 帧将包含您的 I/O 数据。您可能需要更改 ATAO(API 选项)设置以控制帧是以 RX Explicit 还是其他帧类型出现。
在您接收的帧上提供负载的十六进制转储,我们可能可以找出数据的格式。我想它看起来像 ATIS 响应的格式。
