[genivi-dlt] Hello, I ask for Something about DLT

Lipka, Christoph (ADITG/ESA) clipka at de.adit-jv.com
Tue May 30 10:43:58 EDT 2017


Hi SangJune,

I am trying to figure out what you actually want to achieve. What is your understanding of “DLT sync mechanism” (between Daemon and Viewer)? The DLT Daemon is the server and the DLT Viewer is a client that first has to connect to the DLT Daemon.
In the current implementation, the DLT daemon will call “dlt_daemon_process_client_connect()” when the DLT Viewer connects to the daemon and  “dlt_daemon_process_client_messages()” when the DLT Viewer sends control messages to the DLT Daemon.
On the other hand, the DLT Daemon will forward all log messages from applications to all registered clients (e.g. DLT Viewer) by calling “dlt_daemon_process_user_messages()”. So before you can send data on a socket, the connection needs to be created / the DLT Daemon has to wait for the Viewer to connect.
How do you receive messages from DLT Applications, if you removed the epoll functionality? What do you want to achieve finally?

Best Regards,
Christoph


Von: sangjune.ahn [mailto:sangjune.ahn at lge.com]
Gesendet: Dienstag, 30. Mai 2017 10:09
An: Alexander.AW.Wenzel at bmw.de; genivi-diagnostic-log-and-trace at lists.genivi.org
Cc: Gernot.Wirschal at bmw.de; Lipka, Christoph (ADITG/ESA)
Betreff: RE: Hello, I ask for Something about DLT

Hello, Dear DLT mailing list guys.

I`m sangjune.ahn (LGE junior researcher)
With the help of Alexander, when I made DLT offline trace function based on QNX in 3 months ago.
Now, I try to make it DLT real time function(socket send) based on QNX. Because DLT Viewer is so comfortable and convenience.

But I have a problem with "dlt_daemon_socket_send()"
Internal function.
I sent data by socket send().
(before I open the socket open process by "dlt_daemon_local_connection_init() -> dlt_daemon_socket_open() ")
As result, socket send is failed.
<I don`t use handler and Epoll because our system doesn't need to be multiple connections.(Reason of first - Just 1:1 connection, 1 target, and 1 viewer, Reason of second - QNX OS not supported Epoll, so Epoll is not available.>
Originally, DLT daemon(Linux) connected by the callback = dlt_connection_get_callback() function(And internal switch case).

Maybe I guess If the sync mechanism of the daemon and the viewer is established, those are would be doing well.
Actually, I don`t understand exactly what about DLT sync mechanism(viewer request and target response).

If anyone knows about well, could you explain to me in detail?
Please, I need your help.

BR
thank you.
SangJune.Ahn
From: Alexander.AW.Wenzel at bmw.de<mailto:Alexander.AW.Wenzel at bmw.de> [mailto:Alexander.AW.Wenzel at bmw.de]
Sent: Monday, May 29, 2017 4:03 PM
To: sangjune.ahn at lge.com<mailto:sangjune.ahn at lge.com>
Cc: Gernot.Wirschal at bmw.de<mailto:Gernot.Wirschal at bmw.de>; clipka at jp.adit-jv.com<mailto:clipka at jp.adit-jv.com>
Subject: AW: Hello, I ask for Something about DLT

Hello Sangjune,

The dlt-daemon is maintained currentlys by Christoph Lipka, see CC. Also the Offline Trace functionality is developed by him.

I do not understand your question, perhaps you can be more precise what is your current problem.
Please ask your questions to the DLT Mailinglist genivi-diagnostic-log-and-trace at lists.genivi.org<mailto:genivi-diagnostic-log-and-trace at lists.genivi.org>, perhaps the community around DLT can help you there.

Best regards

   Alex

--
BMW Group
Alexander Wenzel
Architecture Head Unit
EE-601

Postanschrift:
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, Markus Duesmann,
Klaus Fröhlich, Nicolas Peter, Ian Robertson,
Peter Schwarzenbauer, Oliver Zipse.
Vorsitzender des Aufsichtsrats: Norbert Reithofer
Sitz und Registergericht: München HRB 42243
--------------------------------------------------------------------

Von: sangjune.ahn [mailto:sangjune.ahn at lge.com]
Gesendet: Freitag, 26. Mai 2017 07:55
An: Wenzel Alexander, EE-601 <Alexander.AW.Wenzel at bmw.de<mailto:Alexander.AW.Wenzel at bmw.de>>
Betreff: RE: Hello, I ask for Something about DLT

Hello, Alexander.

I`m sangjune.ahn (LGE junior researcher)
When I made DLT (version of QNX Cluster)
I asked you question of DLT for much time.
Alexander you helped me by reply to email.
And I impressed your effort.
As the Result, I made complete DLT log offline trace function.
My colleagues think like that.
The current development environment is much easier than before.
So we feel our gratitude for your efforts.

But Not satisfied with the current development environment,
I would like to create additional new functions.
And I try to make DLT Real time sync function of dlt_daemon_socket_send with DLT viewer.

