urish / muse-js

Muse 2016 EEG Headset JavaScript Library (using Web Bluetooth)
https://medium.com/@urish/reactive-brain-waves-af07864bb7d4
MIT License
280 stars 78 forks source link

Connect issue breaks web software with Muse 2016 - Edit #49

Closed kylemath closed 2 years ago

kylemath commented 3 years ago

on eegedu.com when I try to connect to a muse 2016 ** (edit) with await window.source.connect(); I get Connection error: NotFoundError: No Characteristics matching UUID 273e000b-4c4d-454d-96be-f03bac821358 found in Service with UUID 0000fe8d-0000-1000-8000-00805f9b34fb. and cannot connect

This does not occur when using a newer muse-S.

kylemath commented 3 years ago

@urish

Ran another test today with @korymath

We think it is related to an update to the web bluetooth protocol, that is only affecting older muses.

used https://muse-eeg-app.firebaseapp.com/ instead of one of my sites and replicated the error.

Macbook Pro 2019 Chrome

Used Muse S, Muse 2, and Muse 2016 (on which muse-js was originally developed)

Muse S and Muse 2 connect, Muse 2016 shows the same error as above

link to video of my replicating error and correct function on the three devices: https://photos.app.goo.gl/7q5BjCVVSP5S7PRd9

kylemath commented 2 years ago

I think I solved it, I think this issue was due to Muse headsets that had never connected to the muse app by interaxon. Once the headset connects to the app and disconnects, this bug is gone for me. https://github.com/kylemath/EEGEdu/issues/167

kylemath commented 2 years ago

This does solve the problem so I sill close this issue