Understanding packet data format

edited December 2014 in Software
Hey OpenBCI community,

I'm trying to understand the serial interface here so I can write a module for openFrameworks and Unity.

I see this is the (ideal) format:

0: Start_char 0xA0
1: Length of payload
2-5: Sample number
6-9: Chan0
10-13: Chan1
14: Chan2
18: Chan3
22: Chan4
26: Chan5
30: Chan6
34-37: Chan7
38: End_char 0xC0

So I print out the size of packets I see, and it's 95% like this. However, I'm seeing a handful of length 6 packets (which I could probably understand) but also a spattering of bogus sizes. 17,18, 27.

Any ideas for what this might be?

Cheers,
Dan


Comments

Sign In or Register to comment.