DBC Utility guides 74 guides

CAN, DBC and J1939 guides

Practical guides with tested code for engineers working with CAN bus, DBC files, J1939, diagnostics and AUTOSAR.

Start here

New to CAN? Work through steps 1 to 3, then pick the field you work in. Every path starts simple and builds up.

Then pick your field

New and updated

CAN basics

Start here if CAN is new to you. These guides explain how CAN works, how to connect to a bus safely, and how to send and receive frames from Python, C++ and embedded C.

All 10 guides →
What Is CAN Bus? A Simple Guide for Engineers Learn what CAN bus is, how CAN messages work, why vehicles use it, and what you need to start reading CAN data. 7 min read Beginner Guide How to Use CAN Bus: A Simple Step-by-Step Guide Learn how to connect to a CAN bus, set the bitrate, record frames, send a test frame, and decode data with a DBC file. 8 min read Beginner Tutorial CAN Frame Types Explained: Data, Remote, Error, and Overload Understand CAN data, remote, error, and overload frames. Learn to identify each in CAN logs, read RTR and FD flags, and check examples with candump and Python. 22 min read Beginner Tutorial CAN FD explained: why classical CAN had to evolve CAN FD extends classical CAN without abandoning the familiar ecosystem. Learn what changed in the frame, why payload and bitrate mattered, and when CAN FD is the better choice. 10 min read Beginner Guide CAN Bus Python Example: Send and Receive Messages Use python-can with SocketCAN to send, receive, filter, and test CAN messages in a small working Python example. 8 min read Beginner Tutorial CAN Bus C++ Example: Send and Receive with SocketCAN Build a small C++ SocketCAN program that opens can0, sends a CAN frame, waits for a frame, and prints the ID and data. 9 min read Intermediate Tutorial How to Enable CAN Bus in Embedded C Code Learn the steps to initialize a CAN peripheral, configure bit timing and filters, start CAN, and send a frame from embedded C code. 9 min read Intermediate Tutorial CAN bit timing and sample point: how to calculate them How to work out the CAN prescaler, time segments, SJW and sample point for any clock and bitrate. Worked examples for 8 to 80 MHz, a Python calculator, oscillator tolerance, SocketCAN settings and CAN FD. 11 min read Intermediate Tutorial CAN bit stuffing, CRC and arbitration, bit by bit What a CAN frame looks like on the wire. Build one frame bit by bit in Python, calculate its CRC-15, insert the stuff bits, and watch three IDs arbitrate. Covers the CAN FD differences: CRC-17, CRC-21 and the stuff count. 10 min read Intermediate Tutorial CAN acceptance filters and mailboxes: how to calculate the mask How CAN ID filters work, how to calculate a filter and mask for a set of IDs, how many unwanted IDs a mask lets through, and how mailboxes and receive FIFOs lose frames. With a Python calculator, SocketCAN and candump filters. 9 min read Intermediate Tutorial

DBC files

A DBC file turns raw CAN bytes into named, scaled signals. Learn the format, how signals are encoded, how multiplexing works, and how to review and release DBC changes safely.

All 8 guides →
What is a DBC file? Format, syntax, and how engineers use it A practical guide to CAN DBC files covering the file structure, BO_ and SG_ syntax, byte order, scaling, value tables, attributes, multiplexing, CAN FD, common mistakes, and how teams maintain DBC files. 14 min read Beginner Guide What Is a DBC Viewer? How to Read CAN Database Files Learn what a DBC viewer does, what information a DBC file contains, and how to inspect CAN messages and signals step by step. 7 min read Beginner Guide How DBC signal encoding and decoding works A practical explanation of CAN DBC signal start bits, byte order, signedness, scale, offset, multiplexing, and how to encode or decode messages with Python and cantools. 14 min read Intermediate Tutorial Multiplexed DBC signals explained without the usual confusion A practical guide to multiplexed DBC messages, mux selector signals, conditional signals, payload reuse, common mistakes, and how to decode mux-heavy CAN data. 11 min read Intermediate Guide How to validate a DBC file before release A practical DBC validation checklist for CAN and CAN FD teams covering message IDs, signal layouts, scaling, multiplexing, comments, log replay, and release review. 12 min read Intermediate Tutorial How to review DBC changes safely: a compare workflow for engineering teams A step-by-step routine for reviewing supplier DBC drops, regenerated databases, and your own edits, using text and structured comparison, multiplexer checks, log validation, and Git-friendly saves. 12 min read Intermediate Guide How to create a DBC file from reverse-engineered CAN logs A careful workflow for reverse engineering CAN signals from raw logs, using stimulus notes, bit-change analysis, candidate signals, scale and offset checks, DBC drafting, and validation. 14 min read Advanced Tutorial ARXML, DBC, and XDD files: which automotive network format to use when A practical guide to ARXML, DBC, XDD/XDC, LDF, A2L, and ODX files, what each one describes, how they hand off to each other, and what to check after converting ARXML to DBC. 11 min read Advanced Guide

