adeelahmedkhanabbasi / xbee-api

Automatically exported from code.google.com/p/xbee-api
GNU General Public License v3.0
0 stars 0 forks source link

Constant stream of "RXTX error in serialEvent method" log messages #28

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Not sure how to reproduce but if I run my application on Raspberry Pi that 
receives data every 15 seconds from a remote Arduino with XBee then I get a 
infinite loop of:
RXTX error in serialEvent method
java.io.IOException: Input/output error in nativeavailable
    at gnu.io.RXTXPort.nativeavailable(Native Method)
    ...
This causes the entire Pi to lock up when it pins the CPU.

What version of the product are you using? On what operating system?
Using f49adc0eebfe snapshot of the code.
Operating system is Raspbian which is up to date with all updates as of June.

Please provide any additional information below.

Original issue reported on code.google.com by shingtr...@gmail.com on 29 Jul 2014 at 12:48

GoogleCodeExporter commented 8 years ago
I believe this is caused when the serial connection is lost to the XBee via 
XBee explorer USB dongle. It happens with my setup even when nothing is touched 
so it could be a hardware issue. You can also reproduce this by unplugging the 
XBee adapter and the xbee-api library will go into an infinite loop using up 
100% of the CPU.

The RxTxSerialComm constantly gets serialEvent callbacks indicating there is 
data but when it checks the bytes available on the input stream that throws an 
exception. The library should send some sort of notification to the calling 
program and close the port.

Original comment by shingtr...@gmail.com on 29 Jul 2014 at 3:14