Hi Kurumi,
I am trying to write data in value attribute in register object and load using Serializer_Save and Serializer_Load. But I am facing issue with writing the data. Using GXDLMSDirectore when write some data and click on WRITE button, 0 is reflecting and in ESP32 server code, reference value is not reflecting the same. Its always 0.
But the same thing is working fine with GxData Object, able to write and read the value attribute.
Is there any other settings that I need to do specifically for Register objects? And how to change the DLMS_Data_Type of value attribute for any object?
Please let me know.
Thank you.
Hi, Usually register values…
Hi,
Usually register values are not written to the meter. You need to remove this line
IGNORE_ATTRIBUTE_BY_TYPE(DLMS_OBJECT_TYPE_REGISTER, GET_ATTRIBUTE(2)),
from NON_SERIALIZED_OBJECTS.
You define the data type when you create the data object.
https://github.com/Gurux/GuruxDLMS.c/blob/cf36e3a16fb1de260d4c025c1aa0a…
BR,
Mikko
BR,
Mikko
Thank you Kurumi, Tried what…
Thank you Kurumi,
Tried what you mentioned. Still facing the issue. In GXDLMSDirector, attribute 2 datatype is None and UIDatatype is String. How can I change UIDatatype as well? and y still we not able to read the data whats being been written using director?
Thank you.
Hi, You need to add string…
Hi,
You need to add string data to the object as the link I shared. Did you allocate memory for the string?
The UI data type originates from the OBIS codes defined in DLMS standards and you can't set that in the meter side.
BR,
Mikko
Hi, Actually, I thought that…
Hi,
Actually, I thought that we can write uint16 data and read the same. So, I allocated memory for uint16_t value. Is it mandatory that we need GX_OCTET_STRING?? Can you please elaborate a bit and explain?
Thank you.
Hi, I have IGNORE_ATTRIBUTE…
Hi,
I have commented IGNORE_ATTRIBUTE_BY_TYPE (DLMS_OBJECT_TYPE_REGISTER, GET_ATTRIBUTE (2)), this line and added string data to the object. But still when I try to write from GXDLMSDirector, it is saying access denied for read/write.
Am I missing something?
My major doubt is can we write register objects. If yes, then what are the list of objects that actually we can write?
Thankyou.