Currently I am using Andrew Rapp's XBee Java Api with two XBee 900hp's. I managed to get the PC to send a command to the Arduino to transmit back to the PC and to convert the packet to a useable form. But I am having implementation problems when I try to link in a GUI. It hangs after a while. The example implements a queue but doesn't seem to working correctly.
Some additional info. I did created a processing sketch that sends the command to arduino to dump 32 samples of data (this is processed data, so it is text) and send back to the PC for the processing sketch to read. This seems to be working. I am using it read IMU data (mag, accel, gyro, q, altitude, press and temp). I can rotate the board and data will still come across. I am running at 57600. However, the whole thing transfer into the sketch is slow like there is too much overhead or delay.
Now, when I use the same approach in the actually GUI and I try and rotate the IMU the whole thing hangs after a 100 or so reads.
I would like to convert over to the Digi XBee Java Api (using Processing IDE) and would like to implement the calls to read x-number of packets and put it into a queue which I really need to do. The current listener follows the example for using a concurrentlinked queue on XBeeResponse.
Any help/guidance would be appreciated.