<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>mobile EEG | John Thorp</title><link>https://jnthorp.github.io/tag/mobile-eeg/</link><atom:link href="https://jnthorp.github.io/tag/mobile-eeg/index.xml" rel="self" type="application/rss+xml"/><description>mobile EEG</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Sun, 31 Jul 2022 00:00:00 +0000</lastBuildDate><image><url>https://jnthorp.github.io/media/icon_hu7032ec0ed3b220067d1822c52f98a335_44239_512x512_fill_lanczos_center_3.png</url><title>mobile EEG</title><link>https://jnthorp.github.io/tag/mobile-eeg/</link></image><item><title>eeg markers of mind-wandering in the real-world classroom</title><link>https://jnthorp.github.io/project/spagna/</link><pubDate>Sun, 31 Jul 2022 00:00:00 +0000</pubDate><guid>https://jnthorp.github.io/project/spagna/</guid><description>&lt;p>Paper coming soon!&lt;/p></description></item><item><title>delivering real-time neurofeedback from emotiv epoc+</title><link>https://jnthorp.github.io/project/emotiv/</link><pubDate>Fri, 31 May 2019 00:00:00 +0000</pubDate><guid>https://jnthorp.github.io/project/emotiv/</guid><description/></item><item><title>python package to reconnect muse headset</title><link>https://jnthorp.github.io/project/muse/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jnthorp.github.io/project/muse/</guid><description>&lt;p>Seems to be an issue endemic to the use of Muse headsets that the headsets will randomly llose connection with the laptop. This is particularly bad whenever multiple headsets are connected to multiple laptops within tight proximity. Because of this, our classroom study of multiple students wearing headsets being observed by one RA during a real lecture was nearly impossible to conduct.&lt;/p>
&lt;p>To solve this, I adapted the popular muse-lsl package to monitor the connection with the headset and, in the event of a disconnect, safely end all the existing processes and set them up again. This sounded relatively trivial when I started, but a number of requirements and oddities pushed it towards non-triviality.&lt;/p>
&lt;p>Firstly, muse-lsl requires a new terminal for every stream of data (EEG, ACC, GYRO, PPG). There might be a way to open all the ports necessary from one terminal, but I never figured it out. This brought about the necessity of opening up a number of terminals that could be monitored and quit in a controlled manner. On a Windows machine, this required a wrapper function that mimics the standard subprocess.Popen syntax but opens a socket, receives the subprocess cmd, then waits for the termination request.&lt;/p></description></item></channel></rss>