Page 1 of 1

mega-20180421 and P076

Posted: 24 Apr 2018, 17:03
by ManS-H
On this moment i work with the papperone/LisaM version for my Sonoff Pow.
I saw that TD-er did some changes on the mega-20180421 version.

TD-er (7):
[WiFi] Init static IP before connect to wifi
[Toast message] Change "Settings saved" to "Submitted"
[info] Add more build related info to the log and wifi info link to wiki
[Sonoff Pow] Add support for HLW8012
[Sonoff Pow] Add support for HLW8012
[Sonoff POW] Change Plugin ID to 76
[Sonoff POW] Set some proper defaults for the Sonoff POW

So i downloaded the ESPEasy_mega-20180421.zip and used the ESP_Easy_mega-20180421_dev_ESP8266_4096 on a Wemos D1 mini to see the differences.
But i can't find the P076_HLW8012 under devices. Do i something wrong?


Info from the Main tab:
Firmware
Build 20101 - Mega (ESP82xx Core 2_4_0)
GIT version mega-20180421
Plugins 72 [Normal] [Testing] [Development]
Build Md5 a151ccbdf98982e6ba287180a4e2ac
Md5 check passed.
Build time Apr 21 2018 02:08:42
Binary filename firmware.bin

Re: mega-20180421 and P076

Posted: 24 Apr 2018, 20:34
by LisaM
It's probably still only available in test mode:

Code: Select all

#ifdef PLUGIN_BUILD_TESTING
Change it to this for prod mode:

Code: Select all

//#ifdef PLUGIN_BUILD_TESTING

Re: mega-20180421 and P076

Posted: 24 Apr 2018, 22:08
by TD-er
For the PlatformIO environment, you can select it via the build selection box.
It is not yet tested, I only uploaded it to my own POW, but it has not yet been run on 230V.
The thing is the library for this chip does use a bit too much iRAM, so I cannot combine it in a 'normal' build.
But on the other hand, the typical 'product uses' like for the Sonoff POW are unlikely to have other devices connected. So it was a good candidate to create a first 'product specific' build.
I eventually would like to make one build that already has all present devices of the product pre-configured to allow a good "out-of-the-box" experience.
But like I said, it has not yet been tested.
A number of users were asking for it, so I merged it like this. Maybe it can already be of use to someone.

Re: mega-20180421 and P076

Posted: 25 Apr 2018, 10:02
by ManS-H
TD-er wrote: 24 Apr 2018, 22:08 For the PlatformIO environment, you can select it via the build selection box.
It is not yet tested, I only uploaded it to my own POW, but it has not yet been run on 230V.
The thing is the library for this chip does use a bit too much iRAM, so I cannot combine it in a 'normal' build.
But on the other hand, the typical 'product uses' like for the Sonoff POW are unlikely to have other devices connected. So it was a good candidate to create a first 'product specific' build.
I eventually would like to make one build that already has all present devices of the product pre-configured to allow a good "out-of-the-box" experience.
But like I said, it has not yet been tested.
A number of users were asking for it, so I merged it like this. Maybe it can already be of use to someone.
Thanks for the answers TD-er, but the PlatformIO is a level to high for me.
I was thinking that the the bin-files of the nightly builds are exact equal then the source file. But that's not true.
In the source file i see plugins from _P001 till _P076 and in the bin file from P001 till P072

But appreciate it if you want to made a bin file with all present devices.

Re: mega-20180421 and P076

Posted: 25 Apr 2018, 19:01
by TD-er
The Sonoff POW will be a separate binary, as soon as it is tested.
The current implementation of the sensor used in the POW is taking a bit too much memory, so it cannot be combined in a single binary with all plugins.

Re: mega-20180421 and P076

Posted: 25 Apr 2018, 22:57
by papperone
TD-er wrote: 25 Apr 2018, 19:01 The Sonoff POW will be a separate binary, as soon as it is tested.
The current implementation of the sensor used in the POW is taking a bit too much memory, so it cannot be combined in a single binary with all plugins.
As written in the original post of this plugin, the HLW8012 is not used only in Sonoff POW but there are external modules (http://www.electrodragon.com/product/en ... out-board/) and as well I've at least 2 type of PCb designed by my with HLW8012 onboard... I understand this is not high priority but I'll try to find some time to understand why the library uses so much iRAM in order to make this as standard plugin possibly...

Re: mega-20180421 and P076

Posted: 26 Apr 2018, 12:29
by ManS-H
TD-er wrote: 25 Apr 2018, 19:01 The Sonoff POW will be a separate binary, as soon as it is tested.
The current implementation of the sensor used in the POW is taking a bit too much memory, so it cannot be combined in a single binary with all plugins.
Oké, thanks TD-er.

Re: mega-20180421 and P076

Posted: 26 Apr 2018, 12:31
by ManS-H
papperone wrote: 25 Apr 2018, 22:57
TD-er wrote: 25 Apr 2018, 19:01 The Sonoff POW will be a separate binary, as soon as it is tested.
The current implementation of the sensor used in the POW is taking a bit too much memory, so it cannot be combined in a single binary with all plugins.
As written in the original post of this plugin, the HLW8012 is not used only in Sonoff POW but there are external modules (http://www.electrodragon.com/product/en ... out-board/) and as well I've at least 2 type of PCb designed by my with HLW8012 onboard... I understand this is not high priority but I'll try to find some time to understand why the library uses so much iRAM in order to make this as standard plugin possibly...
I will wait papperone. Your version works fine on the moment.