Hi
I am using Gurux.DLMS.Net to read out a Landis + Gyr E450 Smartmeter. Up to and including version 9.0.2308.2201 everything works without problems. Since version 9.0.2308.2801 there are problems with an AARQ request.
The smartmeter is queried periodically. The first time everything works perfectly. With every further attempt to send a new AARQ request and read the response, an exception is thrown "Invalid reply. The client has closed the connection.".
I have analyzed the problem in the code. In the version 9.0.2308.2801 the new property Settings.Closing was introduced. This property is set to true in the DisconnectRequest method see (image1). When the connection is attempted again and the AARQ request is sent, the GetPdu method is called. In the method GetPdu the property Settings.Closing is checked in an If condition. If it is set to true the condition see (Image2) will be hit. For some Reason there is a problem with this If condition. In Case of an AARQ request. Because the exception throw GXDLMSException("Invalid reply. The client has closed the connection."). The response of the AARQ request is absolutely the same as the first read attempt which works. Could the new property Settings.Closing cause this problem with an AARQ request? Sorry for my bad business English.
Kind regards
Reto
Hi, This is fixed to version…
Hi,
This is fixed to version 9.0.2310.2601. Get the latest version.
BR,
Mikko