sudo cp etc/udev/rules.d/70-emotiv.rules /etc/udev/rules.d/
sudo service udev restart
Then plugin the USB dongle, you should see the flashing green light and it is ready to be connected to an Emotiv headset.
sudo apt-get update
sudo apt-get install libglib2.0-dev libdbus-1-dev libudev-dev libical-dev libreadline-dev
mkdir -p ~/tmp/bluez && cd ~/tmp/bluez
wget -c https://www.kernel.org/pub/linux/bluetooth/bluez-5.37.tar.gz
tar -xvzf bluez-5.37.tar.gz
cd bluez-5.37/
./configure --disable-systemd --enable-threads --enable-library
make
- Add
EnableGatt = true
to file/etc/bluetooth/main.conf
- Backup then edit file
/etc/dbus-1/system.d/bluetooth.conf
, remove1
from all the lines, such as:
`<allow send_interface="org.bluez.Agent1"/>` to `<allow send_interface="org.bluez.Agent"/>`
`<allow send_interface="org.bluez.GattDescriptor1"/>` to `<allow send_interface="org.bluez.GattDescriptor"/>`
sudo /etc/init.d/bluetooth stop
sudo ./src/bluetoothd -n -E --plugin=audio
Open other terminal and run bluetoothctl
. Use following commands to test connection:
-
List available Bluetooth adapters
[bluetooth]#list
-
Power on Bluetooth adapter
[bluetooth]#power on
-
Set Bluetooth adapter discoverable
[bluetooth]#discoverable on
-
Set Bluetooth adapter pairable
[bluetooth]#pairable on
-
Tell Bluetooth adapter to scan Bluetooth devices
[bluetooth]#scan on
-
List all available bluetooth devices
[bluetooth]#devices
-
Get device info
[bluetooth]#info [MAC_Address]
Each Emotiv device has a specific service UUID
81072f40-9f3d-11e3-a9dc-0002a5d5c51b
-
Connect to an Emotiv device
[bluetooth]#connect [MAC Address]
Now you can run the SDK or app on Ubuntu - enjoy!
To use the graphical view instead of command line, run d-feet &
then select /org.bluez/hci0/[MAC_Address]