SN Association Object

4 posts / 0 new
Last post
Filipetti
SN Association Object

Hello,
i use Gurux GXDLMSDirector to connect with my electricity meter (Landis Gyr E550) and i try to understand in details DLMS communication. I have stucked in association view part and i would like to decode information which goes from meter to computer after association request. i put log below and information which are interest me locates in "Next frame Value". I know that this information is one part of object list, but i don't know how to decode this. I would be grateful for any help.

7E A0 11 03 21 32 B7 3D E6 E6 00 05 01 02 FA 08 18 9E 7E
<HDLC len="10" >
<TargetAddress Value="1" />
<SourceAddress Value="10" />
<FrameType Value="32" />
<PDU>
<ReadRequest Qty="01" >
<VariableName Value="FA08" />
</ReadRequest>
</PDU>
</HDLC>

10:36:47
7E A8 5B 21 03 52 88 68 E6 E7 00 0C 01 00 01 82 01 62 02 04 10 00 08 12 27 19 11 52 09 06 00 00 F0 3A FF FF 02 04 10 01 08 12 00 03 11 00 09 06 00 00 61 61 00 FF 02 04 10 01 A8 12 00 03 11 00 09 06 00 00 60 F0 0C FF 02 04 10 60 E0 12 00 07 11 01 09 06 01 00 63 62 00 FF 32 D7 7E
<HDLC len="5A" >
<TargetAddress Value="10" />
<SourceAddress Value="1" />
<FrameType Value="52" />
<NextFrame Value="0C0100018201620204100008122719115209060000F03AFFFF0204100108120003110009060000616100FF02041001A812000311000906000060F00CFF02041060E0120007110109060100636200FF" />
</HDLC>

Kurumi
Kurumi's picture

Hi,

Received data is coming in frames and you need to get all the frames from the meter before you can decode the PDU (association view).

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

Filipetti

Hi,
i collected all the raw data which describes object list (in hex and in xml). I would like to understand algorithm, the way how the raw data is processing to get association view after association request, to extract short name references to objects from the data. I try to find the information how i could do that, but i didn't find the correct answer.
I know that i need to collect "NextFrame Value" from every frame i put them together and i know that there are informations about SN referencing of all objects of meters, but i couldn't extract them from the frames, because i don't know the algorithm.
i can put you log from the xml if you would like to see.

Kurumi
Kurumi's picture

Hi,

Data is split into PDUs and each PDU is split into HDLC frames. You will find basic information from HDLC here, but HDLC Framing and DLMS PDU are not very easy.
https://en.wikipedia.org/wiki/High-Level_Data_Link_Control

DLMS is standard and it's well documented. You need to get a copy from the Green Book if you are interested in this.

BR
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi