To clarify, I wanted to confirm the possible first header bytes one could see.
All header bytes must be either
FF = First byte of sync packet
E0 or E8 = Uncompressed EEG (0 or 8 being the flag nibble)
D0 = Error Flags (unlikely to see)
C0 = Compressed EEG
B0 = Battery
A0 or A8 = Accelerometer (0 or 8 being the flag nibble)
90 = DRL/REF (2nd nibble is unused)
00 = Invalid
This will help me a lot in determining whether I have a header byte or just a data value.
Also, is there a range that the number of bits for CEEG values is likely to be? I can’t tell if I’m parsing numbers correctly, which is making it very difficult to correctly parse my data stream.
And finally, to gather a goodly-sized sample of bluetooth data, how many bytes should I gather at once to have a nice set to work with?
Thank you. I’m working on an arduino-based project, so I have to use the data streaming protocol.