ESP Easy Releases

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP Easy Releases

#51 Post by BertB » 13 Oct 2015, 10:46

@Martinus.
You hardly ever use all possible plugins, so is it not possible to include some kind of checkbox mechanism to choose te desired functionality in the Easy?

asm7100
Normal user
Posts: 96
Joined: 13 Sep 2015, 21:45
Location: Denmark

Re: ESP Easy Releases

#52 Post by asm7100 » 13 Oct 2015, 10:53

Yes now it works.

Is there a way to check witch ESP (Flash size) you got?
5xESP-01 - 3xESP-12 - 2xESP-12E 3xRPIb+ - 1xBPIm1 - 3xACTi DOME - 7xACTi Indoor cam. Lot off cisco equ.

maluko
Normal user
Posts: 112
Joined: 02 Sep 2015, 00:49

Re: ESP Easy Releases

#53 Post by maluko » 13 Oct 2015, 13:13

BertB wrote:@Martinus.
You hardly ever use all possible plugins, so is it not possible to include some kind of checkbox mechanism to choose te desired functionality in the Easy?
I think this is a good example of that, with this page is possible build a nodemcu with only we want.
http://frightanic.com/nodemcu-custom-build/

Martinus

Re: ESP Easy Releases

#54 Post by Martinus » 13 Oct 2015, 14:23

maluko wrote:
BertB wrote:@Martinus.
You hardly ever use all possible plugins, so is it not possible to include some kind of checkbox mechanism to choose te desired functionality in the Easy?
I think this is a good example of that, with this page is possible build a nodemcu with only we want.
http://frightanic.com/nodemcu-custom-build/
That would be nice indeed. But I fear that it needs a level of expertise that we are lacking in our current development team.

But even if you leave only one plugin, the core will soon outgrow the 434k barrier. The IDE Package is growing and you can't deselect some stuff there. Latest staging release includes support for SSL and both program and (even worse) RAM load made a huge jump.

(to be clear: even if you don't use SSL in your sketch, it will include the stuff, no questions asked...)

I posted an issue about this already, but up until now, there's no solution. This is up to Ivan Grokhotkov and his ESP8266 core development team....

maluko
Normal user
Posts: 112
Joined: 02 Sep 2015, 00:49

Re: ESP Easy Releases

#55 Post by maluko » 13 Oct 2015, 14:56

unfortunately i think that will be no change for the esp8266 because IDE Package was born to Arduino, so it will not interested in the continuation of a small "big" module as esp8266, the package will still grow up and I think it may be the time when you must create a repository with an IDE package as the Esp8266 .

you can not get the stable package and place in a repository only for esp8266?

i am only a simple guy with my questions but it is my opinion.

asm7100
Normal user
Posts: 96
Joined: 13 Sep 2015, 21:45
Location: Denmark

Re: ESP Easy Releases

#56 Post by asm7100 » 13 Oct 2015, 19:42

How about delete the Node List, that must free up something :-)

And how about the Unit #, is the Name not enough?
5xESP-01 - 3xESP-12 - 2xESP-12E 3xRPIb+ - 1xBPIm1 - 3xACTi DOME - 7xACTi Indoor cam. Lot off cisco equ.

Martinus

Re: ESP Easy Releases

#57 Post by Martinus » 14 Oct 2015, 19:16

asm7100 wrote:How about delete the Node List, that must free up something :-)

And how about the Unit #, is the Name not enough?
Thanks for thinking with us, but these things will not really save much program space. Approx 0.7 kB

The major issue for the future is that the combination of:

1 - Expressif SDK
2 - ESP8266 Arduino core
3 - ESP8266 Arduino libraries

is already 350 kB, leaving only 84 kB for the sketch. And further development might even decrease the free 84k.

Using the newer ESP-01 or ESP12E, we have at least 608 kB available for our own sketch. That's a different ballgame...

(although there's another important parameter: available RAM)

doxikus
Normal user
Posts: 57
Joined: 22 Sep 2015, 08:47

Re: ESP Easy Releases

#58 Post by doxikus » 14 Oct 2015, 19:54

Martinus wrote:R35 is available on github. Finally had the time to finish the LCD plugin and it now has some basic functionality:
LCDDemo.jpg
There's also a new controller plugin available for EmonCMS, thanks to "rmtucker".
Hi is there option to use 2 line LCD 1602!?

Thanks

asm7100
Normal user
Posts: 96
Joined: 13 Sep 2015, 21:45
Location: Denmark

Re: ESP Easy Releases

#59 Post by asm7100 » 14 Oct 2015, 22:34

Just thinking a little her a little there.
Its only a modul to setup, then it will run in its on little world.
No need for fancy interface, just something basic to do the setup. Thats what i think.
How moutch does it take of memory to make it use customer ccs? Upload and so on.
5xESP-01 - 3xESP-12 - 2xESP-12E 3xRPIb+ - 1xBPIm1 - 3xACTi DOME - 7xACTi Indoor cam. Lot off cisco equ.

Backbone
Normal user
Posts: 106
Joined: 06 Oct 2015, 22:12

Re: ESP Easy Releases

#60 Post by Backbone » 15 Oct 2015, 09:54

Which ESP versions are ready to take more sketch room?

Would this ESP-01 be sufficient?
http://www.ebay.nl/itm/ESP8266-ESP-01-1 ... 3f542012b5
In my opinon the cost is low. So replacing exsiting in a project would be OK when there is a MEGA skecth version available with more options if needed.
For current 512kb versions use the standard current EASY ESP and stop developing only make it more stable and for all others with more memory use the newer EASY ESP+ version to come? ;-)

Paco

PS Richard and Martinus and others keep up the good work.

asm7100
Normal user
Posts: 96
Joined: 13 Sep 2015, 21:45
Location: Denmark

Re: ESP Easy Releases

#61 Post by asm7100 » 15 Oct 2015, 11:36

Backbone right :-)

And yes keep op the good work. :-)
5xESP-01 - 3xESP-12 - 2xESP-12E 3xRPIb+ - 1xBPIm1 - 3xACTi DOME - 7xACTi Indoor cam. Lot off cisco equ.

Martinus

Re: ESP Easy Releases

#62 Post by Martinus » 15 Oct 2015, 13:30

We depend 100% on Ivan's (great) work and of course the Expressif SDK. And everything is still quite new, so to get a stable SDK, the esp8226.com community needs to follow Expressif development. To get a stable ESP8266 Arduino Core and libraries, we need to follow Ivan's team on http://www.esp8266.com/arduino. And the major issue is that the combination of:

(1) - Expressif SDK
(2) - ESP8266 Arduino core
(3) - ESP8266 Arduino libraries
(4) - ESP Easy sketch

will sooner than later be to large for the 512k module unless they find a way to reduce the size of (2) and/or (3).
I think we can't do much more on (4) and probably no one can influence (1).

In the mean time, we're still waiting for the next stable IDE ESP package. The current one is dated Juli 23rd...

Charly86
New user
Posts: 9
Joined: 11 Oct 2015, 22:28

Re: ESP Easy Releases

#63 Post by Charly86 » 15 Oct 2015, 14:24

Hi guys,

just wondering if any of you would be interested to have firmware update from the WebUI using HttpUpdate from OTA sample of Arduino ESP8266 ?

I think is should be easy to integrate.

About firmware size, may be we can play with the #define PLUGIN_xxx to remove the one not needed.

I think it can't works out of the box the way Arduino IDE manage include file for compilation, but may be we could create a global
config.h and include this file in each .ino source file. Then include in this file config.h the associated #define PLUGIN_xxx (and remove them from plugin .ino file).
Like this, all plugins could be declared in the config.h
It could also be used to put all config stuff such as default SSID, key, ....

Just an idea!

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP Easy Releases

#64 Post by BertB » 15 Oct 2015, 15:19

Charly86 wrote:Hi guys,

just wondering if any of you would be interested to have firmware update from the WebUI using HttpUpdate from OTA sample of Arduino ESP8266 ?

I think is should be easy to integrate.
Yes, I am. But I am not one of the software guru's here :)
About firmware size, may be we can play with the #define PLUGIN_xxx to remove the one not needed.

I think it can't works out of the box the way Arduino IDE manage include file for compilation, but may be we could create a global
config.h and include this file in each .ino source file. Then include in this file config.h the associated #define PLUGIN_xxx (and remove them from plugin .ino file).
Like this, all plugins could be declared in the config.h
It could also be used to put all config stuff such as default SSID, key, ....

Just an idea!
This looks like the way Nodo-domotica and Connexio handle plugins ...

rtenklooster
Normal user
Posts: 320
Joined: 15 Apr 2015, 14:17

Re: ESP Easy Releases

#65 Post by rtenklooster » 15 Oct 2015, 15:49

The problem with this approach is you can't add another sensor on the fly. You need to reprogram the esp in order to add support for another sensor.
I love the fact that one code works for all...
Besides that, it might be confusing for the less technical and experienced users even though it's not highly complex.
Richard - Groningen (NL) - Image

rmtucker
Normal user
Posts: 57
Joined: 04 Oct 2015, 17:14

Re: ESP Easy Releases

#66 Post by rmtucker » 15 Oct 2015, 16:20

We could always forget about the smaller versions (less memory) and only cater for the bigger memory versions?
I don't think the extra small amount of money you pay would be an issue.
And from my own experiance the Esp-01 versions because they are unscreened are very susceptable to interference from other electrical items.
The spikes are the fluorescent lights in the garage being turned on?????
chart.jpeg
chart.jpeg (79.1 KiB) Viewed 27762 times

Martinus

Re: ESP Easy Releases

#67 Post by Martinus » 15 Oct 2015, 16:29

Charly86 wrote: About firmware size, may be we can play with the #define PLUGIN_xxx to remove the one not needed.
It's actually easier for plugins you don't want: just leave the files out of the sketch folder. No need to define, exclude or anything else within files.
But this will never compensate for the recent growth of almost 45 k on IDE package.

But we had planned to make things even more easy for users: Skip the entire source tree, skip Arduino and board managers and just provide a firmware tool and bin files to upload. Just as with the RFLink project. But then we would like to have everything in one firmware file.

Backbone
Normal user
Posts: 106
Joined: 06 Oct 2015, 22:12

Re: ESP Easy Releases

#68 Post by Backbone » 15 Oct 2015, 17:00

rtenklooster wrote:The problem with this approach is you can't add another sensor on the fly. You need to reprogram the esp in order to add support for another sensor.
I love the fact that one code works for all...
Besides that, it might be confusing for the less technical and experienced users even though it's not highly complex.
Richard and the others nice to see a reasonable easy GUI and now with the more documented WIKI awsome but........
do not forget what you have to do before you have the easy esp firmware put into a ESP8266-01 modul.
I mean not starting the Arduino IDE but the hardware side...............
This is clearly not plug an play for a beginner. ;-)
Other moduls which like the LUA and NODE MCU board which have USB port onboard and are breadboard friendly have a diferent way of setting up and are mostly more easy.
I came from the Souliss section and all are enthousiastic but sometimes at such a high level of experience and programming that a low level programmer (like me) cant read between the lines to get things done.

EASY ESP is a big step forward but just start to think about the future..........if time allows ;-)

Paco

Martinus

Re: ESP Easy Releases

#69 Post by Martinus » 15 Oct 2015, 17:58

Charly86 wrote:just wondering if any of you would be interested to have firmware update from the WebUI using HttpUpdate from OTA sample of Arduino ESP8266 ? I think is should be easy to integrate.
I've read somewhere in a discussion thread that Ivan mentioned: you need a module with at least 1M flash to use OTA. (That means his version of OTA with the eboot bootloader, not the AT firmware OTA stuff from Expressif that uses two small userbin files)

If this is true, it would be useless for a lot of existing unit's like the popular ESP-01, ESP-201, ESP-03, ESP-07 and the ESP-12 (not the 12E)
I did follow that OTA development a while ago, but due to the 1M requirement, I lost interest for the ESP Easy, since it's not going to work.

Martinus

Re: ESP Easy Releases

#70 Post by Martinus » 15 Oct 2015, 18:08

Backbone wrote:Richard and the others nice to see a reasonable easy GUI and now with the more documented WIKI awsome but........
do not forget what you have to do before you have the easy esp firmware put into a ESP8266-01 modul.
I mean not starting the Arduino IDE but the hardware side...............
This is clearly not plug an play for a beginner. ;-)
Other moduls which like the LUA and NODE MCU board which have USB port onboard and are breadboard friendly have a diferent way of setting up and are mostly more easy.
I came from the Souliss section and all are enthousiastic but sometimes at such a high level of experience and programming that a low level programmer (like me) cant read between the lines to get things done.

