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 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 wooreeinfo , 28 April, 2022

Invalid Command/Invalid encoding for signature error occured.

Forums
Gurux DLMS for Java

Regards Gurux team.

I wrote example codes for server side yesterday, and I checked it works with GXDLMSDirector using high authentication.

Then I got public/private keys and certs through client example from git, and copied these for using HighECDSA authentication.

When I trying to connect server using these certs, It seems to be connect successfully. (It means not returns any errors.)

But it returns "Invalid Command" error trying to read any objects.
At that time, server returns "Invalid encoding for signature" error too.

By wooreeinfo , 26 April, 2022

Implementation ECDSA with Gurux library for Java

Forums
Gurux DLMS for Java

Regards gurux.

I have questions for implementation to authentication ECDSA with Gurux library for Java.

I wrote sample codes for server and client sides using ECDSA authentication.
In this time, I refered to initializeConnection() and generateCertificates() method in GXDLMSReader.java.

It seems to be connect successfully, but I encountered Invalid HDLC Frame error while read object.

gurux.dlms.GXDLMSSettings checkFrame
INFO: Invalid HDLC Frame: 78 Expected: 56

By MrSupe , 25 March, 2022

Set reading timeout

Forums
Gurux DLMS for Java

How to set timeout (in java package) to kill process in case to last long time?
Thanks
Peter.

By Danielm , 28 February, 2022

Server example error

Forums
Gurux DLMS for Java

Hi,
I have a problem with gurux.dlms.server.example.java. I use Ubuntu 20.04.4 LTS. I tried to connect server and client. I cloned gurux.dlms.java from github. Then I used maven and compiled gurux.dlms.server.example.java. But when I tried to run server, I got everytime error.
Commands, which I used:

git clone https://github.com/Gurux/gurux.dlms.java.git
cd gurux.dlms.java/gurux.dlms.server.example.java/
mvn clean package
java -jar target/gurux.dlms.server.example.java-0.0.1-SNAPSHOT.jar

By riahtu , 27 February, 2022

Runtime Error while run gurux.dlms.simulator.java

Forums
Gurux DLMS for Java

Has runtime Error while I run a Simmulator for gurux.dlms.simulator.java-0.0.1-SNAPSHOT.jar
$java -jar gurux.dlms.simulator.java-0.0.1-SNAPSHOT.jar -p 4040 -w -x crystal.xml
DLMS WRAPPER Logical Name simulator start in ports 4040-4040.
java.lang.String cannot be cast to [B

By Mariusz Jędrzejewski , 21 February, 2022

Scalers and units - problem with parsing?

Forums
Gurux DLMS for Java

Hi,

we have two meters of the same type - L+G ZMD. This type uses Short Name referencing along with HDLC interface type. We want to read scalers and units for generic profile 1.0.99.1.0.255, the base short address for this profile is 25200 (decimal). So, we have to read attribute 3 of profile and we know what registers are inside the profile.

Than, we can ask first meter for scalers and units, request is combined with short names of simple registers readed from profile:

By lukasm , 21 February, 2022

D2 FrameType not parsed correctly [HDLC, LN=0]

Forums
Gurux DLMS for Java

Hello,
I am facing the issue with incorrect translation of register's scaller & unit values during profile read process.
We have two identical example meters which only differ by content of profile.
I will mark them as meter A and meter B.
Both of them are read through HDLC interface with Logical Name Referencing = 0.
Meter A has a profile programmed with 9 registers, meter B has 17 registers.
I have observed that, when the amount of registers is higher than some value, then the Meter sends data in different frame type.

By jmcarter9t , 20 February, 2022

GXDLMSMeter.java: Input File Parse Problem?

Forums
Gurux DLMS for Java

Was running into problems with this line when attempting to use the Java simulator and the crystal.xml file (maven + java 11 + linux):

https://github.com/Gurux/gurux.dlms.java/blob/04465400fdf3f34fdecfd1a35…

By techie , 15 February, 2022

what are tags ,request for sending meter reading

Forums
Gurux DLMS for Java

i want to know what is request for sending meter reading & other information after connection successful.need full example

By Sandeep Shaw , 11 February, 2022

Write Time into DLMS Meter

Forums
Gurux DLMS for Java

Using the below code to write time into the Meter

val item: GXDLMSAutoAnswer =
settings.client.objects.findByLN(ObjectType.AUTO_ANSWER,"0.0.1.0.0.255" )

item.listeningWindow.add(
AbstractMap.SimpleEntry<GXDateTime, GXDateTime>(
GXDateTime(-1, -1, -1, 6, -1, -1, -1),
GXDateTime(-1, -1, -1, 8, -1, -1, -1)
)
)
val mData = settings.client.write(item, 2)
for(i in 0 until mData.size){
reader?.readDLMSPacket(mData.get(i), GXReplyData())
}

Pagination

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

Hire Us!

Latest Releases

  • Mon, 06/15/2026 - 08:52
    gurux.dlms.c 9.0.2606.1501
  • 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

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