Skip to content

TimeOut Exception #60

Open
Open
@shankara-n

Description

@shankara-n

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)
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions