[genivi-dlt] Possibility to reduce control messages sent by dlt-daemon

Lipka, Christoph (ADITJ/SWG) clipka at jp.adit-jv.com
Sun Oct 30 23:22:10 EDT 2016


Hi Lutz,

When disabling the mentioned messages, you used prevent the DLT Viewer from asking for these information.

There is no way to disable control (response) messages. It is all written in code without any possibility to prevent the Daemon to send them. I wonder what logs you want to disable further?

e.g.: When I disable everything as you said I see following messages:
0 2016/10/31 12:13:54.380130 355292.6545 5 ECU1 DLTD INTM 2457 log info verbose 1 ApplicationID 'LOG' registered for PID 2500, Description=Test Application for Logging
1 2016/10/31 12:13:54.380130 355292.6549 6 ECU1 DLTD INTM 2457 log info verbose 1 ContextID 'TEST' registered for ApID 'LOG', Description=Test Context for Logging
2 2016/10/31 12:13:54.380130 355292.6550 0 ECU1 DA1 DC1 0 control response non-verbose 0 [get_log_info 7] 01 00 4c 4f 47 00 01 00 54 45 53 54 ff ff 18 00 54 65 73 74 20 43 6f 6e 74 65 78 74 20 66 6f 72 20 4c 6f 67 67 69 6e 67 1c 00 54 65 73 74 20 41 70 70 6c 69 63 61 74 69 6f 6e 20 66 6f 72 20 4c 6f 67 67 69 6e 67 72 65 6d (send automatically by daemon on context registration, this might be a candidate to avoid, since a lot of – probably useless – data is send – again …)
…
17 2016/10/31 12:06:25.932630 354844.2975 3 ECU1 DLTD INTM 2457 log info verbose 1 Unregistered CtID 'TEST' for ApID 'LOG'
18 2016/10/31 12:06:25.932630 354844.2977 0 ECU1 DA1 DC1 0 control response non-verbose 0 [unregister_context ok] 4c 4f 47 00 54 45 53 54 72 65 6d (send always when context unregisters at the daemon)
19 2016/10/31 12:06:25.932630 354844.2977 4 ECU1 DLTD INTM 2457 log info verbose 1 Unregistered ApID 'LOG'
20 2016/10/31 12:06:52.107630 423895.2290 0 ECU APP CON 0 control request non-verbose 0 [set_timing_packets] 00
21 2016/10/31 12:06:52.312630 354870.6830 0 ECU1 DA1 DC1 0 control response non-verbose 0 [set_timing_packets ok]
22 2016/10/31 12:07:02.932630 423906.0560 0 ECU APP CON 0 control request non-verbose 0 [set_timing_packets] 00
23 2016/10/31 12:07:02.940130 354881.5029 0 ECU1 DA1 DC1 0 control response non-verbose 0 [connection_info ok] connected
24 2016/10/31 12:07:02.940130 354881.4955 0 ECU1 DA1 DC1 0 control response non-verbose 0 [connection_info ok] disconnected (send every time the viewer reconnects)
…

You can “disable” the last 4 messages by disabling the “auto reconnect” (TCP tab in ECU configuration). In my case, no message is shown afterwards in case just the daemon is running and no application.

Not sure if this helps you, that’s why I asked for specific messages you want to disable above.

From the log above, an alignment problem of the current code can be seen that should be resolved in the future:

- on application registration: Daemon internal log
- on context registration: get_log_info
- on context unregistration: unregister_context

I’d prefer to have dedicated messages for register/unregister application/context (like unregister_context) with the possibility to disable that they are send, if the user want to rely on get_log_info triggered from viewer.

Best regards

Christoph Lipka
Software Group (ADITJ/SWG)

Tel. +81-(0)566 61-5124

From: genivi-diagnostic-log-and-trace [mailto:genivi-diagnostic-log-and-trace-bounces at mailman1.genivi.org] On Behalf Of Helwing, Lutz
Sent: Friday, October 28, 2016 7:55 PM
To: genivi-diagnostic-log-and-trace at lists.genivi.org
Subject: [genivi-dlt] Possibility to reduce control messages sent by dlt-daemon


Hello all,

in one of our projects the question arose if it is possible to reduce the number of control messages (namely AppID: DA1 and CtxID: DC1) sent by dlt-daemon to clients. While i am aware that these are part of the protocol i still like to forward this question.

In DLT Viewer i could untick "Timing packets from ECU", "Send Get Log Info", Send "Get SW Version" if online and "Send Default Log Level, Trace Status and Verbode Mode if online". Are there any further methods for reducing control messages?
Thanks.

Best regards
Lutz
--

Lutz Helwing
Senior Engineer
Telefon

+49 (89) 57096 - 297<tel:+49%287721%294060-422>

Fax

+49 (89) 57096 - 400

lutz_helwing at mentor.com<mailto:Oliver_Hartfuss at mentor.com>


[Mentor                                                    Automotive]
Mentor Graphics Development (Deutschland) GmbH
Arnulfstrasse 201
D-80634 München
http://www.mentor.com

Mentor Graphics Development (Deutschland) GmbH
Geschäftsführung: Dean Freed, Walter Vermijs, Shannon Wetzel
Handelsregister: Amtsgericht Freiburg i.Br., HRB 705237
Sitz der Gesellschaft: Peterzeller Straße 8, 78048 Villingen-Schwenningen
USt-Id Nummer: DE268786819

Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genivi.org/pipermail/genivi-diagnostic-log-and-trace_lists.genivi.org/attachments/20161031/3afd7a7f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 7787 bytes
Desc: image001.png
URL: <http://lists.genivi.org/pipermail/genivi-diagnostic-log-and-trace_lists.genivi.org/attachments/20161031/3afd7a7f/attachment.png>


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