2

A Xbee Series 2 in Router AT configuration with a potentiometer wiper output connected to XBee's pin 20 AD0 is supposed to send the analog data every 100 ms. It was set with ATD02 and ATIR64.

A Xbee Series 2 in Coordinator API config is connected to the computer.

Using XCTU terminal, we can see that the Coordinator is constantly receiving Explicit RX Indicator frames from the Router. However there are no frames containing the analog data read by AD0 on the Router XBee.

enter image description here

enter image description here

Using Python with the XBee module, we also notice the same thing, just rx_explicit frames being received and nothing containing the analog data samples!

{'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'}

What do you think may have happened? I checked the value at AD0 by reading it with an Arduino and indeed there is a value to be read.

4

1 回答 1

1

你期待什么框架类型?帧将rx_explicit包含您的 I/O 数据。您可能需要更改ATAO(API 选项)设置来控制帧是作为 RX Explicit 还是其他一些帧类型进入。

在您接收的帧上提供有效载荷的十六进制转储,我们可能可以找出数据的格式。我想它看起来像ATIS响应的格式。

于 2014-02-27T17:16:32.833 回答