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. Forums
  3. Trying To Import Active Maximum Demand

Trying To Import Active Maximum Demand

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By ahsensaeed , 8 April, 2019
Forums
Gurux DLMS for Java

Hey there, I'm trying to read Import Active maximum demand from my smart meter but unfortunately, it gives me the error bytes. My smart meter model is DTSD545 and company manufacturer is Holley Metering System.

First, I read the Maximum Demand from Gurux Director. I attach the screenshot. It successfully gives me the value of demand but when I try to read the maximum demand from my program it gives me an error. The following how I try to read value.

GXDLMSRegister register = new GXDLMSRegister("1.0.1.6.0.255");
byte[] bytes = gxdlmsClient.read(register, 2)[0]
readDLMSPackaet(bytes)

Below are the bytes which my program sent to meter.
00 01 00 11 00 01 00 0D C0 01 C1 00 03 01 00 01 06 00 FF 02 00

And the following shows what smart meter sends the response to my program.
00 01 00 01 00 11 00 05 C4 01 C1 01 09

Can you please tell me what I'm doing wrong?

Best Regards,
Ahsen Saeed.

Image
Profile picture for user Kurumi

Kurumi

7 years 2 months ago

Hi,

Hi,

Can you read everything else from this class? In the pic you have read other values.
I believe that you are not doing anything wrong.
This attribute is not implemented to the meter and meter returns error from that.
You should check this from the meter vendor.

BR,
Mikko

ahsensaeed

7 years 2 months ago

Hey Mikko,

Hey Mikko,
What do you mean by "This attribute is not implemented to the meter and meter returns error from that". I'm successfully able to read the Import Active Energy, Voltage and other values same as you I try to read Maximum Demand.

Best Regards,
Ahsen Saeed

Profile picture for user Kurumi

Kurumi

7 years 2 months ago

Hi,

Hi,

Are you using the same authentication level as GXDLMSDirector? Have you made handshaking sending AARQ and check AARE messages before reading value?

BR,
Mikko

ahsensaeed

7 years 2 months ago

Hey Mikko,

Hey Mikko,
Below is my authentication settings for GxDLSMClien.

fun gxDLmsClient(): GXDLMSClient {
val dLMSClient = GXDLMSClient()
dLMSClient.useLogicalNameReferencing = true
dLMSClient.interfaceType = InterfaceType.WRAPPER
dLMSClient.serverAddress = 1
dLMSClient.clientAddress = 17
dLMSClient.authentication = Authentication.LOW
dLMSClient.setPassword("00000000")
return dLMSClient
}

ahsensaeed

7 years 2 months ago

Hey Mikko,

Hey Mikko,
Yes, I made handshaking and successfully send the AARQ request to meter.

Profile picture for user Kurumi

Kurumi

7 years 2 months ago

Hi Ahsen,

Hi Ahsen,

I just notest that your class is GXDLMSRegister. It should be extended register.

GXDLMSExtendedRegister register = GXDLMSExtendedRegister("1.0.1.6.0.255");

BR,

Mikko

ahsensaeed

7 years 2 months ago

Hey Mikko,

Hey Mikko,
Thank you so much it works great. Now that it works I wanna know what's the difference between GxDLMSRegister and ExtendedGXDLMSRegister?

Best Regards,
Ahsen Saeed

Profile picture for user Kurumi

Kurumi

7 years 2 months ago

Hi,

Hi,

Content is different. They are totally different registers,

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

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin