mharthoorn / muse.net Goto Github PK
View Code? Open in Web Editor NEWC# .NET Client Library for Muse headgear
License: MIT License
C# .NET Client Library for Muse headgear
License: MIT License
Hellow! I have device muse 2.
I execute MuseModule.Scan() to know address of my muse device.
Run code:
var client = new MuseClient();
var ok = await client.Connect(MyMuse.Address);
if (ok)
{
await client.Subscribe(
Channel.EEG_AF7,
Channel.EEG_AF8,
Channel.EEG_TP10,
Channel.EEG_TP9,
Channel.EEG_AUX);
client.NotifyEeg += Client_NotifyEeg;
await client.Resume();
}
else
{
Console.WriteLine("Not connected");
}
And got error:
System.Exception
HResult=0x80070490
Message=Element not found. (Exception from HRESULT: 0x80070490)
Source=Windows.Devices
StackTrace:
at Windows.Devices.Bluetooth.BluetoothLEDevice.GetGattService(Guid serviceUuid)
at Harthoorn.MuseClient.MuseClient.d__41.MoveNext() in C:\Users\Administrator_2\Downloads\Muse.Net-master\Muse.Net\Muse\MuseClient.cs:line 58
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at ConsoleApp.Program.d__2.MoveNext() in C:\Users\Administrator_2\Downloads\Muse.Net-master\Muse.Console\Program.cs:line 25
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at ConsoleApp.Program.Main(String[] args) in C:\Users\Administrator_2\Downloads\Muse.Net-master\Muse.Console\Program.cs:line 45
What is wrong?
Hi @mharthoorn , great sample, thankyou very much! This is perfect considering muse have pulled their SDK.
Anyway, I have a quick question, do you have any reference material saying what the values actually mean? At a minimum, what does each channel signify?
Channel.EEG_AF7,
Channel.EEG_AF8,
Channel.EEG_TP10,
Channel.EEG_TP9,
Channel.EEG_AUX
Many thanks in advance.
Hi there,
Please forgive the stupid question, but I'm back to playing about with this SDK again and have the live feed sample running great. I'm just trying to understand what's being displayed,
So we have 5 graphs, top 2 being raw output from AF7 & AF8 and next 2 being raw output from TP9 & TP10. These correspond to standard probe positions on the head. All good.
Now the next graph, I understand that displays an FFT of AF8 and an FFT of TP9 on the same graph, this essentially shows the frequencies on those channels for a slice of time. I suck at maths and that's my understanding at least.
So do those 2 FFT plots relate to Attention & Relaxation? Or Do those have to be calculated by looking analysing the results of both of those?
Thanks for any help, it's difficult finding this information on Google without going down a rabbit of science papers which I simply don't understand.
I am having a hard time trying to figure out how i could use this. Could you please explain to me in detail the process to successfully getting the raw values as output.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.