4. Setup Empatica E4#
4.1. Requirements#
4.1.1. Hardware#
Physical Empatica E4 Device
Bluegiga Bluetooth Smart Dongle BLED112, the Empatica E4 only works on this Hardware (see BLED112 Specs)
can be bought for cheap on AliExpress (see BLED112 on AliExpress, NO affiliate link)
4.1.2. Accounts#
Empatica E4 Account (see E4 Dashboard Login)
4.1.3. Key#
Purchase Key of Empatica E4 Device OR permitted account via Shared Device (see E4 Developer Dashboard)
4.1.4. Software#
Empatica E4 Streaming Server / Windows only (download here: E4 Streaming Server)
Bluegiga Bluetooth Smart Dongle BLED112 Driver (download here: BLED112 Driver)
Visual C++ Redistributable Package installed
4.2. Installation#
Register a Developer Account in the Empatica e4 dashboard (see E4 Dashboard Login)
The Empatica Devices must be registered via key as purchased device or the account must be permitted as a shared device (in this dashboard E4 Developer Dashboard)
Follow installation steps here: E4 Streaming Server Docs
If everything done correct, you can see in the Empatica E4 Streaming Server, the connection established with a green button.
If not allowed with 0% battery shows up, your account/API key is not registered to the device or there is a bug with the Empatica Device which can only be resolved when Empatica E4 is factory resetted (see here how: E4 Factory Reset.)
If still not working try to upgrade software version via the Empatica manager software Empatica Manager
4.3. Usage#
After connection established in the Empatica E4 Streaming Server the data aquisition software can be started.
The data streams are subscribed automatically.
The data becomes visible after ~2-10 seconds as timeseries plots.
The recording can be started by pressing “#” or via button.
4.4. Executable (pyinstaller bundling)#
To bunde the application to a portable .exe on windows with following steps:
If not already created/installed:
python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt
Bundling:
cd Empatica
pyinstaller --clean --onefile Empatica.py
The bundled .exe can be found in the dist folder after finish.
The documentation of the pyinstaller what the arguments are used for can be found here: Pyinstaller Docs