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. Gurux DLMS Java Example

Gurux DLMS java example

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 Franky , 15 June, 2016
Forums
Gurux DLMS for Java

Hi,

First i'm sorry if my question already post by someone else, i am newbie in gurux dlms.
i'm trying to read Ace6000 with DLMS with gurux.dlms.client example java.

it seems already connect and login to meter.
Then i'm going to execute this code:
"readDataBlock(dlms.getObjectsRequest(), reply);
GXDLMSObjectCollection objects =
dlms.parseObjects(reply.getData(), true);"
where the trace Loop Frame ID do not match.
This is the trace: "Frame ID do not match.
-> 16:34:14.905 7E A8 8C 03 00 02 00 23 90 83 4C E6 E7 00 C4 02 81 00 00 00 00 03 00 82 0D 1C 02 04 12 00 09 11 00 09 06 00 00 0A 00 69 FF 02 02 01 01 02 03 0F 01 16 01 00 01 01 02 02 0F 01 03 02 02 04 12 00 09 11 00 09 06 00 00 0A 80 71 FF 02 02 01 01 02 03 0F 01 16 01 00 01 01 02 02 0F 01 03 02 02 04 12 00 09 11 00 09 06 00 00 0A 80 72 FF 02 02 01 01 02 03 0F 01 16 01 00 01 01 02 02 0F 01 03 02 02 04 12 00 09 11 00 09 06 00 00 74 62 7E
<- 16:34:14.907 7E A0 08 02 23 03 31 26 F2 7E"

Where should i fix this problem?

Thanks before.

Profile picture for user Kurumi

Kurumi

9 years 12 months ago

Gurux DLMS java example

Hi,

Can you read your meter? This is a warning, but we can check this. getObjectsRequest is taking long time and lots of data is moved between meter and client.

BR,

Mikko

Franky

9 years 12 months ago

Hi Mikko.

getObjectsRequest is replying "7e a0 1a 2 23 3 32 75 62 e6 e6 0 c0 1 81 0 f 0 0 28 0 0 ff 2 0 94 9e 7e"
so, is there any issue here? i never run till end, because the process is taking too long.

Can i ask more questions ? i'm trying to get data(RTC Current Date & Time) via obiscode(0.0.1.0.0.255) Class Id 8 Attribute ID 0.
using GXDLMSAutoAnswer :
GXDLMSAutoAnswer item = (GXDLMSAutoAnswer) dlms.getObjects().findByLN(ObjectType.AUTO_ANSWER, "0.0.1.0.0.255");
item.getListeningWindow().add(new AbstractMap.SimpleEntry<GXDateTime, GXDateTime>(new GXDateTime(-1, -1, -1, 6, -1, -1, -1),
new GXDateTime(-1, -1, -1, 8, -1, -1, -1)));
readDLMSPacket(dlms.write(item, 3));

got error Message :
java.lang.NullPointerException
DisconnectRequest
at test.GXCommunicate.GetDate(GXCommunicate.java:411)
at test.Main.main(Main.java:35)

Profile picture for user Kurumi

Kurumi

9 years 12 months ago

Gurux DLMS java example

Hi,

Reading association view is taking long time. If you know what you want to read, you do not need to read it.
If you want to read clock's date time you should do it like this:

GXDLMSClock clock = new GXDLMSClock();
readDLMSPacket(dlms.read(clock, 2));

Reason why error is thrown is simply that there is no GXDLMSAutoAnswer with that obis code and item is null.

BR,

Mikko

Franky

9 years 12 months ago

Hi Miko

Thanks for the reply. but i've got an error return message
<- 15:29:05.058 7E A0 1A 02 23 03 54 45 64 E6 E6 00 C0 01 81 00 08 00 00 01 00 00 FF 02 00 65 D7 7E
-> 15:29:05.125 7E A0 0A 03 00 02 00 23 31 6C 0B 7E

is there another way to read using obis code(0.0.1.0.0.255) Class Id 8 Attribute ID 0?

Profile picture for user Kurumi

Kurumi

9 years 12 months ago

Gurux DLMS java example

Hi,

I forget to say that you must use authentication level Low to connect for Ace6000.
If you are using authentication level None, you do not see the clock.

This is Actaris spesific issue.

BR,

Mikko

dhirajthaokar

8 years 2 months ago

how to send parameter for serial communication of DLMS meter :-

i ma using fallowing code

[code removed by admin]

dhirajthaokar

8 years 2 months ago

how to send parameter for serial communication of DLMS meter

[code removed by admin]

Profile picture for user Kurumi

Kurumi

8 years 2 months ago

Hi dhirajthaokar,

Hi dhirajthaokar,

If you have a question. please create a new topic and don't paste our example code to the forum. I'll ask admin to remove code example. What is your question?

BR,
Mikko

dhirajthaokar

8 years ago

i want read monthly data from dlms meter

hello sir,
i connected meter with PC and i found meter profile also. but i want to read data from meter monthly/daily basis
how to apply java code
i used

GXDLMSAutoAnswer item = (GXDLMSAutoAnswer) settings.client.getObjects().findByLN(ObjectType.AUTO_ANSWER, "0.0.1.0.0.255");
item.getListeningWindow().add(new AbstractMap.SimpleEntry<GXDateTime, GXDateTime>(new GXDateTime(-1, -1, -1, 13, -1, -1, -1),
new GXDateTime(-1, -1, -1, 14, -1, -1, -1)));
reader.readDLMSPacket(settings.client.write(item, 3));

  • 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