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?
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?
Hi Mikko,
Hi Mikko,
Can you please confirm that DLMS is following escape sequence for 7E as described in HDLC format.
Thanks
Hi,
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
Hi Mikko,
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
Hi,
Hi,
You can set EOP to serial component like this.
ReceiveParameters<byte[]> p = new ReceiveParameters<byte[]>()
{
Eop = 0x7E,
WaitTime = WaitTime,
};
BR,
Mikko
Thanks Mikko.
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
Hi,
Hi,
If you set End of packet character reading is faster, but DLMS component makes parsing from the byte stream.
BR,
Mikko