Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andrewjaykeller opened this issue Jan 10, 2018 · 12 comments
Open

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

andrewjaykeller opened this issue Jan 10, 2018 · 12 comments

Comments

@andrewjaykeller
Copy link

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

@andrewjaykeller
Copy link
Author

note that /wifi/config works

@micuat
Copy link

micuat commented Jan 10, 2018

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

andrewjaykeller pushed a commit to andrewjaykeller/OpenBCI_Wifi that referenced this issue Jan 16, 2018
andrewjaykeller pushed a commit to andrewjaykeller/OpenBCI_Wifi that referenced this issue Jan 16, 2018
@jnaulty
Copy link
Contributor

jnaulty commented Feb 19, 2018

@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...

@micuat
Copy link

micuat commented Feb 19, 2018 via email

@dyfer
Copy link

dyfer commented Sep 4, 2018

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!

@testpilot0
Copy link

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?

@niko1point0
Copy link

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

@jacobgmartin
Copy link

jacobgmartin commented Jan 8, 2020

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?

@FlyingFordAnglia
Copy link

Any updates on this issue?

@benoitseron
Copy link

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!

@MonzurulAlam
Copy link

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.

@sperckest
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests