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. MaxAPDUSize HandleAarqRequest

MaxAPDUSize HandleAarqRequest

By Cali03 , 20 November, 2023
Forums
Gurux.DLMS

Hi

On the method HandleAarqRequest you are checking if MaxAPDUSize is lower than 64 and return an error PduSizeTooShort.
Maybe it will be great if MaxAPDUSize comes to 0 change it to the max value allowed, i think is 65365.

Thanks

Profile picture for user Kurumi

Kurumi

2 years 6 months ago

Hi, Max APDU Size zero is…

Hi,

Max APDU Size zero is used in some tests and therefore, it cannot be automatically set to 65365.

BR,
Mikko

Cali03

2 years 6 months ago

Hi, Attached is a screenshot…

Hi,

I share you a screenshot of the Green book where they indicate that values below 12 are reserved but 0 indicates that there is no limit.
I think it would be good to adapt it to your software and not to return an error when the size is 0. Q
What do you think?

Thanks

BR

Image
Profile picture for user Kurumi

Kurumi

2 years 6 months ago

Hi, You are basically right…

Hi,

You are basically right on this, but the main problem is that this is not tested with DLMS Conformance tests. All the tests are using value 65365 (0xFFFF).

This is now checked with several device manufacturers and they all return an error if value zero is used.

I need to think about what to do with this. I know that this seems to be a simple fix, but this might cause problems with some projects where there are different meters after Gurux DLMS gateway.

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