-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DeepSleep Problem to send Data (sometimes) #2240
Comments
Do you also have some log of the measured battery voltage? |
No, i don't. But at night (it is dark ;-) ) there is a cut at around midnight, and then the next hours, no problem. if the battery had a problem, must it the hole night, or ? next day i will try a ip over dhcp, not a static one. first i have an old version from may 2018 on the esp, there was the problem much more, then i read a solved issue here and upgrade it. now it is much better, but also there |
No, the thing I'm thinking about is the RF calibration made when starting WiFi. Turn this given fact around and you'll see the RF calibration may give incorrect results as soon as the voltage is not constant during this calibration. This can happen if your power supply is not stable or not powerful enough. Not saying this is the problem, but it is something I was thinking about. Maybe also a shorter sleep after an unsuccessful connect attempt would help here. |
i will try another esp8266 with espeasy with a local power supply (without a HC-SR04) and send only sys Data per UDP, but with the same deep sleep config. but why, when the rc calibartion fail, i can see the arp request from the device. is the calibration not before the send of data over wlan ? it the rc calibration after deep sleep necessary ? |
I think the RC calibration is not needed so often, but at least every now and then and after a reconnect failure. I am not entirely sure what it does during this RC calibration, but I can imagine it may also affect RX capability, so it may still send an ARP request, but that doesn't mean it is receiving the answer. |
What version of the arduino core is this based on ? |
@d-a-v Build ESP_Easy_mega-20190109_normal_ESP8266_4096.bin is based on core 2.4.2 |
Espressif has a reference design to use their modules. One other thing could be the antenna. |
it is a wemos d1 mini with the ultrasonic modul and the solar powered battery 3,7v. |
How do you prevent the voltage to the ESP to get over 3.6V? I thought that was the max. of the ESP8266. |
No, the Battery with 3,7V ist direct at the 3.3V Input at the Wemos. It ist not the NewOne. |
It looked like a power problem AND i think the wemos has now a malfunktion. i use 1000uF capacitor on the 5v to ground and it works much better with the solar powered Lion Battery. With a USB Power Bank ist works fine. I ordered also a ne Li-Ion and a charged TP4054. Then i only use the solar panel from the solar LED lamp. since the 4.2V on the 3.3V Input the Wemos had now 10mA Current in DeepSleep. My first testing of the current, was about < 0.5mA. i think i 'grilled' the Wemos with that. It works, but with to much current. Now i receive a new one, i put the PowerBank and the Ultrasonic Modul on that ohne an in DeepSleep now 0,1mA. I experimented with the HC-SR04 Ultrasonic and powering it over a GPIO Pin. Because with direct 3.3V the current was 2mA more. Now the Ultrasonic direct connected on D5 (Output High), D6 Output Low as trigger, D7 Input as Echo and Ground. The Ultrasonic Modul is a new one with 3.3V - 5V, so i don't need the tow restistors an i can connect it direct. |
How much current does the HC-SR04 take? (startup may be higher) And the charging of the Li-Ion battery may have some peaks which are higher than 4.2V |
for charging i bougth the TP4054 Board, it had a Input for the solar panel and a connection for the battery and a connection for the output. i connect the output to the 5v input on the wemos. there is the Me6211 regulator for a input range from x to x V. DropOutVoltage by 100mA is about 100mV, that means round about input 3.5V is enought. the HC-SR04 had a max of 15mA in the specs i read. when it is connected the current of the wemos dont increases. i know that the gpio max 12mA had, but i try it with this one. i think the other wemos hat a problem with the 4.2V on the 3.3V input for the long time. |
That Me6211 is a nice one to know :) |
i bought excatly this board version over ebay from china. this wemos V3 Version had the ME6211 regulator. before i had another version with another regulator. |
This issue is no longer relevant, and can be closed. |
Hello,
i have a Wemos D1 Mini ESP8266, with a HC-SR04+ Ultrasonic Modul (3,3V Version)
The ESP8266 works with a solar powered 3,7V Batterie and works almost fine.
Deepsleep is activated (900sec Sleeptime, and 5sec until it goes to DeepSleep.
the ESP8266 wake up every 15minutes and send the data UDP to my loxone (and parallel to a Raspberry for wireshark Trace).
The Problem is, that sometimes no Data a registered at the Loxone. Until 31minutes no Data receive, it activate Default Value and the error output in the Loxone.
In the wireshark Trace i see allways, that the ESP make a "Gratuitous ARP", then ask ARP the two IPs and then receive the MAC from the device per ARP answer. (Time 6:58)
Then they send per UDP the Data, in the wrong case, no data are send, only more ARP request are send. and then after 6sec they go to deepsleep. (time 6:43)
What ist the Problem ? Sometimes 10h without problem, sometimes more often.
First time i think, that the ESP8266 cannot connect to the WLAN, but witj the wireshark trace, that can not the problem.
The text was updated successfully, but these errors were encountered: