Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Gurux DLMS For Java

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.

Description

Questions and comments about<br />
Gurux <b>DLMS/COSEM for Java</b> Protocol Component.

Image
By Bela, 16 May, 2025

Push listener example how it works + tcp stream issue

Forums
Gurux DLMS for Java

Hi there,

I have tried the GuruxDlmsPushListenerExample.
When my smart meter mock send a message to the client I have got this on the console:
 

By niralldas8@gmail.com, 17 April, 2025

Wrapper connection in java

Forums
Gurux DLMS for Java

Getting error like this,
C:\Users\COMP\Downloads\gurux.dlms.java-master\gurux.dlms.client.example.java>java -jar target\gurux.dlms.client.example.java-0.0.1-SNAPSHOT.jar -S COM4:115200:8NoneOne -i WRAPPER -c 48 -a High -P ABCDEFGH12345678 -C AuthenticationEncryption -T 4C54434C49454E54 -A 31323334353637383930313233343536 -B 31323334353637383930313233343536 -v 0.0.43.1.3.255 -d India -t Verbose
WARNING: A restricted method in java.lang.System has been called

By PiotrA, 1 April, 2025

GuruX Java Simulator for Landis+Gyr meters

Forums
Gurux DLMS for Java

Hi,

I try to use gurux java simulator to create some Landis+Gyr meters with almost the same specification as real meters using: https://github.com/Gurux/gurux.dlms.java/tree/master/gurux.dlms.simulat…

I would like to test if simulated meters are served correctly and if I can actually obtain data (registries, clock, readings etc.) in GXDLMSDirector. I will need it for integration and unit tests of my application.

I encountered 2 problems:

By Bela, 26 March, 2025

Push listener and translate the push message error

Forums
Gurux DLMS for Java

Hi there,

I have a project to read push messages and trying to figure out what is in the message. I have found the gurux translator, and I faced an issue with this.

After the translate, I wanted to parse the given xml but I got this exception:
[Fatal Error] :49:13: The element type "structure" must be terminated by the matching end-tag "</structure>".

By flygfantast, 26 March, 2025

Connecting to Landis+Gyr E650 meter using HDLC_WITH_MODE_E failes in Java but works in GX DLMS Director

Forums
Gurux DLMS for Java

I've been trying to connect to a L+G E650 meter over IP with HDLC_WITH_MODE_E but it failes with "IllegalArgumentException: InterfaceType" in the aarqRequest() call.

When using the GX DLMS Director it works fine.

I've narrowed it down (I think) to getSnMessages in GXDLMS.java.
Checking the .NET project corresponding file GXDLMS.cs I noticed that a check for HdlcWithModeE was missing in the java project.

By Davenzo, 12 February, 2025

Extract Unified XML from multiple answer reading

Forums
Gurux DLMS for Java

Hi,

Currently i am reading a GenericProfile which answers in multiple frames.

When the reading is done the GXReply class contains the full data.

I want to log this data in XML format.

For single frames responses I can use translator.messageToXml

But what can I do in this case, where there are multiple frames as a response?

I tried to use pduToXml and dataToXml on the reply.getData(), the first gives error and the second gives an empty string. Is there a way to do this easily?

Also I need this to work for Block readings.

Thank you.

By Tharun, 4 February, 2025

Issue with Socket Connection After Serial Port Communication and IP Retrieval

Forums
Gurux DLMS for Java

Hello everyone,

I am currently working on a project where I need to retrieve information from a meter using both serial and TCP connections. The process involves reading a meter’s UID via the serial port, then obtaining the meter’s IP address, and finally, querying the meter for its details via a TCP connection.

Here’s the sequence of operations I’m following:

By sc-anokum, 20 December, 2024

Push Setup not sending push notification when set using gurux java code

Forums
Gurux DLMS for Java

Hi,
i'm using iskra meter, when i use the tool provided by iskra meter to set the destination, and execute the push i do get the push notification on the listener, but when i use gurux library to set the destination ip and port and execute the push, i donot receive any push notification no matter how many times i try, on comparing TX for both scenario, i found that it differs only in priority and invokeid.

below are the parsed xml's

By PRAKASH KUMAR, 13 December, 2024

Metcom- Connect meters in daisy chain over RS485

Forums
Gurux DLMS for Java

Hi,
Thanks for all your support till now!
Now, I am prototyping the Metcom meter connectivity. We have Building Management System which exposes an IP and port which is connected to the series of Metcom meters in daisy chain using RS485.
I am using GURUX java client example (somewhat modified for us) to connect to this Metcom meter. Adding the sample code.

****************************************
GXDLMSSecureClient2 dlmsClient = null;
GXDLMSReader reader = null;

By imand, 30 November, 2024

Add Capture Objects to Generic Profile

Forums
Gurux DLMS for Java

Hi Mikko,

Long time no see. How are you?

We want to add capture objects energy profile. The profile already contains 8 objects. That's why we're adding new object from index 9. We also tried adding all the objects but got the same error.

Here is the Java code we're trying to use for this. But we're getting Access Error : Data Block Unavailable.

Any idea what we're doing wrong?

try {
GXDLMSProfileGeneric profile = new GXDLMSProfileGeneric("1.0.99.1.0.255");

Pagination

  • 1
  • Next page
Gurux DLMS for Java
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Thu, 05/15/2025 - 16:26
    gurux.dlms.c 9.0.2505.1501
  • Wed, 05/14/2025 - 08:30
    gurux.dlms.c 9.0.2505.1401
  • Tue, 05/13/2025 - 10:00
    Gurux.DLMS.Android 2.0.15
  • Fri, 05/09/2025 - 13:03
    Gurux.DLMS.Python 1.0.181
  • Wed, 05/07/2025 - 16:09
    Gurux.DLMS.Android 2.0.14

New forum topics

  • Long reading ends with "Invalid frame ..." error.
  • Push listener example how it works + tcp stream issue
  • Problem with reading energymeter Star DTS27 via GXDLMSDirector
  • Receiver Ready Test Failed
  • Combining several meters' profile generic data into one
More

Who's new

  • ved224456
  • jai224456
  • neli001
  • Papapajikotryrt
  • MAJNU2
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin