Search found 8753 matches

by TD-er
13 Jun 2021, 19:26
Forum: ESP Easy: Software
Topic: Time & Timer Control
Replies: 4
Views: 4385

Re: Time & Timer Control

Great :)
by TD-er
13 Jun 2021, 19:25
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

I really don't understand what is happening here.

- It does connect
- It does get an IP
- It can perform DNS lookup
- It does receive NTP answer.

But why doesn't it reply to pings?
Why does it get disconnected after 10 seconds (or less)

I absolutely have no clue.
by TD-er
13 Jun 2021, 19:20
Forum: ESP Easy: General Discussion
Topic: Precision of timers?
Replies: 7
Views: 6679

Re: Precision of timers?

If you're running a "normal" or "custom" build, you can also see the timing stats. If parts of the code use over 100 msec, they are highlighted. Those can be a cause for jitter in the processing. Publishing may also have another delay, as MQTT messages are being put into a queue....
by TD-er
13 Jun 2021, 14:48
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

Aonther thing to try (more credible than the really odd suggestion on Reddit of using a complete nonsense subnet) Can you give the command wifidisconnect after it has made a connection? This will retry to connect to the AP, without performing a scan. I got the feeling that maybe things might get mes...
by TD-er
13 Jun 2021, 14:34
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

Can you try setting the IP to a fixed setting?
And if that doesn't work, can you set the subnetmask (255.255.255.0) to the same value as the gateway?
I know it doesn't make sense to do it like that, but found it as a suggestion on a Reddit thread.
by TD-er
13 Jun 2021, 14:29
Forum: ESP Easy: Projects / Applications
Topic: 2 pulse counters to 1 blinking led (1000 pulses/kwh)
Replies: 2
Views: 9665

Re: 2 pulse counters to 1 blinking led (1000 pulses/kwh)

You could perform a looptimer_ms which also has a parameter for number of pulses. Just realize the pulses will then be sent from the rules, which may also affect the pulse counters if the pulses received by the pulse counter are too short. One way to overcome the need for real-time behavior of the E...
by TD-er
13 Jun 2021, 12:20
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

OK, new test build: https://www.dropbox.com/s/5q5qmifmvsx2k2i/_PR3676_processDisconnect_semaphore_ESP_Easy_mega_20210613_normal_ESP8266_4M1M.bin?dl=0 Based on your logs I did look again at the disconnect routine and found that there is a recently added semaphore to only handle the disconnect once. H...
by TD-er
13 Jun 2021, 11:52
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

Can you try this test build: https://www.dropbox.com/s/mg13ys8m5j2orke/_PR3676_noAutoReconnect_ESP_Easy_mega_20210613_normal_ESP8266_4M1M.bin?dl=0 I find it really strange the unit keeps getting disconnected. So I now force the SDK to not automatically reconnect. Maybe your unit has slightly differe...
by TD-er
13 Jun 2021, 10:35
Forum: ESP Easy: Software
Topic: Different power consumption in sleep-modes !?
Replies: 24
Views: 19718

Re: Different power consumption in sleep-modes !?

I did revert the code that was added a few months ago to put the ESP in deep sleep. It is not yet included in a nightly build yet, but I did create a build for another PR yesterday which does have this code present: https://www.dropbox.com/s/c6rdpo58spjna4h/_PR3676_ESP_Easy_mega_20210612_normal_ESP8...
by TD-er
13 Jun 2021, 09:53
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

Can you also enable NTP on Tools->Advanced? This does require the ESP to connect to the outside. Also if you set UDP port to 8266 and another ESP (can be an older version) in the same subnet with the UDP port set to the same port nr, both ESPs will try to exchange info between each other. N.B. after...
by TD-er
12 Jun 2021, 23:04
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

Just to be sure about the settings. What settings do you use? Suggested settings: - Force WiFi B/G: checked - Force WiFi No Sleep: checked - Periodical send Gratuitous ARP: checked - CPU Eco Mode: unchecked - Send With Max TX Power: checked - Periodical Scan WiFi: unchecked I really have no clue at ...
by TD-er
12 Jun 2021, 21:30
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

The --erase-all does indeed what it states :)
by TD-er
12 Jun 2021, 19:02
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

