How to delete config.dat

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
foxejoe
Normal user
Posts: 10
Joined: 15 Oct 2017, 10:01

How to delete config.dat

#1 Post by foxejoe » 04 Nov 2017, 09:06

Hi I probably have a corrupted config.dat since the esp is unresponding.
I reflash the firmware but the config.dat is still the old one since If I connect to the serial port I can read it.

The ESP remain in ST mode and not connecting to the network ... I probably need to delete the config.data but I don't know how.

Thanks for your help
Lorenzo

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: How to delete config.dat

#2 Post by vader » 04 Nov 2017, 13:49

Send the command 'reset' (e.g. unter Tools in the GUI) and the ESP ist set to AP mode and deletes the config.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: How to delete config.dat

#3 Post by grovkillen » 04 Nov 2017, 18:10

The command can also be sent over serial if the unit isn't accessible through web.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

cherylhoward
New user
Posts: 1
Joined: 21 Nov 2017, 09:43

Re: How to delete config.dat

#4 Post by cherylhoward » 21 Nov 2017, 10:39

Thank you for that command
On this forum I have found a lot of useful and free tips for my coding projects. Thanx a lot to everybody for this wisdom

tgd
New user
Posts: 2
Joined: 25 Jan 2018, 19:21

Re: How to delete config.dat

#5 Post by tgd » 25 Jan 2018, 19:26

Same porblem, but I can't access my esp through web. How can I send the reset command by serial?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: How to delete config.dat

#6 Post by grovkillen » 25 Jan 2018, 19:41

You need to connect a cable to the USB port or RX/TX on the unit.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

tgd
New user
Posts: 2
Joined: 25 Jan 2018, 19:21

Re: How to delete config.dat

#7 Post by tgd » 25 Jan 2018, 22:40

Thanks for the help re RX/TX connect info. Just saw your response - in the meanwhile found this
http://www.pratikpanda.com/completely-f ... sh-memory/
-tried it to no avail, but followed Peter Scargills advice in comments and used Expressif tool
python.exe esptool.py -p com3 -b 115200 erase_flash
Worked great.

Thanks all.

GregWoodsLancs
New user
Posts: 2
Joined: 25 Jan 2018, 10:25

Re: How to delete config.dat

#8 Post by GregWoodsLancs » 29 Jan 2018, 19:32

I have been searching for a way to test the setup procedure from scratch, but my WeMos D1 Mini always remembered my WiFi settings.

The Serial command "reset" sounded promising, but doesn't appear to do any sort of factory reset.

Eventually, I discovered esptool.py, and managed to erase the flash.

Code: Select all

esptool.py --chip esp8266 p com7 erase_flash
It's a shame ESP_Easy isn't as easy as it should be for noobs like myself.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: How to delete config.dat

#9 Post by grovkillen » 29 Jan 2018, 19:46

GregWoodsLancs wrote: 29 Jan 2018, 19:32 It's a shame ESP_Easy isn't as easy as it should be for noobs like myself.
Come on... We're doing something great here and we'll deliver a good product for free, and the official version 2 release will of course have more thing working.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

GregWoodsLancs
New user
Posts: 2
Joined: 25 Jan 2018, 10:25

Re: How to delete config.dat

#10 Post by GregWoodsLancs » 30 Jan 2018, 00:46

Wait until you see my upcoming post about my initial WiFi configuration experiences. I expect to get flamed for that too!!

However, I am persisting with ESPEasy. From what little I've seen, it does look like a great project, and I'm a huge fan of open source and respect the people who donate their time and energy.

But I stand by my statement: "It's a shame ESP_Easy isn't as easy as it should be for noobs like myself."
If you call something "EasyXXX" or "XXXEasy", you have to make sure the path of the noobs is tested over and over again, and is a completely smooth experience. I am of software developer myself, and I know how developers and regular users can become blinded to the flaws of a system. Maybe this has happened here... or maybe I'm an idiot. The fact that you've got all defensive instead of explaining where I went wrong hints at maybe I'm not an idiot after all!

I'm happy to file bug reports, but thought it was better to get feedback here first, just in case I'm doing something stupid.
I am trying to help, and apologise if my tone sounded otherwise.

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: How to delete config.dat

#11 Post by TD-er » 30 Jan 2018, 01:40

Well I'm all in for some proper "delete" features, including a call to clear all flash memory after the sketch. Just to make sure it is not causing issues when left over settings are still present.
It wouldn't be the first time I had to dive into the source to add some jumps in the code, to get rid of something I messed up while testing.
I'm also still often in proper n00b mode, even after adding several thousands lines of code to the project :)

Perhaps you can add some suggestions here: https://github.com/letscontrolit/ESPEasy/issues/696

Post Reply

Who is online

Users browsing this forum: No registered users and 42 guests