You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
My Code
`
from digi.xbee.models.address import XBee64BitAddress, XBee16BitAddress, XBeeIMEIAddress
from digi.xbee.devices import RemoteXBeeDevice, DigiMeshDevice, XBeeDevice
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 = XBeeDevice(PORT, BAUD_RATE)
device.open()
device.add_data_received_callback(my_data_received_callback)
`
The text was updated successfully, but these errors were encountered: