Signal encoder / decoder

Pack and unpack a DBC signal: Intel or Motorola, signed, factor and offset.

How to use it

  1. Set the start bit, length, byte order (Intel or Motorola), sign, factor and offset; the matching DBC line is shown to copy.
  2. Type a physical value to get the raw value and the frame bytes.
  3. Or paste frame bytes to read the value back.

Questions

What is the difference between Intel and Motorola?

Intel (little endian) puts the least significant byte first; Motorola (big endian) the most significant. In a DBC the start bit means the LSB for Intel and the MSB for Motorola, which is why the same numbers place a signal differently.

Why is my value off by the offset?

Physical = raw × factor + offset. Check the sign: a signed signal reads its raw value as two’s complement before scaling.

Related tools

  • DBC editor: Create and edit CAN databases with a live bit layout and consistency checks; keeps every attribute when saving.
  • Number converter: Hex, decimal, binary, signed and ASCII, in either byte order.
  • CRC and E2E calculator: CRC-8 J1850, CRC-8H2F, CRC-15, CRC-16, CRC-32, CRC-32P4 and AUTOSAR E2E profiles 1 and 5.
  • Live signal plot: Plot DBC signals or raw bytes from live traffic as it arrives, with a rolling window, pause and zoom, a trigger that stops on an event, and CSV export.
  • Fixed point (Q format) and IEEE 754 inspector: Q15/Q31 and any Qm.n; float16/32/64 bits, exact value, rounding error and ULP.

Lessons that explain it

Also useful for: motorola, intel, endian, start bit, factor, offset, scaling.