Digistump Forums

The Oak by Digistump => Oak Support => Topic started by: rjain on January 27, 2016, 09:23:48 am

Title: Oak is not connecting my home ssid
Post by: rjain on January 27, 2016, 09:23:48 am
Hi All
  I am new to IoT world, but i was so excited to try out.
I got the Oak and i was following instruction for configuring my wifi ssid on Oak.
  Here are the steps I followed from my iPhone and also tried with my PC win7
    1) Check are you are connect to internet (Home network)
    2) open http://rawgit.com/digistump/OakSoftAP/master/config.html
    3) Click on "I am setting up a new Oak"  and login using particle username /password
    4) Then Connect to SSID ACORN-XXXXXX , it show 10 ssid  one of them is my home ssid
    5) select that and provide network password ( WPA key)  go ahead
  But LED light don't blink fast or irregular , When check on my router for active client on that SSID, i don't see this device
 I have also check my network password no issue with it. I login into particle dashboard i don't see this device

  Could you please help me to resolve my issue.

Thanks
Rahul
 
Title: Re: Oak is not connecting my home ssid
Post by: aja175 on January 27, 2016, 01:31:39 pm
You're not alone, the firmware is offline until the bugs are resolved.
Title: Re: Oak is not connecting my home ssid
Post by: miguelangellv on January 28, 2016, 01:20:34 pm
Any way to use as standar esp8266?
Title: Re: Oak is not connecting my home ssid
Post by: rjain on January 29, 2016, 09:33:07 am
After yesterday's update set by Erik, I tried again today .
It blink fast 1st time for 3 seconds and then nothing happen
I tried again but it is not doing update and registering to particle.io
Title: Re: Oak is not connecting my home ssid
Post by: rjain on January 29, 2016, 09:48:55 am
I followed step couple of times, it got connected and upgrade is done.
i do see my device in particle.io
thanks for your help
Title: Re: Oak is not connecting my home ssid
Post by: ximon on January 29, 2016, 11:43:06 am
Mine refuses to connect to my Virgin media wifi, I can only manage to get mine online using my phone as a wifi access point.

Any ideas??
Title: Re: Oak is not connecting my home ssid
Post by: Luminaric on January 29, 2016, 11:53:48 am
I've been trying to get the upgrade done for hours. I can get the led to blink for 15 - 20 seconds, then nothing.  About how long rjain did your update take?
Title: Re: Oak is not connecting my home ssid
Post by: darklotus on January 29, 2016, 02:33:15 pm
Im in Australia so i put it down to flakey internet, but took me about 4-5 attempts to get one of mine to update, would flash fast for 1-5 seconds, then a few times at 15-20 seconds. The attempt that worked took over 30 seconds, So if it was me I would give it a few more shots
Title: Re: Oak is not connecting my home ssid
Post by: rjain on January 30, 2016, 02:19:41 pm
My Upgrade took 1 minute.
Title: Re: Oak is not connecting my home ssid
Post by: avenue33 on February 01, 2016, 06:15:17 am
Same problem here from France, tested yesterday January 31st.

Despite numerous tries, and the LED flashing fast for 20 seconds, the Oak doesn't connect to my LAN.

I can't tell the firmware has been updated.

I had a poor experience with my Particle Photon and the Particle servers, as they are often overloaded.

Is an update through USB possible? This would be safer!
Title: Re: Oak is not connecting my home ssid
Post by: Ultiman on February 01, 2016, 07:59:02 pm
Im new here. I just received my oak and try to connect it with no luck

i have try different router secure or not, the led blink for some time but it never connect at the end so the firmware update probably fail.

