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. Secured Connection In Serial Java With Frame Counter

Secured Connection in Serial Java with Frame Counter

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 Remith , 6 September, 2019
Forums
Gurux DLMS for Java

Hi Mikko,
I am reading new type of L&T meter by setting BlockCipher ,AuthenticationKey
and Frame Counter LN. Its working in GXDLMSDirector.(Please check the
attached image)
But how to set this frame counter in Java application. I am unable to do this
as it accept only long value.
setFrameCounter(final long value).

But I want to set obiscode instead of long value. Old L&T meters are working
without security in java application.

Please explain me the logic.

Image
Profile picture for user Kurumi

Kurumi

6 years 9 months ago

Hi,

Hi,

You need to make a connection to the meter without authentication. Then read 0.0.43.1.1.255 data object.
Save value. Close the connection and update read value to FrameCounter. Then start a new connection using an encrypted connection.

GXDLMSData d = new GXDLMSData("0.0.43.1.1.255");
//Read value.

cl.setFrameCounter((long) d.getValue());
//Start ciphered connection.

BR,
Mikko

BR,

Mikko

Remith

6 years 9 months ago

Hi,

Hi,
As you said I have read the 0.0.43.1.2.255 and got one long value and in the next connection I used this long value for the frame counter authentication. Now I am getting the values but kwh value not getting. 1.0.1.8.0.255 value showing as invalid and giving only scalar like below.
-------- Reading GXDLMSRegister 1.0.1.8.0.255 Invalid
Index: 3 Value: Scaler: 10 Unit: ActiveEnergy
-------- Reading GXDLMSRegister 1.0.2.8.0.255 Invalid

I am not able to attach log and trace.
Please share your email so that I can send it you.
Thanks...
REMITH

Profile picture for user Kurumi

Kurumi

6 years 8 months ago

Hi REMITH,

Hi REMITH,

Can you read them with GXDLMSDirector? Are you using the same client address and password?

BR,
Mikko

Remith

6 years 8 months ago

Hi, in GXDLMSDirector also

Hi, in GXDLMSDirector also same thing.
Anyway your above logic to read frame counter is working fine. Anyway I have completed with
direct reading with GXDLMSRegister("0.0.43.1.2.255 "); concept.
Thanks for your great support.

Remith

6 years 8 months ago

Hi, in GXDLMSDirector also

Hi, in GXDLMSDirector also same thing.
Anyway your above logic to read frame counter is working fine. Anyway I have completed with
direct reading with GXDLMSRegister("0.0.43.1.2.255 "); concept.
Thanks for your great support.

  • 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