EASY ESP is a big step forward but just start to think about the future..........if time allows ;-)

Paco
If you want to get going the easy way: Only buy the NodeMCU V1.0 devkit. You do not need to wrestle with ftdi modules, jump wires or other stuff. Just plug into the USB port, install driver, install Arduino IDE and package, download Easy sketch and libraries and press upload.

I only use these boards for development and testing, best buy ever...
For production, you could use other boards once things are working. I mainly use ESP-01 modules in production.

We had planned to provide a special firmware loader so you could also skip the entire Arduino IDE and related stuff. Then it would be really easy...

Martinus

Re: ESP Easy Releases

#71 Post by Martinus » 15 Oct 2015, 18:29

Just in case someone is wondering why you need twice the sketch size in flash to update a sketch, this is explained by the core developer:

igrr commented on Aug 12

OTA update can not overwrite the sketch which is running. New sketch is written into the empty flash region and then after restart it is copied by bootloader into the right place. You have 512k flash size selected, which is not enough to store twice the size of the sketch.

asm7100
Normal user
Posts: 96
Joined: 13 Sep 2015, 21:45
Location: Denmark

Re: ESP Easy Releases

#72 Post by asm7100 » 19 Oct 2015, 16:33

Get this error when i try to compile the r39 version.

Code: Select all

Arduino: 1.6.5 (Windows 8.1), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200"

Using library ESP8266WiFi in folder: C:\Users\Allan\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\libraries\ESP8266WiFi 

Using library ESP8266WebServer in folder: C:\Users\Allan\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\libraries\ESP8266WebServer 

Using library Wire in folder: C:\Users\Allan\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\libraries\Wire 

Using library PubSubClient in folder: C:\Users\Allan\Documents\Arduino\libraries\pubsubclient 

Using library ArduinoJson in folder: C:\Users\Allan\Documents\Arduino\libraries\ArduinoJson (legacy)

Using library LiquidCrystal_I2C in folder: C:\Users\Allan\Documents\Arduino\libraries\LiquidCrystal_I2C (legacy)

Using library Servo in folder: C:\Users\Allan\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\libraries\Servo 



C:\Users\Allan\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -IC:\Users\Allan\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0/tools/sdk//include -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266 -DESP8266 -IC:\Users\Allan\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\cores\esp8266 -IC:\Users\Allan\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\variants\nodemcu -IC:\Users\Allan\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\libraries\ESP8266WiFi\src -IC:\Users\Allan\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\libraries\ESP8266WebServer\src -IC:\Users\Allan\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\libraries\Wire -IC:\Users\Allan\Documents\Arduino\libraries\pubsubclient\src -IC:\Users\Allan\Documents\Arduino\libraries\ArduinoJson -IC:\Users\Allan\Documents\Arduino\libraries\LiquidCrystal_I2C -IC:\Users\Allan\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\libraries\Servo\src C:\Users\Allan\AppData\Local\Temp\build6509076603463582577.tmp\ESPEasy.cpp -o C:\Users\Allan\AppData\Local\Temp\build6509076603463582577.tmp\ESPEasy.cpp.o 

_P016_IR.ino:5:29: fatal error: IRremoteESP8266.h: No such file or directory
compilation terminated.
Multiple libraries were found for "LiquidCrystal_I2C.h"

 Used: C:\Users\Allan\Documents\Arduino\libraries\LiquidCrystal_I2C

 Not used: C:\Users\Allan\Documents\Arduino\libraries\LiquidCrystal

Fejl i kompilering.
5xESP-01 - 3xESP-12 - 2xESP-12E 3xRPIb+ - 1xBPIm1 - 3xACTi DOME - 7xACTi Indoor cam. Lot off cisco equ.

asm7100
Normal user
Posts: 96
Joined: 13 Sep 2015, 21:45
Location: Denmark

Re: ESP Easy Releases

#73 Post by asm7100 » 19 Oct 2015, 16:39

