Cyton data format - why choose 0xA0 as header byte? Can it occur in the eeg data bytes?
Hello,
I'm trying to write some software for parsing packets of EEG data.
I'm trying to write some software for parsing packets of EEG data.
I want to know why OpenBCI choose 0xA0 (160) as the sync/start byte? Can that specific number not occur in the data itself?
Thanks,
Thanks,
Mark
Comments
The packets are broken up into different arrangements of bytes.
They are always in the correct order, but the first byte isn't always the sync byte. (i.e. the first byte I might receive might be half way through the packet and it will carry on from there)
I suppose, I'll just have to scan for the sync byte, then start a buffer, and 32 bytes later, check to see if that byte is the footer. If not, then I started on a sync byte that just happened to occur in the EEG or Aux data.