bardiabarabadi / uvicMUSE

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

Connecting to specific Muse with uvicmuse as python library and pull timestamped eeg data #14

Closed sunshineinsandiego closed 3 years ago

sunshineinsandiego commented 3 years ago

Hi - I am trying to stream EEG data from a specific Muse (I have the MAC Address and ID of the headset), but am not sure how to go about connecting to that Muse via the MAC address. I know that the MW wrapper has a target_name parameter:

target_name: (optional) Use if you want to connect to a specific device. You can use "Muse-3BEA" or "3BEA". Leave this input empty (or None) if there is only one device in range. You will get an error if there are more than one devices available and this input is empty.

But I have potentially multiple Muse headsets with the same name.

Additionally, when I pull an EEG reading from the buffer:

EEG_data = M_wrapper.pull_eeg()

I receive 5 values. In sequential order are they are values from [TP9, AF7, AF8, TP10, RAUX] along with a time stamp? And is the timestamp the time at which the value was recorded or pulled from the buffer?

Thanks!

sunshineinsandiego commented 3 years ago

Actually, I think I'll probably need to go a little bit more low-level and need advice on using BLEAK to communicate with the headset. Will close this issue and ask my question in a different post. Thanks!