But I have a problem with the connection between target and DLT viewer.
Actually, I don`t understand what exactly control message to send to the viewer by a socket.

Now operating like this following picture.(base_on_QNX.png)
So first time to DLT viewer send to Dlt daemon.
And daemon first time to send response data.

If do you think of a problem with something.
Actually, I don`t know how operating dlt mechanism.
DLT is so difficult.
And I need to your opinion.
How can I solve this problem?

Finally, I add to attached picture of based on the Linux connection log.(base_on_linux.png)

Best Regard.
I love it DLT.

From: sangjune.ahn [mailto:sangjune.ahn at lge.com]
Sent: Friday, November 04, 2016 10:28 AM
To: 'Alexander.AW.Wenzel at bmw.de' <Alexander.AW.Wenzel at bmw.de<mailto:Alexander.AW.Wenzel at bmw.de>>
Subject: RE: Hello, I ask for Something about DLT

Hello ~ alexander
I`m sangjune.ahn

When I was before 1 moth, I asked question and many things about DLT to you.
And now I made completely Our platform(Cluster) log system saved to DLT log type.
< we don`t included dlt daemon and use DLT viewer>
Thank you so much and I wonder to say about complete..
Finally Talk to again. thank you so much ~ Alexander !
You are my hero.<짱짱맨>

Best Regard.

From: Alexander.AW.Wenzel at bmw.de<mailto:Alexander.AW.Wenzel at bmw.de> [mailto:Alexander.AW.Wenzel at bmw.de]
Sent: Wednesday, September 21, 2016 8:13 PM
To: sangjune.ahn at lge.com<mailto:sangjune.ahn at lge.com>
Subject: AW: Hello, I ask for Something about DLT

Hello Sangjune,

As I already said please look at the AUTOSAR specification, there you will find the protocol specification, which equals the file format. Especially look at chapter 7.7.6.1

   Alex

--
BMW Group
Alexander Wenzel
Architect. Connected Drive, I and C Syst.

Postanschrift:
80788 München

Tel: +49-89-382-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: sangjune.ahn [mailto:sangjune.ahn at lge.com]
Gesendet: Mittwoch, 21. September 2016 12:14
An: Wenzel Alexander, EE-60 <Alexander.AW.Wenzel at bmw.de<mailto:Alexander.AW.Wenzel at bmw.de>>
Betreff: RE: Hello, I ask for Something about DLT

Hello Alexander Wenzel.

Thank you for your comment and information of DLT
In these days I`m impress about your code and your program of DLT.

But I have feel that complicate about code and I don`t understand of many of things.
So I need to question for 1 things. “How can the DLT to save the log file inside of system( eg. /home/log_data/ )
I need to know that what is the format(DLT-log), if I want to open the log in DLT viewer.

Would you explain for where is the code of save the DLT log format(function)
Could you tell me about (eg. if do you need to what is the format, look at here (dlt_file_read())

Thank you so much for your effort.
Best regard.

Sangjune.ahn
LGE Young Guy..


From: Alexander.AW.Wenzel at bmw.de<mailto:Alexander.AW.Wenzel at bmw.de> [mailto:Alexander.AW.Wenzel at bmw.de]
Sent: Monday, September 19, 2016 4:44 PM
To: sangjune.ahn at lge.com<mailto:sangjune.ahn at lge.com>
Cc: lutz_helwing at mentor.com<mailto:lutz_helwing at mentor.com>
Subject: AW: Hello, I ask for Something about DLT

Hello SankJune,

If you need information about the DLT protocol, please look at the AUTOSAR DLT standard.

https://www.autosar.org/fileadmin/files/releases/4-2/software-architecture/system-services/standard/AUTOSAR_SWS_DiagnosticLogAndTrace.pdf

Please look at chapter 7.7.

I hope this helps you finding the missing information.

Best regards

   Alex

--
BMW Group
Alexander Wenzel
Architect. Connected Drive, I and C Syst.

Postanschrift:
80788 München

Tel: +49-89-382-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: sangjune.ahn [mailto:sangjune.ahn at lge.com]
Gesendet: Montag, 19. September 2016 09:32
An: Wenzel Alexander, EE-60 <Alexander.AW.Wenzel at bmw.de<mailto:Alexander.AW.Wenzel at bmw.de>>; lutz_helwing at mentor.com<mailto:lutz_helwing at mentor.com>
Betreff: Hello, I ask for Something about DLT

Hello, I`m researcher in LGE
My name is SangJune.Ahn.

Now I make it small system(Bad HW performance) of Middleware layer based on QNX.
I have to try make Synchronized with DLT Viewer.
But Is not used to DLT Manager.(Daemon) ( DLT_offline_trace_write(Mode: wb (Write binary?) -> Is not a saved the text type.)
Now we use this(Log Manager –> just save the Trace information, type of text)
Because this is not heavy than DLT system. So I have to try to save the .dlt file format. For synchronized with DLT viewer.

If Do you make this(Log Manager) for Synchronized with DLT viewer, How do you will make it ?
Would you give me that advice.

I found about contact point of fallow here (https://github.com/GENIVI/dlt-daemon)

Finally, Sorry for that I don’t` write to English very well.

Thank you & have nice day.
Best regard.



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