Logging and analysis

Record CAN traffic you can trust, pick the right log format, and decode recordings with a DBC. Covers candump, python-can and cantools, and how to debug bus errors.

All 5 guides →

J1939

J1939 is the CAN protocol used in trucks, buses and off-highway machines. Learn PGNs and SPNs, decode data with a DBC, read DM1 fault codes, and understand the transport protocol and address claiming.

All 7 guides →
What Is J1939? A Simple CAN Bus Guide Learn what SAE J1939 is, where it is used, and how PGNs, SPNs, source addresses, and 29-bit CAN IDs fit together. 7 min read Beginner Guide What Is a PGN in J1939? PGNs and SPNs Explained Learn what a J1939 PGN is, how to extract it from a 29-bit CAN ID, and how PGNs and SPNs are used to decode heavy-vehicle data. 8 min read Beginner Guide Common J1939 PGNs and SPNs: engine speed, vehicle speed, temperatures, fuel, and more A practical reference for the J1939 PGNs and SPNs engineers use most, with byte positions, scaling, and offsets for engine speed, vehicle speed, coolant temperature, oil pressure, fuel rate, engine hours, and diagnostics. 9 min read Beginner Reference How to decode J1939 data with a DBC file (and why half your frames don't decode) J1939 DBC files store one 29-bit ID per message, but real buses send each PGN from many source addresses. Learn how J1939 DBCs work, why exact-ID decoding misses frames, and how to decode by PGN with Python and cantools. 9 min read Intermediate Tutorial How to read J1939 fault codes: DM1, SPN, FMI, and lamp status explained Decode J1939 DM1 active fault messages byte by byte. Learn how lamp status, SPN, FMI, and occurrence count are packed, how multi-fault DM1 uses the transport protocol, and how to decode it in Python. 10 min read Intermediate Guide J1939 transport protocol explained: BAM and RTS/CTS with examples How J1939 sends messages longer than 8 bytes. A walk through TP.CM and TP.DT frames, BAM broadcasts, RTS/CTS connections, the control bytes, real frame examples, and a Python reassembler. 10 min read Advanced Guide J1939 address claiming and the NAME field explained How J1939 ECUs get their source address. Learn the Address Claimed message (PGN 60928), the 64-bit NAME and its fields, how conflicts are resolved, and how to decode a NAME in Python or test claiming on Linux. 9 min read Advanced Tutorial

Diagnostics and calibration

Read data and fault codes from ECUs, and measure and calibrate them during development. Covers UDS over CAN, OBD-II and XCP with Python and C++ examples.

All 9 guides →
What Is UDS? Unified Diagnostic Services Explained Learn what UDS diagnostics is, how UDS requests and responses work, and what sessions, DIDs, DTCs, security access, and ISO-TP mean. 8 min read Beginner Guide CAN Bus Diagnostics Example: Read Engine RPM with OBD-II Send a simple read-only OBD-II request over CAN with Python and decode the engine RPM response step by step. 8 min read Beginner Tutorial Python UDS Tutorial: Read a VIN with udsoncan Learn Python UDS over CAN with udsoncan. Read a VIN, try a local ECU simulator, understand ISO-TP frames, and troubleshoot common errors. 13 min read Intermediate Tutorial What Is XCP? ECU Measurement and Calibration Explained Learn what the XCP protocol is, how it connects calibration tools to ECUs, and how XCP, A2L files, CAN, Ethernet, and UDS differ. 8 min read Beginner Guide XCP Python Example: Connect to an ECU with pyXCP Use pyXCP in a simple Python example to connect to an XCP slave over CAN, read the ECU identifier, and inspect connection properties. 9 min read Intermediate Tutorial XCP C++ Example: Connect to an ECU over CAN Build a small Linux C++ SocketCAN example that sends an XCP CONNECT command, waits for the ECU response, and checks the response packet. 10 min read Advanced Tutorial UDS DTCs explained: service 0x19 and the DTC status byte How to read diagnostic trouble codes with UDS ReadDTCInformation (0x19), what each of the 8 status bits means, which status mask to use, how to read 3-byte DTCs, and how to clear them with 0x14. With raw frames and a tested Python parser. 10 min read Intermediate Guide How ECU flashing works over UDS: the reprogramming sequence step by step The UDS services an ECU reprogramming sequence uses, in order: sessions, security access, erase, RequestDownload, TransferData, RequestTransferExit and the dependency check. With the exact request bytes, block sequence counter rules, transfer time estimates and a tested Python download loop. 12 min read Advanced Guide DoIP explained: UDS diagnostics over automotive Ethernet How Diagnostics over IP (ISO 13400-2) works: the 8-byte header, vehicle discovery over UDP, routing activation, logical addresses and UDS messages over TCP port 13400. With byte-level examples and a standard-library Python client tested against a simulated vehicle. 11 min read Intermediate Tutorial

AUTOSAR and vehicle networks

How CAN fits into the rest of the vehicle: LIN, Automotive Ethernet, gateways, and AUTOSAR ECU software, from the layered architecture down to the CAN stack.

All 7 guides →
Why CAN still matters and where it is better than other vehicle buses CAN is not newer than Automotive Ethernet, but newer does not always mean better. This guide compares CAN with LIN, FlexRay, and Ethernet in the contexts where engineers actually make architecture decisions. 11 min read Beginner Guide Automotive Ethernet, ECUs, gateways, and the rest of the vehicle network stack CAN does not live alone. This guide explains how ECUs, gateways, LIN, FlexRay, and Automotive Ethernet coexist inside modern vehicles and why zonal architectures are reshaping the map. 12 min read Beginner Guide LIN bus for CAN engineers: where it fits and how to think about it A practical LIN bus guide for engineers who already know CAN, covering master-slave scheduling, LDF files, signals, gateways, diagnostics, and why LIN still appears beside CAN and Ethernet. 11 min read Intermediate Guide Automotive Ethernet for CAN engineers A practical guide to Automotive Ethernet for engineers coming from CAN and CAN FD, covering 100BASE-T1, 1000BASE-T1, gateways, tcpdump, SOME/IP-style thinking, and why Ethernet does not replace every CAN bus. 12 min read Intermediate Tutorial What is AUTOSAR? Classic and Adaptive explained for CAN engineers A plain-language introduction to AUTOSAR. Learn the layered Classic Platform (application, RTE, basic software, MCAL), how the Adaptive Platform differs, what ARXML files hold, and where CAN fits in. 10 min read Beginner Guide How CAN works in AUTOSAR: the CAN stack from COM to the CAN driver Follow a CAN signal through the AUTOSAR Classic communication stack. Learn what COM, PduR, CanIf, CanTp, CanSM, CanNm, and the CAN driver each do, how I-PDUs become CAN frames, how ARXML maps to DBC, and where J1939 fits. 12 min read Advanced Guide SOME/IP and SOME/IP-SD explained with real packet bytes How SOME/IP messages and SOME/IP Service Discovery work on automotive Ethernet. The 16-byte header field by field, message types, return codes, methods versus events, and the SD entries and options, with byte-level packets and a tested Python encoder and parser. 12 min read Intermediate Guide

Reverse engineering vehicle data

Find the data you need in a vehicle without its documentation: standard OBD-II PIDs, manufacturer data behind UDS identifiers, broadcast CAN signals, and the counters and CRCs that protect them. Every guide includes code you can run.

All 11 guides →
How to reverse engineer vehicle data: CAN, LIN, Ethernet and OBD-II Where the data you want lives in a vehicle, which method finds it, and which tools to use on each bus. A map of CAN, CAN FD, LIN, FlexRay, Automotive Ethernet, OBD-II and UDS for reverse engineering, with links to step-by-step guides. 9 min read Beginner Guide OBD-II port pinout, buses and secure gateways: what you can reach Which pins of the OBD-II connector carry CAN, K-line, J1850 and DoIP Ethernet, why many cars show no traffic on the port, how secure gateways limit aftermarket tools, and how to tell a live bus from a filtered diagnostic port. With a tested Python check. 9 min read Beginner Guide OBD-II PIDs explained: supported-PID bitmaps, formulas, trouble codes and VIN How to find out which OBD-II PIDs a car supports, decode the common ones, read trouble codes with service 03 and the VIN with service 09. Real frame layouts, a formula table and a tested Python scanner. 12 min read Beginner Tutorial Finding OEM data with UDS: how to scan DIDs with service 0x22 How to find manufacturer-specific data in an ECU when you have no documentation. Find the ECUs, scan data identifiers with ReadDataByIdentifier, read the negative responses, and work out what the bytes mean. Includes a tested Python scanner. 13 min read Intermediate Tutorial Which ECU sends which CAN ID? Five ways to map a CAN bus How to find out which ECU transmits each CAN message when you have no DBC: disconnecting ECUs, start-up order, diagnostic identification, and fingerprinting senders by their clock drift. With a tested Python script that groups CAN IDs by sender. 10 min read Intermediate Guide How to find counters, checksums and CRCs in CAN frames Identify alive counters, simple checksums and CRC-8 bytes in CAN messages from a log alone. Covers sum, XOR and nibble checksums, CRC-8 SAE J1850 and CRC-8H2F, hidden Data IDs as used by AUTOSAR E2E, and a tested Python search. 13 min read Advanced Tutorial Reverse engineering J1939 proprietary messages (PGN 0xEF00 and 0xFF00–0xFFFF) How to find and decode manufacturer-specific J1939 data on trucks, buses and off-highway machines. Proprietary A and B PGNs, grouping by source address, transport protocol, and using standard PGNs such as EEC1 engine speed as a built-in reference. With tested Python code. 10 min read Intermediate Guide Reverse engineering LIN bus traffic and building an LDF How to sniff a LIN bus safely, check protected IDs and checksums, tell classic from enhanced checksums, recover the schedule and frame lengths, and write a starting LDF. With tested Python code and an LDF that parses in ldfparser. 11 min read Intermediate Tutorial Reverse engineering automotive Ethernet: from capture to SOME/IP signals How to tap into an automotive Ethernet link, list every SOME/IP service from service discovery, and find signals in SOME/IP payloads without ARXML. Includes a standard-library Python pcap reader, a service lister and a payload survey, tested on a generated capture. 12 min read Advanced Tutorial Automated CAN reverse engineering: what the research shows A practical review of published methods that recover CAN signals automatically, from bit-flip statistics (READ, TANG) to complete DBC pipelines (CAN-D), reference matching (LibreCAN), frame reuse (CANMatch), byte-level clustering (ByCAN) and LLM agents, with what each one contributes and how to use the ideas. 11 min read Intermediate Guide Reverse engineering CAN signals with AI: a pipeline you can test How automated CAN reverse engineering works, from bit-flip statistics to correlation with an OBD-II reference, and where an LLM agent fits. Includes a standard-library Python pipeline, a synthetic log with a known DBC, and measured results. 15 min read Advanced Tutorial

Testing and validation

Test ECUs before they reach a vehicle: the X-in-the-loop levels, restbus simulation from a DBC, automatic checks on recordings, fault injection, and CAPL next to its Python equivalents.

All 5 guides →
HIL, SIL, MIL and PIL testing explained for ECU and CAN engineers What model-in-the-loop, software-in-the-loop, processor-in-the-loop and hardware-in-the-loop testing each check, what a HIL bench is made of, where CAN and the DBC come in, and how the levels fit together in a test strategy. 10 min read Beginner Guide CAPL for Python and C engineers: the patterns, side by side with python-can A practical introduction to CAPL, the event-driven language of Vector CANoe and CANalyzer, for engineers who know Python or C. Message handlers, timers, sending frames, DBC signals and test cases, each next to its python-can and cantools equivalent. 10 min read Beginner Tutorial Restbus simulation from a DBC with python-can and cantools How to simulate every other ECU on a CAN bus from a DBC file: cycle times from GenMsgCycleTime, signal values you can change during a test, live counters and CRCs, and silencing one ECU to test timeouts. A tested Python restbus in about 60 lines. 11 min read Intermediate Guide Automated CAN signal checks against a DBC: cycle time, range, counters and CRCs Turn a CAN recording and a DBC into automatic test results. Check cycle times and timeouts, frame lengths, signal ranges, alive counters, CRCs and unknown IDs with a tested Python checker, then run it as a pytest test in CI. 10 min read Intermediate Tutorial CAN fault injection: what to inject and how to check the ECU's reaction How to test an ECU's reaction to communication faults: missing messages, frozen counters, wrong CRCs, invalid values, wrong lengths, slow senders, error frames and wiring faults. With a tested Python fault injector and a check that each injected fault is detected. 11 min read Advanced Guide

Safety and security

What functional safety and cybersecurity mean for in-vehicle messages: E2E counters and CRCs, authenticated messages with SecOC, ISO 26262, ISO/SAE 21434 and UN R155 and R156.

All 4 guides →

Tools and comparisons

Which tool to use for DBC editing, live bus analysis and opening log files, with honest comparisons of free and paid options.

All 8 guides →
Best DBC editors in 2026: free and paid tools compared Which DBC editor should you use? We compare Vector CANdb++ Editor, Kvaser DBC Editor 7, the CSS Electronics online editor, DBC Utility, SavvyCAN, and the cantools and canmatrix Python libraries, with the best pick for each job. 9 min read Beginner Comparison Best CAN bus analyzer software in 2026: free and paid tools compared Which CAN bus analyzer software should you use? We compare Vector CANalyzer, PEAK PCAN-View and PCAN-Explorer 7, Kvaser CanKing 7, Intrepid Vehicle Spy, TOSUN TSMaster, SavvyCAN, BUSMASTER, and can-utils, and explain why your CAN interface usually decides for you. 10 min read Beginner Comparison Best tools to open BLF, ASC, and MF4 CAN log files Someone sent you a CAN log and you do not have the tool that recorded it. Here is which free and paid tools open BLF, ASC, MF4, TRC, and candump files, decode them with a DBC, and convert between formats. 8 min read Beginner Comparison What Is CANalyzer? CANalyzer vs DBC Viewer Learn what Vector CANalyzer is used for and how a CAN bus analyzer differs from a focused DBC viewer. 7 min read Beginner Comparison What Is Canmatrix? Canmatrix vs DBC Viewer Learn what the Python canmatrix library does, how to convert CAN database files, and when to use canmatrix instead of a visual DBC viewer. 7 min read Intermediate Comparison How to choose a DBC tool in 2026: editors, analysers, and libraries compared A plain-language guide to choosing a CAN DBC tool. Compare focused DBC editors, analysis suites, hardware-vendor tools, browser editors, and Python libraries, then test your shortlist with a one-week pilot on your own files. 10 min read Beginner Comparison DBC Utility vs CANdb++, BUSMASTER, SavvyCAN and other DBC tools An honest comparison of DBC Utility with Vector CANdb++ Editor, BUSMASTER, Kvaser DBC Editor 7, the CSS Electronics DBC editor, and SavvyCAN, including when each one is the better choice. 12 min read Beginner Comparison What's new in DBC Utility 2.0: log analysis, translation, and safer saves Everything that changed in DBC Utility 2.0 through 2.0.5, explained by what you can now do, including the ASC/BLF log analyser, German–English translation, value tables, float signals, the Problems list, and file-safe saving. 9 min read Beginner Product update