Home / Protocols / UDS

UDS diagnostics is not telemetryUDS is how a tool talks to a controller about its own state. It is excellent at answering a question and useless as a continuous data source.

UDS - Unified Diagnostic Services, ISO 14229 - sits on top of CAN (usually ISO-TP, ISO 15765-2) and defines how a tester talks to an ECU. It is the protocol behind every workshop tool. It is regularly confused with a data source for telematics, and the confusion costs projects time.

What UDS actually provides

ServiceWhat it doesWhy it is not telemetry
Diagnostic session controlPuts the ECU into a session - default, programming, extendedA session is a state; it is not a stream of values
Read data by identifierReturns one data identifier (DID) on request One value per request, with round-trip latency
Security accessA challenge/response handshake before protected services Controlled by the OEM; a third party cannot legally bypass it
Routine control / IO controlRuns a test routine or forces an output Diagnostic actions, not monitoring

Why polling DIDs is a poor telemetry route

A DID read is a request and a response. Polling twenty DIDs once a second turns into forty frames per second of bus traffic and a latency chain that mixes with the controller's own work. On a machine that also runs a controller area network for control, that is interference for very little data. Broadcast frames - J1939 PGNs, CANopen PDOs, the builder's own periodic messages - are the right source for telemetry.

Where UDS does belong in a gateway

  • Remote diagnostics through pass-through - a technician's tool reaches the controller through the unit, so a fault can be read without sending someone to site.
  • One-off checks - read the DID that holds the software version, or run a routine before an update.
  • Fault memory - reading stored diagnostic trouble codes when something has already happened.

All three are deliberate, occasional actions. None of them is a continuous data feed.

Security access belongs to the OEM

The challenge/response in UDS exists to stop unauthorised changes. A supplier who offers to "unlock" a controller for you is offering something the builder did not authorise - and if the project needs protected services, the route is a documented agreement with the machine builder, not a tool that guesses keys. Say this early in a tender; it protects everyone.

What to ask a supplier

  1. Can the unit pass diagnostic traffic through to an attached controller, and over what transport?
  2. Is the diagnostic channel isolated from the telemetry channel, so a session cannot disturb normal reporting?
  3. What is logged when a diagnostic session starts and ends - time, duration, who did it?

How a gateway should expose diagnostics

  • Separate channel - a diagnostic session must not interrupt telemetry reporting.
  • Access log - start time, duration and who opened it, stored where the customer can read it.
  • Time limit - a session that nobody closes should expire on its own.
  • No stored keys - a unit must not keep a security-access key on disk; if a project needs protected services, the builder's process decides how.

What a diagnostic log is worth

When a machine fails in the field, the question is usually "what changed in the last hour". A diagnostic log answers it with a timestamp and a service name; without one, the evidence is a phone call. This is the quiet value of a gateway that can pass diagnostics through - not remote control, but a record of who asked the machine what, and when.

Next

J1939 · OBD-II vs machine CAN · CANopen · DTU hardware · CAN bus telematics · used vehicle inspection.

Data sheet, interface list and a payload example on request — contact us (ralph@gz-can.com · +86 130 7692 2278).