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 9 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

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin