Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with muses #179

Open
itsoulos opened this issue Mar 29, 2022 · 3 comments
Open

Issues with muses #179

itsoulos opened this issue Mar 29, 2022 · 3 comments

Comments

@itsoulos
Copy link

Dear all,
I have the following errors on Debian Linux with Muse S
What is wrong with my device?

muselsl stream --name Muse-4899
Backend was 'auto' and bluetoothctl was found, using to list muses...
Searching for Muses, this may take up to 10 seconds...
Found device Muse-4899, MAC Address 00:55:DA:B9:48:99
Connecting to Muse-4899: 00:55:DA:B9:48:99...
Traceback (most recent call last):
File "/usr/local/bin/muselsl", line 33, in
sys.exit(load_entry_point('muselsl==2.2.0', 'console_scripts', 'muselsl')())
File "/usr/local/lib/python3.9/dist-packages/muselsl-2.2.0-py3.9.egg/muselsl/main.py", line 57, in main
cli = CLI(args.command)
File "/usr/local/lib/python3.9/dist-packages/muselsl-2.2.0-py3.9.egg/muselsl/cli.py", line 9, in init
getattr(self, command)()
File "/usr/local/lib/python3.9/dist-packages/muselsl-2.2.0-py3.9.egg/muselsl/cli.py", line 106, in stream
stream(args.address, args.backend, args.interface, args.name, args.ppg,
File "/usr/local/lib/python3.9/dist-packages/muselsl-2.2.0-py3.9.egg/muselsl/stream.py", line 221, in stream
didConnect = muse.connect()
File "/usr/local/lib/python3.9/dist-packages/muselsl-2.2.0-py3.9.egg/muselsl/muse.py", line 90, in connect
self._subscribe_eeg()
File "/usr/local/lib/python3.9/dist-packages/muselsl-2.2.0-py3.9.egg/muselsl/muse.py", line 279, in _subscribe_eeg
self.device.subscribe(MUSE_GATT_ATTR_TP9, callback=self._handle_eeg)
File "/usr/local/lib/python3.9/dist-packages/muselsl-2.2.0-py3.9.egg/muselsl/backends.py", line 66, in subscribe
_wait(self._client.start_notify(uuid, wrap))
File "/usr/local/lib/python3.9/dist-packages/muselsl-2.2.0-py3.9.egg/muselsl/backends.py", line 11, in _wait
return loop.run_until_complete(coroutine)
File "/usr/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/usr/local/lib/python3.9/dist-packages/bleak-0.14.2-py3.9.egg/bleak/backends/bluezdbus/client.py", line 915, in start_notify
raise BleakError(
bleak.exc.BleakError: Characteristic with UUID 273e0003-4c4d-454d-96be-f03bac821358 could not be found!

@jdpigeon
Copy link
Collaborator

jdpigeon commented Mar 29, 2022

Looks like bleak failed to connect to your device for some reason. What happens if you try another backend> Maybe --backend gatt?

@itsoulos
Copy link
Author

Good morning. Finally the problem has resolved after updating some debian packages and using the gatt interface.

@xloem
Copy link
Contributor

xloem commented Dec 11, 2022

I am not sure yet what causes this, but I am experiencing it resolving after retrying a few times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants