This Ethernet sniffer was designed to work together with the medical device for EEG acquisition
BrainNet36® (BNT36), from EMSA Equipamentos Médicos Ltda.
BrainNet36® has 36 channels, A/D converters with 16 bit accuracy, conversion time of 10 µs and Ethernet communication interface.
Being a device for clinical purposes, BrainNet36® does not export data online. This sniffer was developed to allow online processing
by working in promiscuous mode and recording data in a plain text file.
UDP packet:
[ Ethernet | IP | UDP | BNT36 header | Data [(sample 1: ch-1, ch-2,...,ch-36),(sample 2),...,(sample 20)] | Ethernet trailer]
<-----------><---><----><------------><-------------------------------------------------------------------><----------------->
14 20 8 30 36*2*20 = 1440 4 Bytes
<------------------------------------>
72 Bytes
<--------------------------------------------------------------------------------->
UDP payload = 1470 Bytes
<---------------------------------------------------------------------------------------------------------------------------->
1516 Bytes
Example, if you use the following command-line:
BrainNet36Sniffer.exe \Device\Tcpip_{put here your ethernet device MAC address} 200 50 data
You will sniffer 200 packets and write it on 4 text files, each one with 50 packets: data0001.txt, ..., data0004.txt
data0001.txt will present:
F7,T3,T5,Fp1,F3,C3,P3,O1,F8,T4,T6,Fp2,F4,C4,P4,O2,Fz,Cz,Pz,Oz,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 | sample 1 \
F7,T3,T5,Fp1,F3,C3,P3,O1,F8,T4,T6,Fp2,F4,C4,P4,O2,Fz,Cz,Pz,Oz,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 | sample 2 \
. | . \ packet 1
. | . /
. | . /
F7,T3,T5,Fp1,F3,C3,P3,O1,F8,T4,T6,Fp2,F4,C4,P4,O2,Fz,Cz,Pz,Oz,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 | sample 20 /
. | .
. | .
. | .
F7,T3,T5,Fp1,F3,C3,P3,O1,F8,T4,T6,Fp2,F4,C4,P4,O2,Fz,Cz,Pz,Oz,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 | sample 20 - packet 50