Home/Support/Support Forum/Problems with Xbee java library

Problems with Xbee java library

0 votes
hi

i was trying the xbee java library with (Zigbee protocol), and i got this error when i launch the application..

WARNING: RXTX Version mismatch
Jar version = RXTX-2.2pre1
native lib Version = RXTX-2.2pre2
Sending broadcast data: 'Hello XBee World!' >> Error
com.digi.xbee.api.exceptions.TimeoutException: There was a timeout while executing the requested operation.
at com.digi.xbee.api.AbstractXBeeDevice.sendXBeePacket(AbstractXBeeDevice.java:989)
at com.digi.xbee.api.AbstractXBeeDevice.sendAndCheckXBeePacket(AbstractXBeeDevice.java:1167)
at com.digi.xbee.api.XBeeDevice.sendData(XBeeDevice.java:686)
at com.digi.xbee.api.XBeeDevice.sendBroadcastData(XBeeDevice.java:825)
at proyectoxbee.ProyectoXbee.main(ProyectoXbee.java:37)


Also i check the other xbee in the xctu and i receive the packet correctly.



Then i change the xbee modules by xbee wifi and i got another error but this time when the application try to open the connection, it says something like :

java.lang.IllegalArgumentException: Address cannot contain more than 2 bytes.


Thank you
asked May 7, 2015 in ZigBee Smart Energy Profile 1.1 by jsueprez New to the Community (0 points)

Please log in or register to answer this question.

3 Answers

0 votes
Hi,

Could you give us more details about the modules you're using when trying to send the broadcast message (protocol, model, firmware version...)?

Regarding your second problem, note that the XBee Java Library does not support the XBee WiFi modules, it only supports ZigBee, 802.15.4, DigiMesh, and Point-to-Multipoint devices.

Kind regards.
answered May 26, 2015 by rmoral New to the Community (12 points)
0 votes
Hi, I have the same problem have you any idea how to resolve it ?
answered Nov 26, 2015 by marie New to the Community (2 points)
0 votes
I also, the same problem
answered Nov 29, 2015 by ExXxtremo New to the Community (1 point)
Hi ExXtremo chek your xbee configuration in XCTU and enable API mode to 1 for both router and coordinator
...