What are the factors that affect speed?

Moderators: rtenklooster, Voyager, BertB, Stuntteam

Forum rules
You have entered the experimental forum, beware!!!
Post Reply
Message
Author
Humanoidx
New user
Posts: 9
Joined: 01 Apr 2017, 20:50

What are the factors that affect speed?

#1 Post by Humanoidx » 25 Apr 2017, 08:43

Ive switched my setup over to ESP Easy V 2.0 and it seems to be a lot slower than the old ESP easy.
Im running a few timers controlling a few relays and the page loads are unbareable.
I have 12 devices but only 6 are enabled.
A 3 second relay timer actually is taking 6 seconds.

Any suggestions on how to get this to run quicker?

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

Re: What are the factors that affect speed?

#2 Post by toffel969 » 25 Apr 2017, 17:10

Humanoidx wrote: 25 Apr 2017, 08:43 Ive switched my setup over to ESP Easy V 2.0 and it seems to be a lot slower than the old ESP easy.
Im running a few timers controlling a few relays and the page loads are unbareable.
I have 12 devices but only 6 are enabled.
A 3 second relay timer actually is taking 6 seconds.

Any suggestions on how to get this to run quicker?
Maybe you suffer from the same bug as Shardan and myself (in controller/webserver). Psy0rz fixed it and published a new binary. Try to flash the new bin (still dev7) and see if the problem persists
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

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

Re: What are the factors that affect speed?

#3 Post by toffel969 » 25 Apr 2017, 17:11

toffel969 wrote: 25 Apr 2017, 17:10
Humanoidx wrote: 25 Apr 2017, 08:43 Ive switched my setup over to ESP Easy V 2.0 and it seems to be a lot slower than the old ESP easy.
Im running a few timers controlling a few relays and the page loads are unbareable.
I have 12 devices but only 6 are enabled.
A 3 second relay timer actually is taking 6 seconds.

Any suggestions on how to get this to run quicker?
Maybe you suffer from the same bug as Shardan and myself (in controller/webserver). Psy0rz fixed it and published a new binary. Try to flash the new bin (dev8) and see if the problem persists
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: What are the factors that affect speed?

#4 Post by psy0rz » 27 Apr 2017, 11:10

What kind of messageselay are you using? (on the advanced settings page)

try setting it to 0.
Please support ESPEasy development via Patreon or buy us a coffee.

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: What are the factors that affect speed?

#5 Post by psy0rz » 02 May 2017, 00:31

can you tell us how much available memory it says you have on the info page?

also i just commited a memory related bugfix, maybe you could try that one. a zipfile of the latest commit is always here: https://github.com/letscontrolit/ESPEas ... e/mega.zip
Please support ESPEasy development via Patreon or buy us a coffee.

harry56
New user
Posts: 4
Joined: 26 May 2017, 06:41

Re: What are the factors that affect speed?

#6 Post by harry56 » 26 May 2017, 09:04

I am sure you will be able to find help to your problems on here.


gclub
Last edited by harry56 on 27 Mar 2018, 15:47, edited 1 time in total.

Humanoidx
New user
Posts: 9
Joined: 01 Apr 2017, 20:50

Re: What are the factors that affect speed?

#7 Post by Humanoidx » 22 Aug 2017, 18:07

Hey guys I've tried this again with dev 11 and im still having issues. I'm using this to control my hydroponocs setup

Running a total of 8 timers that are used to control the on /off times of 4 relays. These timer values are saved by using 2 dummy devices, which allows me to change the on/off schedule for day and night.

In addition there are a few other temperatures and gpio that im reading. In total I'm using 12 devices.

- the thing runs ok if I set the controller to standalone only but if I set it to http domotics it freezes up.

Am I at the limits of the processing power of the esp8266 or is this a bug?

Also why does it show 35 devices on the main page if I'm only using 12?


Heres my code

Code: Select all

 on system enable#status=1 do
Timerset,1,10
Timerset,3,20
Timerset,5,30
Timerset,7,10

TaskValueSet 9,1,3
TaskValueSet 9,2,237
TaskValueSet 9,3,2
TaskValueSet 9,4,238
TaskValueSet 10,1,2
TaskValueSet 10,2,298
TaskValueSet 10,3,70
TaskValueSet 10,4,7200

