Reset to system defaults

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mgennip
Normal user
Posts: 22
Joined: 17 Jun 2016, 19:22

Reset to system defaults

#1 Post by mgennip » 29 Jun 2016, 15:46

I know it is possible to reset to system defaults by giving the 'reset' command via the serial interface.
ESP will then appear as ESP_0 just like a new flashed ESP.

Is it possible to reset the system by rules? For example if a switch at GPIO is pushed the reset will take place?

I can always add this feature to my system with a very small PIC processor, but if it can be done in the firmware
saves me space on my PCB.

Maybe a feature request?

thank you.

User avatar
nonflammable
Normal user
Posts: 42
Joined: 09 Mar 2016, 22:19
Location: Poland

Re: Reset to system defaults

#2 Post by nonflammable » 05 Jul 2016, 13:19

It should be possible.
Just add Switch Input in Devices.
Eg.
Name: S1
GPIO 14
Value Name: Switch

then in rules add:
on S1#Switch=1.00 do
reset
endon

*for tests it's better change "reset" to "reboot" :)

mgennip
Normal user
Posts: 22
Joined: 17 Jun 2016, 19:22

[Solved] Reset to system defaults

#3 Post by mgennip » 10 Jul 2016, 19:07

I found a solution;

When connecting Tx and Rx together during bootup, it will bring ESP to it's virgin state. After that, you can see ESP_0 in your AP list and connect to it.

phil77560
New user
Posts: 8
Joined: 08 Jul 2016, 09:56

Re: Reset to system defaults

#4 Post by phil77560 » 11 Jul 2016, 14:35

mgennip wrote:I know it is possible to reset to system defaults by giving the 'reset' command via the serial interface.
ESP will then appear as ESP_0 just like a new flashed ESP.
Could you please tell me how ?

phil77560
New user
Posts: 8
Joined: 08 Jul 2016, 09:56

Re: [Solved] Reset to system defaults

#5 Post by phil77560 » 11 Jul 2016, 14:37

mgennip wrote:I found a solution;

When connecting Tx and Rx together during bootup, it will bring ESP to it's virgin state. After that, you can see ESP_0 in your AP list and connect to it.
Unfortunatly this doesn't work at home !!

mgennip
Normal user
Posts: 22
Joined: 17 Jun 2016, 19:22

Re: Reset to system defaults

#6 Post by mgennip » 11 Jul 2016, 19:56

On ESP board connect TX and RX together, power up the board and remove the TX RX shortcut. Flash will be erased, this takes some time, then ESP_0 will appear on your laptop's AP list.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests