Skip to main content
Home
for DLMS smart meters

Main navigation

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

Breadcrumb

  1. Home
  2. Forums
  3. Facing runtime error after updating gurux.dlms version from 3.1.16 to 4.0.1

Facing runtime error after updating gurux.dlms version from 3.1.16 to 4.0.1

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 Adonay Eshetu, 15 December, 2022
Forums
Gurux DLMS for Java

Hello Mikko,

I was using an older version of gurux and now I want to update the version to the latest. I am fixing compilation errors version by version and while updating from 3.1.16 to 4.0.1 I did not face any compilation error but faced a runtime error while reading association view.

After the below log, which is the last log in reading the association view.

RX -> 7E A0 14 02 21 05 54 95 E4 E6 E6 00 C0 02 C1 00 00 01 B9 4A 9E 7E
TX <- 7E A0 19 05 02 21 74 CE 46 E6 E7 00 C4 02 C1 01 00 00 01 BA 00 02 01 00 A2 F6 7E

!dlms.getData(rd, reply, notify) method called in the while loop for the above reply is not returning, the app just stucks there.

The readDLMSPacket method is the same as the one in the java client example on github.

what seems to be the problem and how can I fix it?

Thank you for the help in advance.
Sincerely,
Adonay Eshetu

Adonay Eshetu

3 months 1 week ago

After some debugging I have

After some debugging I have updated the question. Please check the question again.

Thank you.

Profile picture for user Kurumi

Kurumi

3 months 1 week ago

Hi,

Hi,

Try to read the meter with the client example. If it fails, can you get me the communication hex log from so I can check this from the bytes?

BR,
Mikko

Adonay Eshetu

3 months 1 week ago

I run it with the client

I updated it to the latest version and it worked.

But while fixing the compilation errors I found out that SecurityPolicy0 is not there anymore so I used SecurityPolicy. What is the difference and Is it the right way?

Profile picture for user Kurumi

Kurumi

3 months 1 week ago

Hi,

Hi,

You can use SecurityPolicy.

BR,
Mikko

Adonay Eshetu

3 months 1 week ago

Okay but since the

Okay but since the getSecurityPolicy method is returning a set, should I use the first element of the security policy set?

Thank you,
Adonay Eshetu

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

Fri, 03/24/2023 - 14:22
gurux.dlms.c 20230324.1
Thu, 03/23/2023 - 11:01
GXDLMSDirector 9.0.2303.2301
Thu, 03/23/2023 - 09:10
Gurux.DLMS.Python 1.0.142
Wed, 03/22/2023 - 13:51
Gurux.DLMS.Net 9.0.2303.2201
Wed, 03/22/2023 - 10:15
gurux.dlms.c 20230322.1

Open bugs

Gurux.DLMS.AMI4
1
Gurux.DLMS.Android
1
gurux.dlms.c
3
gurux.dlms.cpp
3
gurux.dlms.delphi
1
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin