OpenBCI_WIFI icon indicating copy to clipboard operation
OpenBCI_WIFI copied to clipboard

BUG: Hitting /wifi does not always start wifi config portal

Open andrewjaykeller opened this issue 6 years ago • 12 comments

I have noticed with 2.0.2 that the wifi config does not always start

andrewjaykeller avatar Jan 10 '18 01:01 andrewjaykeller

note that /wifi/config works

andrewjaykeller avatar Jan 10 '18 01:01 andrewjaykeller

just to add, the link "Click to Configure Wifi" on / should point to /wifi/config

micuat avatar Jan 10 '18 01:01 micuat

@aj-ptw @micuat I've noticed

  • web browser (chrome) /wifi endpoint does not seem to work HTTP GET / HEAP: 16240
  • web browser (chrome) /wifi? endpoint work consistently (haven't ran into any failures yet for it)
  • web browser (firefox) /wifi endpoint works consistently
  • using curl 192.168.4.1/wifi seems to work consistently

How exactly have you been testing the endpoint?

I think this is possibly an upstream bug the ESP8266WebServer project...

jnaulty avatar Feb 19 '18 03:02 jnaulty

I was using chrome. I will try curl/wget when I'm back in town tomorrow...

On Sunday, February 18, 2018, John Naulty Jr. [email protected] wrote:

@aj-ptw https://github.com/aj-ptw @micuat https://github.com/micuat I've noticed

  • web browser (chrome) /wifi endpoint does not seem to work
  • using curl 192.168.4.1/wifi seems to work consistently (haven't ran into any failures yet for it)

How exactly have you been testing the endpoint?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/OpenBCI/OpenBCI_WIFI/issues/62#issuecomment-366583207, or mute the thread https://github.com/notifications/unsubscribe-auth/ABwAScbm01jbmejzbSpnI2B2Grk73h2Aks5tWPB4gaJpZM4RYrJb .

micuat avatar Feb 19 '18 04:02 micuat

This happens to me also on the 2.0.5 firmware - I'm not able to open the wifi manager. (I get the initial webpage, but when trying to reach wifi manager, connection eventually dies out). However this might be an important piece of information: The wifi manager always works if the OpenBCI board (Cyton) is powered down! (the "ext pwr" switch is set to OFF). I hope this helps to track this down!

dyfer avatar Sep 04 '18 18:09 dyfer

I am trying to GET data from OpenBCI Wifi Server. I run Wifi Shield (connected to OpenBCI) as hotspot and I can issue GET http://192.168.4.1/all from my browser and it return some info (I've pasted it bellow just removing MAC addr)

{"board_connected":true,"heap":19568,"ip":"0.0.0.0","mac":"......","name":"OpenBCI-4CB8","num_channels":0,"version":"v2.0.5","latency":10000}

But it respond with "Route Not Found" if I try to run any of these commands /command /output/json /output/raw

Any way to fix that?

testpilot0 avatar Oct 03 '18 17:10 testpilot0

Hey, I'm on 2.0.5 and I also have this problem, can't get the Wifi Configuration to open

niko1point0 avatar Sep 27 '19 23:09 niko1point0

Hello, I'm having the same problem on 2.0.5. Here is the output of http://192.168.4.1/all (I replaced my mac address with .......)

{"board_connected":true,"heap":19192,"ip":"0.0.0.0","mac":"........","name":"OpenBCI-C471","num_channels":0,"version":"v2.0.5","latency":10000}

Also, when I click the config link, the wifi board has D4 and D3 blink once and D2 blinks 8 times, but there is nothing else.

I'm on linux. I don't know if it is related but after trying to config, I also can't connect through the OpenBCI GUI. When I try to connect there, it says "Check that the device is powered on and in range. Also try AUTOSCAN. Otherwise, Cyton firmware is out of date." The only way to get the OpenBCI GUI to work is to power down the board. Then, it still does not send data.

Any ideas?

jacobgmartin avatar Jan 08 '20 19:01 jacobgmartin

Any updates on this issue?

FlyingFordAnglia avatar Dec 04 '20 09:12 FlyingFordAnglia

Is there any update on this issue? I am still experiencing it. Is downgrading firmware an option? I am on 2.0.5.

The page http://192.168.4.1/wifi/config doesn't work

The page http://192.168.4.1/wifi/ gives

`Route Not Found`

http://192.168.4.1/all gives:

{"board_connected":true,"heap":19616,"ip":"0.0.0.0","mac":"4E:75:25:02:88:2F","name":"OpenBCI-882F","num_channels":0,"version":"v2.0.5","latency":10000}

I also tried using the OpenBCI GUI, I get the following

Exception in wifi shield scanning
	java.net.ConnectException: Connection refused (Connection refused)
		at java.net.PlainSocketImpl.socketConnect(Native Method)
		at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
		at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:204)
		at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
		at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
		at java.net.Socket.connect(Socket.java:589)
		at java.net.Socket.connect(Socket.java:538)
		at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
		at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
		at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
		at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
		at sun.net.www.http.HttpClient.New(HttpClient.java:339)
		at sun.net.www.http.HttpClient.New(HttpClient.java:357)
		at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1220)
		at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156)
		at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)
		at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:984)
		at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564)
		at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
		at java.net.URL.openStream(URL.java:1045)
		at com.vmichalak.protocol.ssdp.Device.parse(Device.java:52)
		at com.vmichalak.protocol.ssdp.SSDPClient.discover(SSDPClient.java:49)
		at OpenBCI_GUI$WifiBox$1.run(OpenBCI_GUI.java:5972)

I am not sure if this is a problem with the GUI permissions or related to the above one.

Any help would be greatly appreciated!

benoitseron avatar Nov 05 '22 12:11 benoitseron

My Cyton + Wifi Shield is working just fine when I upload the pre-compiled firmware (2.0.5), but not when I compiled and load the same source code: 2.0.5. Open BCI GUI says: Hardware cannot be initialized...

I'm using Arduino 1.8.19 with the following libraries on my Windows 11 computer: OpenBCI_Wifi WiFiManager ArduinoJson (v5.13.4) PubSubClient Time NtpClientLib

Please help. Thanks.

MonzurulAlam avatar Aug 17 '23 13:08 MonzurulAlam

When Cyton is power ON and OpenBCI Wi-Fi Shield is powered ON, http://192.168.4.1/wifi/config time out.

When Cyton is powered off http://192.168.4.1/wifi/config works as intended.

sperckest avatar Nov 13 '23 22:11 sperckest