DLT-RECEIVE(1)
π DLT-RECEIVE(1) π
okay bestie, welcome to dlt-receive β it's a console based client for DLT Logging, and yes it lives in the General Commands Manual section. it's giving "tiny tool, huge power" and we're obsessed π«Ά
β¨ NAME β¨
dlt-receive β Console based client for DLT Logging π
πΈ SYNOPSIS πΈ
dlt-receive [-h] [-a] [-x] [-m] [-s] [-o filename] [-c limit] [-v] [-y]
[-b baudrate] [-e ecuid] [-f filterfile] [-j filterfile] [-p port]
hostname/serial_device_name
yep that's the whole vibe. hostname or serial_device_name at the end, no exceptions, she needs to know where to pull the messages from. π¦
π DESCRIPTION π
so basically: dlt-receive receives DLT messages from the DLT daemon and then either prints them or stores them. that's the whole job. main character energy, honestly. β
π OPTIONS π
-hβ shows you a short help text. baby's first flag, love that for you β¨-aβ prints the DLT file, with the payload as ASCII.-xβ prints the DLT file, with the payload as hex.-mβ prints the DLT file, payload as hex and ASCII. why choose, right? π-sβ prints the DLT file, only the headers. no payload, just the glamour shots.-oβ outputs the messages into a new DLT file.-cβ sets the limit for when messages get stored into a file. once the limit is hit, a brand new file gets opened. you can suffix withK,M, orGfor kilo-, mega-, giga-bytes respectively β like1Mfor one megabyte. (Default: unlimited.) π-vβ verbose mode. she talks more. we love a chatty queen. π-Sβ send message with serial header (Default: Without serial header).-Rβ enable resync serial header.-yβ serial device mode.-bβ serial device baudrate (Default:115200).-eβ set the ECU ID (Default:RECV).-fβ enable filtering of messages. takes a space separated filter file (peep the Space separated filter file section below, bestie).-jβ enable extended filtering of messages. takes a json filter file (see Json filter file).-pβ port for UDP and TCP communication (Default:3490).
π₯ EXAMPLES π₯
print the received message headers that came from a dlt-daemon running on localhost:
dlt-receive -s localhost
print the received message headers that came from a serial interface:
dlt-receive -s -y /dev/ttySO
store the received message headers from a dlt-daemon into a log file called log.dlt, and filter them for, like, Application ID ABCD and Context ID EFGH β write ABCD EFGH as a single line into a file called filter.txt:
dlt-receive -s -o log.dlt -f filter.txt localhost
store incoming messages into file(s) and cap the file sizes at 1 megabyte. when the limit is reached, log.dlt gets renamed into log.0.dlt, log.1.dlt, β¦ and no files get overwritten in this mode, periodt:
dlt-receive -o log.dlt -c 1M localhost
π§ Space separated filter file
a file that defines multiple filters, and it can be passed as the argument for the -f option. with this one you can only filter messages based on their Application ID and/or Context ID. the syntax is: first the AppID, then an optional CtxID right behind it, with a space in between. each line = one filter, and the max number of filters is 30. the CtxID can be a wildcard: β- (compatible) or * (new updated). β¨
Example:
DLTD INTM
QSYM ----
TEST *
π Json filter file
only available when built with the cmake option WITH_EXTENDED_FILTERING. π
a file that defines multiple filters, and it can be passed as the argument for the -j option. with this one you can also filter messages based on their Application ID, Context ID, log level, and payload size. the example below shows the syntax. the filter names can be customized but can't be longer than 15 characters. the max number of filters is also 30. π¦
Example:
{
"filter1": {
"AppId": "LOG",
"ContextId": "TEST",
"LogLevel": "3"
},
"filter2": {
"AppId": "app",
"LogLevel": "4"
},
"filter3": {
"AppId": "app2",
"ContextId": "con2",
"PayloadMin": "20",
"PayloadMax": "50"
}
}
π EXIT STATUS π
non zero is returned in case of failure. so like, if it's 0 you're slaying, if it's not, something went wrong bestie. π
π NOTES π
be aware that dlt-receive will never delete any files. instead, it creates a new file. no cap. your old logs are safe, she's not that kind of girl. π
π AUTHOR π
Alexander Wenzel (alexander.aw.wenzel (at) bmw (dot) de)
πΈ 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
β SEE ALSO β
okay that's the whole page, bestie, go forth and receive those messages π β¨ this was DLT-RECEIVE(1) from the General Commands Manual β mwah, take care of her π«Άπ
π¦ where this page comes from
- ubuntu stonking: dlt-tools 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