OpenBCI_GUI icon indicating copy to clipboard operation
OpenBCI_GUI copied to clipboard

WiFi shield packet loss causes cyclical noise spikes

Open conorrussomanno opened this issue 7 years ago • 50 comments

See attached screenshots. You can see there is a spike of noise once every second or so. I'm switching back and forth between Dongle and WiFi shield, and it only appears when using WiFi, so it doesn't seem to be an environmental effect.

I'm using 1000Hz and 10ms latency.

screen shot 2017-09-03 at 10 09 15 pm screen shot 2017-09-03 at 10 07 55 pm

conorrussomanno avatar Sep 04 '17 05:09 conorrussomanno

Now this is only happening every once and a while for me. I'm not sure what is the root cause. It could be my hardware. I'm interested to see if anyone else experiences something similar using the WiFi Shield.

conorrussomanno avatar Sep 05 '17 16:09 conorrussomanno

Are these regularly spaced? Could you try updating your firmware? Maybe something got botched the first time?

andrewjaykeller avatar Sep 05 '17 20:09 andrewjaykeller

I don't see this problem on my wifi

biomurph avatar Sep 05 '17 21:09 biomurph

could you try putting EXT PWR to OFF and use two batteries?

andrewjaykeller avatar Sep 05 '17 21:09 andrewjaykeller

i think that might help with the noise

andrewjaykeller avatar Sep 05 '17 22:09 andrewjaykeller

Hi guys, was there any progress on this?

I'm also experiencing cyclical noise spikes, which vary between 1-4hz, and only appear occasionally. The occurance of these cyclical spikes seems loosely correlated with resetting the system through the OpenBCI GUI.

I'm not using a WiFi shield, just the regular cyton EEG sensing board. It had been working well up until tonight.

I was playing around with the BIAS and SRB pins before I saw this behaviour. Any ideas?

andytheengineerguy avatar Nov 27 '17 17:11 andytheengineerguy

Hi! There has been a lot of progress on this re: Cyton with WiFi shield. However this is not an issue we normally see with the Cyton over serial. Could you upload a screen shot of your spikes here?

andrewjaykeller avatar Nov 27 '17 17:11 andrewjaykeller

Hi AJ, thanks for the quick reply!

I actually just left work so cant take any more screenshots until I get in tomorrow morning (different time zone here in Aus), however I did take this photo showing what happens after repeatedly connecting-disconnecting the system through the OpenBCI GUI. For some reason, the frequency of the pulses get faster each time I disconnect-reconnect, and after 6-7 iterations this is what i end up with.

Its a strange waveform thats distinctly different from random noise. While showing this waveform im unable to sense any EEG data.

Have you seen this before? Apologies if Ive gone too off track with this issue - this is really confusing me haha. Will upload pulse screenshots in the morning.

andytheengineerguy avatar Nov 27 '17 18:11 andytheengineerguy

screenshot_20171128-020613

andytheengineerguy avatar Nov 27 '17 18:11 andytheengineerguy

That looks almost like a test signal, hmm is this issue still happening?

andrewjaykeller avatar Apr 02 '18 12:04 andrewjaykeller

Not the test signal. Some environmental noise?

biomurph avatar Apr 02 '18 13:04 biomurph

I am experiencing this issue also when using the wifi shield with 8 channels and using two separate batteries (4xAA and 3.7v 500mah). screen shot 2018-04-12 at 5 50 54 pm screen shot 2018-04-12 at 5 51 12 pm

retiutut avatar Apr 12 '18 22:04 retiutut

What firmware are you running on the WiFi shield?

andrewjaykeller avatar Apr 12 '18 23:04 andrewjaykeller

The WiFi shield firmware is v2.0.5 . Updated the Cyton firmware this morning and still having same problem: screen shot 2018-04-13 at 11 52 40 am

retiutut avatar Apr 13 '18 16:04 retiutut

Have you tried UDP?

andrewjaykeller avatar Apr 13 '18 17:04 andrewjaykeller

I've mostly been using TCP. I did swap out the WiFi shield for a Daisy header and was able to see proper EEG over BLE using the dongle. I'll try UDP and UDPx3 later today or tomorrow.

retiutut avatar Apr 13 '18 17:04 retiutut

No doubt in my mind this is 100% due to using WiFi! This can happen on some routers I’ve seen, it should magically disappear with UDP. Probably won’t happen with TCP over WiFi direct too.

andrewjaykeller avatar Apr 13 '18 17:04 andrewjaykeller

To document: I'm using a current generation Airport Extreme mounted high on the wall. The LOS distance from the Airport to the WiFi shield was about 5 feet.

Had to put my iPhone in airplane mode to have uninterrupted upload for the Cyton firmware via Arduino IDE. Left it in airplane mode during these tests.

retiutut avatar Apr 13 '18 17:04 retiutut

This issue is still happening over UDP, rendering the WiFi shield unusable. Was not able to find the shield using WiFi direct in the GUI. screen shot 2018-04-14 at 1 06 27 pm

retiutut avatar Apr 14 '18 18:04 retiutut

Did you erase the network credentials?

andrewjaykeller avatar Apr 14 '18 19:04 andrewjaykeller

I erased the network credentials again, got 10 blinks in 2 seconds on boot, and connected to the Wifi shield. The GUI still only finds this:

screen shot 2018-04-14 at 3 32 58 pm

retiutut avatar Apr 14 '18 20:04 retiutut

Weird! Which GUI version are you using.

andrewjaykeller avatar Apr 14 '18 21:04 andrewjaykeller

Using OpenBCI_GUI 3.2.0 standalone on Mac

retiutut avatar Apr 15 '18 16:04 retiutut

@aj-ptw What settings (hardware and software, apart from up-to-date firmware) would you recommend to resolve this issue? I was looking forward to the increased resolution over WiFi, but I get worried every time I have to change the hardware just to see if the WiFi shield works.

retiutut avatar Apr 18 '18 17:04 retiutut

@retiutut could you try on a different router? If not, maybe we can do a call and I show you how WiFi direct works. Skype me at pushtheworld_aj

andrewjaykeller avatar Apr 18 '18 17:04 andrewjaykeller

screen shot 2018-04-18 at 1 12 02 pm I think I have to try and update the Cyton firmware again. I'm having serious issues over BLE also. Here we have a series of eye blinks followed by rest and then a spike across all channels.....

retiutut avatar Apr 18 '18 18:04 retiutut

Hey @retiutut ! I have just finished a new gui version that will allow you to use the wifi direct for sure.

andrewjaykeller avatar Apr 20 '18 12:04 andrewjaykeller

I have identified the cause of the problem using the Processing version. I see packet loss correlations with these visible spikes when using an Airport Extreme. I was able to finally connect via wifi direct using a newer Mac Mini and I still see regular spikes when streaming. Here is a screenshot that documents this issue: screen shot 2018-07-01 at 2 33 19 pm

retiutut avatar Jul 01 '18 19:07 retiutut

Hi guys, was there any progress on this? I have same issue with wifi shield but not with USB dongle.

engsz avatar Dec 01 '18 03:12 engsz

I have same issue with wifi shield but not with USB dongle.>> So it is likely that you have electrical/ magnetical interference from the shield. You see also in your example that despite you have 60hz notch on there is huge 60Hz in the spectrum. This tells you what these signals are. Do you use AC adapter or battery. The latter is important! Also for safety reasons.

You can place a grounded copper foil between shield and cyton or play around with electrode cables location.

Another idea to figure out the cause is to short the inputs. Open inputs are very sensitive. For example I 3D printed a self-designed housing with ABS and noticed spikes appearing randomly in the time series. Then I noticed that just rubbing the outside of the box caused charging the plastic and hence lead to spikes. Counteraction was to paint inner side of housing with copper laquer used for EMI https://www.conrad.at/de/abschirmlack-crc-kontakt-chemie-emv-35-77509-aa-200-ml-813893.html and to connect the shield to ground. This also improved significantly mains interference.

NOTE: Do not paint the housing close by the antenna !!

jps2000 avatar Dec 01 '18 07:12 jps2000