Open segersj opened 4 years ago
I'm on Arch Linux and all I had to do to get it working was to install bluez-utils-compat
from the AUR (to get gatttool
). After that, sudo muselsl stream
and muselsl record
seems to work fine.
I didn't use any bluetooth manager to connect or anything else special. Once I had installed bluez-utils-compat
everything just worked. I'm using the Muse S and some cheap Bluetooth adapter (lsusb
identifies it as: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
)
I have been going around in circles trying to use muse-lsl on current manjaro linux (7 feb 2020) The upstream authors have deprecated and removed gatttool and several other pieces of the bluetooth toolchain. Manjaro linux has a special package that has the deprecated tools included. This appears to be required. I have spent at least 4 hours googling to try and figure this out. Here is what I have seen:
The GUI application (blueman I think) detects the unpaired muse and lets me pair and trust the muse but will not connect. The commandline tools will not see the muse following any instructions I can find on the web, but "$ sudo rfcomm connect 0 XX:XX:XX:XX:XX:XX" (the XX: stuff being the MAC address of the muse gotten from the GUI app.) creates /dev/rfcomm0 and connects the muse properly as proven by opening it with picocomm and sending s (start streaming) , h (halt streaming), and k (keep stream alive) commands. (It puts garbage on the screen at appropriate times.)
at this point I tried "$ muselsl stream -b bgapi -i /dev/rfcom0". This started the "searching for muses" output, disconnected /dev/rfcomm0, put the muse into bouncing lights mode (searching for a connection) then fails with "No Muses found."
at this point, I opened the example python script RecieveData.py and ran it. it froze with "looking for an EEG stream...". So I ran it again in a debugger single stepping and stepping in as appropriate. I sort of understood what was going on until it tried to call out to the c++ liblsl at which point spyder (my IDE) hung, so I don't know if this is a bluetooth problem, a liblsl problem, or a muse-lsl problem, but I really hope someone who reads this can help me because I would like to write a program.
running "muselsl stream" in one terminal caused the following output in a terminal running "hcidump -X" while the muse was in bouncing lights mode.