Summarize: Muse 2 - Windows - Workaround for missing SDK

Hi all,

it took us a lot of time to screen data from Muse 2 on Windows since the SDK is not available.
Replies from Muse-Staff was always, that it is not possible to use Windows with Muse 2.

Here a workaround in order to use Muse 2 with Windows:

  • Buy the Muse Monitor App (https://musemonitor.com/#page-top)
  • Stream the data from Muse Monitor to Windows
  • Program an OSC-Server in Python on any Python site such as Anaconda (Jupyter Notebook)
    (see Code example below)
  • Now you can change the code to have access to other sensors (data).
    Add the following specifications: https://musemonitor.com/FAQ.php#oscspec

Code example:

import argparse
import math

from pythonosc import dispatcher
from pythonosc import osc_server

def eeg_handler(unused_addr, args, ch1, ch2, ch3, ch4):
print("EEG (uV) per channel: ", ch1, ch2, ch3, ch4)

if name == “main”:
parser = argparse.ArgumentParser()
parser.add_argument("–ip",
default=“132.180.225.78”,
help=“The ip to listen on”)
parser.add_argument("–port",
type=int,
default=5000,
help=“The port to listen on”)
args = parser.parse_args()

dispatcher = dispatcher.Dispatcher()
dispatcher.map("/debug", print)
dispatcher.map("/muse/eeg", eeg_handler, "EEG")

server = osc_server.ThreadingOSCUDPServer(
    (args.ip, args.port), dispatcher)
print("Serving on {}".format(server.server_address))
server.serve_forever()

Any advices or question to this feel free to contribute or ask.

Greetings
Peter