AFE packet format

Topic name: ‘deviceID’/afe/binary

Contains multiple samples of raw data from AFE.

Offset

Size

Name

Note

0

12

Device ID

Unique for each device

12

1

Product ID

1 - for foc.us EEG Dev Kit

13

1

Format version

1

14

6

Timestamp

Milliseconds since Epoch

20

2

Sample rate

Samples per second

22

1

Channels mask

0bXXXXXXXX, X - channel ON(1)/OFF(0), LSB - Channel 1

23

1

reserved

24

4

Channel 1 value

Only if enabled. Type - float (uV)

28

4

Channel 2 value

Only if enabled. Type - float (uV)

32

4

Channel 3 value

Only if enabled. Type - float (uV)

36

4

Channel 4 value

Only if enabled. Type - float (uV)

40

4

Channel 5 value

Only if enabled. Type - float (uV)

44

4

Channel 6 value

Only if enabled. Type - float (uV)

48

4

Channel 7 value

Only if enabled. Type - float (uV)

52

4

Channel 8 value

Only if enabled. Type - float (uV)

56

4

Channel 1 value

Only if enabled. Type - float (uV)

...

...

....

...

Speech packet format

Topic name: help/speech

Offset

Size

Name

Note

0

12

Device ID

Unique for each device

12

1

Product ID

1 - for foc.us EEG Dev Kit

13

1

Format version

14

6

Timestamp

Milliseconds since Epoch

20

1

Encoding

1 for LINEAR16 (is only supported at this moment)

21

2

Sample rate

Hertz

23

1

reserved

24

N/A

Audio data