confused about firmware for sonoff th10 V.2.1

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Riewekooche
Normal user
Posts: 21
Joined: 21 Nov 2022, 07:40

confused about firmware for sonoff th10 V.2.1

#1 Post by Riewekooche » 21 Nov 2022, 08:00

Hello,
now i'm really confused about the dozens of firmware version in the ESPEasy_binaries.zip

First I found a zip called ESPEasy_R120.zip with a ESPEasy_R120_1024.bin and the flash.cmd.
Can i use it for my device or do i need a special and newer one for the Sonoff th10?

Or should i use the 2.0 version like ESP_Easy_mega20221105_normal_ESP8266_4M1M.bin
or the ESP_Easy_mega20221105_hard_SONOFF_POW_4M1M.bin? Which flasher should i use?

Please give me an advice about which of them i should use as a working firmware for my Sonoff TH10 V.2.1.

I want to use temperature sensors at the build-in jack to control a fan by an espeasy-script.

Kind regards
Thomas

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

Re: confused about firmware for sonoff th10 V.2.1

#2 Post by TD-er » 21 Nov 2022, 08:52

"ESPEasy_R120.zip" is really ancient.
Please use the releases on the GitHub page: https://github.com/letscontrolit/ESPEasy/releases

The Sonoff TH uses 1MB of flash, so you need a build with "1M128k" in the name.
The notation for flash size on the builds in your R120 zip file was expressing it in kB, thus 1024 = 1M flash. But this did not include any indication about the size of the file system.

You could start with the file name you mentioned in that ZIP file, but then on each question about using ESPEasy, you will see suggestions to use a newer build.

Riewekooche
Normal user
Posts: 21
Joined: 21 Nov 2022, 07:40

Re: confused about firmware for sonoff th10 V.2.1

#3 Post by Riewekooche » 21 Nov 2022, 10:56

> "ESPEasy_R120.zip" is really ancient.
Right, but it runs so fare.
You adviced me to look for a "1M128k" version. Sadly i can't find one...

Is there anyone with a Sonoff-TH10, how is experienced with the current/newest possible firmware?

Please tell me, what version you are using.

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

Re: confused about firmware for sonoff th10 V.2.1

#4 Post by TD-er » 21 Nov 2022, 11:06

Sorry, I made a mistake...
Since we only have a single partition layout for 1M units, I left out the file system part of the labelling.
Any "1M" build should fit.

There is a difference between "minimal OTA" builds and the others.
The other builds can only be flashed via serial port as they are too large to flash OTA (via the web interface)
The "minimal OTA" builds are intended to be less than 600k in size, so you can flash an intermediate 2-step-OTA bin and from that one flash any next build.

Riewekooche
Normal user
Posts: 21
Joined: 21 Nov 2022, 07:40

Re: confused about firmware for sonoff th10 V.2.1

#5 Post by Riewekooche » 22 Nov 2022, 07:15

Nobody there with a Sonoff Th10/16?

I'm using the R120_1024.
But in the rules i need 10^x and log(x). Not sure, but i think that in the last versions of the firmware this calculations shhould work...

In the binaries I tried to find a up-to-date 1M firmware for my device.
If i look i.e. at "ESP_Easy_mega_20221105_normal_ESP8266_4M1M.bin", it could be a 1M-version.
But I don't think so, because the file is about 995kB large and wouldn't fit intor the Sonoff - or am I wrong?

I don't want to brick the device.
Which version do you use with a 1M memory?

Regards

User avatar
Ath
Normal user
Posts: 3417
Joined: 10 Jun 2018, 12:06
Location: NL

Re: confused about firmware for sonoff th10 V.2.1

#6 Post by Ath » 22 Nov 2022, 07:41

Riewekooche wrote: 22 Nov 2022, 07:15 Nobody there with a Sonoff Th10/16?

I'm using the R120_1024.
But in the rules i need 10^x and log(x). Not sure, but i think that in the last versions of the firmware this calculations shhould work...

In the binaries I tried to find a up-to-date 1M firmware for my device.
If i look i.e. at "ESP_Easy_mega_20221105_normal_ESP8266_4M1M.bin", it could be a 1M-version.
But I don't think so, because the file is about 995kB large and wouldn't fit intor the Sonoff - or am I wrong?

I don't want to brick the device.
Which version do you use with a 1M memory?

Regards
If you are updating via a serial connection you can use the normal_ESP8266_1M or normal_ESP8266_1M_VCC builds, but as they are too large to be flashed via OTA, you can't update that via OTA.
If you need to update via OTA, then first flash to 2-step updater, and from that install one of the minimal_core .bin files, depending on the requirement including Domoticz, Domoticz MQTT or FHEM controllers.

The 4M1M builds require a unit with 4MB Flash, and have a 1M file system, as explained in the Readme of the Github page.
/Ton (PayPal.me)

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

