parsing OpenBCI data stream in Processing
Hello to everyone!
I'm experiencing some problems trying to read OpenBCI data in a Processing application I'm developing. The problem that I have is that each byte that I read seems to be equal to 0: did anyone already experience this problem before?
I posted my code on https://gist.github.com/anonymous/f6e8d791cc909c947194e444686ac579. What I do in the application is to read each byte sent on the Serial Port; if a byte is equal to 0xA0, then I consider it as the starting byte of the packet, and when I find a byte equal to 0xC0 I consider the packet complete (there are several corner - cases that I need to consider, and I'll implement several controls as soon as I solve the problem).
If I print out the byte that I read, I obtain: 0 0 0 0 0 0 ...
Thank you in advance for your help.
Davide

Comments