Can you try this build? https://www.dropbox.com/s/c6rdpo58spjna ... M.bin?dl=0
Still not changed a lot, but I found some strange logic when an event is missed (or thought to be missed).
by TD-er
12 Jun 2021, 16:33
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

Yep as soon as I have something to test, I will let you know.
It will also be appended to this PR, so if you have a GitHub account, you can subscribe to it.
by TD-er
12 Jun 2021, 13:57
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

As we speak I am looking into this issue. I'm only working on WiFi this weekend to get this sorted out once and for all. However I do find it very strange that your setup is apparently not working at all with builds of the past two years while lots and lots of other users have reported success. But ...
by TD-er
11 Jun 2021, 12:05
Forum: ESP Easy: General Discussion
Topic: Sonoff not switching relay off
Replies: 1
Views: 4027

Re: Sonoff not switching relay off

You can start a timer when you switch on the relay. I assume you followed this description to setup a relay with Domoticz (and MQTT) https://espeasy.readthedocs.io/en/latest/Plugin/P029.html#p029-page If not, you can still 'monitor' the GPIO pin of the relay and act on its changes. But that may lead...
by TD-er
10 Jun 2021, 23:46
Forum: ESP Easy: Software
Topic: How to write OLED status to variable
Replies: 11
Views: 6220

Re: How to write OLED status to variable

If the WiFi reception is worse, please increase TX pwr to 20.5 dBm and check sending with highest TX power.
Setting to B/G mode will allow you to actually send with more TX power compared to "n" network. (20.5 dBm can only be achieved with 'b', which we don't use, so max. is 17 dBm)
by TD-er
10 Jun 2021, 23:31
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

[...] [WiFi] Only perform network activity when connected [WiFiClient] Make sure all clients use at least some timeout Are those two related? [/quote] No.... but... The first one is about "if not connected, don't even bother trying to connect to another host sending data" The second one i...
by TD-er
10 Jun 2021, 23:25
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

Completely untested and was surprised it did compile in one run ;) The changes https://www.dropbox.com/s/4kqgvun2755p8cn/100_msec_networkConnected_timeout_ESP_Easy_mega_20210610_custom_ESP8266_4M1M.bin?dl=0 Please let me know if this does work for you. If it does, I will make it a configurable setti...
by TD-er
10 Jun 2021, 23:09
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

Hmm that's a very concrete jump in versions and I just browsed the changes. They are hardly related to WiFi, except for this one. In the code there is a number of checks like this one: if (!WiFiConnected(10)) { The change here in those 2 versions is only to change "100" to "10". ...
by TD-er
10 Jun 2021, 18:36
Forum: ESP Easy: Hardware
Topic: SI7021 on sonoff basic
Replies: 16
Views: 10341

Re: SI7021 on sonoff basic

Right now, there is not yet a check in the rules equivalent to isNan()
by TD-er
10 Jun 2021, 08:51
Forum: ESP Easy: General Discussion
Topic: Stable Release ?
Replies: 4
Views: 4848

Re: Stable Release ?

Looks stable to me :)
by TD-er
09 Jun 2021, 22:57
Forum: ESP Easy: General Discussion
Topic: Stable Release ?
Replies: 4
Views: 4848

Re: Stable Release ?

Sadly it is still... Every time I get the feeling "almost stable, still need to tackle this small thing" and then run into lots of new issues... I do have a build running on a Sonoff here built on Oct 21 2020 23:09:36 (not a 'nightly') and that one has now an uptime of 203 days 11 hours 16...
by TD-er
09 Jun 2021, 22:52
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

That old version differs in so many ways. For example it is running an older core version and making a WiFi connection was at a much slower pace. This slower pace does put a higher strain on the power supply. So the fact it was working at an older build is not guarantee it isn't a hardware issue. Ho...
by TD-er
09 Jun 2021, 15:18
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

Hmm how is the Fritzbox configured? Is it a 'repeater' like the 1750? Or is it a router? The simplest way should be to have it setup as a transparent bridge, not a router. Can you make a simple sketch (or description) on how the subnets are setup? Also what is the gateway (192.168.1.254 according to...
by TD-er
09 Jun 2021, 12:54
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

The idea is to make the range of WiFi smaller, so other mesh nodes may not detect it. I have the feeling the AP actively kicks off the ESP from it for a reason yet unknown to me. A few reasons that I can come up with: - Part of the 'mesh' algorithm to make sure the device reconnects to the strongest...
by TD-er
09 Jun 2021, 10:08
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

You don't need to reflash it, you can also turn on AP via the serial command or just erase the wifi credentials via the serial command.
If you set the wifissid to "ssid" it will be considered as non-existing and then start the AP mode automatically.
by TD-er
09 Jun 2021, 00:04
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

Do you have several APs with the same SSID? The TP-link Omada units I have here also react very strange on ESPs for example. If I connect to "the other" one with the same SSID, it may take sometimes upto 10 seconds before it can actually send data after connecting. Also the Omada unit may ...
by TD-er
08 Jun 2021, 23:53
Forum: ESP Easy: Software
Topic: #F formatting seems not to work
Replies: 3
Views: 3876

Re: #F formatting seems not to work

on calcsleeptime do if [Babyphone#State] = 1 Let,1,(([Time#Hour]*60)+[Time#Min]) Let,2,(([Time#HourSw]*60)+[Time#MinSw]) Let,3,([INT#1]-[INT#2]) Let,4,([INT#3]/60) Let,5,[INT#4#F] Let,6,(([VAR#4]-[INT#5])*60) else Let,5,0 Let,6,0 endif endon I think the [INT#4] is already rounding in the wrong dire...
by TD-er
08 Jun 2021, 23:49
Forum: ESP Easy: Software
Topic: bme280: change temperature offset with rules
Replies: 4
Views: 4173

Re: bme280: change temperature offset with rules

The formula for correcting the humidity is in the BME280 code :) It is quite simple. First you compute the dew point based on measured temp and hum. Then you offset the temperature and compute the humidity based on the new temp and dew point. To compute dew point, I already included a conversion whi...
by TD-er
08 Jun 2021, 00:12
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

Can you power cycle the access point too? (and the ESP just for good measure) The handshake timeout is funky as it suggests one side is not responding fast enough. This can of course be some process that's running wild. (or buffers full, etc.) Or either one (ESP or AP) does not hear the other one. T...
by TD-er
07 Jun 2021, 19:24
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

New test build: https://www.dropbox.com/s/8guisppj0ygtg ... M.bin?dl=0

Please let me know how well this one behaves...
by TD-er
07 Jun 2021, 17:22
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

The WiFi gets disconnected quite often, so I will make a new test build ASAP... (working on it right now).
by TD-er
07 Jun 2021, 11:33
Forum: ESP Easy: Software
Topic: ESP doesn't wake up from sleep with newest SW version
Replies: 2
Views: 3618

Re: ESP doesn't wake up from sleep with newest SW version

I also made a PR, which will be included in the next build to revert the behavior to how it was with a setting to allow to switch between the different calls to Deep Sleep.
https://github.com/letscontrolit/ESPEasy/pull/3677
by TD-er
06 Jun 2021, 12:23
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

Tebogo wrote: 04 Jun 2021, 17:57 Hello Td,

I tried again with your release, still same problems.

[...]

Did you manage to look to the error?:

Error : WiFi : Scan not allowed, unprocessed WiFi events: disconn

Thanks!
Can you try the test build I linked with the PR: https://github.com/letscontrolit/ESPEasy/pull/3676
by TD-er
05 Jun 2021, 09:30
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

Code: Select all

Error : WiFi : Scan not allowed, unprocessed WiFi events: disconn
Will try to fix it this weekend.
by TD-er
04 Jun 2021, 21:14
Forum: ESP Easy: General Discussion
Topic: NTP issue
Replies: 5
Views: 4444

Re: NTP issue

When looking for "unsynchronized" in the source code, I noticed this link: https://github.com/letscontrolit/ESPEasy/issues/2886#issuecomment-586656384 In other words, the "leap indicator" is set to "Reserved" or "Alarm condition" ... well follow the link for a...
by TD-er
04 Jun 2021, 17:45
Forum: ESP Easy: General Discussion
Topic: NTP issue
Replies: 5
Views: 4444

Re: NTP issue

Given the errors when using the pool.ntp.org, the ESP can resolve DNS, but not sure if it can resolve the local DNS. So for a test you could try to use the local IP of the host running the NTP service. Your gateway and DNS are set to the same host. I assume it is your router and not some L3 switch t...
by TD-er
04 Jun 2021, 16:49
Forum: ESP Easy: General Discussion
Topic: NTP issue
Replies: 5
Views: 4444

Re: NTP issue

Does your network configuration have a gateway and proper subnetmask set?
Are you using DHCP or static IP?
Is the local NTP server defined via IP or domainname (e.g. router.local)
by TD-er
04 Jun 2021, 16:34
Forum: ESP Easy: Hardware
Topic: Using INA219 with an ESP8266 to self-report
Replies: 6
Views: 10179

Re: Using INA219 with an ESP8266 to self-report

In the second schematic, with the NodeMCU, there is no wire from 3v3 to Vs,
If powering the INA219 with 5V (not sure if that works...) you may risk setting the high of SDA and SCL to 5V and thus frying other sensors connected to the I2C bus.
Please double check this.
by TD-er
04 Jun 2021, 11:53
Forum: ESP Easy: General Discussion
Topic: Trigonometric Functions
Replies: 38
Views: 15169

Re: Trigonometric Functions

I don't see why this can't be computed.
However, I do expect you need to compute this in parts, storing intermediate results in variables using the "let" command.

These functions should be included in the "Normal" and "Custom" builds.
by TD-er
03 Jun 2021, 20:21
Forum: ESP Easy: Hardware
Topic: BMP388 sensor don't give values
Replies: 1
Views: 5627

Re: BMP388 sensor don't give values

The BMx280 plugin does support BMP280 and BME280.
The BMP388 is not supported.
I have no idea what the differences are and if it is hard to support it.
by TD-er
03 Jun 2021, 16:40
Forum: ESP Easy: Software
Topic: ESPEasy-NOW
Replies: 3
Views: 6024

Re: ESPEasy-NOW

Nope not yet, but I guess it would make sense to split my (huge) project into something that's already mergeable as you "only" need the p2p layer. I will try to have a look at it and hopefully this weekend I can give you an estimate on whether it is doable to split it. I've been thinking a...
by TD-er
03 Jun 2021, 16:23
Forum: ESP Easy: Projects / Applications
Topic: Send alarms from basement pump to mobile device
Replies: 15
Views: 12907

Re: Send alarms from basement pump to mobile device

Great :)
Hope you also learned why it should be connected like this.
by TD-er
03 Jun 2021, 14:02
Forum: ESP Easy: Projects / Applications
Topic: Send alarms from basement pump to mobile device
Replies: 15
Views: 12907

Re: Send alarms from basement pump to mobile device

Looks OK. Just a few remarks: - The Fritzing image mentions "4.7 Ohm" that should be 4k7 Ohm, or 4700 Ohm. (10k is also fine, 4.7 Ohm is almost a short circuit) - The lines from the switch to the pull-up resistors is now drawn in red, it is more clear when drawn in the same colors as the G...
by TD-er
03 Jun 2021, 10:45
Forum: ESP Easy: Projects / Applications
Topic: tank cooler
Replies: 8
Views: 11666

Re: tank cooler

Just one thing to watch out for... the "on" state for both relays differs.
This is something that's very easy to overlook when debugging. Especially for relay 2, it is the inverse of what you would expect.
by TD-er
03 Jun 2021, 10:39
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

This part looks strange to me as that should be dealt with: 226347 : Error : WiFi : Scan not allowed, unprocessed WiFi events: disconn I will have a look at it this evening. It seems as if the WiFi events happen in an unexpected order and perhaps the WiFi disconnect event does happen more than once,...
by TD-er
02 Jun 2021, 20:14
Forum: ESP Easy: Software
Topic: Latest versions crashes my NodeMCU
Replies: 105
Views: 25843

Re: Latest versions crashes my NodeMCU

Here a build based on the latest 'mega' branch: https://www.dropbox.com/s/tkm1zgzpfdfl2 ... M.bin?dl=0
by TD-er
02 Jun 2021, 16:31
Forum: ESP Easy: Projects / Applications
Topic: Send alarms from basement pump to mobile device
Replies: 15
Views: 12907

Re: Send alarms from basement pump to mobile device

Looks much better :) But just to make it more clear, you better draw the resistors from a single 3v3 pin to the switches. Electrically it does not matter, just more clear in the drawing, when you have a single line from the GPIO pins as it is a rather small picture. The switches are larger, so easie...