Back to the glossary

Embedded and systems

Unified Diagnostic Services (UDS)

UDS is the standard diagnostic protocol for control units under ISO 14229. It is used to read fault memory, query data, run routines and flash software.

Also known as: ISO 14229, vehicle diagnostics, diagnostics

What UDS offers

UDS defines a set of services that a tester sends to a control unit. Commonly used ones are:

  • Switching the diagnostic session (0x10), for example to extended or programming mode
  • Reading and writing data by identifier (0x22, 0x2E), such as serial number or software version
  • Reading and clearing fault memory (0x19, 0x14)
  • Security access (0x27) before protected actions
  • Running routines (0x31), such as a self-test
  • Downloading software (0x34, 0x36, 0x37) for flashing

UDS runs over different transports, usually over CAN with ISO-TP or over Ethernet with DoIP.

UDS in testing

Diagnostics matter twice in testing. On the one hand they are a test subject themselves: are faults detected and stored correctly? On the other hand they are a tool: through UDS an automated test reads the fault memory after fault injection, queries the software version or puts the device into a defined state.