-
Notifications
You must be signed in to change notification settings - Fork 166
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
Delay end time not stopping charge #85
Comments
I've been running 4.11.2 for a while, and it works on timer.. set from the front panel. I looked at the changes in 4.11.3, and they shouldn't affect the timer. I will try 4.11.3 on my test unit |
What's the code size and RAM usage of your build of 4.12.3? Sketch uses 31544 bytes (96%) of program storage space. Maximum is 32768 bytes. |
I just tested 4.11.3, and the timer works fine. Stops when it's supposed to. |
Mm that's interesting. I'll do some more testing tomorrow. I replicated the issue twice today. Once overnight when my EV should have stopped charging at the end of off peak this morning then once this afternoon to verify. I've been using delay timer every night for pretty much the last 12 months and it's never failed before. I will test on my bench setup when I'm in the office on Monday. Thanks a lot for testing.
How can I measure the RAM usage? What is your build size? |
I posted it above. Data is the static RAM usage. So the rest is all the stack has left. You only have 4 bytes more than me.. shouldn't be a problem, unless we're that close to stack overflow. Are you using the standard build, or compiling your extra code into it? Try it w/o any extra code |
I've tested with the latest development branch directly from your repo compiled using Arduino and I'm still able to replicate the issue. Going back to 4.11.0 and the stop timer works again. Tomorrow I will do some more testing to try and establish exactly what version introduced this issue I'm experiencing. It's strange your not able to replicate. See attached the .hex file I compiled directly from the dev repo. Can you replicate the issue using this .hex file? |
From my testing I've determined that the bug (at least that I'm experiencing: delay timer not stopping at the correct time) was introduced in commit The timer works when going back one commit to I've had a look through the change in commit Are you able to replicate the issue? I'm testing with:
|
Does it always happen, no matter the time intervals? Only when they're a certain length or cross midnight? Let me know the start/stop times you are using. I am using the same code to charge my car every night midnight->6am |
I've never tested crossing midnight. All my tests have either been during the early hours of the morning .eg. 4am-5am or testing for 1min duration usually in late evening e.g. 21:49 > 21:50 |
Is the bug reproducible via the front panel pushbutton, or only via the WiFi client? |
When running version: 6cc9610 Steps to replicate issue (via RAPI):
returned responce:
The delay timer setting was also verified by checking the correct time setting on the LCD The RAPI commands were set via HTTP using wifi-gateway e.g. http://openevse/r?json=1&rapi=$ST+12+44+12+45 The EV was connected and the EVSE was in sleeping mode when the delay timer was set Result:EVSE switched on and started charging at The same issue occurs with any time period I choose. Delay timer works fine as intended when running 676e255 Via LCD displayThe delay timer was cleared using |
OK, I was able to reproduce it. I see the problem lies in a change in the delay timer logic that I made. I can now see that, this is not always the desired behavior. |
Sure, let me know if I can help. I've read the changelog for the changes made to the delay timer, I can understand the thinking behind the override delay timer > charge to full, however I would argue the charge should always stop at the delay timer end time. I've gone back to running 4.11.0 and IMO the delay timer works flawlessly:
|
Yes, I agree that the end time should generally mean the end. But coming back to a car that's only partially charged when you have somewhere to go can really suck. I had a problem where I plugged in the car near the cutoff time of the timer, and then the car was only partially charged. Luckily, I had a gas car to use instead. Yes, I know you can turn off the timer, but it's inconvenient, and then you need to remember to turn it back on. Also, except in this particular case, quick pressing the front button when it's sleeping generally wakes it up long enough to get a full charge, so you generally expect that behavior. However, I agree, most people would expect the end time to be the end. I will change it back. |
Thanks a a lot. Sure, I can understand that must have been annoying. However, I still think end should mean end. Using the wifi interface it's very quick and easy to remove / adjust the timer. My schedule is irregular therefore I adjust the charging timer most days using the wifi interface. It's especially nice using an Android device with the android time picker: https://github.com/OpenEVSE/ESP8266_WiFi_v2.x/raw/master/docs/mobile-clock.png. That said I would be be open to the override button removing the charging timer altogether if you were really keen on this. The bug in question is not directly to do with the override button function. The issue is that even if the override button is not pressed the charge does not end at the designated end time making the delay timer not functional. Please let me know if I can help. |
It was just a one line change. |
Works great, thanks a lot 👍 |
After updating from 4.11.0 to latest version (4.12.3) the delay timer end charge time does not work. Starting a charge using the delay timer works fine, however the charge does not stop as it should at the allocated end time.
Over the weekend I will try and debug establish after what version this bug was introduced, sorry not had much time to debug today. This is just an interim post to establish if anyone else can re-create this issue?
The delay timer was set using RAPI via the wifi-gateway and was verified to be correct on the LCD and using
$GD
.The text was updated successfully, but these errors were encountered: