Hi,
When reading object Data or Register, for example, 0.0.94.27.1.255 attribute 2 is of type Uint16, but in ami comes dataType 0. And while process write, attribute has value "<String Value=\"30\"/>\r\n"
and an error occurs:
Access Error : Device reports a unmatched type.
The reason for this is that you haven't read value before template is added and data type is not Uint16.
This is now improved and if the data type is unknown, it's updated when the value is read the first time.
Thank you.
I check new version, there is still problem. I try to read this object before create template. Then I create template, read object and try to write attribute, data in xml has type String. Other objects, for example Charge, write data (the type is correct) even if I did not read them before creating the template.
Hi,
Hi,
The reason for this is that you haven't read value before template is added and data type is not Uint16.
This is now improved and if the data type is unknown, it's updated when the value is read the first time.
New version is released today.
BR,
Mikko
Hi,
Hi,
Get the latest version. https://www.gurux.fi/node/16090
BR,
Mikko
Thank you.
Thank you.
I check new version, there is still problem. I try to read this object before create template. Then I create template, read object and try to write attribute, data in xml has type String. Other objects, for example Charge, write data (the type is correct) even if I did not read them before creating the template.
Hi,
Hi,
Can you try to reset the data type from the database? Set DataType to 0. You find it from GXAttribute table.
BR,
Mikko
Hi,
Hi,
Thank you.
I set data type to 0. When writing the value, the data in xml has same type - String.
Hi,
Hi,
Are you using the latest version from GXDLMSDirector and Gurux.DLMS.AMI? I tested this and the data type is correct.
BR,
Mikko
Thank you.
Thank you.