OSX Muse 2016 NotConnectedError during connection attempt with BLED112
See original GitHub issueHi there, I am experiencing issues connecting my 2016 Muse headband to muse-LSL. When I attempt to stream with my device or find its MAC address I receive the following errors.
muselsl stream --name Muse-660F
Traceback (most recent call last):
File "/usr/local/bin/muselsl", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/muselsl/__main__.py", line 51, in main
cli = CLI(args.command)
File "/usr/local/lib/python2.7/site-packages/muselsl/cli.py", line 9, in __init__
getattr(self, command)()
File "/usr/local/lib/python2.7/site-packages/muselsl/cli.py", line 42, in stream
args.interface, args.name)
File "/usr/local/lib/python2.7/site-packages/muselsl/stream.py", line 61, in stream
found_muse = find_muse(name)
File "/usr/local/lib/python2.7/site-packages/muselsl/stream.py", line 47, in find_muse
muses = list_muses()
File "/usr/local/lib/python2.7/site-packages/muselsl/stream.py", line 25, in list_muses
adapter.start()
File "/Users/lukeguerdan/School/capstone/muse-lsl/src/pygatt-fork/pygatt/backends/bgapi/bgapi.py", line 188, in start
self._open_serial_port(max_connection_attempts=1)
File "/Users/lukeguerdan/School/capstone/muse-lsl/src/pygatt-fork/pygatt/backends/bgapi/bgapi.py", line 171, in _open_serial_port
"No BGAPI compatible device detected")
pygatt.exceptions.NotConnectedError: No BGAPI compatible device detected
python scan_devices.py
Traceback (most recent call last):
File "scan_devices.py", line 17, in <module>
list_devices = adapter.scan(timeout=10.5)
File "/Users/lukeguerdan/School/capstone/muse-lsl/src/pygatt-fork/pygatt/backends/bgapi/bgapi.py", line 315, in scan
scan_interval, scan_window, parameters
File "/Users/lukeguerdan/School/capstone/muse-lsl/src/pygatt-fork/pygatt/backends/bgapi/bgapi.py", line 262, in send_command
raise NotConnectedError()
pygatt.exceptions.NotConnectedError
I have connected a BLED112 dongle to my USB port as I attempt to connect. The issue seems to be related either to the connection of the underlying bgapi or some configuration on my Mac.
- Running High Sierra 10.13.6.
- BLED112-V1 manufactured by Silicon Labs
There is a related issue for bgapi here. I added the same timeout to pygatt’s start()
function, but this did not solve the issue. This makes me think the issue is related to device connection. When I run system_profiler SPUSBDataType
, I do not see any dongle information (which I believe I should). Do I need to install an additional driver or configure anything on my device?
Any suggestions or debugging tips would be greatly appreciated.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:10
Top GitHub Comments
@fireant and others, this issue was caused by a defective BLED 112 Dongle not recognized by my machine. After getting a replacement everything is working as expected. Thank you for the help!
Hey @royyannick thanks for the tip. I am not getting any resources busy messages beyond the “No BGAPI compatible device detected”, which may explain why addressing peplin/pygatt#159 didn’t help in my case.
After running a fresh pip install I am getting a new error, which during handling produces the old one (now running with python 3):
Not seeing any Muse info in the system profiler makes me think it may be a lower-level problem, may try an OS upgrade as well.
I haven’t had time to look at this deeply but will figure it out next week and let you know what I find out.