To make it compile you need to download https://github.com/markszabo/IRremoteESP8266
and install it in you lib dir.
5xESP-01 - 3xESP-12 - 2xESP-12E 3xRPIb+ - 1xBPIm1 - 3xACTi DOME - 7xACTi Indoor cam. Lot off cisco equ.

ronnyvs
New user
Posts: 6
Joined: 18 Oct 2015, 22:53

Re: ESP Easy Releases

#74 Post by ronnyvs » 19 Oct 2015, 18:40

First of all... Thank You for release r 39 !

This is the first time that i didn't got compile errors, so it looks good to me.

my qustion is what i need to fill in when i connect to ESP_0 ?

it's asking for a webkey, but i don't know if i did something wrong, or is there actually a webkey which i don't know...

hope to hear soon...

regards,

Ronny

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP Easy Releases

#75 Post by BertB » 19 Oct 2015, 18:55

Webkey is the password to get on your wifi.

ronnyvs
New user
Posts: 6
Joined: 18 Oct 2015, 22:53

Re: ESP Easy Releases

#76 Post by ronnyvs » 19 Oct 2015, 19:07

Thank you for your answer Bert,

but i already found it in the code...

default, when nothing configured,
the wpakey is : configesp
ipadres 192.168.4.1

for now gonna test this build, firmware.

friendly regards,

Ronny

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP Easy Releases

#77 Post by BertB » 19 Oct 2015, 19:15

That is correct but the ESP then acts as an access point.
From that point on, you can login to that ESP and make the appropriate settings to make it an STA (station)
When you enter your WifiSSID and your Wifikey and command the ESP to reboot (in the tools tab) the ESP will ask a free IP from your router.

You can also do this with the serial interface of the Arduino IDE.
Just try it and type 'Settings'.
When you type:
wifissid <your SSID>
wifikey <your password to your network>
Save
Reboot

you will see in the serial screen the newly obtained IP address.

fluppie
Normal user
Posts: 89
Joined: 09 Oct 2015, 13:23

Re: ESP Easy Releases

#78 Post by fluppie » 07 Nov 2015, 00:15

Martinus wrote:
Charly86 wrote:Martinus, you're welcome!

Another one R38 has TSL2561 I2C Luminosity sensor (If pull request is accepted)
See request here https://github.com/ESP8266nu/ESPEasy/pull/7
Merged into master, really closing in now:

Sketch uses 426,922 bytes (98%) of program storage space. Maximum is 434,160 bytes.
Got 2 of these sensors and can't read them out. Fetching/detecting the I2C address is no problem. I get a read error #254
TSL2561 error.png
TSL2561 error.png (40.96 KiB) Viewed 28611 times

Martinus

Re: ESP Easy Releases

#79 Post by Martinus » 08 Nov 2015, 14:19

I've just pushed my local repository to github so in case you want to test with RFlink and ESPEasy, it could work. I'm not promising anything here, but maybe this can be done with ESP Easy. Not sure about performance since the ESP Easy also has a lot of other things to do in background.

So this is just a proof of concept for ESP Easy. If it fails, you better stick to existing ser2net sketches out there...

racquemis
New user
Posts: 1
Joined: 12 Nov 2015, 22:04

Re: ESP Easy Releases

#80 Post by racquemis » 13 Nov 2015, 19:46

Fixed some issues with the TSL2561 code.

It had broken out of range handling which actually would cause the ESP8266 to reset itself under low light conditions due to division by zero.
Also made a correction to the range. it was fixed 4900 while it actually dependant on the selected integration time.

Pull request is already up: https://github.com/ESP8266nu/ESPEasy/pull/9

fluppie
Normal user
Posts: 89
Joined: 09 Oct 2015, 13:23

Re: ESP Easy Releases

#81 Post by fluppie » 14 Nov 2015, 01:48

racquemis wrote:Fixed some issues with the TSL2561 code.

It had broken out of range handling which actually would cause the ESP8266 to reset itself under low light conditions due to division by zero.
Also made a correction to the range. it was fixed 4900 while it actually dependant on the selected integration time.

Pull request is already up: https://github.com/ESP8266nu/ESPEasy/pull/9
Very nice! My sensor is working now :)

Charly86
New user
Posts: 9
Joined: 11 Oct 2015, 22:28

Re: ESP Easy Releases

#82 Post by Charly86 » 14 Nov 2015, 02:14

Great,
sorry about that, I took most of the code for calculation from the datasheet as is.

Martinus

Re: ESP Easy Releases

#83 Post by Martinus » 21 Dec 2015, 18:46

R55 is available on github. LCD 4x20 is fixed, but this build also has preliminary support for time and NTP.

But this one needs an extra library "Timelib.h". I will put it on sourceforge when the next stable goes live.

In the mean time, if you are running these github builds, you could get it from my dropbox:

https://dl.dropboxusercontent.com/u/588 ... s/Time.zip

Martinus

Re: ESP Easy Releases

#84 Post by Martinus » 22 Dec 2015, 09:27

Could you verify that your situation looks exactly like this in board manager:
Core200.png
Core200.png (6.1 KiB) Viewed 27569 times

Martinus

Re: ESP Easy Releases

#85 Post by Martinus » 22 Dec 2015, 14:36

R56 is available on github. You can now also have a static DNS server so NTP will also work if you're not using DHCP.
And through tools/advanced you can override the default "pool.ntp.org" setting and you can set the timezone offset

tim
Normal user
Posts: 52
Joined: 05 Dec 2015, 11:24

Re: ESP Easy Releases

#86 Post by tim » 22 Dec 2015, 15:35

Hello Martinus,

I know NTP is to get time from the internet but where can we use it in ESP Easy?

Martinus

Re: ESP Easy Releases

#87 Post by Martinus » 22 Dec 2015, 16:20

tim wrote:Hello Martinus,

I know NTP is to get time from the internet but where can we use it in ESP Easy?
Good question. It has no use :lol: , was just fun to experiment. :geek:
Maybe I will use this for my wordclock but then I'll be the only user I guess.

mkotek
Normal user
Posts: 116
Joined: 15 Dec 2015, 10:58
Location: Lomianki, Poland
Contact:

Re: ESP Easy Releases

#88 Post by mkotek » 22 Dec 2015, 17:09

One use case would be display current time on LCD/OLED coming from NTP.
But that would require separate update timer for that plugin, compared to others.
Michal 'Kotek', greetings from Poland. Zapraszam na mój blog o automatyce domowej po polsku: http://www.ukotka.com.

TheSnitz
New user
Posts: 3
Joined: 20 Dec 2015, 13:39

Re: ESP Easy Releases

#89 Post by TheSnitz » 22 Dec 2015, 18:04

Martinus wrote:Could you verify that your situation looks exactly like this in board manager:
Core200.png
That was the problem :D i saw it after my post in 1minute. So i deleted the post at the same moment you answered :D

Anyway thanks for helping me

For other people the problem was: i selected the new board url in preferences and was forgotten to instal it :oops:

Martinus

Re: ESP Easy Releases

#90 Post by Martinus » 22 Dec 2015, 18:16

mkotek wrote:One use case would be display current time on LCD/OLED coming from NTP
So then we would have some use for it. ;)
I will add some more variables to be used in the display templates like 'system name', 'ip address' and of course 'system time'.

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP Easy Releases

#91 Post by BertB » 22 Dec 2015, 22:03

Martinus wrote:
mkotek wrote:One use case would be display current time on LCD/OLED coming from NTP
So then we would have some use for it. ;)
I will add some more variables to be used in the display templates like 'system name', 'ip address' and of course 'system time'.
Great!
Can you please also add the Clear command?

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP Easy Releases

#92 Post by BertB » 22 Dec 2015, 22:39

I get a lot of errors with 56:
  • connected with Lepel1, channel 7
    ip:192.168.0.70,mask:255.255.255.0,gw:192.168.0.1
    WIFI : Connected!
    INIT : I2C
    UDP : Send Sysinfo message
    INIT : Boot OK
    INIT : Normal boot
    NTP : NTP sync requested
    NTP : NTP send to 86.59.13.46
    Fatal exception (28):
    epc1=0x4020ff3c, epc2=0x00000000, epc3=0x00000000, excvaddr=0x0000104b, depc=0x00000000

    Exception (28):
    epc1=0x4020ff3c epc2=0x00000000 epc3=0x00000000 excvaddr=0x0000104b depc=0x00000000

    ctx: cont
    sp: 3fff30f0 end: 3fff3390 offset: 01a0

    >>>stack>>>
    3fff3290: 0000104b 3fff1008 000005db 4020ff3c
    3fff32a0: ec0600e3 00000000 00000000 34314e31
    3fff32b0: 00000000 00000000 00000000 00000000
    3fff32c0: 00000000 00000000 00000000 00000000
    3fff32d0: 3ffe9420 00000000 000003e8 00000012
    3fff32e0: 3fff1568 3fff5428 352e3638 33312e39
    3fff32f0: 0036342e 00000012 3fff0e64 3fff54a8
    3fff3300: 0000001f 0000001e 3ffe9e08 2e0d3b56
    3fff3310: 3ffe9e08 2e0d3b56 3fff0e64 402209d4
    3fff3320: 3fff48a0 3ffe9e08 3fff33e0 3fff2364
    3fff3330: 000003e7 3fff1ec8 3fff1ed0 40215d23
    3fff3340: 3fff0628 3fff33e0 3fff08e0 40215d6e
    3fff3350: 3fff0628 3fff33e0 3fff08e0 40210eca
    3fff3360: 3fff48a0 0000001f 00000012 00000000
    3fff3370: 3fffdc20 00000000 3fff235c 4021bd12
    3fff3380: 00000000 00000000 3fff2370 40100114
    <<<stack<<<

    ets Jan 8 2013,rst cause:4, boot mode:(3,6)

    wdt reset
    load 0x4010f000, len 1264, room 16
    tail 0
    chksum 0x42
    csum 0x42
    ~ld
    ªU
    INIT : Booting Build nr:56
    mode : sta(18:fe:34:f2:01:4e) + softAP(1a:fe:34:f2:01:4e)
    add if1
    dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
    bcn 100
    bcn 0
    del if1
    add if1
    dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
    bcn 100
    bcn 0
    del if1
    mode : sta(18:fe:34:f2:01:4e)
    IP : Static IP :192.168.0.70
    WIFI : Connecting... 1
    scandone
    no Lepel1 found, reconnect after 1s
    reconnect
    f 0, scandone
    state: 0 -> 2 (b0)
    state: 2 -> 3 (0)
    state: 3 -> 5 (10)
    add 0
    aid 7
    pm open phy_2,type:2 0 0
    cnt

    connected with Lepel1, channel 7
    ip:192.168.0.70,mask:255.255.255.0,gw:192.168.0.1
    WIFI : Connected!
    INIT : I2C
    UDP : Send Sysinfo message
    INIT : Boot OK
    INIT : Normal boot
    NTP : NTP sync requested
    Fatal exception (0):
    epc1=0x4022ed0c, epc2=0x00000000, epc3=0x00000000, excvaddrFatal exception (15):
    epc1=0x4021dccd, epc2=0x00000000, epc3=0x00000000, excvaddr=0x3fff4889, depc=0x00000000

    Exception (15):
    epc1=0x4021dccd epc2=0x00000000 epc3=0x00000000 excvaddr=0x3fff4889 depc=0x00000000

Martinus

Re: ESP Easy Releases

#93 Post by Martinus » 23 Dec 2015, 13:59

R57 is available on github

Moved display template handling to generic function parseTemplate() to avoid a lot of similar code in both plugins.
Added some variable features to LCD/OLED template, you can use %sysname%, %systime% and %ip%
NTP time can be enabled through advanced settings and defaults to disabled
Added clear command to LCD/OLED plugins

tim
Normal user
Posts: 52
Joined: 05 Dec 2015, 11:24

Re: ESP Easy Releases

#94 Post by tim » 23 Dec 2015, 16:53

Martinus wrote:
tim wrote:Hello Martinus,

I know NTP is to get time from the internet but where can we use it in ESP Easy?
Good question. It has no use :lol: , was just fun to experiment. :geek:
Maybe I will use this for my wordclock but then I'll be the only user I guess.
Or if we can use the event-action plugin we can switch things based on time without fancy controller. You can have a standalone time clock that you can easy change remote with the web interface.

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP Easy Releases

#95 Post by BertB » 24 Dec 2015, 08:39

