-
Notifications
You must be signed in to change notification settings - Fork 25
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
Randomly stops sending data #16
Comments
I also noticed this recently. I added some extra debug info, but I'm still unable to catpure the stops. It's hard to guess when and where it stops without logs. |
I switched to a other mqtt broker, and I noticed that there are no drops in messaging, but today so far Pvoutput has dropped out 5 times. |
I also seem to have this problem.
The ESP is connected to a steady high quality power supply and is near an Unifi access point, so Wifi should not be the issue. The broker is Mosquitto installed on Debian. |
I checked some debug logs, and the probleem seems to be in the communication with the inverter. The ESP sends the sendRemoveRegistration data to the inverter. Then it starts sending the sendDiscovery data every 10 seconds. It now takes a long time, 10+ minutes, for the inverter to respond. This is the discovery data:
During this time the power light on the inverter is solid orange. After 10+ minutes the inverter sends data and it all works perfectly. The power light now flashes orange. After some time however, the ESP seems to lose the connection/restart, and the discovery process starts again, and again it takes 10+ minutes for the inverter to respond. I am not sure why the ESP loses the connection, and whether the discovery takes a long time due to the workings of the inverter or due to a bug in the software. Does anyone have an idea? -edit- The solid orange color corresponds with "ON = WiFi CONNECTED / ACTIVE" according to the manual, which is strange because the whole wifi module is disconnected. Reconnecting the wifi module, restarting the inverter, resetting wifi, disconnecting the wifi module and restarting the inverter does not change this status. The blinking pattern possibly corresponds to "BLINK = RS485 CONNECTED", but it looks more like the pattern of "BLINK 1 = WiFi SYSTEM RESETTING", which also would be strange. |
The inverter has a 10 minute timeout for connected RS485 devices. When the ESP 'thinks' it is no longer connected to the inverter it restarts the discovery. When the inverter still thinks it has a connected logger, it will wait for 10 minutes to start responding to the discovery. There are 2 issues that need to be addressed:
Do you have the logs prior to The orange led behavior is the same on my inverter. Did you compile the project with the latest ESP8266 Arduino core: https://github.com/esp8266/Arduino |
I have an output log with the debug flag of GoodWeCommunicator and PVOutputPublisher set to true. The relevant (I think) part shows the inverter stops responding to the data:
This is the whole data log: out.txt I stopped it when the inverter stopped responding, but this continued until the timeout of the inverter. Are there any other debug settings I must use? |
Thanks for the debug log. You stopped logging too soon however :) |
I have a similar problem, I started your logger for first time 3 days ago, the first 2 days I used the code with the softserial problem, but yesterday I used the new code, but still same problem. After a random time, some hours, inverter stops responding to commands and I have to fisically shutdown inverter from grid and PV to restore connectivity (this morning I tried to reboot through internal webpage but not resolved). Today I put the log on, so I will write you the logs if I have the same behaviour, I have changed poll time to 5 seconds, maybe 1seconds was to much. My goodwe is a GW3648EM |
This night again, this is when happened: 02:47:16.484 -> Sending discovery And now is always with the same message in bucle after 7h |
I also have this issue., after 2 years of flawless functioning. So far I have tested the following
I have also implemented remote logging (using telnet) so I can also test the hardware serial and see if the problem still occurs. It seems like invalid data is sent to the inverter after which the inverter stops responding for a long time (10+ hours). Resetting the ESP does not have any effect. |
Have you tried to contact goodwe? Maybe is and error in their firmware. |
@jantenhove I see you've added a remote logging and some changes, but I can't compile, it gives a lots of erros (I've included this library https://github.com/JoaoLopesF/RemoteDebug ) The biggest error is this: 'class RemoteDebug' has no member named 'isRunning' It's seems isRunning is not and instruction that RemoteDebug accepts. |
Logger randomly stops sending data to mqtt and PVoutput.
Some days there are no problems at all, and some days its really bad .
Socket error on client GoodWeLogger-303e, disconnecting.
I tried to watch for errors in the debug output from the logger, but due to its randomness i didn't encounter any problems at the time.
The wifi signal strength inst the problem, the logger / inverter has a direct line of sight to the AP 6m away.
The text was updated successfully, but these errors were encountered: