OTA on S20 with v2.0.0-dev8

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
CherAlban
Normal user
Posts: 14
Joined: 15 Nov 2016, 16:47

OTA on S20 with v2.0.0-dev8

#1 Post by CherAlban » 05 May 2017, 02:01

Hi,

I am running v2.0.0-dev8 on multiple Sonoff S20s using 'ESPEasy_v2.0.0-dev8_normal_1024.bin'. When trying to do an OTA with the same file, i get an 'Update Failed', and the device reboots with all settings reset. Is this a bug, or will OTA not be possible on 1M devices in the future?

CherAlban

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: OTA on S20 with v2.0.0-dev8

#2 Post by toffel969 » 05 May 2017, 11:13

CherAlban wrote: 05 May 2017, 02:01 Hi,

I am running v2.0.0-dev8 on multiple Sonoff S20s using 'ESPEasy_v2.0.0-dev8_normal_1024.bin'. When trying to do an OTA with the same file, i get an 'Update Failed', and the device reboots with all settings reset. Is this a bug, or will OTA not be possible on 1M devices in the future?

CherAlban
I might be wrong, but I think the S20 has an ESP 8285 instead of a EPS 8266. The difference is essentially that the ESP 8285 has the flash memory on chip instead of a sepearte chip.

You need to compile for ESP8285, in arduino IDE you can chose the built enviroment. 1Mb is the correct size

There might just also be a bug
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

CherAlban
Normal user
Posts: 14
Joined: 15 Nov 2016, 16:47

Re: OTA on S20 with v2.0.0-dev8

#3 Post by CherAlban » 05 May 2017, 14:40

I might be wrong, but I think the S20 has an ESP 8285 instead of a EPS 8266.

I just opened one and checked: they use an ESP8266EX and an external BN25F08, which for the latter I could not find any datasheet or documentation.

CherAlban

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: OTA on S20 with v2.0.0-dev8

#4 Post by Shardan » 05 May 2017, 15:02

CherAlban wrote: 05 May 2017, 14:40
I might be wrong, but I think the S20 has an ESP 8285 instead of a EPS 8266.

I just opened one and checked: they use an ESP8266EX and an external BN25F08, which for the latter I could not find any datasheet or documentation.

CherAlban
The markings on these chips are somewhat tricky.
In this case BN is the manufacturer of your chip, but there are several who make the same chip.
It might read "X25F08" for a chip made by Xicor for example.
So the correct search word for Google is "25F08" which leads to results like
http://www.alldatasheet.com/datasheet-p ... 5F087.html

It is a 1024 x 8 bit organized SPI flash chip, firmware with 1024 size is correct.

The ESP8285 is used in the Sonoff 4ch for example. Sonoff basic has the standard ESP8266.
I don't have other Sonoffs at hand for checking atm ;)


Regards
Shardan
Regards
Shardan

CherAlban
Normal user
Posts: 14
Joined: 15 Nov 2016, 16:47

Re: OTA on S20 with v2.0.0-dev8

#5 Post by CherAlban » 05 May 2017, 17:43

It is a 1024 x 8 bit organized SPI flash chip, firmware with 1024 size is correct
Thanks for clarifying this, which brings us back to the original question, why does OTA fail on 1M devices?

CherAlban

User avatar
lucaberta
Normal user
Posts: 59
Joined: 09 May 2016, 11:26
Location: Lausanne, Switzerland
Contact:

Re: OTA on S20 with v2.0.0-dev8

#6 Post by lucaberta » 05 May 2017, 17:48

CherAlban wrote: 05 May 2017, 17:43
It is a 1024 x 8 bit organized SPI flash chip, firmware with 1024 size is correct
Thanks for clarifying this, which brings us back to the original question, why does OTA fail on 1M devices?
you are raising a very interesting point, and I shall do some testing too as I do have a few 1M devices around. Let me come back to this thread when I have some findings to share.

Bye, Luca

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: OTA on S20 with v2.0.0-dev8

#7 Post by Shardan » 05 May 2017, 18:03

I don't know the OTA from inside.

It might be impossible to update. If i look at the size of the .bin file it's 532KB.
As far as i know the .bin file is uploaded completely to the ESP before replacing
the existing code. If so and there are no further "tricks" like file compression
it will be not possible. ~500 KB existing code + 532 KB new code + free space
for the running updater program and variables gives more then 1024 KB.

@lucaberta:
Results will be interesting definitely.

Regards
Shardan
Regards
Shardan

krikk
Normal user
Posts: 118
Joined: 28 Feb 2017, 07:57
Location: Austria
Contact:

Re: OTA on S20 with v2.0.0-dev8

#8 Post by krikk » 05 May 2017, 20:26

sonoff s20 is definitly a esp8266 based, flashed on for myself, but like shardan suggested, it will not work with all plugins enabled, because its to large, you should try a minimal build (delete all plugin files) this should work...

vmfs1968
Normal user
Posts: 42
Joined: 18 Oct 2015, 23:51

Re: OTA on S20 with v2.0.0-dev8

#9 Post by vmfs1968 » 05 May 2017, 20:43

Hello
It also gives me problems via ota.
I have several wemos if I update via ota with a bin compiled in arduino
Reset and clear the settings
Already by usb works well
Do you know why?

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: OTA on S20 with v2.0.0-dev8

#10 Post by Shardan » 05 May 2017, 21:16

vmfs1968 wrote: 05 May 2017, 20:43 Hello
It also gives me problems via ota.
I have several wemos if I update via ota with a bin compiled in arduino
Reset and clear the settings
Already by usb works well
Do you know why?
Hello,

I've just flashed a WeMOS D1 Mini running a self compiled 2.0.0 with a newly compiled one from the actual sources.
It did not delete the settings. Rechecked with a "Testing" binary, works.
Did you update from another 2.0.0 or from a R14x version?

If you update from a R14x all settings will be deleted as the way data is stored changed massively.

Regards
Shardan
Regards
Shardan

vmfs1968
Normal user
Posts: 42
Joined: 18 Oct 2015, 23:51

Re: OTA on S20 with v2.0.0-dev8

#11 Post by vmfs1968 » 05 May 2017, 23:11

I compile this in Arduino

https://github.com/letscontrolit/ESPEas ... 2.0.0-dev8

If I put it through usb okay, it will not delete the bindings
If it goes via ota it erases everything, and every time
There has to be a bug.
I with the old versions 14x I do not have this problem
Works fine via ota

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 36 guests