Ganglion OpenBCI_Python errors
... I also tried the install on Ubuntu 18.04.1.
I use a Bluetooth CSR 4.0 Dongle (CSR 8510 Chipset)
The OpenBCI_GUI runs smoothly both on windows & linux (only with the latest OpenBCI_HUB though, if not, the Ganglion was not showing up).
On the windows side, the OpenBCI_NodeJS_Ganglion (with Noble and NodeJS) used with the LSL script is able to connect successfully to the Ganglion but generates a stream with a warning message, and in a first connection with Openvibe, the signals looked suspiciously nulls (Openvibe was set on the correct sampling frequency though) where I should have seen a 50 Hz signal on all channels like on the OpenBCI_GUI (electrodes plugged but not on my skull / bridged to my skin... acting like antennas...).
The Noble NodeJS module is able to detect the Ganglion (and to provide a MAC adress for the last point).
On the linux side, the OpenBCI_Python (with bluepy) is still not able to connect to the ganglion (to provide a LSL stream for Openvibe or other) when used with the MAC adress provided by Noble.
hcitool scan or lescan is not able to detect the Ganglion. And using the command (or just with --add print):
sudo python user.py --board ganglion -p xx:xx:xx:xx:xx:xx
I get the following error, any idea ?
jeff@DESKTOP-H95KF48:~/Downloads/OpenBCI_Python$ sudo python user.py --board ganglion -p e5:98:a9:ea:3d:fa
[sudo] password for jeff:
------------user.py-------------
WARNING: no plugin selected, you will only be able to communicate with the board. You should select at least one plugin with '--add [plugin_name]'. Use '--list' to show available plugins or '--info [plugin_name]' to get more information.
Board type: OpenBCI Ganglion
('Port: ', 'e5:98:a9:ea:3d:fa')
------------SETTINGS-------------
Notch filtering:True
user.py: Logging Disabled.
-------INSTANTIATING BOARD-------
Looking for Ganglion board
Init BLE connection with MAC: e5:98:a9:ea:3d:fa
NB: if it fails, try with root privileges.
Traceback (most recent call last):
File "user.py", line 126, in <module>
aux=args.aux)
File "/home/jeff/Downloads/OpenBCI_Python/openbci/ganglion.py", line 95, in __init__
self.connect()
File "/home/jeff/Downloads/OpenBCI_Python/openbci/ganglion.py", line 122, in connect
self.gang = Peripheral(self.port, 'random') # ADDR_TYPE_RANDOM
File "/home/jeff/Downloads/OpenBCI_Python/bluepy/bluepy/btle.py", line 353, in __init__
self.connect(deviceAddr, addrType, iface)
File "/home/jeff/Downloads/OpenBCI_Python/bluepy/bluepy/btle.py", line 402, in connect
"Failed to connect to peripheral %s, addr type: %s" % (addr, addrType))
bluepy.bluepy.btle.BTLEException: Failed to connect to peripheral e5:98:a9:ea:3d:fa, addr type: random
jeff@DESKTOP-H95KF48:~/Downloads/OpenBCI_Python$
Comments