1DLT.CONF(5)                                                        DLT.CONF(5)
2
3
4

NAME

6       dlt.conf - DLT daemon configuration file
7

DESCRIPTION

9       The DLT daemon is the central application which gathers logs and traces
10       from different applications, stores them temporarily or permanently and
11       transfers them to a DLT client application, which could run directly on
12       the GENIVI system or more likely on some external tester device.
13
14       The configuration file dlt.conf allows to configure the different  run‐
15       time  behaviour of the dlt-daemon.  It is loaded during startup of dlt-
16       daemon.
17

GENERAL OPTIONS

19   Verbose
20       Start daemon in debug mode, so that all internal debug  information  is
21       printed out on the console.
22
23              Default: Off
24
25   Daemonize
26       If set to 1 DLT daemon is started in background as daemon.  This option
27       is only needed in System V init systems.  In systemd based startup sys‐
28       tems the daemon is started by spawning own process.
29
30              Default: 0
31
32   SendSerialHeader
33       If  set  to  1  DLT  daemon  sends  each DLT message to the client with
34       prepanding the serial header “DLS0x01”.
35
36              Default: 0
37
38   SendContextRegistration
39       If set to 1 each context which is registered from an application in the
40       DLT  daemon  generates a message to inform the DLT client about the new
41       context.
42
43              Default: 1
44
45   SendMessageTime
46       If set to 1 DLt daemon sends each second a DLT control message  to  the
47       client with the current timestamp from the system.
48
49              Default: 0
50
51   ECUId
52       This value sets the ECU Id, which is sent with each DLT message.
53
54              Default: ECU1
55
56   SharedMemorySize
57       This  value  sets  the  size of the shared memory, which is used to ex‐
58       change DLT messages between applications and daemon.  This value is de‐
59       fined  in  bytes.  If this value is changed the system must be rebooted
60       to take effect.
61
62              Default: 100000
63
64   PersistanceStoragePath
65       This is the directory path, where the DLT  daemon  stores  its  runtime
66       configuration.  Runtime configuration includes stored log levels, trace
67       status and changed logging mode.
68
69              Default: /tmp
70
71   LoggingMode
72       The logging console for internal logging of dlt-daemon.   0  =  log  to
73       stdout,  1  = log to syslog, 2 = log to file (see LoggingFilename), 3 =
74       log to stderr
75
76              Default: 0
77
78   LoggingLevel
79       The internal log level, up to which logs are written.  LOG_EMERG  =  0,
80       LOG_ALERT = 1, LOG_CRIT = 2, LOG_ERR = 3, LOG_WARNING = 4, LOG_NOTICE =
81       5, LOG_INFO = 6, LOG_DEBUG = 7
82
83              Default: 6
84
85   LoggingFilename
86       If LoggingMode is set to 2 logs are written  to  the  file  path  given
87       here.
88
89              Default: /tmp/dlt.log
90
91   TimeOutOnSend
92       Socket timeout in seconds for sending to clients.
93
94              Default: 4
95
96   RingbufferMinSize
97       The minimum size of the Ringbuffer, used for storing temporary DLT mes‐
98       sages, until client is connected.
99
100              Default: 500000
101
102   RingbufferMaxSize
103       The max size of the Ringbuffer, used for  storing  temporary  DLT  mes‐
104       sages, until client is connected.
105
106              Default: 10000000
107
108   RingbufferStepSize
109       The  step  size the Ringbuffer is increased, used for storing temporary
110       DLT messages, until client is connected.
111
112              Default: 500000
113
114   Daemon FIFOSize
115       The size of Daemon FIFO (MinSize: depend on pagesize  of  system,  Max‐
116       Size:  please  check /proc/sys/fs/pipe-max-size) This is only supported
117       for Linux.
118
119              Default: 65536
120
121   ContextLogLevel
122       Initial  log-level  that  is  sent  when  an   application   registers.
123       DLT_LOG_OFF  =  0, DLT_LOG_FATAL = 1, DLT_LOG_ERROR = 2, DLT_LOG_WARN =
124       3, DLT_LOG_INFO = 4, DLT_LOG_DEBUG = 5, DLT_LOG_VERBOSE = 6
125
126              Default: 4
127
128   ContextTraceStatus
129       Initial trace-status  that  is  sent  when  an  application  registers.
130       DLT_TRACE_STATUS_OFF = 0, DLT_TRACE_STATUS_ON = 1
131
132              Default: 0
133
134   ForceContextLogLevelAndTraceStatus
135       Force  log  level  and trace status of contexts to not exceed “Context‐
136       LogLevel” and “ContextTraceStatus”.  If set to 1 (ON) whenever  a  con‐
137       text  registers or changes the log-level it has to be lower or equal to
138       ContextLogLevel.
139
140              Default: 0
141
142   InjectionMode
143       If set to 0, the injection mode (see here) is disabled.
144
145              Default: 1
146

