digidotcom / xbee-csharp

C# library to interact with Digi International's XBee radio frequency modules from mobile devices.
Mozilla Public License 2.0
14 stars 8 forks source link

Timeout sending to remote device #8

Open CameronMease opened 4 years ago

CameronMease commented 4 years ago

On the Windows platform, calling ZigBeeDevice.SendData to send data to a remote XBee module, the call times out in AbstractXBeeDevice.SendXBeePacket(). See image: image

I verified that the remote device did receive the data. Is this expected behavior?

rubenmoral commented 4 years ago

Hi @CameronMease,

I am not able to reproduce your issue on my side. The TimeoutException is thrown when the local module has not received a Transmit Status packet, which indicates the result of the transmission. For some reason, the library is not receiving that packet from the module, so it throws the exception.

What modules are you using? How large is the network?

pgogte commented 2 years ago

Hi I am facing the same problem. Interestingly I get this only for a broadcast. SendData to a known radio works but SendBroadcastData sometimes throws up TimeoutException.

2021-11-10 12:30:58.499 +03:00 [ERR] Could not transmit packet to 000000000000FFFF 18 bytes XBeeLibrary.Core.Exceptions.TimeoutException: There was a timeout while executing the requested operation. at XBeeLibrary.Core.AbstractXBeeDevice.SendXBeePacket(XBeePacket packet) at XBeeLibrary.Core.AbstractXBeeDevice.SendAndCheckXBeePacket(XBeePacket packet, Boolean asyncTransmission) at XBeeLibrary.Core.AbstractXBeeDevice.SendData(XBee64BitAddress address, Byte[] data) at XBeeLibrary.Core.XBeeDevice.SendBroadcastData(Byte[] data)