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. Limiter - Normal Threshold

Limiter - Normal Threshold

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.

Profile picture for user Remith
By Remith, 2 September, 2020
Forums
Gurux DLMS for Java

Hi,
I am trying to write the Limiter Normal Threshold parameter through Gurux Java library. Getting below exception.

gurux.dlms.GXDLMSException: Access Error : Device reports a unmatched type.

Below is my code,
GXDLMSLimiter lm = new GXDLMSLimiter("0.0.17.0.0.255");
lm.setThresholdNormal(18720);
com.writeObject(lm, 4);

Other parameter I am able to write. Only facing problem with Threshold Normal.
Gurux DLMSdirecter also its working.

Kindly help me to resolve this issue.

Profile picture for user Kurumi

Kurumi

2 years 6 months ago

Hi,

Hi,

I believe that your datatype is wrong. You need to read it first to update the data type or give it like this:
lm.setThresholdNormal(GXUInt32(18720));

Change GXUInt32 to the correct data type.

BR,

Mikko

Profile picture for user Remith

Remith

2 years 5 months ago

It worked .... Thank you.

It worked .... Thank you.

Profile picture for user kevin jose minj

kevin jose minj

2 months 2 weeks ago

In reply to It worked .... Thank you. by Remith

Can you tell me which

Can you tell me which datatype you used for writing the value?

Profile picture for user Remith

Remith

2 months 2 weeks ago

In reply to Can you tell me which by kevin jose minj

Read the object first. Gurux

Read the object first. Gurux automatically identify the data type.
After you can set the value and write back

Profile picture for user kevin jose minj

kevin jose minj

2 months 2 weeks ago

In reply to Read the object first. Gurux by Remith

Can you show the example code

Can you show the example code?

Profile picture for user kevin jose minj

kevin jose minj

2 months 2 weeks ago

In reply to Can you show the example code by kevin jose minj

data = GXDLMSLimiter('0.0.17

data = GXDLMSLimiter('0.0.17.0.0.255')
val = self.read(data,4)
data.value = 200
self.write(data, 2)

this is my code

Profile picture for user Remith

Remith

2 months 2 weeks ago

In reply to data = GXDLMSLimiter('0.0.17 by kevin jose minj

Look like you are reading 4th

Look like you are reading 4th index and writing to 2nd index

  • 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