Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TimeOut Exception #60

Open
shankara-n opened this issue Dec 8, 2018 · 0 comments
Open

TimeOut Exception #60

shankara-n opened this issue Dec 8, 2018 · 0 comments

Comments

@shankara-n
Copy link

I have a simple setup of 2 xbee s2c modules and one rpi. Coordinator Xbee on adapter is conneccted to rpi via USB and the router is connected to my laptop throught xctu (I have verified communication by connecteding both through xctu software). My problem is when i try to send any message from coordinator connected to rpi, I get a TimeOutException. I have tried to send data asynchronously, asynchronously and broadcast. All have failed. There is no problem in receiving messages

Coordinator config Profile File
https://drive.google.com/file/d/1cKQTSytdIcGt9pdrIU-YRaW-DdvHDLTx/view?usp=sharing

Router config Profile File
https://drive.google.com/file/d/1HYRM0SXRHhK2-fNxXi3kiyCeFtXfyrfL/view?usp=sharing

My Code
`
from digi.xbee.models.address import XBee64BitAddress, XBee16BitAddress, XBeeIMEIAddress
from digi.xbee.devices import RemoteXBeeDevice, DigiMeshDevice, XBeeDevice

PORT = "/dev/ttyUSB0"
BAUD_RATE = 57600

def my_data_received_callback(xbee_message):
address = xbee_message.remote_device.get_64bit_addr()
data = xbee_message.data.decode("utf8")
print(data)
remote_device = RemoteXBeeDevice(device, address)

#device.send_data_broadcast("Hello XBee World!")
device.send_data(remote_device,"received")

device = XBeeDevice(PORT, BAUD_RATE)
device.open()
device.add_data_received_callback(my_data_received_callback)
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant