[genivi-dlt] How to identify the start of DLT message in the tcp stream sent by DLT daemon ?

Alexander.AW.Wenzel at bmw.de Alexander.AW.Wenzel at bmw.de
Thu Jan 7 02:07:47 EST 2016

Hello Madhu,

normally there is no need for a special detection of the beginning of a DLT message in a TCP stream. TCP should be secure, so that there are no bytes lost. You can read the header of each message and then you will get the size of each message. Then you will know where the next message starts.

In dlt-daemon.cfg you can also enable the DLT serial header feature. Then you will get a special pattern before each DLT message “DLS0x01”. But this is normally only needed for unsecure connections like serial port.

Best regards


BMW Group
Alexander Wenzel
Architect. Connected Drive, I and C Syst.
80788 München
Tel: +49-89-382-54199
Mobil: +49-151-601-54199
Mail: Alexander.AW.Wenzel at bmw.de<mailto:Alexander.AW.Wenzel at bmw.de>
Web:  http://www.bmwgroup.com/
Bayerische Motoren Werke Aktiengesellschaft
Vorstand: Harald Krüger (Vorsitzender),
Milagros Caiña Carreiro-Andree, Klaus Draeger,
Friedrich Eichiner, Klaus Fröhlich, Ian Robertson,
Peter Schwarzenbauer, Oliver Zipse.
Vorsitzender des Aufsichtsrats: Norbert Reithofer
Sitz und Registergericht: München HRB 42243

Von: genivi-diagnostic-log-and-trace-bounces at lists.genivi.org [mailto:genivi-diagnostic-log-and-trace-bounces at lists.genivi.org] Im Auftrag von Madhu Sudhan Reddy N
Gesendet: Donnerstag, 7. Januar 2016 05:15
An: genivi-diagnostic-log-and-trace <genivi-diagnostic-log-and-trace at lists.genivi.org>
Betreff: [genivi-dlt] How to identify the start of DLT message in the tcp stream sent by DLT daemon ?

Hello All,

Currently am working with Genivi DLT , in that dlt-daemon will send log message to the client through TCP.
In that TCP stream how to identify the start of each DLT message. If there is any data is missed then how to identify the start of next DLT message.

I am writing a python script to print those messages on the console.

Madhu Sudhan Reddy N.

Disclaimer:- The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. The views expressed in this E-mail message (including the enclosure/(s) or attachment/(s) if any) are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of GlobalEdge. Before opening any mail and attachments please check them for viruses .GlobalEdge does not accept any liability for virus infected mails.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genivi.org/pipermail/genivi-diagnostic-log-and-trace_lists.genivi.org/attachments/20160107/9fd15fd8/attachment.html>

More information about the genivi-diagnostic-log-and-trace mailing list