Receive an OSC Stream
Last updated
Was this helpful?
Last updated
Was this helpful?
OSC, or Open Sound Protocol, is a protocol that provides typed fields for high frequency streams. It can be used to stream or ingest device EEG data. To receive an OSC stream, you can also use some of the example scripts in the .
In order to get around byte-based precision limitations of OSC data types, our data streams all have the following formatted prefix:
int: sample ID
int: unix timestamp (whole number)
float: unix timestamp (decimal)
int: LSL timestamp (whole number)
float: LSL timestamp (decimal)
​Telemetry (topic: /PetalStream/telemetry):
float: battery level
float: temperature
float: fuel gauge voltage
EEG (topic: /PetalStream/eeg):
float: channel 1
float: channel 2
float: channel 3
float: channel 4
float: channel 5
Acceleration and Gyroscope (topics: /PetalStream/acceleration and /PetalStream/gyroscope):
float: x
float: y
float: z
PPG (Experimental, Muse S only, topic: /PetalStream/ppg):
float: ambient
float: IR
float: red
connection_status (/PetalStream/connection_status):
int: connected (0 or 1)
Example python snippet for decoding an OSC stream: