Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Exception While Send and Read An AARQ Request a Second Time

Exception while send and read an AARQ Request a second time

By nussbi , 16 October, 2023
Project
Gurux.DLMS.Net
Status
Closed (fixed)

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

Priority
Normal
Category
Bug report
Files
Image1_0.jpg (117.16 KB)
Image2_0.jpg (99.45 KB)
Profile picture for user Kurumi

Kurumi

2 years 7 months ago

Hi, This is fixed to version…

Hi,
This is fixed to version 9.0.2310.2601. Get the latest version.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin