2
在电平计抽头输出连接到XBee的引脚20 AD0
的Router AT配置中的Xbee系列2应该每隔100 ms发送一次模拟数据。它被设置为ATD02
和ATIR64
。识别在使用Python和python-xbee时从XBee传输的数据
协调器API配置中的Xbee Series 2连接到计算机。
使用XCTU终端,我们可以看到协调器不断从路由器接收Explicit RX Indicator
帧。但是,在Router 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\[email protected]\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\[email protected]\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\[email protected]\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\[email protected]\xb1\x92\x13', 'cluster': '\x00\x92', 'id': 'rx_explicit'}
您认为可能发生了什么?我通过阅读Arduino来检查AD0
处的值,确实有值得阅读。