-
-
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
AC charger: make CAN controller frequency configurable #500
AC charger: make CAN controller frequency configurable #500
Conversation
f645adc
to
0348ff6
Compare
Thumbs up! |
@schlimmchen I have problems with the actual development branch b833d5a |
@helgeerbe I can probably find some time this evening. |
Can you describe "a while" better? Five minutes? An hour? How's your heap usage when you observe the issue? How many inverters do you have configured? I'll watch my test system. Currently I cannot reproduce this. |
Hard to tell. I would say within 15 minutes. Everything is normal, values are transmitted over MQTT. Heap and console log looks fine. I have two inverters. What I noticed I buted in low light condition. And even my uncontrolled inverter was up. But I didn't see the limit. Everything was 0. This inverter has a fixed limit of 600 W. The data of the inverter were never refreshed, while the mppt values were updated ever 3 second. No it is complete dark and the live view is back. |
I (still) can't see any issues... @philippsandhaus Have you deployed a firmware based on the current helgeerbe/development branch on your productive system? Do you observe any issues with the inverter live view? |
I do see this: After booting a new firmware (updated using the serial connection), the limit of the battery-powered HM-1500 is not updated. It should be 30W. That seems like a glitch, though. Not really troublesome. I guess that it will heal when I set a new limit manually. Oh, wait, there it is: That must have been the last power limit before the firmware update. The inverter is now shut down because before the firmware update the battery was discharging after reaching the start threshold but not the stop threshold yet. It should still be 30W. The DPL should have sent a limit of 30W and then shut down the inverter... Meh... Still, I see no issues with the live view. |
No problem at my setup. I use the current development branch on my production system, yes. |
Oh crap...
I am so sorry! I don't know why this happens yet, except for that it must have something to do with VE.Direct being disabled altogether, but this is an issue with #505. However, I am also confused... @helgeerbe Did you test this on a system without VE.Direct and saw the issue there? As far as I know you do use VE.Direct, at least on your productive system? See #516. |
@schlimmchen no I test it on my productive system. So VE.Direct is always enabled. But I have the same issue that the limits are zero after flashing the bin. I just rebooted the esp: Solar is my unmanaged inverter. Limit should be 600W Luna is my managed inverter: While MPPT data age is updated every 3 seconds, live data of the inverter is never updated (only the data age counter). I have to manually reload the whole page. Then inverter data is updated then only once. |
Hm. Well, I can confirm that it takes a long time until the limit is fetched from the inverter such that the UI shows it correctly. But it does happen after a while. Around five minutes of uptime as I just tested. That's an annoying glitch and I don't know it that's new, to be honest. Now for your other issue: It sounds to me like the API endpoint works (that's why you get any data at all and new data when reloading the page) but the websocket does not (that's why no new data is pushed automatically). Does that make sense, can you comment on this? Maybe it's wrong because you said earlier that I cannot reproduce any of this. My live view always works as expected. Your device does not reboot after accessing the web app once? What do you see when using |
wscat -c "ws://admin:mypassword@opendtu/livedata"
Connected (press CTRL+C to quit)
< {}
< {}
< {}
< {}
< {}
< {}
< {}
< {}
< {}
< {}
< {}
< {} When I use |
Hope I fixed it with 49a1030 When I unrolled upstream merge, there was a code duplication left, which allocated the json buffer twice. I also enlarge the buffer from |
Glad that you pinned it down 💪 |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns. |
This change makes it possible to set the quarz frequency assumed by the MCP CAN controller driver software. It must know the frequency of the actual quarz installed, so the baud rate can be setup accordingly through the respective prescaler register on the CAN controller.
Closes #485.