any news on a more stable process?
Title: Re: Oak is not connecting my home ssid
Post by: gkelly on February 03, 2016, 03:42:03 pm
I'm having the same issue (I think).  The configure-ap request times out after 7.5min.  It's not clear to me if the Oak isn't connecting to wifi, can't download the firmware, or can't apply the firmware.  The LED just blinks out a steady pulse, no information about the process.  Is there any place to look to know that the firmware is currently being served?  I've seen a few posts that suggest it's both there and not there.  :P
Title: Re: Oak is not connecting my home ssid
Post by: avenue33 on February 04, 2016, 06:41:13 am
I summarised the question at "Connecting and Programming Your Oak" — Out of Beta, When? (http://digistump.com/board/index.php/topic,1980.0.html)
Title: Re: Oak is not connecting my home ssid
Post by: digistump on February 06, 2016, 04:02:24 am
Can any one who had trouble getting the beta firmware update to work please try again, I've written a custom server to send the file to the Oak "just how it likes it" in hopes that it will make the setup much smoother, and my tests have been a big success, but I can't account for every router/connection/etc

Thanks,
Erik
Title: Re: Oak is not connecting my home ssid
Post by: rlisle on February 06, 2016, 07:02:39 am
Yes, thank you! I was able to connect just now.
Title: Re: Oak is not connecting my home ssid
Post by: Ultiman on February 06, 2016, 01:07:21 pm
no luck for me

same problem has before
Title: Re: Oak is not connecting my home ssid
Post by: gkelly on February 12, 2016, 06:58:35 am
No luck for me either.  The SoftAP configuration page just shows "Your Oak failed to download the update. Please power cycle your Oak, reconnect to its AP [...]".  I'm going to try to attach to the UART to see if there's anything helpful debugging-wise there.  My WiFi configuration is an Asus RT-N66U in WPA2 mode.  I also tried to download the update by using the hotspot on my Nexus 5X.  This actually looked like it might work (I saw the fast-blinking pattern for the first time, it's ~5Hz if you're wondering if you've seen it) but the end result was the same.
Title: Re: Oak is not connecting my home ssid
Post by: werner on February 12, 2016, 07:58:13 pm
I've configured 5 Oaks up to the point where they connect to the Particle cloud and can also be programmed with some example sketches.   But it took a lot of patience and many retries to get to this point.   And one of the five stopped connecting to the Particle cloud completely.  I tried to unbrick it (which kind of worked with the LED flashing as expected, except that it does not show up as a WiFi APN anymore).   I also tried to resend its device id via serial cable, but that did not work either.   So for now I've put that one unit to one side and just using the other four to play with for now.  Maybe with the next firmware release I will re-attempt to revive it.
Title: Re: Oak is not connecting my home ssid
Post by: PeterF on February 15, 2016, 11:46:01 pm
I had issues getting any Oaks to register on the particle cloud after connecting to my normal home AP (router). I ended up connecting via a portable AP (filehub), and then was able to get them to update and register on particle (the particle registration appeared to be the biggest issue). After doing that, and uploading a blink program, I was able to turn off the AP, and when SoftAP went into failsafe mode and started the configuration process up again, I was able to connect to my normal AP, and then upload another blinky sketch, which they have been happily running for about 20 hours now.

Hope that helps narrow down the problem / helps someone else out.

Pete
Title: Re: Oak is not connecting my home ssid
Post by: claudiuo on February 16, 2016, 10:54:14 am
I keep reading these forum posts hoping I'll get some advice and there are plenty of ideas but nothing seems to work for me. Since I got my Oaks more than a week ago I tried to download the firmware on 2 of them, used 2 different routers at home, tried at work, moved the Oaks away from the routers, tried to use my Android phone as a hotspot (I see the Oak connecting and then it disconnects) - nothing seems to do it. I've seen the LED blink fast quite a few times, sometimes for 4-5 seconds, a couple times about 20s but in the end nothing. What else can I try?

Please understand that this is not a complaint addressed to Erik. He is one of the few on kickstarter that goes above and beyond trying to have a smooth campaign and to make sure his boards work as they should; even after these Oak issues, I would still back any new projects he comes up with in a heartbeat. I am just trying to figure out what to do next.

Keep trying everyday maybe it will work - did anyone go this route and eventually it worked?

Get one of those serial boards and try the OakRestore way - I am worried I may brick my Oaks but if it worked for many people, I would try it.

Wait until later when things will be more ironed out?

Are there any other ideas I may have missed?

I know most of these questions are rhetorical, I am really not sure what to do and trying to find answers from anyone that was able to make the Oaks work in the end... Thanks in advance for any thoughts that could help.
Title: Re: Oak is not connecting my home ssid
Post by: werner on February 17, 2016, 12:56:42 am
Quote
Keep trying everyday maybe it will work - did anyone go this route and eventually it worked?
That's more or less what I did.  Some of my boards connected quickly to the Particle cloud.  Others  took many attempts but it eventually worked.

Quote
Get one of those serial boards and try the OakRestore way - I am worried I may brick my Oaks but if it worked for many people, I would try it.

I think part of the problem is that people confuse a working app with with bricking.  You must remember that once you load your own app, it replaces the existing initial base one.  So the LED might not flash anymore and it may no longer be visible as a WiFi AP anymore.  But that does not mean its bricked.  It just means your own app is running.  (This concept confused me also in the beginning.   

But having said that, I have no doubt that at at least two of my Oaks really got bricked but I can at least confirm the serial unbrick method worked for me .  I've done it several times.

Quote
Get one of those serial boards and try the OakRestore way -

I highly recommend it.  It is also invaluable to me as a debug tool as well.  (I can't imagine trying to work without a serial debug output on this)

You can also just get a FTDI USB to TTL cable like this one I use:
http://www.dx.com/p/ft232-to-usb-ttl-wire-integrated-terminal-cable-for-programmer-black-95cm-203717#.Vrr7L1nhNaQ (http://www.dx.com/p/ft232-to-usb-ttl-wire-integrated-terminal-cable-for-programmer-black-95cm-203717#.Vrr7L1nhNaQ)

Quote
Wait until later when things will be more ironed out?

I think once you can get past the problem of connecting to the particle cloud, then loading your own apps onto the Oak works quite reliably.  I have no doubt things will become more stable over time, but its quite fun to get into the thick of it already.

One thing I think would have helped a lot of Kickstarters is better documentation that is a bit more chronological and logical.  Instead I find it a bit all over the place with little bits on all kind of places.   I think I probably wasted several hours just wading through everything to form a good understanding of what I actually needed to get started.  This is also not a criticism to Erik, but I think if he anticipated that new enthusiastic backers will get confused by things that is not documented well before shipping the rewards, then it would have saved himself and lots of the backers lots of time and frustration.   

The product itself is quite remarkable and I'm still very happy I backed it.   And I'm thinking of nice things to do with them all the time.
Title: Re: Oak is not connecting my home ssid
Post by: digistump on February 19, 2016, 10:40:50 pm

I think part of the problem is that people confuse a working app with with bricking.  You must remember that once you load your own app, it replaces the existing initial base one.  So the LED might not flash anymore and it may no longer be visible as a WiFi AP anymore.  But that does not mean its bricked.  It just means your own app is running.  (This concept confused me also in the beginning.   

But having said that, I have no doubt that at at least two of my Oaks really got bricked but I can at least confirm the serial unbrick method worked for me .  I've done it several times.


I want to clarify part of this: An Oak has 3 rom slots, one holds your Config rom, one holds your User rom (what you upload), the other is empty. When you upload a new User rom or a new Config rom (due to an update), it goes to the empty slot and once confirmed complete and good the pointer to that rom is changed to point to that slot.

If you think you've totally bricked it - I really really would love to get a copy of the sketch and/or bin file that did that to confirm if it was in fact a brick, and if so, to ensure that we have a failsafe to get you out of it without a serial adapter.

Thanks everyone for all the testing, do know that even if time limits how much I respond to at any given time, I am reading this all and shaping what I try to fix next based on your feedback
Title: Re: Oak is not connecting my home ssid
Post by: digistump on February 22, 2016, 05:20:09 pm
I was finally able to replicate the update issues reliably - specifically they seem to involve fast connections allowing the device to download data so fast that each loop to write the data to the Oak's memory goes so fast that it outpaces the Oaks ability to erase the next block of memory before writing it. (This bug seems to possibly have some deep roots in the chips internal libraries).

I was not able to reliably replicate this previously because, being in a rural area, my internet connection is slower than many (1.5mbps on a good day) and all of my local testing was done with extensive debugging output turned on, which slowed down the loops enough to prevent this from showing up. Stripping my debug output down significantly and ensuring no output occurred during the write/erase loops, while also hosting it locally within my network allowed me to reproduce the issue 100% of the time.

My fix is to have the web server send only one sector worth of data every 50 milliseconds. This results in a total time of at least 150ms per sector, which seems to fix this issue. I've tested it locally and remotely with 100% success.

This fix is live and you can test it by retrying the update (no changes to the Oak or Config App needed).

If the update still fails to work then please download the newest OakRestore here (https://github.com/digistump/OakRestore) and follow the instructions to provide the debugging output so we can look into it further, as this very well could be one issue of several.

(Sorry that's very long winded as I'm copying the text from a Kickstarter update I'm preparing, but seems worth posting here)
Title: Re: Oak is not connecting my home ssid
Post by: claudiuo on February 25, 2016, 11:51:10 am
Thanks a lot, @werner for your reply. I still didn't have any success but I will keep trying. As you suggested, I am trying every day with both my Oaks but until now nothing. All I get is fast blinking (starting anywhwere between 45-50 seconds on the countdown timer) that lasts to approx. 20-26s on the countdown. Then slow blinking again and a report that the download was not successful.

Quote
I highly recommend it.  It is also invaluable to me as a debug tool as well.  (I can't imagine trying to work without a serial debug output on this)

I ordered one of those boards now waiting patiently for it to arrive slowly from China.

I see Erik said he may have found the issue, unfortunately it didn't work for me but as I said, I will keep trying.

Thanks again for all the suggestions.
Title: Re: Oak is not connecting my home ssid
Post by: starwolf73 on February 25, 2016, 12:57:17 pm
@Claudiuo, please see my post. It may help you resolved some issues. http://digistump.com/board/index.php?topic=2046.msg9239#msg9239