GATEWAY CONFIGURATION

148   GatewayMode
149       Enable Gateway mode
150
151              Default: 0
152
153   GatewayConfigFile
154       Read gateway configuration from another location
155
156              Default: /etc/dlt_gateway.conf
157

Permission configuration

159       DLT daemon runs with e.g.  User: genivi_dlt Group: genivi_dlt
160
161       DLT user applications run with different user and group than dlt-daemon
162       but with supplimentory group: dlt_user_apps_group
163
164       /dlt  FIFO  will  be created by dlt-daemon with User: genivi_dlt Group:
165       dlt_user_apps_group Permission: 620
166
167       so that  only  dlt-daemon  can  read  and  only  processes  in  dlt_us‐
168       er_apps_group can write.
169
170       /dltpipes  will  be  created by dlt-daemon with User: genivi_dlt Group:
171       genivi_dlt Permission: 3733 (i.e Sticky bit and SGID turned on)
172
173       /dltpipes/dlt FIFO will be created by dlt application (user  lib)  with
174       User:  Group: genivi_dlt (inherited from dltpipes/ due to SGID) Permis‐
175       sion: 620
176
177       Thus DLT user applications (and also or attackers) can create  the  dlt
178       FIFO  (for communication from dlt-daemon to DLT user application) under
179       /dltpipes/.  Since sticky bit is set the applications who  creates  the
180       FIFO can only rename/delete it.
181
182       Since SGID of /dltpipes is set the group of dlt FIFO will be genivi_dlt
183       which enables dlt daemon to have write permission on all the dlt FIFO.
184
185       One dlt user application cannot access dlt FIFO created  by  other  dlt
186       user application(if they run with different user).
187
188       Owner  group  of  daemon FIFO directory(Default: /tmp/dlt) (If not set,
189       primary group of dlt-daemon process is used).  Application should  have
190       write permission to this group for tracing into dlt.  For this opton to
191       work, dlt-daemon should have this group in it’s supplementary group.
192
193   DaemonFifoGroup
194       Owner group of daemon FIFO directory (If not set, primary group of dlt-
195       daemon  process  is  used)  Application should have write permission to
196       this group for tracing into dlt For  this  opton  to  work,  dlt-daemon
197       should have this group in it’s Supplementary group
198
199              Default: group of dlt-daemon process (/tmp/dlt)
200

CONTROL APPLICATION OPTIONS

202   ControlSocketPath
203       Path to control socket.
204
205              Default: /tmp/dlt-ctrl.sock
206

OFFLINE TRACE OPTIONS

208   OfflineTraceDirectory
209       Store DLT messages to local directory, if not set offline Trace is off.
210
211              Default: /tmp
212
213   OfflineTraceFileSize
214       This  value  defines  the  max size of a offline trace file, if offline
215       trace is enabled.  This value is defined in bytes.  If the  files  size
216       of the current used log file is exceeded, a new log file is created.
217
218              Default: 1000000
219
220   OfflineTraceMaxSize
221       This  value defines the max offline Trace memory size, if offline trace
222       is enabled.  This value is defined in bytes.  If  the  overall  offline
223       trace  size  is excedded, the oldest log files are deleted, until a new
224       trace file fits the overall offline trace max size.
225
226              Default: 4000000
227
228   OfflineTraceFileNameTimestampBased
229       Filename timestamp based or index based.  1 = timestamp based, 0 =  in‐
230       dex based
231
232              Default: Function is disabled
233

