Author Topic: Can't configure Wi-Fi after "restoring your oak to factory setting"  (Read 186 times)

jirapon

  • Newbie
  • *
  • Posts: 10
I don't know if the following is the cause of my issue. I cannot store my wifi settings on my oak. I is perpetually blinking 3 burst led then pause.

So I finally got myself a uart and got the latest firmware on my oak successful. I've been following the instructions from: https://github.com/digistump/OakRestore. However I have a problem. The following text is written on that page:

"This will not restore an Oak that has had its Particle Config overwritten at 0x100000 and 0x201000 - a device where that has occured can be partially restored by this method but then will need its device id set via serial, and you'll need to have recorded it previously. Then connect at 115200 baud and send set\n40\n{"device-id":"123456789012345678901234"}\n where 123456789012345678901234 is replaced by your device-id. You can also send a raw POST to 192.168.0.1/set with the same JSON while connected to the AP of the Oak"

I do know my device-id however the rest of that text didn't make much sense to me. How do I: "Then connect at 115200 baud and send set\n40\n{"device-id":"my device id"}\n"

And then: "You can also send a raw POST to 192.168.0.1/set with the same JSON while connected to the AP of the Oak""

Any assistance would be greatly appreciated.
เว็บแทงบอล
แทงบอล
แทงบอลออนไลน์


PeterF

  • Hero Member
  • *****
  • Posts: 883
Re: Can't configure Wi-Fi after "restoring your oak to factory setting"
« Reply #1 on: September 01, 2019, 01:06:43 am »
Sorry for not responding sooner, haven't been on this forum for a few months...

So, OakRestore...

You've gotten your serial uart, and know how to connect it to the Oak? Well, the
Code: [Select]
Then connect at 115200 baud and send set\n40\n{"device-id":"my device id"}\n"
bit of the instructions relates to using the serial uart. You connect to the Oak, using some serial software - putty, Arduino Serial Monitor, coolterm, etc. You connect at at 115200 baud (speed). This is then when it gets tricky. I'm pretty sure I was able to configure my terminal software so that it send a `\n` (for newline) when pressing enter... so I could type `set` [enter] `40` [enter] `{"device-id":"my-device-id"}` [enter].

Alternately, you could probably do something like using curl to
Code: [Select]
curl -v -H "Content-Type: application/json" -X POST -d '{"device-id":"your-device-id"}' 192.168.0.1/set

or have a look for an extension for your web browser that lets you do send POST messages... RESTer is one for Firefox... I've used Postman on Chrome. Hopefully that gets you started.