xbee-python
xbee-python copied to clipboard
device.open() returns raise TimeoutException(message="Response not received in the configured timeout.") on UART
Hi guys,
I am encountering this issue where using the XBee module (XBee-Pro S2C 2.4GHz RF) with UART on the Jetson Nano returns this error -> raise TimeoutException(message="Response not received in the configured timeout.") from the function _send_packet_sync_and_get_response.
I tried to debug this by setting the XBee module to be on a known Digimesh network we are using on another setup and configure it to be on transparent mode. Using the UART serial port on the Jetson Nano we were able to receive data from that network. We also tried to use a USB-FTDI explorer board instead of a UART one and it works fine as well. The error only occurs when we are using UART.
This issue seems to be similar to #7 however we are getting the same error when using UART only.
Can anyone help me out with this issue?
Traceback (most recent call last):
File "xbee_library_test.py", line 37, in
Did you happen to have any luck solving this problem? I'm having the same issue with 9XTend-PKG-U.
@tmrose No actually, I wasn't quite sure what was going on as the same setup on the Raspberry Pi 3 works. I was stuck with USB at the movement but I'm trying to see if I get better luck using SPI
I was having the same issue. My problem was that the receiver module had the API mode disabled. Solved it by enabling it.
.open() happens way before network communication, and deals solely with the serial port. Try maybe to communicate with your device with pure serial?
For example:
minicom -D /dev/ttyAMA0 -b 9600
or
minicom -D /dev/ttyS0 -b 9600
Whichever name your port has. On typing "+++" device should respond with "OK".