Expand description
CAN logs written by candump, decoded with DBC files.
Each line is one frame: (1436509052.249713) can0 123#DEADBEEF as candump -l and
-L write it (## for CAN FD, #R for a remote request), or the default
can0 123 [4] DE AD BE EF, with or without a (timestamp) in front. One pass
records where each frame’s line starts and its id and interface; the raw table is
then read line by line where it is shown, from a map of the file.
With a DBC file (crate::dbc) that names the log’s messages, each message is a
table of its own: ts and a column per signal, with units, value names as text,
and a multiplexed signal null in the frames its multiplexer does not select. The
home screen lists them, with the raw frames and a long signals table of every
decoded value (ts, message, signal, value, unit).
Structs§
- Decoded
- One message’s frames, decoded by its DBC entry.
- Frame
- One frame, as a line gives it.
- Index
- What one pass over a candump log found.
- Layers
- The DBC files a log is read with, in order: the search path’s, then each
--dict. - Listing
- What a log’s frames resolve to under its layers: each message with frames, the rows of its frames.
- RawFrames
- The raw table: a row per frame, read from its line where it is shown.
Enums§
- Open
- What opening a candump log finds.
Constants§
Functions§
- index
- Index the candump log in
data: one pass, start to end. - indexed
- The index of the candump log at
path, made by one pass or kept from one. - listed
- The tables the log at
pathwas last listed with, for the home screen. - looks_
like - Whether
headbegins a candump log: its first line that is not blank is a frame. - open
- Open the candump log at
pathwithlayers: the tablewantednames, its frames when no DBC names its messages, or the list. - parse_
line - Parse one line, as
candump -lwrites it or ascandumpprints it.