Connecting the Nuerosky Mindwave as a bluetooth device gives a no software to handle connection error.
Firstly, find your devices ID using the bluetoothctl utility included?? with your Raspi:
bluetoothctl scan on devices
We connect the bluetooth Mindwave Mobile headset anyways directly to the RfComm0 port with :
sudo rfcomm bind 0 20:12:9D:56:BC:89 1
The data stream can be examined with �the picocom tool:
Remember to wait a few seconds for the device to connect and picocom to read the bluetooth port data. The device connection can be verified by examining the Mindwave headset indicator light, which should now have turned a solid (non-blinking) blue.
Great! Now that the port connection is verified, we can simply run the parser script from the folder that houses it:
chmod +x parser ./parser
The script should print Nuersky Mindwave Mobile Headset data to the terminal.
To Edit the script, simply modify the parser.c file and recompile:
gcc -o parser parser.c