bardiabarabadi / uvicMUSE

BlueMuse Alternative with MATLAB Stream (UDP)
BSD 3-Clause "New" or "Revised" License
14 stars 6 forks source link

PPG Handles #12

Open vascosantos opened 3 years ago

vascosantos commented 3 years ago

I'm trying to receive data from my Muse 2 in a Max MSP patch. I am already able to retrieve all data except for the PPG sensors'.

Looking at the code for _handle_ppg(self, sender, data), I see the test if handle == 62, which triggers the actual sending of the data. I am a newbie with BLE and this type of stuff, but a print of this variable shows only the values 54, 57 and 60, and never the 62 that is expected. This also contradicts the comment at the top of this function.

Do these handles change with Muses? Mine is an MU-03.

sunshineinsandiego commented 3 years ago

Hi Vasco - Saw your note on the issues thread, and it sounds like you were able to subscribe to notifications from the Muse 2. I'm trying to pull EEG data from the headset in order to stream to a non-LSL output, and I was hoping you might have some advice. I posted my question here. Did you use one of the bleak or pygatt libraries to pull data? Thanks!