Author Topic: Unable to connect or save settings to your Oak  (Read 10363 times)

thinbits

  • Newbie
  • *
  • Posts: 12
Unable to connect or save settings to your Oak
« on: February 09, 2016, 02:10:53 pm »
I've received my three Oaks, but I can't seem to get any of them to update and register with Particle. I'm on a MacBook Pro with Mac OS 10.11.3, ethernet connection to LAN and WiFi set to the Acorn.

Visiting http://rawgit.com/digistump/OakSoftAP/master/config.html in Safari, I've entered my Particle credentials, the web page then lists all the APs it sees, I select mine and enter the password, and I get the error: "Unable to connect or save settings to your Oak, please ensure you are connected to the Oak's network and retry"

I've tried all three Oaks. I've tried creating a guest network with no password for them to join. I've tried both Safari and Chrome. I tried having them join my iPhone in tethering mode. Nothing seems to work, the LED on the Oak just blinks at the same 1 Hz rate.

Is there a way to set them up via USB?

Grisbane

  • Newbie
  • *
  • Posts: 8
Re: Unable to connect or save settings to your Oak
« Reply #1 on: February 09, 2016, 04:45:28 pm »
I don't think you are alone here, from what I've seen in the other forum threads.  I am in the same boat.

I will say that from what I've read, never getting the "rapid blinking" means that it is not connecting to your wireless router you choose when setting it up from the "http://rawgit.com/digistump/OakSoftAP/master/config.html" page and instructions.  Just a thought.

I have 2 of the Oaks and have never gotten either of them to "rapid" blink for more than 30 seconds (and that rarely).  Even then, they are not setting themselves up as devices in my particle.io account.  I've been trying many times every day for over a week now and still no workie.

I have not seen any instructions for configuring/using them via USB, though I'd love to know the answer to this one.

The only thing I've seen is accessing them through a FTDI device, but I didn't have one.  I did order one and am waiting for it to arrive.

I understand that this is a Kickstarter program and that the folks running this project are very busy, but more information for those of us having a hard time getting them running would be very nice.

If anyone else has more advice, I'd love to try it!

thinbits

  • Newbie
  • *
  • Posts: 12
Re: Unable to connect or save settings to your Oak
« Reply #2 on: February 13, 2016, 02:25:23 am »
I saw that Beta 3 was released today, so I retried with the latest OakSoftAP (refreshed in both Chrome and Safari). Still get the same error. Should it have worked better?

My access point is an Apple Airport Extreme (the new tall one, not the old flat one), if that matters.

thinbits

  • Newbie
  • *
  • Posts: 12
Re: Unable to connect or save settings to your Oak
« Reply #3 on: February 13, 2016, 03:19:46 pm »
FWIW, I just flashed my Oak with the Beta 3 release, but I still get the same error message.

Flashing process went smoothly (I used an Adafruit FTDI Serial TTL-232 USB Cable), so at least that works...

darklotus

  • Newbie
  • *
  • Posts: 7
Re: Unable to connect or save settings to your Oak
« Reply #4 on: February 13, 2016, 07:07:07 pm »
Are you both able to post the exact models of your routers the Oaks appear to dislike, maybe we can start to narrow it down to a particular chipset or something.

tcarleton

  • Newbie
  • *
  • Posts: 21
Re: Unable to connect or save settings to your Oak
« Reply #5 on: February 14, 2016, 08:47:52 pm »
I unclaimed and ran OakRestore on one of my previously activated (0.9.2) oaks yesterday and after several hours into the AM I gave up trying to flash it. Most attempts were right about 20 seconds with one over 20. I was doing it so frequently I ended up plugging VIN to a breadboard so I could easily pull power, reconnect power, connect to wifi, hit try again... wait a minute... check wifi, see the update failed, pull power...  reconnect power, check wifi... hit next... (It got old quick).

The majority of the time I was connecting to a Netgear router:
Hardware Version   WNDR4500
Firmware Version   V1.0.1.40_1.0.68

I also tried a Linksys router running DD-WRT using a separate SSID. I've tried G, Mixed GN and N (previous attempts, last night it was only on N) but noticed no improvement when adjusting it:
Router Model Linksys WRT310N
Firmware Version DD-WRT v24-sp2 (08/07/10) std - build 14896

Using an iphone 5 hotspot on three attempts - no download (my opinion of that tether is "use only if you have to" so I'll blame that)

I have neighbors/shared walls and everyone has wifi around me, but uploads from the IDE once working were not an issue.

At the moment I have 1 oak in package, 3 on 0.9.2, and 1 restored that I couldn't re-activate.

thinbits

  • Newbie
  • *
  • Posts: 12
Re: Unable to connect or save settings to your Oak
« Reply #6 on: February 20, 2016, 12:01:08 am »
Still no progress on this. Frustrating, since if you can't get the SoftAP config to work you can't do anything.

Is there any documentation on the process the javascript goes through to configure and update the Oak? I tried reading through the source, but it's a bit messy and appears to use a lot of library code. I can't really follow what all it's doing (I'm a Mac and iOS engineer, not very proficient in Javascript).

If I could figure out what the javascript is doing under the hood I could write a Mac OS command line tool to do the job in an easier to read and more robust manner. I can re-flash over serial, so I'm not afraid of bricking it...

Also, if it helps the Digistump folks, I'm local (Portland). If you need to see the problem to fix it, just reach out.

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Unable to connect or save settings to your Oak
« Reply #7 on: February 20, 2016, 01:00:14 am »

tdk337

  • Newbie
  • *
  • Posts: 3
Re: Unable to connect or save settings to your Oak
« Reply #8 on: February 23, 2016, 07:39:28 am »
I may have found the solution as I also have received an error message while registering your Oak to Particle.io via webconfig tool located at http://rawgit.com/digistump/OakSoftAP/master/config.html. I've posted my solution at http://digistump.com/board/index.php/topic,1940.msg9203.html#msg9203.

thinbits

  • Newbie
  • *
  • Posts: 12
Re: Unable to connect or save settings to your Oak
« Reply #9 on: February 25, 2016, 06:14:38 pm »
Retried with the updated files. Reset to factory with the latest files from the OakRestore repo on github. Factory reset worked. Then tried the latest from the OakSoftAP repo.

Still get the "Unable to connect or save settings to your Oak" message after selecting my WiFi and entering my password. No improvement.

thinbits

  • Newbie
  • *
  • Posts: 12
Re: Unable to connect or save settings to your Oak
« Reply #10 on: March 04, 2016, 07:56:21 pm »
I noticed that the OakRestore and OakSoftAP repos have not been updated since the last time I tried, so I'm guessing no progress has been made on this...

I tried again today, this time running Charles proxy. Noticed two things of interest.

GET /system-version returns a 404.

The last call is a POST /configure-ap
It returns 200 OK, but the response JSON is: {"r":-1}

I'm going to guess -1 is bad?

Any ideas on how to get past this?

Blitzfx

  • Newbie
  • *
  • Posts: 31
Re: Unable to connect or save settings to your Oak
« Reply #11 on: March 04, 2016, 10:14:01 pm »
There's a $1000 bounty to root cause and fix this issue on github.

How I got mine to update was just brute force..... kept trying over and over again.

thinbits

  • Newbie
  • *
  • Posts: 12
Re: Unable to connect or save settings to your Oak
« Reply #12 on: March 05, 2016, 12:47:03 pm »
I think I have found the problem that is preventing AP setup (it's failing in the configure-ap JSON parser). However, I don't see any docs on how to build the OakSystem project (ReadMe says don't even try).

I've got Oak 0.9.5 installed in the Arduino board manager (IDE 1.6.7), but building OakSystem.ino yields a bunch of compile errors (at a minimum, missing a bunch of headers).

If I could get this building I'd fix the problem and submit a patch. Is there a specific setup needed to re-build this?

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: Unable to connect or save settings to your Oak
« Reply #13 on: March 05, 2016, 06:59:45 pm »
I think the stuff you need to compile the OakSystem firmware is linked on the  fix for update issues issue/bounty on Github. Have a look at the comments by Erik (digistump) - in the second comment, and in another about five further down.