Svashasan Logo
Simulated data

Vehicle Communication and Networking · Diagnostics

Diagnostic Communication

Also known as vehicle diagnostics, off-board diagnostics, DoCAN, DoIP, UDS on CAN, OBD communication

IntermediateSource-checked · awaiting technical reviewLast reviewed 6 December 2026

The exchange of standardised request and response messages between a diagnostic client (tester, workshop tool or back-end) and ECUs to read fault codes and data, control functions, and configure or reprogram vehicle software.

Explanation

Automotive diagnostics follows a layered architecture. At the application layer, Unified Diagnostic Services (UDS, ISO 14229-1) defines services such as session control, reading data by identifier, reading fault information and security access. Below it, transport and network layers are defined per network: ISO 15765-2 (DoCAN, also called ISO-TP) on CAN, ISO 13400-2 (DoIP) on IP over Ethernet, and UDS mappings for LIN and other buses. Emissions-related on-board diagnostics (OBD) uses its own legislated services over similar transports.

Inside an AUTOSAR Classic ECU, the Diagnostic Communication Manager (Dcm) manages diagnostic sessions and security states. It checks whether each request is supported and allowed in the current session, then executes it or returns a negative response. Gateways route diagnostic traffic between external testers and internal networks.

Diagnostic access is powerful, because it can rewrite software and actuate components. Modern systems therefore combine session and security-access rules with certificate-based authentication (the Authentication service, 0x29, introduced in the 2020 edition of ISO 14229-1) and with filtering in gateways.

How it works

A tester sends a request containing a service identifier and parameters, either to a physical address (one ECU) or a functional address (a group). The transport layer segments and reassembles the message, using ISO-TP flow control on CAN or TCP/UDP with DoIP. The ECU checks the request against the session, security state and conditions, then returns a positive response or a negative response consisting of 0x7F, the service ID and a negative response code.

Automotive applications

  • Workshop fault reading and repair
  • End-of-line testing and configuration in production
  • ECU reprogramming and software updates
  • Remote diagnostics via telematics

Example

A workshop tester connected via DoIP asks the vehicle gateway to route a UDS ReadDTCInformation (0x19) request to the brake ECU. The ECU returns its stored fault codes with status bits, and after the repair the technician clears them with ClearDiagnosticInformation (0x14).

An illustrative example: any figures in it are worked numbers, not measurements.

References

  1. Specification of Diagnostic Communication Manager (Document UID 18), R26-11 (opens in a new tab)

    AUTOSAR · Specification · 1 Introduction and functional overview; 7.4.2 UDS Services · retrieved 6 December 2026

    “The Dcm module provides a common API for diagnostic services.”
  2. ISO 13400-2:2025 Road vehicles — Diagnostic communication over Internet Protocol (DoIP) — Part 2: Transport protocol and network layer services (opens in a new tab)

    ISO · Standard · Direct fetch of iso.org returned HTTP 403; details taken from the iso.org catalogue entry as returned by web search on 2026-12-06. · retrieved 6 December 2026

  3. ISO 14229-1:2026 Road vehicles — Unified diagnostic services (UDS) — Part 1: Application layer (opens in a new tab)

    ISO · Standard · Direct fetch of iso.org returned HTTP 403; details taken from the iso.org catalogue entry as returned by web search on 2026-12-06. · retrieved 6 December 2026

Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.