Skip to content
GitHub · 2.7.0

Reference

OT Bioelettronica reference code & protocol notes

OT Bioelettronica’s example scripts define the decoding used by the native OTB sources in myogestic/sources/otb/. These reference files remain outside the imported and distributed package.

File Source Role
Read_muovi.m OTB MATLAB example v3.0 Direct single-Muovi connection (PC = TCP server :54321). The authoritative control-byte + decode reference.
Read_muoviAP.m OTB MATLAB example v2.0 SyncStation path (PC = TCP client 192.168.76.1:54320), CRC8-framed multi-probe command strings.
CRC8.m OTB MATLAB example CRC-8 (poly 0x8C, LSB-first, init 0) used by the SyncStation / Quattrocento framed commands.
Read_Quattrocento.m OTB MATLAB example v5.0 Direct Quattrocento connection (PC = TCP client 169.254.1.10:23456). The authoritative 40-byte config + little-endian decode reference.
FourMapsQuattrocento.m OTB MATLAB example Grid/channel-map helper (maps streamed channels to electrode grids).
ReadFromOTBiolabLightQuattrocento.m OTB MATLAB example Alternative path for reading Quattrocento via the OT BioLab Light software server. MyoGestic does not use this path; it is kept for reference.

Protocol verified against these manufacturer PDFs. They are not committed to this repository.

  • Muovi probe TCP Communication Protocol v2.4
  • SyncStation TCP Communication Protocol v2.8
  • MuoviPro User Manual v5.1
  • MuoviLite User Manual v1.1
  • Quattrocento Configuration Protocol v1.7
  • Quattrocento User Manual

Muovi protocol facts

  • Direct Muovi: PC is TCP server on 54321; control byte (EMG<<3) | (Mode<<1) | GO; stop = byte - 1.
  • Data is big-endian, 2’s-complement; EMG = int16 (2000 Hz), EEG = int24 (500 Hz). Conversion factor (gain 8) = 286.1 nV/LSB (0.000286 mV).
  • Frame is Fortran-order (n_channels, samples); n_channels depends on (device, mode). Muovi NumChanVsMode = [38 22 38 38].
  • Channel map: 1–32 bio, 33–36 IMU quaternion W/X/Y/Z, 37 buffer+trigger, 38 sample counter.

Quattrocento facts:

  • PC is TCP client to 169.254.1.10:23456; little-endian int16.
  • 40-byte config string, CRC-8 trailer; ACQ_SETT byte0 = 0x80 | decim<<6 | rec_on<<5 | fsamp<<3 | nch<<1 | acq_on.
  • fsamp 512/2048/5120/10240 Hz; nch → 120/216/312/408 streamed channels.
  • Conversion: biosignal 5/2**16/150*1000 ≈ 5.086e-4 mV; AUX IN 5/2**16/0.5 ≈ 1.526e-4 V; last 8 accessory raw (counter @ n-7, trigger @ n-6, buffer @ n-4).
  • The MATLAB example stops with byte0 = 0x80 + recomputed CRC. The Python source clears acq_on while preserving the selected sample rate, channel count and input settings, then recomputes the CRC. Stop before reconnecting.