LOCAL CONSOLE OUTPUT OPTIONS

235   PrintASCII
236       Prints  each  received DLT message from the application in ASCII to the
237       local console.  This option should only be anabled for  debugging  pur‐
238       pose.
239
240              Default: Function is disabled
241
242   PrintHex
243       Prints  each  received DLT message from the application in ASCII to the
244       local console.  The payload is printed in Hex.  This option should only
245       be anabled for debugging purpose.
246
247              Default: Function is disabled
248
249   PrintHeadersOnly
250       Prints  each  received DLT message from the application in ASCII to the
251       local console.  Only the header is printed.  This option should only be
252       anabled for debugging purpose.
253
254              Default: Function is disabled
255

SERIAL CLIENT OPTIONS

257   RS232DeviceName
258       If this value is set to a serial device name, e.g. /dev/ttyS0, a serial
259       port is used for logging to a client.
260
261              Default: Serial port for logging is disabled
262
263   RS232Baudrate
264       The used serial baud rate, if serial loggin is enabled.  The RS232Devi‐
265       ceName must be set to enable serial logging.
266
267              Default: 115200
268
269   RS232SyncSerialHeader
270       If  serial  logging is enabled, each received DLT message is checked to
271       contain a serial header.  If the DLT message contains no serial header,
272       the message is ignored.
273
274              Default: Function is disabled
275

TCP CLIENT OPTIONS

277   TCPSyncSerialHeader
278       Each  received  DLT message on a TCP connection is checked to contain a
279       serial header.  If the DLT message contains no serial header, the  mes‐
280       sage is ignored.
281
282              Default: Function is disabled
283

ECU SOFTWARE VERSION OPTIONS

285   SendECUSoftwareVersion
286       Periodically send ECU version info.  0 = disabled, 1 = enabled
287
288              Default: Function is disabled
289

PathToECUSoftwareVersion

291       Absolute path to file storing version information - if disabled the DLT
292       version will be send.
293
294              Default: Function is disabled.
295

TIMEZONE INFO OPTIONS

SendTimezone

298       Periodically send timezone info.  0 = disabled, 1 = enabled
299
300              Default: Function is disabled
301

OFFLINE LOGSTORAGE OPTIONS

303   OfflineLogstorageMaxDevices
304       Maximum devices to be used as offline logstorage  devices.   0  =  dis‐
305       abled, 1 ..  DLT_OFFLINE_LOGSTORAGE_MAX_DEVICES
306
307              Default: 0 (Function is disabled)
308
309   OfflineLogstorageDirPath
310       Path to store DLT offline log storage messages.
311
312              Default: off
313
314   OfflineLogstorageTimestamp
315       Appends timestamp in log file name.  0 = disabled, 1 = enabled
316
317              Default: 0
318
319   OfflineLogstorageDelimiter
320       Appends  delimiter  in  log  file name, only punctuation characters al‐
321       lowed.
322
323              Default: _
324
325   OfflineLogstorageMaxCounter
326       Wrap around value for log file count in file name.
327
328              Default: UINT_MAX
329
330   OfflineLogstorageCacheSize
331       Maximal used memory for log storage cache in KB.
332
333              Default: 30000 KB
334
335   UDPConnectionSetup
336       Enable or disable UDP connection.  0 = disabled, 1 = enabled
337
338   UDPMulticastIPAddress
339       The address on which daemon multicasts the log messages
340
341   UDPMulticastIPPort
342       The Multicase IP port.  Default: 3491
343

AUTHOR

345       Alexander Wenzel (alexander.aw.wenzel (at) bmw (dot) de)
346
348       Copyright (C) 2015 BMW AG.  License  MPL-2.0:  Mozilla  Public  License
349       version 2.0 <http://mozilla.org/MPL/2.0/>.
350

BUGS

352       See Github issue: <https://github.com/GENIVI/dlt-daemon/issues>
353

SEE ALSO

355       dlt-daemon(1), dlt-system(1)
356
357
358
359                                                                   DLT.CONF(5)
Impressum