DLT.CONF(5)
๐ฆ dlt.conf(5) โ the DLT daemon config file ๐ฆ
๐ NAME ๐
dlt.conf โ the DLT daemon configuration file. Yes bestie, this is the config file that makes the DLT daemon do its thing. ๐
โจ DESCRIPTION โจ
Okay so picture this: the DLT daemon is the central application that gathers logs and traces from all the different applications. It stores them temporarily or permanently, and then transfers them to a DLT client application. That client could be running directly on the COVESA system, or โ more likely โ on some external tester device. No cap. ๐ฆ
The configuration file dlt.conf lets you configure the different runtime behaviour of the dlt-daemon. It is loaded during startup of dlt-daemon. Periodt. ๐
โจ GENERAL OPTIONS โจ
Verbose
Verboseโ Start daemon in debug mode, so that all internal debug information is printed out on the console. ๐- Default:
Off
- Default:
Daemonize
Daemonizeโ If set to1DLT daemon is started in background as daemon. This option is only needed in System V init systems. In systemd based startup systems the daemon is started by spawning own process. ๐- Default:
0
- Default:
SendSerialHeader
SendSerialHeaderโ If set to1DLT daemon sends each DLT message to the client with prepending the serial headerDLS0x01. ๐จ- Default:
0
- Default:
SendContextRegistration
SendContextRegistrationโ If set to1each context which is registered from an application in the DLT daemon generates a message to inform the DLT client about the new context. โจ- Default:
1
- Default:
SendMessageTime
SendMessageTimeโ If set to1DLt daemon sends each second a DLT control message to the client with the current timestamp from the system. โฐ- Default:
0
- Default:
ECUId
ECUIdโ This value sets the ECU Id, which is sent with each DLT message. ๐- Default:
ECU1
- Default:
SharedMemorySize
SharedMemorySizeโ This value sets the size of the shared memory, which is used to exchange DLT messages between applications and daemon. This value is defined in bytes. If this value is changed the system must be rebooted to take effect. ๐- Default:
100000
- Default:
PersistanceStoragePath
PersistanceStoragePathโ This is the directory path, where the DLT daemon stores its runtime configuration. Runtime configuration includes stored log levels, trace status and changed logging mode. ๐- Default:
/tmp
- Default:
LoggingMode
LoggingModeโ The logging console for internal logging of dlt-daemon.0= log to stdout,1= log to syslog,2= log to file (seeLoggingFilename),3= log to stderr. ๐- Default:
0
- Default:
LoggingLevel
LoggingLevelโ The internal log level, up to which logs are written.LOG_EMERG=0,LOG_ALERT=1,LOG_CRIT=2,LOG_ERR=3,LOG_WARNING=4,LOG_NOTICE=5,LOG_INFO=6,LOG_DEBUG=7. ๐- Default:
6
- Default:
LoggingFilename
LoggingFilenameโ IfLoggingModeis set to2logs are written to the file path given here. ๐- Default:
/tmp/dlt.log
- Default:
EnableLoggingFileLimit
EnableLoggingFileLimitโ Only relevant for logging in file (LoggingMode=2). IfEnableLoggingFileLimitis set to0, the daemon logs to one logging file without any size limit. IfEnableLoggingFileLimitis set to1, the daemon considers the size limits configured byLoggingFileSizeandLoggingFileMaxSize. If the limits are configured accordingly, multiple log files are used. ๐๏ธ- Default:
0
- Default:
LoggingFileSize
LoggingFileSizeโ Only considered for logging in file (LoggingMode=2) andEnableLoggingFileLimit=1. Maximum size in bytes of one logging file. ๐- Default:
250000
- Default:
LoggingFileMaxSize
LoggingFileMaxSizeโ Only considered for logging in file (LoggingMode=2) andEnableLoggingFileLimit=1. Maximum size in bytes of all logging files. ๐ฆ- Default:
1000000
- Default:
TimeOutOnSend
TimeOutOnSendโ Socket timeout in seconds for sending to clients. โณ- Default:
4
- Default:
RingbufferMinSize
RingbufferMinSizeโ The minimum size of the Ringbuffer, used for storing temporary DLT messages, until client is connected. ๐- Default:
500000
- Default:
RingbufferMaxSize
RingbufferMaxSizeโ The max size of the Ringbuffer, used for storing temporary DLT messages, until client is connected. ๐- Default:
10000000
- Default:
RingbufferStepSize
RingbufferStepSizeโ The step size the Ringbuffer is increased, used for storing temporary DLT messages, until client is connected. ๐- Default:
500000
- Default:
Daemon FIFOSize
Daemon FIFOSizeโ The size of Daemon FIFO (MinSize: depend on pagesize of system, MaxSize: please check/proc/sys/fs/pipe-max-size). This is only supported for Linux. ๐ง- Default:
65536
- Default:
ContextLogLevel
ContextLogLevelโ Initial log-level that is sent when an application registers.DLT_LOG_OFF=0,DLT_LOG_FATAL=1,DLT_LOG_ERROR=2,DLT_LOG_WARN=3,DLT_LOG_INFO=4,DLT_LOG_DEBUG=5,DLT_LOG_VERBOSE=6. ๐๏ธ- Default:
4
- Default:
ContextTraceStatus
ContextTraceStatusโ Initial trace-status that is sent when an application registers.DLT_TRACE_STATUS_OFF=0,DLT_TRACE_STATUS_ON=1. ๐๏ธ- Default:
0
- Default:
ForceContextLogLevelAndTraceStatus
ForceContextLogLevelAndTraceStatusโ Force log level and trace status of contexts to not exceed โContextLogLevelโ and โContextTraceStatusโ. If set to1(ON) whenever a context registers or changes the log-level it has to be lower or equal toContextLogLevel. ๐ช- Default:
0
- Default:
InjectionMode
InjectionModeโ If set to0, the injection mode (see here) is disabled. ๐- Default:
1
- Default:
๐ฅ GATEWAY CONFIGURATION ๐ฅ
GatewayMode
GatewayModeโ Enable Gateway mode. ๐- Default:
0
- Default:
GatewayConfigFile
GatewayConfigFileโ Read gateway configuration from another location. ๐- Default:
/etc/dlt_gateway.conf
- Default:
๐ Permission configuration ๐
DLT daemon runs with e.g. User: covesa_dlt Group: covesa_dlt. ๐
DLT user applications run with different user and group than dlt-daemon but with supplementary group: dlt_user_apps_group. ๐ฅ
/dlt FIFO will be created by dlt-daemon with User: covesa_dlt Group: dlt_user_apps_group Permission: 620.
so that only dlt-daemon can read and only processes in dlt_user_apps_group can write. ๐
/dltpipes will be created by dlt-daemon with User: covesa_dlt Group: covesa_dlt Permission: 3733 (i.e Sticky bit and SGID turned on). ๐
/dltpipes/dlt FIFO will be created by dlt application (user lib) with User: Group: covesa_dlt (inherited from dltpipes/ due to SGID) Permission: 620. ๐งฌ
Thus DLT user applications (and also or attackers) can create the dlt FIFO (for communication from dlt-daemon to DLT user application) under /dltpipes/. Since sticky bit is set the applications who creates the FIFO can only rename/delete it. ๐ก๏ธ
Since SGID of /dltpipes is set the group of dlt FIFO will be covesa_dlt which enables dlt daemon to have write permission on all the dlt FIFO. โ๏ธ
One dlt user application cannot access dlt FIFO created by other dlt user application (if they run with different user). ๐ซ
Owner group of daemon FIFO directory (Default: /tmp/dlt) (If not set, primary group of dlt-daemon process is used). Application should have write permission to this group for tracing into dlt. For this option to work, dlt-daemon should have this group in its supplementary group. ๐
DaemonFifoGroup
DaemonFifoGroupโ Owner group of daemon FIFO directory (If not set, primary group of dlt-daemon process is used). Application should have write permission to this group for tracing into dlt. For this option to work, dlt-daemon should have this group in its Supplementary group. ๐ฅ- Default: group of dlt-daemon process (
/tmp/dlt)
- Default: group of dlt-daemon process (
๐ฎ CONTROL APPLICATION OPTIONS ๐ฎ
ControlSocketPath
ControlSocketPathโ Path to control socket. ๐- Default:
/tmp/dlt-ctrl.sock
- Default:
๐ผ OFFLINE TRACE OPTIONS ๐ผ
OfflineTraceDirectory
OfflineTraceDirectoryโ Store DLT messages to local directory, if not set offline Trace is off. ๐- Default:
/tmp
- Default:
OfflineTraceFileSize
OfflineTraceFileSizeโ This value defines the max size of a offline trace file, if offline trace is enabled. This value is defined in bytes. If the files size of the current used log file is exceeded, a new log file is created. ๐- Default:
1000000
- Default:
OfflineTraceMaxSize
OfflineTraceMaxSizeโ This value defines the max offline Trace memory size, if offline trace is enabled. This value is defined in bytes. If the overall offline trace size is exceeded, the oldest log files are deleted, until a new trace file fits the overall offline trace max size. ๐๏ธ- Default:
4000000
- Default:
OfflineTraceFileNameTimestampBased
OfflineTraceFileNameTimestampBasedโ Filename timestamp based or index based.1= timestamp based,0= index based. ๐ฐ๏ธ- Default: Function is disabled
๐จ๏ธ LOCAL CONSOLE OUTPUT OPTIONS ๐จ๏ธ
PrintASCII
PrintASCIIโ Prints each received DLT message from the application in ASCII to the local console. This option should only be enabled for debugging purpose. ๐- Default: Function is disabled
PrintHex
PrintHexโ Prints each received DLT message from the application in ASCII to the local console. The payload is printed in Hex. This option should only be enabled for debugging purpose. ๐ข- Default: Function is disabled
PrintHeadersOnly
PrintHeadersOnlyโ Prints each received DLT message from the application in ASCII to the local console. Only the header is printed. This option should only be enabled for debugging purpose. ๐- Default: Function is disabled
๐ SERIAL CLIENT OPTIONS ๐
RS232DeviceName
RS232DeviceNameโ If this value is set to a serial device name, e.g./dev/ttyS0, a serial port is used for logging to a client. ๐ฅ๏ธ- Default: Serial port for logging is disabled
RS232Baudrate
RS232Baudrateโ The used serial baud rate, if serial logging is enabled. TheRS232DeviceNamemust be set to enable serial logging. โก- Default:
115200
- Default:
RS232SyncSerialHeader
RS232SyncSerialHeaderโ If serial logging is enabled, each received DLT message is checked to contain a serial header. If the DLT message contains no serial header, the message is ignored. ๐ซ- Default: Function is disabled
๐ TCP CLIENT OPTIONS ๐
TCPSyncSerialHeader
TCPSyncSerialHeaderโ Each received DLT message on a TCP connection is checked to contain a serial header. If the DLT message contains no serial header, the message is ignored. ๐ซ- Default: Function is disabled
๐ ECU SOFTWARE VERSION OPTIONS ๐
SendECUSoftwareVersion
SendECUSoftwareVersionโ Periodically send ECU version info.0= disabled,1= enabled. ๐ก- Default: Function is disabled
PathToECUSoftwareVersion
PathToECUSoftwareVersionโ Absolute path to file storing version information - if disabled the DLT version will be send. ๐- Default: Function is disabled.
๐ฐ๏ธ TIMEZONE INFO OPTIONS ๐ฐ๏ธ
SendTimezone
SendTimezoneโ Periodically send timezone info.0= disabled,1= enabled. ๐- Default: Function is disabled
๐ฆ OFFLINE LOGSTORAGE OPTIONS ๐พ
okay so this whole block is about storing your DLT messages offline โ like, the daemon's little diary that keeps the receipts even when nobody's watching. bestie, these are the knobs ๐
OfflineLogstorageMaxDevicesโ the max number of devices you're allowed to use as offline logstorage devices, fr fr.0means disabled, and the actual range you can pick from is1..DLT_OFFLINE_LOGSTORAGE_MAX_DEVICES.
Default: 0 (which, yes, means the whole function is off โ it's giving "lights off, nobody home" ๐)
OfflineLogstorageDirPathโ the path where all those DLT offline log storage messages get parked, like a lil garage for your logs.
Default: off
OfflineLogstorageTimestampโ slaps a timestamp onto the log file name so you always know when a file was born โจ.0= disabled,1= enabled.
Default: 0
OfflineLogstorageDelimiterโ puts a delimiter in the log file name too. only punctuation characters allowed here, so no funny business with letters, bestie. periodt.
Default: _
OfflineLogstorageMaxCounterโ the wrap-around value for the log file count in the file name. it just loops back when it hits the top ๐
Default: UINT_MAX
OfflineLogstorageCacheSizeโ the maximal memory used for the log storage cache, measured in KB. keep it cute, keep it bounded ๐
Default: 30000 KB
UDPConnectionSetupโ turn the UDP connection on or off.0= disabled,1= enabled.UDPMulticastIPAddressโ the address where the daemon multicasts the log messages out into the void ๐ (your network, technically).UDPMulticastIPPortโ the Multicase IP port. yes that's exactly how it's spelled in the original, i'm not touching it ๐ญ
Default: 3491
๐ AUTHOR
Alexander Wenzel (alexander.aw.wenzel (at) bmw (dot) de) โ the icon, the legend, the main character who wrote this ๐ซถ
ยฉ๏ธ COPYRIGHT
Copyright (C) 2015 BMW AG. License MPL-2.0: Mozilla Public License version 2.0 http://mozilla.org/MPL/2.0/.
๐ BUGS
See Github issue: https://github.com/COVESA/dlt-daemon/issues
not me telling you to go file a bug, but likeโฆ if something's busted, that's the spot ๐
๐ฆ SEE ALSO
and that's a wrap on DLT.CONF(5), bestie ๐ you made it all the way to the end of the manpage, which is genuinely iconic behavior. iykyk. go forth and configure slayfully โจ๐ธ
๐ฆ where this page comes from
- ubuntu stonking: dlt-daemon 3.0.0-10 ยท MPL-2.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms