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 Occurred Unknown Version When Reading Instantaneous Profile

Exception Occurred Unknown Version When Reading Instantaneous Profile

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 , 17 January, 2019
Forums
Gurux DLMS for Java

Hey,

I want to read the meter Instantaneous Profile. Below is the code for how I'm reading the instantaneous profile.

GXDLMSProfileGeneric dLMSProfileGeneric = new GXDLMSProfileGeneric("1.0.99.2.0.255");
GxReplyData reply = new GxReplyData();
byte[] data = gxdlmsClient.read(dLMSProfileGeneric.getName(), dLMSProfileGeneric.getObjectType(),
3)[0];
readDlmsPacket(data,reply);
Calendar satrtDateCalendar = Calendar.getInstance();
Calendar endDateCalendar = Calendar.getInstance();
readRowsByRange(dLMSProfileGeneric, satrtDateCalendar.getTime(), endDateCalendar.getTime(), reply);

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

I also send query to meter manufacturer he said you need to change the 11'th byte from C1 to 81. So, how can I update C1 byte to 81.

My meter manufacturer is Holley.

Best Regards,
Ahsen Saeed

Profile picture for user Kurumi

Kurumi

7 years 4 months ago

Exception Occurred Unknown Version When Reading Instantaneous Pr

Hi Ahsen Saeed,

Set this after you create new client.

gxdlmsClient.setServiceClass(ServiceClass.UN_CONFIRMED);

BR,
Mikko

ahsensaeed

7 years 4 months ago

Exception Occurred Unknown Version When Reading Instantaneous

Hey Mikko,

Thank you for your quick reply. After adding the ServiceClass.UN_CONFIRMED my program sending the same bytes but my service unable to read the instantaneous profile. Again the service throws the same exception Unknown Version.

Best Regards,
Ahsen Saeed

Profile picture for user Kurumi

Kurumi

7 years 4 months ago

Exception Occurred Unknown Version When Reading Instantaneous

Hi,

I just verify this.

Before
00 01 00 10 00 01 00 0D C0 01 C1 00 73 00 00 13 28 00 FF 05 00
//after
cl.setServiceClass(ServiceClass.UN_CONFIRMED);
00 01 00 10 00 01 00 0D C0 01 81 00 73 00 00 13 28 00 FF 05 00

Can you read the association view? Is profile generic 1.0.99.2.0.255 there?
Make sure that you are using the right authentication level and client address (0x11) is correct.

BR,

Mikko

ahsensaeed

7 years 4 months ago

Exception Occurred Unknown Version When Reading Instantaneous

Hey Mikko,

I verify that the meter has the Profile Generic via Gurux Director with Optical Probe. And below is the settings for how I create GxDLMSClient.

private static GXDLMSClient getGxdmlsClient() {
GXDLMSClient dLMSClient = new GXDLMSClient(true);
dLMSClient.setInterfaceType(InterfaceType.WRAPPER);
dLMSClient.setServerAddress(1);
dLMSClient.setClientAddress(17);
dLMSClient.setAuthentication(Authentication.LOW);
dLMSClient.setPassword("000000");
dLMSClient.setServiceClass(ServiceClass.UN_CONFIRMED);
return dLMSClient;
}

Best Regards,
Ahsen Saeed

Profile picture for user Kurumi

Kurumi

7 years 4 months ago

Exception Occurred Unknown Version When Reading Instantaneous

Hi Ahsen Saeed,

Did you call aarqRequest() before calling read? In your first example that is missing.

BR,
Mikko

ahsensaeed

7 years 4 months ago

Exception Occurred Unknown Version When Reading Instantaneous

Hey Mikko,
Yes, I'm calling aarqRequest() before reading the instantaneous profile.

Best Regards,
Ahsen Saeed.

Profile picture for user Kurumi

Kurumi

7 years 4 months ago

Exception Occurred Unknown Version When Reading Instantaneous

Hi,

Can you send GXDLMSDirector log and java log to me by email?
I need to see what meter replies for AARQ.

BR,

Mikko

ahsensaeed

7 years 4 months ago

Exception Occurred Unknown Version When Reading Instantaneous

Hey Mikko,

Below are the bytes what meter send me in the response of aarqRequest().

68 01 C3 00 3A 00 33 21 56 D9 D7 A7 09 74 92 92 46 E0 B8 8F DF 6C 58 34 2C 61 7E F2 A4 48 FF 04 0B AD A9 D1 C6 6E F4 96 05 63 9D 88 46 1B 29 9E 98 37 72 73 1E C2 CB BC FE 17 BD 18 2E FD 21 2E 16

Best Regards,
Ahsen Saeed.

Profile picture for user Kurumi

Kurumi

7 years 4 months ago

Exception Occurred Unknown Version When Reading Instantaneous Pr

Hi,

This reply is not correct. Are you using Moxa or some other TCP/IP to serial port converter or are you connect directly to the meter?

BR,

Mikko

ahsensaeed

7 years 4 months ago

Exception Occurred Unknown Version When Reading Instantaneous

Hey Mikko,

No, I'm trying to connect directly to the meter via TCP/IP protocol.

Best Regards,
Ahsen Saeed.

Profile picture for user Kurumi

Kurumi

7 years 4 months ago

Exception Occurred Unknown Version When Reading Instantaneous

Hi,

Can you send GXDLMSDirector reply to AARQ? This is not DLMS reply.
Ask from the manufacturer if DLMS is not the default protocol.

BR,

Mikko

ahsensaeed

7 years 4 months ago

Exception Occurred Unknown Version When Reading Instantaneous

Hey Mikko,

Below are the bytes which my service sent to meter for aarqRequest().

00 01 00 11 00 01 00 36 60 34 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 08 80 06 30 30 30 30 30 30 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF

Also I ask the manufacturer they says that it is customer specific. It is not pure DLMS protocol.

Best Regards,
Ahsen Saeed

Profile picture for user Kurumi

Kurumi

7 years 4 months ago

Exception Occurred Unknown Version When Reading Instantaneous

Hi,

In that case, it's a proprietary protocol, not DLMS. Because of this I can't help you.
You need to contact your meter manufacturer.

BR,

Mikko

ahsensaeed

7 years 4 months ago

Exception Occurred Unknown Version When Reading Instantaneous

Hey Mikko,
Thank you for your response. I'll ask the manufacturer for further more.

Best Regards,
Ahsen Saeed

  • 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