-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Skipping hour reading #743
Comments
Additional info, but perhaps completely irrelevant: It was running for 3 weeks in february with maximum power saving and on only HAN power. But it was booting often, probably because of low power available, but I don't know. 1st of march I got it connected to USB power and I also turned power saving off. 5 days later, this happens, but of course, a coincidence. |
Interesting, as we had a similar bug report very recently. Can you post what you get when you add "monthplot.json" to the URL? Then we need to figure out why the averaging in some cases fails. -> @gskjold |
There does not seem to be any problem with the daily data for the whole month. It is only one hour missing. |
Sorry, my bad. |
{ |
Thank you - this confirms the registered value is 0.00. |
See update on #717. |
Happened again last evening. I am not sure how useful these reports are. You have to make some sort of better debugging to catch errors like this which happens each 14+++ days. Since the last time this happened in the beginning of march, I increased the buffer from 256 to 512. But that didn't help. Device is a Pow-U+ on usb power and good wifi. Cable length to meter is 0.5m and the meter is an Aidon 6534. |
Yes, the fact that it appears very seldom amongst very few users makes it difficult to debug. |
Question: If I use "Default" as setting on Power Saving, does that mean that wifi.setsleep is not called / used in this code section? if(WiFi.begin(wifi.ssid, wifi.psk)) { Edit: I see that it changes to "Minimum" when set to "Default" |
According to the documentation for the espressif library, WiFi.setSleep() only accept a boolean as a parameter, but that is not how it is used in your code. But there is a lot of code here, so I might have overlooked something..... |
There are two ways of setting sleep, one with boolean and one with wifi_ps_type_t: Default will not call setsleep in our code, which will default to whatever is standard in arduino. Currently that is minimum, as you already pointed out. |
I don't know how often this issue is presenting itself, but I have made some adjustments in the latest development build that may fix it, see #738 |
For anyone who have upgraded to 2.3, have you experience this since? |
It happened 2-3 times each month so too soon to tell. After the summer, I can give you an answer if it doesn't happen before that. |
It look like I am in fact receiving data on the mqtt interface for the missing hour. The reported value is identical to the last hours value.
|
Interesting discovery, one of these devices are sending data to a cloud server for testing, and the graph is exactly the same! Lucky for me, I have full debug logging enabled on that service, so I have extracted the JSON received at 05:00 and 06:00.
I am not sure what to think about this... I'd like to blame Aidon, but at the same time I find it hard to believe that the meter is sending the same data after an hour.. But I have also been digging through the code for the last hour, and I cannot see any reason why the data should get tainted internally.. This issue remains a mystery for me... |
If the meter is in fact sending the same value twice, it is not much to do about that. But you could make sure the month max values are not set to a false value and you could also make sure the estimated energy usage for current hour and current day based on integrating power is not reset to a false value. |
Aidon 6534 |
Aidon 6534 |
Although this is Aidons "fault", I have added a workaround in the code that will use the calculated value for that hour |
In the current version or the next one? |
Next release |
Describe the bug
Tonight at 02:00 an hour reading was skipped. That is not a huge problem, but I find it irritating that the monthly max values are destroyed for the rest of the month.
I found no messages sent on mqtt either. And as you can see from the screenshot, there was no booting. The powu+ is on usb power and signal strength is -64dbm. Cable length to HAN interface is 1m.
Screenshots
Hardware information:
Relevant firmware information:
The text was updated successfully, but these errors were encountered: