I am using the Gurux DLMS pyton client inside a Kubernetes pod to connect to a DLMS meter using HLS SHA256 authentication.
The client is able to successfully establish a connection and read data from the meter under normal conditions.
However, I am facing an issue after the Kubernetes pod restarts:
Once the pod restarts, the client tries to reconnect to the meter.
The connection attempt fails consistently.
The error I receive is:
"Failed to receive reply from the device in given time."
After upgrading the Gurux.DLMS Nuget package from version 9.0.2508.2201 to 9.0.2603.3001, we get the error in the subject, when trying to read association view. I have tested this on EMH and LG E850 meters, but it might be an error that affects all metertypes.
ReadDataBlock(Client!.GetObjectsRequest(), reply);
Client.ParseObjects(reply.Data, false); <--- This throws the error.