How decoding works

The path from a log file to a plotted value, step by step, so you can tell where a number came from and why it might be wrong.

Every view in the workbench reads the same decode. The graph, the Frames view, the DBC view, exports and the AI assistant do not decode separately, so a value means the same thing wherever you see it.

The pipeline

Read the container

The reader for the file's format turns it into frames: a timestamp in microseconds, a channel, an ID, flags (extended, FD, BRS, ESI, error, direction) and the data bytes. See Supported files.

Scan the channels

A first pass counts frames per channel and per ID. That is where the channel list and frame counts in the File menu and in Channel mapping come from. It is also how a newly added DBC is linked to the channels where its IDs actually occur.

Map channels to DBCs

You decide which DBC files describe each channel. The signal catalog, meaning everything you can add to the graph, is built from the mapped DBCs, one entry per channel, message and signal. See Channel mapping.

Decode the selected signals

Start parsing walks the log once more. For each frame on a mapped channel:

  1. Find the message: the first DBC in the channel's list with exactly this ID wins. For 29-bit IDs with no exact match, a J1939 PGN match is tried.
  2. Skip multiplexed signals whose multiplexor value does not match this frame.
  3. Read the raw bits at the signal's start bit and length, in its byte order (Intel or Motorola), as signed or unsigned.
  4. Convert: physical = raw × factor + offset. Value tables add a text label to the number. The signal calculator runs steps 3 and 4 by hand for one payload.

Only the signals you have added are decoded, which keeps large logs fast. A signal you add later has no data until you select Start parsing again.

Build the series

Each signal becomes a series of (time, value) points on the log's microsecond time base, so signals from different channels and messages line up exactly. When a signal has more than 50,000 points, the overview keeps the minimum and maximum of each time bucket, so spikes and dropouts stay visible. When you zoom in, the visible window is decoded again in more detail.

Tracing a number back to its bytes

When a value looks wrong, work back through the steps above:

  1. Which frame? In the Frames view, filter by the message ID and channel, and expand a frame to see each decoded signal with its raw value and the bits it occupies.
  2. Which DBC? If a channel has several DBCs, the first one that defines the ID decodes it. A second DBC defining the same ID is ignored for that channel.
  3. Which definition? In the DBC view, check the start bit, length, byte order, signedness, factor and offset.

The most common causes are covered in Troubleshooting.