How does DLMS get notification that received data is completed?

7 posts / 0 new
Last post
KhushbuBadheka
How does DLMS get notification that received data is completed?

Hi Mikko,

Currently we are using Director to read data from meter. And from logs we can check that "7E" receives in the data. So can you please help us to understand how does DLMS come to know about frame completion?

Thanks

KhushbuBadheka

Hi Mikko,

Can you please confirm that DLMS is following escape sequence for 7E as described in HDLC format.

Thanks

Kurumi
Kurumi's picture

Hi,

Structure of HDLC frame is explained here:

https://en.wikipedia.org/wiki/High-Level_Data_Link_Control

DLMS PDU can be send using HDLC framing. It's used when communicating using a serial port connection.

BR,
Mikko

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

KhushbuBadheka

Hi Mikko,

Thanks for the update. However I would like to know that does Gurux.Serial handle escape sequence(if data contains "7E").

Waiting for your reply.

Thanks

Kurumi
Kurumi's picture

Hi,

You can set EOP to serial component like this.

ReceiveParameters<byte[]> p = new ReceiveParameters<byte[]>()
{
Eop = 0x7E,
WaitTime = WaitTime,
};

BR,
Mikko

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

KhushbuBadheka

Thanks Mikko.

However, is this not done in Gurux.Serial? If not then how does it manage to get full data with "7E". Currently I use it to read meter serially and got data without any changes.
Can you please help me to clear this?

Thanks

Kurumi
Kurumi's picture

Hi,

If you set End of packet character reading is faster, but DLMS component makes parsing from the byte stream.

BR,
Mikko

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