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. 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 It worked .... Thank you. It worked .... Thank you. Can you tell me which Can you tell me which datatype you used for writing the value? Read the object first. Gurux Read the object first. Gurux automatically identify the data type. After you can set the value and write back Can you show the example code Can you show the example code? 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 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
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
Read the object first. Gurux Read the object first. Gurux automatically identify the data type. After you can set the value and write back
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
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
It worked .... Thank you.
It worked .... Thank you.
Can you tell me which
Can you tell me which datatype you used for writing the value?
Read the object first. Gurux
Read the object first. Gurux automatically identify the data type.
After you can set the value and write back
Can you show the example code
Can you show the example code?
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
Look like you are reading 4th
Look like you are reading 4th index and writing to 2nd index