I have two NodeMCU 1.0 with R57 now. When I have NTP activated, I have a reset roughly twice per hour. With NTP deactivated, the longest active time (up to now) is 6 hours.

Does anybody else have this too?

Martinus

Re: ESP Easy Releases

#96 Post by Martinus » 24 Dec 2015, 10:36

Hi Bert,

I have 11 units running with NTP enabled.
These are my current results after recent upgrade to R57:

Unit - Uptime
Unit 2 - 872 minutes
Unit 7 - 880 minutes
Unit 10 - 867 minutes
Unit 11 - 1350 minutes
Unit 12 - 2029 minutes (R56)
Unit 13 - 3561 minutes (R56)
Unit 16 - 1096 minutes
Unit 17 - 869 minutes
Unit 19 - 653 minutes
Unit 20 - 1257 minutes
Unit 21 - 1263 minutes

My unit's are a mixture of ESP-01 and NodeMCU boards.
So what could make the difference here?

What kind of hardware is attached to these unit's (if any)?
Maybe combination that i don't have here.

Also interested in more feedback from others because this is a bit worrying...

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP Easy Releases

#97 Post by BertB » 24 Dec 2015, 10:56

I am not at home right now, so I have to grab the following from my memory and that is not flawless :)

I have two NodeMCU.
One with DHT22 and one Dallas 18B20 (A)
One with DHT22, two 18B20, BMP180, BH1750 and OLED.(B)

With release 53/54, both were stable. Several thousands of seconds between reboots (because a sw update ;) ).
With 57 both rebooted ca twice an hour.
I disabled NTP on B last night and it did one reboot and after that it was ca. 6 hours ok.
A had a lot of reboots.

Just to be sure I did not mess up settings or so:
DNS server setting is now the IP of my router. 192.168.0.1. I am not sure this is correct.
I have also put pool.ntp.org in the appropriate field.

mkotek
Normal user
Posts: 116
Joined: 15 Dec 2015, 10:58
Location: Lomianki, Poland
Contact:

Re: ESP Easy Releases

#98 Post by mkotek » 24 Dec 2015, 21:35

I am running one on R48 for relay and DHT11 (restart still not resolved, but I have tried pulling GPIO 0 up on the other one and it does not help - it must be my relay, because I cannot replicate that on ESP-12E and dual channel relay):
Uptime: 4343 minutes

And this is so low only because it has been disconnected during cleaning of the floor next to a christmas tree :(
We will see, how long it will last.
Michal 'Kotek', greetings from Poland. Zapraszam na mój blog o automatyce domowej po polsku: http://www.ukotka.com.

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: ESP Easy Releases

#99 Post by costo » 26 Dec 2015, 00:48

I have an ESP-07 running with R57, NTP enabled, a BH1750 luxsensor, a BP085 pressuresensor, a switch input (GPIO13), a led output (GPIO14) and an OLED display running now for almost 800 minutes. So far it looks rockstable.

The only little bug I found was in the display of %systime% when it went from 23:59 to 0:00. I keep seeing the 9 in the fourth position. So systime is now 0:489 :D

I wonder if there are other NTP related command like f.i. %sysdate% ?

edit:
For stability I have soldered a 4.7 nF capacitor right over the reset pin to the metal case and a 2.2 uF capacitor over Vcc and case.
Did this for all my metal case ESP's, because before I had reset-instabilities when touching the circuit on breadboard with a testpin.
Modified module looks like this:
Image http://static.tweakers.net/ext/f/3TE1pp ... S/full.jpg
edit: changed picture to thumbnail
Last edited by costo on 27 Dec 2015, 13:39, edited 3 times in total.

chrille
Normal user
Posts: 88
Joined: 26 Aug 2015, 15:11
Location: Horsens, Denmark

Re: ESP Easy Releases

#100 Post by chrille » 26 Dec 2015, 09:18

After running R43 for a while I upgraded to R57 last night (mainly to verify that the MQTT authentication did work - it did, thanks!) but also enabled NTP. It's an ESP12, with 10x DS18B20, 1x PCF8591, 1x HC-SR04 and 1x DHT-22. It has now been up for 553 minutes and seems stable

- Jan
Jan Chrillesen, Denmark

Post Reply

Who is online

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