DLT-CONTROL(1)

πŸ‘‘ NAME πŸ‘‘

dlt-control β€” bestie, this is the lil tool that slides into DLT Daemon's DMs and sends control messages. πŸ’Œ


πŸ¦‹ SYNOPSIS πŸ¦‹

dlt-control [-v] [-h] [-S] [-R] [-y] [-b baudrate] [-e ecuid] [-a id]
[-c id] [-s id] [-m message] [-x message] [-t milliseconds] [-l level]
[-r tracestatus] [-d loglevel] [-f tracestatus] [-i enable] [-o] [-g]
[-j] [-u] [-p port] hostname/serial_device_name

okay so that's a LOT of little flags and honestly? they're all iconic in their own way. let's go. πŸ’…


πŸ’œ DESCRIPTION πŸ’œ

So like. dlt-control sends control messages to the DLT Daemon. ✨

When is this a whole mood? When there's no client available β€” think no DLT Viewer sitting there doing its thing. Then this little queen steps in. πŸ‘‘

It supports several control messages, including:

  • Setting log level / trace level
  • Setting default log level / default trace level
  • Enable timing packets
  • Store configuration
  • Reset to factory default
  • Get logging information
🫢 note, bestie: use the -u option instead of hostname/serial_device_name if a Unix Socket is being used. the example section has the receipts, scroll down. πŸ’–

✨ OPTIONS ✨

  • -v β€” Verbose mode. she talks more. πŸ—£οΈ
  • -h β€” Usage. the "help meee" button. πŸ™ˆ
  • -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 ECU ID. (Default: RECV)
  • -a β€” Control message application id.
  • -c β€” Control message context id.
  • -s β€” Control message injection service id.
  • -m β€” Control message injection in ASCII.
  • -x β€” Control message injection in Hex, e.g. ad 01 24 ef. πŸ”₯
  • -t β€” Timeout to terminate application. (Default: 1000)
  • -l β€” Set the log level (0=off - 6=verbose, default= -1). supported options, and yes you get all of them:
    • -l level -a apid -c ctid
    • -l level -a abc* (set level for all ctxts of apps name starts with abc)
    • -l level -a apid (set level for all ctxts of this app)
    • -l level -c xyz* (set level for all ctxts whose name starts with xyz)
    • -l level -c ctid (set level for the particular ctxt)
    • -l level (set level for all the registered contexts)
  • -r β€” Set the trace status (0=off - 1=on, default= 255). supported options, again, the whole lineup:
    • -r tracestatus -a apid -c ctid
    • -r tracestatus -a abc* (set status for all ctxts of apps name starts with abc)
    • -r tracestatus -a apid (set status for all ctxts of this app)
    • -r tracestatus -c xyz* (set status for all ctxts whose name starts with xyz)
    • -r tracestatus -c ctid (set status for the particular ctxt)
    • -r tracestatus (set status for all the registered contexts)
  • -d β€” Set the default log level (0=off - 5=verbose). πŸ“Ά
  • -f β€” Set the default trace status (0=off - 1=on).
  • -i β€” Enable timing packets (0=off - 1=on). ⏱️
  • -o β€” Store configuration. πŸ’Ύ
  • -g β€” Reset to factory default. the "we're so back to zero" button. πŸ’€
  • -j β€” Get log info. the gossip session. β˜•
  • -u β€” unix port.
  • -p β€” Port for TCP communication. (Default: 3490)

🌈 EXAMPLES 🌈

Change log level of application "APP1" to DEBUG with unix port

dlt-control -a APP1 -l 5 -u

Change log level of application "APP1" and context "CON1" to ERROR

dlt-control -a APP1 -c CON1 -l 2 localhost

Get logging information of current running applications with unix port (IPC: Unix Socket)

dlt-control -j -u

Get logging information of current running applications (IPC:FIFO)

dlt-control -j localhost

⭐ EXIT STATUS ⭐

Non zero is returned in case of failure. so like, if it's not 0, something went wrong. no cap. 😭


πŸ’– AUTHOR πŸ’–

Saya Sugiura (ssugiura (at) jp.adit-jv (dot) com) β€” the queen who built this. πŸ‘‘


Copyright (C) 2019 Advanced Driver Information Technology, Bosch and DENSO. 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

(go tell them, they're nice about it fr fr 🫢)


πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole page bestie πŸ’œ this was DLT-CONTROL(1) β€” the one and only dlt-control(1) manual page. go forth and control your daemon. slay. ✨🌸

πŸ“¦ where this page comes from