endon

on system enable#status=0 do
gpio,5,1
gpio,4,1
gpio,0,1
gpio,2,1
endon

on rules#timer=1 do
if [system enable#status]=1
gpio,5,0
timerset,2,[Timer1#SprayON1]
endif
endon

on rules#timer=2 do
if [system enable#status]=1
gpio,5,1
timerset,1,[Timer1#SprayOFF1]
endif
endon

on rules#timer=3 do
if [system enable#status]=1
gpio,4,0
timerset,4,[Timer1#SprayON2]
endif
endon

on rules#timer=4 do
If [system enable#status]=1
gpio,4,1
timerset 3,[Timer1#SprayOFF2]
endif
endon

on rules#timer=5 do
if [system enable#status]=1
gpio,0,0
timerset,6,[Timer2#SprayON3]
endif
endon

on rules#timer=6 do
if [system enable#status]=1
gpio,0,1
timerset,5,[Timer2#SprayOFF3]
endif
endon

on rules#timer=7 do
if [system enable#status]=1
gpio,2,1
timerset,8,[Timer2#PumpOFF]
endif
endon

on rules#timer=8 do
if [system enable#status]=1
gpio,2,0
timerset,7,[Timer2#PumpON]
endif
endon

On Pump#Status=1 do
TaskValueSet 12,1,0 
TaskValueSet 12,2,0 
TaskValueSet 12,3,0 
TaskValueSet 12,4,[LOG#Pcount]+1 
endon

On top solenoid#status=1 do
TaskValueSet 12,1,[LOG#S1Count]+1
endon
On Middle solenoid#status=1 do
TaskValueSet 12,2,[LOG#S2Count]+1
endon
On Bottom solenoid#status=1 do
TaskValueSet 12,3,[LOG#S3Count]+1
endon

On Clock#Time=All,12:00 do 
TaskValueSet 9,1,5
TaskValueSet 9,2,595
TaskValueSet 9,3,5
TaskValueSet 9,4,595
TaskValueSet 10,1,5
TaskValueSet 10,2,595
TaskValueSet 10,3,80
TaskValueSet 10,4,14400
endon
On Clock#Time=All,20:00 do 
TaskValueSet 9,1,3
TaskValueSet 9,2,237
TaskValueSet 9,3,2
TaskValueSet 9,4,238
TaskValueSet 10,1,2
TaskValueSet 10,2,298
TaskValueSet 10,3,70
TaskValueSet 10,4,7200
endon
   
And here are my devices
Image
Image
Image

Domosapiens
Normal user
Posts: 307
Joined: 06 Nov 2016, 13:45

Re: What are the factors that affect speed?

#8 Post by Domosapiens » 23 Aug 2017, 15:07

First impression:
Task 8 has no valid port (DS18B20 Id)
That causes some delay at least
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.

Humanoidx
New user
Posts: 9
Joined: 01 Apr 2017, 20:50

Re: What are the factors that affect speed?

#9 Post by Humanoidx » 25 Aug 2017, 05:19

Even if the device is not enabled?

Also heres the memory from the info page.
Any thoughts on the 35 devices?


Flash Size: 4096 kB
Flash Writes (since boot): 6
Sketch Size/Free: 421 kB / 600 kB
Free Mem: 26800
Devices: 35

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: What are the factors that affect speed?

#10 Post by grovkillen » 25 Aug 2017, 09:45

Devices is a misleading wording, it is the number of PLUGINs that are in the firmware. If you would flash the unit with some other version the number would be different.

On my 2.0.0-dev7[normal] I have 44 "devices".
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Domosapiens
Normal user
Posts: 307
Joined: 06 Nov 2016, 13:45

Re: What are the factors that affect speed?

#11 Post by Domosapiens » 25 Aug 2017, 23:45

Even if the device is not enabled?
@Humanoidx
What version are you running?
Release v2.0.0-dev11 shows "Enabled" in the GUI and looks like this
Capture.JPG
Capture.JPG (60.73 KiB) Viewed 16831 times
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests