OpenBCI / OpenBCI_WIFI

Firmware library that runs on the OpenBCI WiFi Shield
https://shop.openbci.com/collections/frontpage/products/wifi-shield?variant=44534009550
MIT License
33 stars 28 forks source link

Cannot connect #51

Closed JeffOlsen-SLAC closed 6 years ago

JeffOlsen-SLAC commented 6 years ago

AJ I have loaded the latest WiFi firmware WifiShieldTCPUDP.2.0.0.0.bin. Power Cycled the Shield and re-booted my laptop. I have tried to open 192.168.4.1/wifi using both Internet Explorer and Chrome. Neither of them work.

andrewjaykeller commented 6 years ago

We’re you able to connect to the WiFi shield network?

andrewjaykeller commented 6 years ago

Are you able to see the WiFi shield on the network you previously had attached to? Perhaps the shield is still on that network, which will require you going to it’s ip address in your browser and going to for example 192.168.0.100/WiFi/delete

andrewjaykeller commented 6 years ago

The WiFi shield should still be acting as a hotspot

JeffOlsen-SLAC commented 6 years ago

aj-I finally go to a page that says "Config ESP". It is showing my 5 wireless networks, all of which are protected. Do I still need my cell phone setup as a hotspot or a router? Once I can connect, do I still need to run the OpenBCIHub. If so, which version?

JeffOlsen-SLAC commented 6 years ago

aj-I can connect to the OpenBCI Shield and I can see it in OpenBCI GUI, V3.1.0. When start the system, it comes back and says no Cyton... found. The OpenBCI Shield gets disconnected from the laptop and the laptop reconnects to one of my local Wifi networks. I keep losing the connection to the Shield. Last message in the GUI - Move closer or replace batteries. The batteries are down to 4.3V. Will replace them and see what happens.

Jjo

andrewjaykeller commented 6 years ago

I am already seeing how I need to provide more visual feedback into the state.

Batteries are fine. V > 3.3DC

I can connect to the OpenBCI Shield and I can see it in OpenBCI GUI, V3.1.0.

When this happens, what network is your computer connected to?

JeffOlsen-SLAC commented 6 years ago

Aj

openBCI4.jpg shows that the Shield is connected and yet the GUI shows Error: no OpenBCI Board (Ganglion or Cyton) connected.

The other snapshots just show various connections

Jeff O.

