Author Topic: SoftAP times out. http://192.168.0.1/system-version - File Not Found  (Read 3827 times)

symonty

  • Newbie
  • *
  • Posts: 2
I am trying to use the SoftAP and it always times out. I connect to the ACORN-XXXX and get a 192.168.0.x address. So to try debug I looked at the OakSoftAP html code found this address "http://192.168.0.1/system-version"; this returns "File Not Found".
Ideas?

bpr

  • Newbie
  • *
  • Posts: 4
Re: SoftAP times out. http://192.168.0.1/system-version - File Not Found
« Reply #1 on: January 18, 2016, 11:20:34 pm »
I also get no joy. On a raspberry pi and on ubuntu 14.04.3 and android phone all return "Unable to connect or save settings to your OAK, please ensure you are connected to the Oak's network and retry." Curiously, on the android the signal from the oak is very strong but weak on the other machines(?) The power led is on steady and the other led blinks at 1 hz. I've tried 2 oaks on all three machines. Windows 10 wasn't able to even see or connect
Add: also, not sure it's significant, but the Oak's SSID seems to end in "\\x01"
« Last Edit: January 19, 2016, 08:19:54 am by bpr »

actuino

  • Newbie
  • *
  • Posts: 2
Re: SoftAP times out. http://192.168.0.1/system-version - File Not Found
« Reply #2 on: January 18, 2016, 11:44:23 pm »
Same thing here.
Connected to the AP, got an IP, can see the 192.168.0.1 page, but "Unable to connect or save settings to you oak"

symonty

  • Newbie
  • *
  • Posts: 2
Re: SoftAP times out. http://192.168.0.1/system-version - File Not Found
« Reply #3 on: January 19, 2016, 12:13:25 am »
Seems the system-version is not shipped till it is updated, so this error is expected.

So the softAP fails from https://cdn.rawgit.com/digistump/OakSoftAP/master/config.html

With an error for https://192.168.0.1/device-id but http://192.168.0.1/device-id works.

Unfortunetly when I download the version from github and run locally i get other errors.

djflix

  • Newbie
  • *
  • Posts: 24
Re: SoftAP times out. http://192.168.0.1/system-version - File Not Found
« Reply #4 on: January 19, 2016, 11:44:44 am »
So I modified config.html to run. What I did was the following:

replace (line 186)
       $.get( "http://192.168.0.1/system-version" ).fail(function(){cloud_connect_time = 60000;});
by
       $.get( "http://192.168.0.1/version" ).fail(function(){cloud_connect_time = 60000;});

comment out the if statement at line 219 until line 223.


Because the result of the WiFi-scan is not delimited by comma's ("}{" instead of "},{") I had to push my network to the array manually. To do this:
add (line 227)
dat = {};
dat.scans = [];
dat.scans.push({ "ssid":"YOUR-SSID-HERE","rssi":-51,"sec":4194306,"ch":6,"mdr":0 });


Obviously, you should replace YOUR-SSID-HERE with your SSID. rssi doesn't matter, as it is used to display your network in the config page. Sec is the Security Type, from what I can see it's 0 for no security, 4194306 for WPA2-AES, 4194310 for WPA/WPA2 Mixed Mode. Channel is your wi-fi channel. Not sure about mdr.


The above has been fixed by a recent commit: https://github.com/digistump/OakSoftAP/commit/47f749472371a1823709cf69504bbf5aed381e20.


With the changes above the Oak connects to your wifi, and presumably tries to download firmware that is not uploaded yet. Trying to claim your device in Particle will fail, as the Oak will never contact Particle without downloading the firmware first.
« Last Edit: January 19, 2016, 11:59:08 pm by djflix »