This program connects to several biosignal sensors. It provides capabilities for real-time data progressing, streaming and storing to .csv files. Currently it supports Empathica E4, Bioharness Zephyr, Intraface Facial Feature Detection, and the MUSE EEG Headband.
python Main.py <output_file_prefix>
In SensorCellectionServer.py edit the parameter:
# Edit here what sensors are used
use_E4_L = False
use_E4_R = False
use_Bioharness = True
use_Intraface = False
use_Intraface_only_record = False
use_Muse = False
# Edit here whether to use real-time processing
use_real_time_processing = False
In SensorCellectionServer.py edit the parameter:
Edit here Bioharness Bluetooth port information
# pair device with you computer, code 1234
# ls /dev/cu.* find out with port it is connected to
BIOHARNESS_COM_PORT = "EDIT"
In SensorCellectionServer.py edit the parameter:
# Edit here E4 Server information
E4_SERVER_IP = "EDIT"
E4_SERVER_PORT = EDIT
In SensorCellectionServer.py edit the parameter:
# Edit here Interface Server information
INTRAFACE_SERVER_IP = "EDIT"
INTRAFACE_SERVER_PORT = EDIT
In SensorCellectionServer.py edit the parameter
# Edit here the path where the collected data is store
DATA_BASE_PATH = "./CollectedData/"
This is the port were your service can subscribe to real-time data streams. In SensorCellectionServer.py edit the parameter:
# Edit here the port for signal processing server
PROCESSING_SERVER_IP = "127.0.0.1"
PROCESSING_SERVER_PORT = 12346
Example JSON package for real-time data streaming:
{
"type": "respiration",
"timestamp": 0.00,
"value":[0]
}
Currently supported types for Bioharness Zephyr are "respiration_rate" and "rr"