Greetings. I am trying to read the Profiles of Itron and Landys meters using the Python library. Reading on the forum I have been able to orient myself a bit to read a single Profile for now, but in one of my attempts using the following code;
pg = GXDLMSProfileGeneric ("1.1.98.128.1.255")
print (client.readRowsByEntry (pg, 1, 1))
the result obtained is a bytearray,
[bytearray (b '~ \ xa0- \ x02 # \ x03 \ x98 (\ x8c \ xe6 \ xe6 \ x00 \ xc0 \ x01 \ xc1 \ x00 \ x07 \ x01 \ x01b \ x80 \ x01 \ xff \ x02 \ x01 \ x02 \ x02 \ x04 \ x06 \ x00 \ x00 \ x00 \ x01 \ x06 \ x00 \ x00 \ x00 \ x01 \ x12 \ x00 \ x01 \ x12 \ x00 \ x00 \ x07 \ r ~ ')]
I don't know how to interpret properly,
and trying in the following way:
cells = []
loadProfile = GXDLMSProfileGeneric ("1.1.98.128.1.255")
cells = client.readRowsByEntry (pg, 1, 1)
if trace> TraceLevel.WARNING:
for rows in cells:
for cell in rows:
if isinstance (cell, bytearray):
writeTrace (GXByteBuffer (cell) + "|", TraceLevel.INFO)
else:
writeTrace (str (cell) + "|", TraceLevel.INFO)
writeTrace ("", TraceLevel.INFO)
I would like to know, if someone can guide me to try to understand how I should interpret these results, or how to get to obtain a reading that is understandable like the attached image.
You need to read capture objects first (Attribute index #2). If you try to read Itron SL 7000 or ACE 6000 then you need to do little more work. They are older meter and they are supporting DLMS little bit differently than the new meters. You can get the values as normal, but data structure is different.
Please, don't paste bytearray because it don't tell anything. If you want to show something add data as a hex string.
In the first column is Logical Name of the object that is 6-byte long byte array. The rest of the values are normal.
Hi,
Hi,
You need to read capture objects first (Attribute index #2). If you try to read Itron SL 7000 or ACE 6000 then you need to do little more work. They are older meter and they are supporting DLMS little bit differently than the new meters. You can get the values as normal, but data structure is different.
Please, don't paste bytearray because it don't tell anything. If you want to show something add data as a hex string.
In the first column is Logical Name of the object that is 6-byte long byte array. The rest of the values are normal.
BR,
Mikko