OpenBCI_WIFI
OpenBCI_WIFI copied to clipboard
BUG: Hitting /wifi does not always start wifi config portal
I have noticed with 2.0.2 that the wifi config does not always start
note that /wifi/config works
just to add, the link "Click to Configure Wifi" on / should point to /wifi/config
@aj-ptw @micuat I've noticed
- web browser (chrome)
/wifi
endpoint does not seem to workHTTP 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...
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 .
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!
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?
Hey, I'm on 2.0.5 and I also have this problem, can't get the Wifi Configuration to open
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?
Any updates on this issue?
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!
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.
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.