Closed andig closed 4 years ago
Looks like misbehavior of the opposition to me. Is it Modbus/TCP?
Looks like misbehavior of the opposition to me. Is it Modbus/TCP?
Yes, mentioned this briefly in the issue title. Any hints what I could do? Even closing the connection would not help here?
IIRC we have seen this in the past with other devices. I'm not sure if just closing and reopening the connection helped. @gq0 knows probably more about it.
Yes, we have seen this in the past mostly with SolarEdge inverters, occasionally Kostal. Have you tried to increase the ProtocolRecoveryTimeout
https://github.com/grid-x/modbus/blob/master/tcpclient.go#L133
I was under the impression that would only react to ErrTCPHeaderLength
but it's actually the other way round: https://github.com/grid-x/modbus/blob/master/tcpclient.go#L184.
Closing for time being, much appreciated!
I've started working with a Wallbe charger. After running my application for some time, the log will error. The only way to solve this (sofar) is restarting the application and hence the tcp modbus client:
Has anyone seen something like this before? I cannot rule out that the device might have a actual problem but I'm really confused what's going on here?