From: AJ Keller [mailto:notifications@github.com] Sent: Monday, November 20, 2017 3:01 PM To: OpenBCI/OpenBCI_WIFI Cc: Olsen, Jeff J.; Author Subject: Re: [OpenBCI/OpenBCI_WIFI] Cannot connect (#51)

The WiFi shield should still be acting as a hotspot

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/OpenBCI/OpenBCI_WIFI/issues/51#issuecomment-345860474, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AUPaLgHJD3hsgMI6WCU2S1H80-eReqgbks5s4gSYgaJpZM4QlBjE.

andrewjaykeller commented 6 years ago

@JeffOlsen-SLAC I did not get any pictures sorry! Try to upload them through web browser.

Could you please clarify:

I can connect to the OpenBCI Shield and I can see it in OpenBCI GUI, V3.1.0.

Is your windows 10 computer connected via (1) Direct connection or (2) through a router. This answer would help me a lot.

Does this flow diagram help you?

screen shot 2017-11-20 at 7 34 27 pm

JeffOlsen-SLAC commented 6 years ago

AJ.

My windows 10 computer is connected via Direct Connection. No router involved.

Jeff O.

From: AJ Keller [mailto:notifications@github.com] Sent: Monday, November 20, 2017 4:29 PM To: OpenBCI/OpenBCI_WIFI Cc: Olsen, Jeff J.; Mention Subject: Re: [OpenBCI/OpenBCI_WIFI] Cannot connect (#51)

@JeffOlsen-SLAChttps://github.com/jeffolsen-slac I did not get any pictures sorry! Try to upload them through web browser.

Could you please clarify:

I can connect to the OpenBCI Shield and I can see it in OpenBCI GUI, V3.1.0.

Is your windows 10 computer connected via (1) Direct connection or (2) through a router. This answer would help me a lot.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/OpenBCI/OpenBCI_WIFI/issues/51#issuecomment-345876594, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AUPaLhKTSBLYhvHnArlI1PMI8Miw6pSoks5s4hlUgaJpZM4QlBjE.

andrewjaykeller commented 6 years ago

In browser can you go to "192.168.4.1"?

Thanks

andrewjaykeller commented 6 years ago

hang on im duplicating

andrewjaykeller commented 6 years ago

Ok i think i've patched this. Verifying and will re-email you. The shield was not turning on the soft ap if there were previous network credentials saved.

andrewjaykeller commented 6 years ago

Please use

https://github.com/OpenBCI/OpenBCI_WIFI/releases/tag/v2.0.0-beta1

Thanks!

JeffOlsen-SLAC commented 6 years ago

aj - Here is what I did this morning. 1 - loaded v2.0.0.1 into the Shield 2 - rebooted my windows 7 enterprise laptop 3 - In the Wifi Network menu on the laptop, I connected to OpenBCI-E608 The Shield stays connected solid, however the OpenBCI_GUI seems to get confused and loses the IP and MAC address 4 - Opened Chrome, connected to 192.169.4.1/wifi get a screen that says Push the World, Click to configure. Clicking configure just refreshes the screen as far as I can tell. 5 - Exit Chrome 6 - Started OpenBCI_Hub, OpenBCI Electron Hub 7 - Started OpenBCI_GUI, V3.1.0 a - Select Live from Cyton b - OpenBCI-E608 attached to Cycton, IP 192.168.4.1, MAC xxx.E6:08, version 2.0.0.1 is displayed in the WIFI CONFIGURATION tab c - Start System, Dang, Lost connection, move closer or replace batteries. 8 - Start search, OpenBCI-E608 appears however, IP Null, MAC undefined, version undefined Hub in data folder outdated. Download a new hub for your OS at ....... Did this, same problem.

andrewjaykeller commented 6 years ago

Can you please go to 192.168.4.1/WiFi/delete midway through step three?

andrewjaykeller commented 6 years ago

Are you attempting to do WiFi direct or WiFi through router?

JeffOlsen-SLAC commented 6 years ago

Andrew,

I think I am connecting via WiFi direct. I click on OpenBCI-E608 and connect. Some times I get a message saying that more information might be necessary.

I tried doing an wifi/delete, did not seem to change anything.

I will not have much time to continue working on this till after the Thanksgiving break.

Jeff O.

From: AJ Keller [mailto:notifications@github.com] Sent: Tuesday, November 21, 2017 10:19 AM To: OpenBCI/OpenBCI_WIFI Cc: Olsen, Jeff J.; Mention Subject: Re: [OpenBCI/OpenBCI_WIFI] Cannot connect (#51)

Are you attempting to do WiFi direct or WiFi through router?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/OpenBCI/OpenBCI_WIFI/issues/51#issuecomment-346115465, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AUPaLvjY1-Ie8MzRMM_tCMAmMq_49SRRks5s4xP9gaJpZM4QlBjE.

andrewjaykeller commented 6 years ago

If you are using WifI direct. Perhaps try a 192.168.4.1/board to see if the wifi shield is connected to the OpenBCI board below.

Thanks

AJ

andrewjaykeller commented 6 years ago

@JeffOlsen-SLAC I made a youtube video for you!

https://www.youtube.com/watch?v=Zun-kR25Fis

JeffOlsen-SLAC commented 6 years ago

aj, Everything I did works just like the video except the system does not start after selecting "Start System". I get "Dang ..." and "Hub in data folder outdated..." as above. I think that maybe I have some links to old software. Two things I noticed in the video. 1 - You did not shut down your explorer window after connecting to .../board 2 - You did not run OpenBCIHub The last couple of times I powered up the Shield, the Shield appeared as ESP-B1E608, but still appeared in the GUI as OpenBCI-E608.

andrewjaykeller commented 6 years ago

You did not shut down your explorer window after connecting to .../board

Shutting the browser has nothing to do with whether a connection is made to the GUI.

You did not run OpenBCIHub

The hub is automatically run on macOS

and "Hub in data folder outdated..." as above.

Which version of the hub are you running?

andrewjaykeller commented 6 years ago

Want to have a Skype? I’d love to watch your screen! Email me at info@pushtheworld.us

JeffOlsen-SLAC commented 6 years ago

AJ,

I am taking today off for the Thanksgiving holiday. I will be in touch on Monday. Have a great Thanksgiving and weeked.. Jeff O.

From: AJ Keller [mailto:notifications@github.com] Sent: Wednesday, November 22, 2017 8:12 AM To: OpenBCI/OpenBCI_WIFI Cc: Olsen, Jeff J.; Mention Subject: Re: [OpenBCI/OpenBCI_WIFI] Cannot connect (#51)

Want to have a Skype? I’d love to watch your screen! Email me at info@pushtheworld.usmailto:info@pushtheworld.us

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/OpenBCI/OpenBCI_WIFI/issues/51#issuecomment-346397582, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AUPaLj3POpUBTf-azbfS5U2GRDOfSkKdks5s5EfLgaJpZM4QlBjE.

andrewjaykeller commented 6 years ago

@JeffOlsen-SLAC alright thanks! have a great weekend.

JeffOlsen-SLAC commented 6 years ago

Andrew, I have some time this morning to re-try using the Wifi interface. Can you please point me to the current versions of the Gui and Hub that I should be using?

Jeff O.

andrewjaykeller commented 6 years ago

I made a youtube video called OpenBCI WiFi Shield - WiFi/WiFi Direct Demos - Windows 10 with the purpose of providing you a clear example of how to use:

andrewjaykeller commented 6 years ago

@JeffOlsen-SLAC any luck?

JeffOlsen-SLAC commented 6 years ago

I don't know what is going on. Yesterday morning cleaned up my laptop and reinstalled the software from the WEB. I could connect and take data consistently, however files had a lot of dropped data. Then I downloaded and ran the beta versions you pointed me to and I have been having problems just connecting. Maybe I will find some time today to do more testing. I notice in the file that not only are the sample sequence numbers are not contiguous, but also the timestamp does not make sense. If I am taking data at 250Hz, I would expect to see the timestamp increment by 0.004 each sample. However what I see is 3 points at .476, 2 at .486, 3 at .498. Do you know why?

andrewjaykeller commented 6 years ago

@JeffOlsen-SLAC thanks so much for getting back to me!

Yesterday morning cleaned up my laptop and reinstalled the software from the WEB

OpenBCI_GUI v3.1.0?

I could connect and take data consistently, however files had a lot of dropped data.

Are you going through hotspot or router? WiFi direct should solve this.

Maybe I will find some time today to do more testing.

Could we do a skype/gotomeeting/hangouts when you do?

JeffOlsen-SLAC commented 6 years ago

I have been using OpenBCI_GUI v3.2.0 since I started using the Wifi Shield. I do not have a router in the system. I connect to the Shield at 192.168.4.1 When I get back to this project, I will contact you and we can Skype. Jeff O.

andrewjaykeller commented 6 years ago

@JeffOlsen-SLAC awesome! Please email your skype name! We can get this working well!

JeffOlsen-SLAC commented 6 years ago

AJ - I was beginning to suspect that my Cyton board was flaky so I got our spare one out. I updated the firmware and I get the same results, a lot of dropped packets using Wifi Direct. I moved the system to our lab hoping that there might be less "noise" to interfere with the Wifi, but the results were the same. Unfortunately, I don't have a lot of time to spend on this as I have some other serious deadlines before the holiday break and this is not a high priority project. I am able to connect to both board reliably but the data transfer is bad. Any new ideas?

andrewjaykeller commented 6 years ago

@JeffOlsen-SLAC that's a bummer to hear

What sample rate are you using? What latency are you using? What type of computer do you have? Did you try UDP with new GUI v3.2.0-rc2

I'm pretty sure if you could just do one video chat this could all get resolved! I'm seeing good results with wifi direct so i think if you are getting this far we must be close.

JeffOlsen-SLAC commented 6 years ago

AJ,

You can try to Skype me at jeff@jandjolsen.netmailto:jeff@jandjolsen.net

From: AJ Keller [mailto:notifications@github.com] Sent: Tuesday, December 05, 2017 11:58 AM To: OpenBCI/OpenBCI_WIFI Cc: Olsen, Jeff J.; Mention Subject: Re: [OpenBCI/OpenBCI_WIFI] Cannot connect (#51)

@JeffOlsen-SLAChttps://github.com/jeffolsen-slac that's a bummer to hear

What sample rate are you using? What latency are you using? What type of computer do you have? Did you try UDP?

I'm pretty sure if you could just do one video chat this could all get resolved! I'm seeing good results with wifi direct so i think if you are getting this far we must be close.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/OpenBCI/OpenBCI_WIFI/issues/51#issuecomment-349422593, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AUPaLoq8QONLN3mgk8o-p8i5iQuCgaC3ks5s9aA6gaJpZM4QlBjE.

andrewjaykeller commented 6 years ago

@JeffOlsen-SLAC please email me at info@pushtheworld.us I can not find you on Skype!

JeffOlsen-SLAC commented 6 years ago

AJ- I lost the link to the UDP that you sent me on Skype. Could you please resend it to me?

andrewjaykeller commented 6 years ago

https://github.com/OpenBCI/OpenBCI_GUI/releases/tag/v3.2.0-rc2