diana4sb / xbee-api

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

Cannot Find the connected Port #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello , I am working in a 64bits MAC with OS X Yosemite and executing the 
xbee-api 0.9 code. When I try to access the Serial Port and execute the 
following code:

xbee.open("/dev/tty.usbserial-142", 9600);

I obtain the following results:

Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
Exception in thread "main" java.lang.IllegalStateException: XBee is not 
connected
    at com.rapplogic.xbee.api.XBee.close(XBee.java:429)

I have checked that the usb port "/dev/tty.usbserial-142" exists .
Any idea ??? 

Original issue reported on code.google.com by gorsa...@gmail.com on 25 Apr 2015 at 9:30

GoogleCodeExporter commented 9 years ago
Just remove the close method in the finally block. Then you will see the 
underlying exception, which is probably due to no 64-bit RXTX, so use Apple 
java 1.6 with -d32. All examples have been updated with code to prevent the 
close exception so I'll close this issue.

Original comment by andrew.rapp@gmail.com on 26 Apr 2015 at 3:56