JesseScott / disconnect

Interactive Installation using Neurosky EEG, Touch Designer, and a Stereoscopic CAVE
GNU General Public License v2.0
10 stars 1 forks source link

how to get attention and mediation value #3

Open shuming9886 opened 1 year ago

shuming9886 commented 1 year ago

Hi, Thank u for your project.

When my mindwave mobile 2 is connected to td, the output value is in Multi-Byte CODEs mode. I wonder know how to obtain attention and mediation value instead of theta gamma value? Thanks!!!!!

JesseScott commented 1 year ago

Hi,

It's been a few years since I've looked at this, but at the time of development I recall that I was willfully skipping the higher-level algorithms and simply was looking at the raw data.

It's quite possible that the Mindwave SDK has evolved and gives more options at this point... you could try to search upstream where the header and checksum is parsed out and see if there are any other values that are being ignored...

shuming9886 commented 1 year ago

Hi Jesse,

Thank you for your reply. Actually I found the official document for thinkgear(https://developer.neurosky.com/docs/doku.php?id=thinkgear_communications_protocol#datarow_format), which states that in Multi Byte CODEs mode, the values for attention and mediation will not be output.

But when I use a Python program to connect Mindwave Mobile 2, I can output the above two values. This troubles me a lot. But I still appreciate your project. I'll try to find a method to slove it :)

shuming9886 commented 1 year ago

Hi, I found a solution. I run a Python program outside of Touchdesigner. This Python program can obtain the value of attention in real-time, transfer data to localhost through the TCP protocol, and then Touchdesigner can obtain the value of attention through TCP/IP.