Hi folks I'm new to processing and Java for that matter. I'm writing a simple GUI application to talk to some hardware I have. The communication link is over RS232. The data I'm sending and receiving is not ASCII data but rather raw unsigned 8-bit values.
In writing my application I discovered that the Serial library function readBytes(byteBuffer) works only with signed 8-bit values. I'm a little surprised that there is no readChars(byteBuffer) function. I understand that I can use the readChar() or read() functions but these only return 1 byte at a time which means I need to include extra overhead to "buffer" all the data coming over the wire unlike the readBytes(byteBuffer) function which I could use in conjunction with the buffer(n) function and the serialEvent() handler.
I'm an embedded C guy so sorry if this question seems out of place. In searching around I saw a few other people who were having the same problem but found no elegant solutions.