Re: confused about firmware for sonoff th10 V.2.1

#7 Post by TD-er » 22 Nov 2022, 08:18

Which controllers do you use?
We have 2 "minimal OTA" builds available.
One using Domoticz MQTT and one using the more generic OpenHAB/HomeAssistant MQTT + FHEM
Or just as Ton mentioned the "normal_ESP8266_1M"

I can also make a custom build for you, when you specify what plugins/controllers you need.

Riewekooche
Normal user
Posts: 21
Joined: 21 Nov 2022, 07:40

Re: confused about firmware for sonoff th10 V.2.1

#8 Post by Riewekooche » 22 Nov 2022, 08:26

Thanks for answering.

I'm not sure whether i need the MQTT at all.
My aim is to set up a stand-alone system which controls a fan depending on sensors (by rules).

I need at least two DHT22 at GIPO 4+14 and a relais at GIPO 12.
And the rules must have the possibility to use the exponent and logarithmic funktion (10^x and log(x) [log10])

I can update via a serial connection.

You gave me the hint to use "normal_ESP8266_1M" - but there isn't such a firmware in then ESPEasy_binaries.zip
Where ca i get it?

(The ESP_Easy_mega_20221105_custom_ESP8266_1M.bin doesn't show the DHT22 sensors and the
ESP_Easy_mega_20221105_normal_ESP8266_4M1M.bin seems to be too big.

A custom build would be nice :D

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

Re: confused about firmware for sonoff th10 V.2.1

#9 Post by TD-er » 22 Nov 2022, 08:45

I just looked at the recent test build and indeed the normal_1M is missing.
However the normal_1M_VCC is there, which is quite odd as it usually is larger to have the internal supplied Vcc being measured by the AD converter instead of sampling the A0 pin.

N.B. for Sonoff units a VCC build may be the better choice as you don't want to measure anything else which might be accessible from the outside of the enclosure.

But the "normal" 1M build has LIMIT_BUILD_SIZE defined, which does not include all math functions.
Log/log10 and pow are present though.

So I think the normal_ESP8266_1M_VCC would be what you need.

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

Re: confused about firmware for sonoff th10 V.2.1

#10 Post by TD-er » 22 Nov 2022, 08:57

FYI: Just made a pull request to make the normal_ESP8266_1M fit again.
https://github.com/letscontrolit/ESPEasy/pull/4377

Riewekooche
Normal user
Posts: 21
Joined: 21 Nov 2022, 07:40

Re: confused about firmware for sonoff th10 V.2.1

#11 Post by Riewekooche » 22 Nov 2022, 09:40

one silly question:

Is the "normal_1M_VCC" equal to "ESP_Easy_mega_20221105_normal_ESP8266_4M1M_VCC.bin" ?

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

Re: confused about firmware for sonoff th10 V.2.1

#12 Post by TD-er » 22 Nov 2022, 09:42

Nope.
1M should be read as 1M128k = 1M flash, 128k file system
4M1M = 4 M flash, 1M file system.

But since we don't have other layouts for 1M flash chips, I just named it to "1M".
For the 4M flash chip, we do have several layouts (e.g. 4M2M) and thus we need to make it clear which one is used.

Riewekooche
Normal user
Posts: 21
Joined: 21 Nov 2022, 07:40

Re: confused about firmware for sonoff th10 V.2.1

#13 Post by Riewekooche » 22 Nov 2022, 10:08

If i understand you right, a normal normal_ESP8266_1M_VCC will been added to the ESPEasy_binaries.zip (?)

When does that happen (and when is it possible to download)?
Is there a file archive with odler version of the 2.0 1M (VCC oder none)? Perhaps a link?




Sorry, perhaps i don't catch it all, my english isn't best.

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

Re: confused about firmware for sonoff th10 V.2.1

#14 Post by TD-er » 22 Nov 2022, 10:40

No, the normal_ESP8266_1M_VCC was already present.
The normal_ESP8266_1M was for some reason too big and thus rejected during build.
I just made the normal_ESP8266_1M fit its max. binary size again.

If you like, you can download it from the GitHub Actions build: https://github.com/letscontrolit/ESPEas ... 3521618592
N.B. you need to have a GitHub account to be able to download the (large) Binaries ZIP file (right below the "artifacts" section)

Riewekooche
Normal user
Posts: 21
Joined: 21 Nov 2022, 07:40

Re: confused about firmware for sonoff th10 V.2.1

#15 Post by Riewekooche » 23 Nov 2022, 11:40

Hello TDer
now it works
Thank you

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

Re: confused about firmware for sonoff th10 V.2.1

#16 Post by TD-er » 23 Nov 2022, 12:20

Great!
Have fun!

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 30 guests