mega-20180421 and P076

Moderators: rtenklooster, Voyager, BertB, Stuntteam

Forum rules
You have entered the experimental forum, beware!!!
Post Reply
Message
Author
User avatar
ManS-H
Normal user
Posts: 279
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

mega-20180421 and P076

#1 Post by ManS-H » 24 Apr 2018, 17:03

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

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: mega-20180421 and P076

#2 Post by LisaM » 24 Apr 2018, 20:34

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

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

Re: mega-20180421 and P076

#3 Post by TD-er » 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.

User avatar
ManS-H
Normal user
Posts: 279
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Re: mega-20180421 and P076

#4 Post by ManS-H » 25 Apr 2018, 10:02

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.

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

Re: mega-20180421 and P076

#5 Post by TD-er » 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.

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: mega-20180421 and P076

#6 Post by papperone » 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...
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

User avatar
ManS-H
Normal user
Posts: 279
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Re: mega-20180421 and P076

#7 Post by ManS-H » 26 Apr 2018, 12:29

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.

User avatar
ManS-H
Normal user
Posts: 279
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Re: mega-20180421 and P076

#8 Post by ManS-H » 26 Apr 2018, 12:31

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests