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)
If the API is enabled, API-specific topics are:
Blink (topic: PetalStream/blink):
int: blink (0 = no blink, 1 = blink)
Eye Movement (topic: PetalStream/eye):
int: movement (1 = movement, 0 = no movement)
Bandpower (topic: PetalStream/bandpower):
float: channel1_alpha
float: channel1_beta
float: channel1_theta
float: channel1_delta
float: channel2_alpha
float: channel2_beta
float: channel2_theta
float: channel2_delta
float: channel3_alpha
float: channel3_beta
float: channel3_theta
float: channel3_delta
float: channel4_alpha
float: channel4_beta
float: channel4_theta
float: channel4_delta
Artifact Detection (topic: PetalStream/artifact_detect):
int: channel1 (1 = good, 0 = bad)
int: channel2 (1/0)
int: channel3 (1/0)
int: channel4 (1/0)
All Metrics: PetalStream_metrics
int: blink (0 = no blink, 1 = blink)
int: eye (0 = no movement, 1 = movement)
int: artifact_detect_channel1 (good = 1, bad = 0)
int: artifact_detect_channel2 (1/0)
int: artifact_detect_channel3 (1/0)
int: artifact_detect_channel4 (1/0)
float: channel1_alpha
float: channel1_beta
float: channel1_theta
float: channel1_delta
float: channel2_alpha
float: channel2_beta
float: channel2_theta
float: channel2_delta
float: channel3_alpha
float: channel3_beta
float: channel3_theta
float: channel3_delta
float: channel4_alpha
float: channel4_beta
float: channel4_theta
float: channel4_delta