Hi,
Currently i am reading a GenericProfile which answers in multiple frames.
When the reading is done the GXReply class contains the full data.
I want to log this data in XML format.
For single frames responses I can use translator.messageToXml
But what can I do in this case, where there are multiple frames as a response?
I tried to use pduToXml and dataToXml on the reply.getData(), the first gives error and the second gives an empty string. Is there a way to do this easily?
Also I need this to work for Block readings.
Thank you.
Hi, If you want to show the…
Hi,
If you want to show the data as XML, you need to read all frames and then you can use dataToXml method.
BR,
Mikko
Hi Mikko, DLMS_SEND:…
Hi Mikko,
DLMS_SEND: 7EA00802FF0393925E7E
DLMS_RECEIVE: 7EA021030002185D73F856818012050180060180070400000001080400000001533B7E
Using dataToXml on the SNRM and AARE responses i get an error:
java.lang.IllegalArgumentException: Invalid data type: 129
As I already said this command doesn't work for me.
Also I cannot translate commands sent to the meter because i don't have "data", the library just gives me the frame.
so, how can i translate commands sent INCLUDING SNRM AND AARQ (Including when they are split in multiple frames)
How can i translate responses to SNRM AND AARE (Including when they are split into multiple frames or blocks?)
Thank you very much
Hi, You can use messageToXml…
Hi,
You can use messageToXml to convert HDLC frames to XML. You can use dataToXml method after you have read all the data from the meter e.g. when you read Profile Generic buffer.
There is no data and for that reason, the dataToXml method fails.
BR,
Mikko