25 min read

Interface

Diagnostics: OBD-II, UDS and DoIP

OBD-II (On-Board Diagnostics) is a standardized port for vehicle diagnostics. It provides direct access to the CAN bus and standard diagnostic services.

OBD-II Modes

obd2-modes.txt
# Standard OBD-II service modes (PIDs):
Mode 01: Current powertrain data
Mode 02: Freeze frame data
Mode 03: Emission diagnostic codes
Mode 04: Clear diagnostic codes
Mode 05: Oxygen sensor monitoring - NON-CAN ONLY (ISO 9141/14230/J1850).
         Not defined for ISO 15765-4 (CAN) vehicles; use Mode 06 instead.
Mode 06: On-board monitoring test results
Mode 07: Pending diagnostic codes
Mode 08: Control on-board systems
Mode 09: Vehicle information (VIN, calibration)
Mode 0A: Permanent diagnostic codes

# Example: Request RPM (Mode 01, PID 0C)
# Send: 7DF#02010C0000000000
# Response: 7E8#04410C0FA00000

Mode 05 is the trap in that list: it appears in most OBD-II summaries, but it was defined for the older non-CAN diagnostic protocols. On a CAN vehicle (ISO 15765-4, i.e. anything sold in the US since 2008) the oxygen-sensor test results live in Mode 06, and a Mode 05 request is answered with a negative response or ignored.

OBD-II Tools

obd2-can.py
import can

# Mode 01, PID 0C (RPM) as a functional broadcast on 0x7DF
# interface= is the current python-can keyword; bustype= is a deprecated alias
bus = can.interface.Bus(channel='can0', interface='socketcan')
bus.send(can.Message(arbitration_id=0x7DF,
                     data=[0x02, 0x01, 0x0C, 0, 0, 0, 0, 0],
                     is_extended_id=False))

# The ECU answers on 0x7E8: 04 41 0C <A> <B> ...
for msg in bus:
    if msg.arbitration_id == 0x7E8:
        print(msg.data.hex())
        break
import can

# Mode 01, PID 0C (RPM) as a functional broadcast on 0x7DF
# interface= is the current python-can keyword; bustype= is a deprecated alias
bus = can.interface.Bus(channel='can0', interface='socketcan')
bus.send(can.Message(arbitration_id=0x7DF,
                     data=[0x02, 0x01, 0x0C, 0, 0, 0, 0, 0],
                     is_extended_id=False))

# The ECU answers on 0x7E8: 04 41 0C <A> <B> ...
for msg in bus:
    if msg.arbitration_id == 0x7E8:
        print(msg.data.hex())
        break

OBD-II answers emission questions. Everything past that point — coding, calibration, flashing — runs on UDS.

Authorised Vehicles Only — Sessions and Write Services Change State

Everything below sends requests that change vehicle state: a session switch stops normal communication on the module, a write changes its stored configuration, and the transfer services erase and rewrite flash. Work only on a vehicle you own or one named in written scope, and assume a failed write leaves a controller that will not start the car. That is the same authorisation the CAN attacks page requires, and it covers the DoIP material at the end of the page.

UDS: The Service Layer Above OBD-II

UDS is request and response: a service identifier byte, an optional sub-function, then parameters. The server answers with the identifier plus 0x40 — 0x22 comes back as 0x62 — or with a negative response. ISO 14229-1 defines it; the current edition is ISO 14229-1:2026 (Edition 4, June 2026), while most vehicles in the field were built against the 2020 Edition 3 it replaced. Because the application layer is wire-independent, the same services run over CAN through ISO 15765-2, over LIN and FlexRay, and over IP as DoIP.

What separates UDS from OBD-II is that services are addressed and gated. OBD-II broadcasts a PID request to whichever ECU owns it; UDS addresses one ECU physically (0x7E0 to 0x7E7 request, 0x7E8 to 0x7EF response) or a group functionally, and the ECU may refuse on session, security level or vehicle state. Those gates are the access-control model.

Diagnostic Sessions (0x10)

Session control is service 0x10 and the sub-function is the session: 0x01 default, 0x02 programming, 0x03 extended diagnostic, 0x04 safety system diagnostic. Default is where an ECU returns after reset; extended allows most identifier reads, writes and routine control; programming opens the transfer services. A service the ECU supports but not in this session is refused with NRC 0x7F (serviceNotSupportedInActiveSession) rather than 0x11, which separates “never heard of that service” from “not here, not now”.

A session is also a timer: S3_server is 5 seconds by default, then the ECU returns to default and drops any unlocked security access, which is why every client sends TesterPresent (0x3E 0x00) on a schedule. The finding is the other case — a module that stays in extended or programming session after the tester disconnects, or accepts a session change from a functional broadcast, can be silenced by anything on the bus.

Data Identifiers (0x22 / 0x2E)

ReadDataByIdentifier (0x22) takes one or more 2-byte identifiers and returns each with its identifier echoed; WriteDataByIdentifier (0x2E) sets one. A DID names data, not an address: 0xF190 is the VIN, 0xF187 the spare-part number, 0xF18C the ECU serial, 0xF186 the active session. The manufacturer-specific ranges hold coding, calibration and configuration blocks, which is why a 0x22 sweep maps a module faster than any other request.

Reads are usually open in extended session, writes are not. 0x2E to a coding DID needs extended session plus a successful 0x27 or 0x29 exchange, and can still fail with conditionsNotCorrect (0x22) unless the vehicle is in the expected state — engine off, transmission in park, voltage in range. A 0x2E to 0xF190 normally returns requestOutOfRange (0x31) even when unlocked, because the VIN is written once at end of line; a successful VIN write is a finding about provisioning, not a protocol capability.

uds-did.txt
# Session switch: the positive response advertises P2 and P2* as two 16-bit values.
Request : 10 03
Response: 50 03 00 32 01 F4
          P2  = 0x0032 = 50 ms        time allowed for the next response
          P2* = 0x01F4 x 10 ms = 5000 ms   time allowed after a 0x78 "still working"

# ReadDataByIdentifier 0xF190 (VIN): 2-byte DIDs after the service id, value comes back
# with the DID echoed, 17 ASCII bytes here.
Request : 22 F1 90
Response: 62 F1 90 57 56 57 5A 5A 5A 31 4B 5A 4D 30 30 30 30 30 30 31

# WriteDataByIdentifier 0xF190: extended session and an unlock first, or it is refused.
Request : 2E F1 90 57 56 57 5A 5A 5A 31 4B 5A 4D 30 30 30 30 30 30 31
Response: 6E F1 90

# A refusal is three bytes: 0x7F, the service that was refused, then one NRC byte.
Response: 7F 2E 33        # 0x33 = securityAccessDenied

The same exchange through a library, which shows where the unlock sits:

uds-client.py
# pip install udsoncan can-isotp   (IsoTPSocketConnection is SocketCAN, Linux only)
import udsoncan
import udsoncan.configs
from udsoncan.client import Client
from udsoncan.connections import IsoTPSocketConnection

def key_from_seed(level, seed, params):
    # udsoncan calls this as (level, seed, params). The body is the OEM routine
    # recovered from a firmware image; this XOR stands in for a weak one.
    key = bytearray(seed)
    for i in range(len(seed)):
        key[i] = seed[i] ^ params["xorkey"][i % len(params["xorkey"])]
    return bytes(key)

config = dict(udsoncan.configs.default_client_config)
config["security_algo"] = key_from_seed
config["security_algo_params"] = {"xorkey": bytes.fromhex("11223344")}
config["data_identifiers"] = {0xF190: udsoncan.AsciiCodec(17)}   # VIN, 17 chars
config["request_timeout"] = 3

conn = IsoTPSocketConnection("can0", rxid=0x7E8, txid=0x7E0)
with Client(conn, config=config) as client:
    client.change_session(0x03)                              # 10 03
    client.unlock_security_access(0x01)                      # 27 01, then 27 02
    print(client.read_data_by_identifier_first(0xF190))      # 22 F1 90
    # write_data_by_identifier(did, value) is the same call shape once that DID
    # has a codec configured in data_identifiers.

Where The Identifiers Come From: ODX

A DID says what to ask for; it does not say how to read the answer. That mapping is ODX — ISO 22901-1, ASAM's MCD-2 D (v2.2.0) — a machine-readable model of each ECU's diagnostic data: every DID with its data type, byte order, scaling, unit and enumerations, plus its DTCs and variant coding. 0xF190 needs none of it, because seventeen ASCII bytes are self-describing; a coding block that returns packed bitfields does, and guessing at the layout produces a plausible wrong number. Variant coding is the same problem one level up: a DID means what the coding says it means, and ODX is how a tool knows which description applies. ISO 22901-1:2008 is Edition 1 and was confirmed as current in 2025.

Security Access (0x27) and Authentication (0x29)

SecurityAccess (0x27) is a seed-and-key challenge. The tester requests a seed with an odd sub-function (0x01, 0x03 …) and the ECU answers with the seed and the sub-function plus 0x40; the tester computes a key with the manufacturer's algorithm and sends it with the next even sub-function (0x02, 0x04). A correct key lifts the protection for that level until the session ends or the ECU resets; a wrong one returns invalidKey (0x35) and increments a counter. The algorithm is absent from the standard, so recovering it is a firmware exercise: the handler and its seed-to-key routine come out of the image. A fixed seed, a key equal to the seed, and a key that is a short XOR of it are the three design flaws worth reporting, because a seed only means something when it is random per request.

0x27 is no longer the only gate, and presenting it as the access-control mechanism is dated. ISO 14229-1:2020 (Edition 3) added Authentication, service 0x29, built like a TLS client certificate: the tester presents a certificate chaining to a trust anchor in the ECU, proves possession of the matching private key through a challenge, and is granted a role and access level. It also covers certificate transmission, de-authentication and a bidirectional form that authenticates the ECU to the tester. An ECU may implement 0x29 instead of 0x27, alongside it, or behind it. The tell is NRC 0x34 (authenticationRequired): the service exists and the missing step is authentication.

Lockout Counters Cost More Than a Wrong Key

Wrong keys are not free. exceedNumberOfAttempts (0x36) and requiredTimeDelayNotExpired (0x37) report a counter and a delay, and on some platforms the counter survives the ignition cycle or escalates to a lock only a dealer tool with an online token clears. Log the seeds, count the attempts, and recover the algorithm from firmware before guessing against a live module.

Routine Control (0x31) and Firmware Transfer (0x34, 0x36, 0x37)

Erasing Flash Is Not Reversible

The sequence below starts with an erase. Interrupted between that erase and the last block, the ECU has no valid application left: a bootloader-only module and a car that will not start. Do this on a spare module of the same part number with a stable supply, never on a vehicle in service.

RoutineControl (0x31) has three sub-functions — 0x01 start, 0x02 stop, 0x03 request results — and a 2-byte routine identifier. Most identifiers are manufacturer-specific; two are standard, 0xFF00 eraseMemory and 0xFF01 checkProgrammingDependencies. It also runs self-tests, primes pumps and retracts parking brakes.

Firmware goes in through RequestDownload (0x34), repeated TransferData (0x36) and RequestTransferExit (0x37), after a programming session and an unlock. 0x34 carries a data-format byte, an address-and-length format byte, the target address and the byte count; the response returns the largest block the ECU will take. Each 0x36 carries a block sequence counter from 1, incremented per block — a gap is refused with wrongBlockSequenceCounter (0x73). 0x37 closes the transfer and 0x11 0x01 resets the module into the image. Every request above that does not fit one CAN frame is segmented by ISO-TP: framing, sequence numbers and flow control are on the CAN bus page.

uds-transfer.txt
# Programming sequence, generic shape. The address, size, seed algorithm and block
# size are OEM data: this is the order of operations, not a recipe for a vehicle.
10 02                                   # programming session
27 01                 -> 67 01 <seed>   # request seed
27 02 <key>           -> 67 02          # send key
31 01 FF 00           -> 71 01 FF 00 00 # startRoutine 0xFF00, erase memory
31 03 FF 01           -> 71 03 FF 01 00 # requestRoutineResults 0xFF01, dependencies
34 00 44 00 10 00 00 00 00 10 00        # RequestDownload: DFI 00, ALFID 44, 4-byte
                                        # address 0x00100000, 4-byte size 0x1000
                      -> 74 20 04 00    # 0x20 = 2-byte length field; 0x0400 = max bytes
                                        # per TransferData request, SID and counter included
36 01 <block data>    -> 76 01          # TransferData, block sequence counter 01
36 02 <block data>    -> 76 02          # counter increments every block
37                    -> 77             # RequestTransferExit
11 01                 -> 51 01          # ECUReset, hardReset

That sequence is the brick vector as well as the update path: a tester through the gates owns the flash, because the transfer services carry no integrity check. UN Regulation No. 156 makes image signing and rollback part of type approval, so a correct ECU verifies the image and rejects an unsigned one — but a naive implementation erases first, and “erase, then reject” is still a dead module. Check that ordering.

Negative Responses and NRCs (0x7F)

Every refusal is three bytes: 0x7F, the service refused, and a negative response code. That last byte is the most useful signal on the wire when fuzzing, because it separates “understood and refused” from “nothing listening”. Silence means the wrong address, transport or module; a code means the request arrived and was rejected for a stated reason.

NRC Name What it tells a tester
0x10 generalReject Refused with no reason; usually vehicle state
0x11 serviceNotSupported Service absent here; start the capability map
0x12 subFunctionNotSupported Service exists, this sub-function or format does not
0x13 incorrectMessageLengthOrInvalidFormat Payload shape wrong, not the value
0x21 busyRepeatRequest Still working; repeat the request, it is not a refusal
0x22 conditionsNotCorrect Right request, wrong vehicle state
0x24 requestSequenceError Out of order; a step is missing
0x31 requestOutOfRange Table exists, this DID or routine ID does not
0x33 securityAccessDenied Protected by 0x27; the list of what needs unlocking
0x34 authenticationRequired Protected by 0x29, not seed-and-key
0x35 invalidKey Seed accepted, key wrong
0x36 exceedNumberOfAttempts Counter tripped; stop
0x37 requiredTimeDelayNotExpired Delay running; wait it out

The value is in comparing answers. Sweeping DIDs and recording 0x31 against 0x11 yields the module's identifier table without reading a value, and 0x33 or 0x34 marks the subset worth attacking. None of those requests changes state, which makes NRC mapping the cheapest first pass on an unfamiliar ECU.

P2, P2* and the 0x78 Trap

P2Server is how long the ECU may take to answer: 50 ms by default, and the session response advertises the value it uses (the 0x0032 in 50 03 00 32 01 F4). A request that cannot make that deadline is not left to time out — the ECU sends 0x7F, the service and 0x78 (responsePending), then keeps the tester waiting. After a 0x78 the budget becomes P2*Server, 5000 ms by default in units of 10 ms, hence the 01 F4 (500 x 10 ms).

A tester that ignores 0x78 misreads the vehicle: with a one-second timeout it calls a slow ECU dead, then sends the next request into a module still working, which earns busyRepeatRequest (0x21) or requestSequenceError (0x24). udsoncan exposes the budgets as p2_timeout and p2_star_timeout, with request_timeout as a hard ceiling over both: set that ceiling too low and it fires while the ECU is dutifully sending 0x78.

DoIP: Diagnostics Over IP (ISO 13400-2)

DoIP carries UDS over TCP/IP on automotive Ethernet. The transport and network layers are ISO 13400-2 — current edition ISO 13400-2:2025, which replaced the 2019 edition in June 2025 — and the wired interface is ISO 13400-3. The services do not change: a 0x22 request over DoIP is the same bytes as over CAN, which is why a CAN-only mental model stops working at the first Ethernet gateway.

Discovery is unauthenticated and runs on UDP 13400. A DoIP entity broadcasts a vehicle announcement (payload type 0x0004), and a tester can ask for one with a vehicle identification request (0x0001, or 0x0002/0x0003 to narrow by entity ID or VIN). The announcement carries the VIN in 17 ASCII bytes, the logical address, a 6-byte entity identification (EID), a 6-byte group identification (GID) and a further-action byte — all before any session, routing activation or authentication. The VIN is a persistent vehicle identifier, and the EID and GID fingerprint the gateway and its group.

Diagnostics move to TCP 13400, or 3496 for the TLS variant, which the current edition still specifies as optional. Before any UDS traffic the tester sends a routing activation request (0x0005) with its source address and an activation type — 0x00 default, 0x01 WWH-OBD, 0xE0 central security — and the entity replies 0x0006 with a code: 0x10 activated, 0x11 confirmation required, 0x00 unknown source address. Routing activation checks a source address at most. An entity that accepts default activation from any address is not establishing who the tester is, only where to route; that acceptance is the finding, and it is configuration rather than a fault in the standard.

UDS rides inside the diagnostic message payload type 0x8001, which prefixes the request with a 2-byte source and a 2-byte target address. The entity acknowledges with 0x8002 and ack code 0x00, or refuses with 0x8003 and a code: 0x02 invalid source address, 0x03 unknown target address, 0x04 message too large, 0x05 out of memory, 0x06 target unreachable — the transport worked and the route did not, which is a different answer from a UDS NRC inside a 0x8001 response.

The consequence is a change of threat model, not a new protocol bug. On CAN, reaching the diagnostic bus means being in the car with a cable; on DoIP it means being on the vehicle's IP network — the head unit's Ethernet segment, a diagnostics switch, and on some architectures the telematics APN that the telematics page covers. The gates that matter are network reachability and the routing-activation policy, not the OBD-II connector. TLS is optional in the standard, so “DoIP is on the vehicle network” is not “DoIP is authenticated”: ask whether 3496 is enforced or merely supported.

doip-discovery.py
import socket
import struct

# The vehicle announcement / identification response (payload type 0x0004) is
# broadcast on UDP 13400. Bind the port and wait for one; a test bench with a
# DoIP gateway or a vehicle on the same switch will produce it within seconds.
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.bind(("0.0.0.0", 13400))
sock.settimeout(30)
data, src = sock.recvfrom(2048)

# Generic DoIP header: version, inverse version, payload type, payload length.
version, inverse, ptype, plen = struct.unpack(">BBHI", data[:8])
print(f"{src[0]} version={version:#04x} inverse={inverse:#04x} type={ptype:#06x} len={plen}")

payload = data[8:8 + plen]
if ptype == 0x0004:
    vin = payload[0:17].decode("ascii", "replace")
    logical_address = struct.unpack(">H", payload[17:19])[0]
    eid = payload[19:25].hex(":")
    gid = payload[25:31].hex(":")
    print(f"VIN {vin}  address {logical_address:#06x}  EID {eid}  GID {gid}")

python-doipclient supplies the transport and udsoncan the services. The client handles TCP and routing activation, so this is the CAN example again with a different connection object. It needs a real DoIP endpoint; there is nothing to point it at on a laptop.

doip-uds.py
# pip install doipclient udsoncan
import udsoncan
import udsoncan.configs
from doipclient import DoIPClient
from doipclient.connectors import DoIPClientUDSConnector
from udsoncan.client import Client
from udsoncan.exceptions import NegativeResponseException

ecu_ip = "192.168.1.10"                # the DoIP entity (gateway) on the vehicle network
doip = DoIPClient(ecu_ip, 0x00E0)      # 0x00E0 is an example logical address, not a constant
conn = DoIPClientUDSConnector(doip)    # opens TCP 13400 and sends routing activation

config = dict(udsoncan.configs.default_client_config)
config["data_identifiers"] = {0xF190: udsoncan.AsciiCodec(17)}   # VIN as 17 ASCII chars
config["request_timeout"] = 3

with Client(conn, config=config) as client:
    client.change_session(0x03)                                  # 10 03, extended session
    try:
        print(client.read_data_by_identifier_first(0xF190))      # 22 F1 90 inside 80 01
    except NegativeResponseException as e:
        print(f"NRC {e.response.code:#04x} {e.response.code_name}")

doip.close()

Diagnostics As A Forensic Record

The diagnostic port is described above as an interface into the vehicle. It is also an interface into a record of how the vehicle was driven, and one module keeps that record deliberately. The event data recorder is a small store, typically in the airbag or restraint controller, that captures a few seconds either side of a trigger — a deployment or a hard deceleration — with pre-crash speed, throttle position, brake application, steering input, seat-belt status and airbag deployment state. Retrieval takes a read-out tool, not a scan tool's live-data screen, and in most jurisdictions a legal basis as well: the recorder is built to be read by an investigator, not by whoever holds the connector.

Two instruments make that a requirement, and neither is a privacy instrument. In the United States, 49 CFR Part 563 specifies what a light-vehicle EDR must capture (the model-year applicability is not stated here). In the EU, the General Safety Regulation — Regulation (EU) 2019/2144 — mandates an EDR on a staged timetable for new types and then new vehicles (the staging dates and the UN Regulation No. 160 alignment are not stated here). Both say what the device records; neither says who may read it or how long it is kept, which is why retrieval is a legal frameworks question and retention a policy one.

The rest of the diagnostic surface is a record by accident. Mode 02 returns the freeze frame — the operating conditions captured when a fault set: speed, load, coolant temperature and engine state at that moment — and Mode 06 returns the on-board monitoring results behind a pass or fail. Both describe how the vehicle was being driven when something happened, and both are readable over the same port as live data. Each record also carries the VIN, because a module answers for identification before it answers anything else, and the DoIP announcement above hands it out before any session opens. A capture therefore identifies the vehicle before it identifies the fault.

That is the practical consequence for a test: you will read personal data, and the report has to say so. A freeze frame is a record of a named driver's speed at a named moment; a VIN is a persistent identifier that resolves to a registered keeper. Redact the VIN and any position or timestamp that places a person, keep the fields the finding depends on, and state what was removed and why — a diagnostic log pasted whole into a deliverable is a disclosure carrying the engagement's letterhead. The line between a finding and an incident is the one the telematics page draws for API responses, and the duty to minimise is a processing question, not a protocol one.

Diagnostics Practice

Read-only work on a vehicle you own, and the write path only on a spare module. Park it, engine off, transmission in park, wheels chocked, on a battery maintainer, and keep a written note of the vehicle state next to the log. Done when one session log holds 10 03 answered with 50 03 and both P2 values, a 22 F1 90 answer of seventeen ASCII bytes, a 27 01 seed, and at least one 7F refusal with its NRC — and no write service appears anywhere in it.

Session, Access And A DID Read On Your Own Car Custom Lab easy
ELM327 with ATSP0, or a SocketCAN adapter at the vehicle bitrate10 03 extended session with TesterPresent keeping S3 alive22 F1 90 and F1 87 identifier reads27 01 seed request, with the attempt count written down
Write Path On A Spare Module Custom Lab hard
Bench supply and a spare ECU of the same part number0x2E refused before the unlock, accepted after itRead the coding block before writing it, and restore it afterwards0x31 routine results read back, never an erase

Evidence Collection

A diagnostic finding is a pair of byte strings and the state they were exchanged in. Record:

Request and response bytes: Service identifier, sub-function and parameters for each request, and the full answer. 7F 2E 33 is evidence; "the write was refused" is not.

Session state: Which session the module was in (10 01, 10 03, 10 02), whether TesterPresent was keeping it alive, and whether S3 was ever allowed to expire. A service refused in default session may be supported in extended.

P2 and P2* as advertised: The two 16-bit values from the 10 03 response, and whether a 0x78 responsePending arrived and how many times. A timeout that ignored one is a client bug, not a dead ECU.

Access state, never the key: The seed, the sub-function used and the level reached. Do not record the key or the recovered algorithm in the finding, so the report documents a control failure without carrying a bypass recipe.

Transport and addressing: The adapter, the transport (CAN or DoIP), the bitrate, and physical on 0x7E0 versus functional on 0x7DF. The same service answers differently through each.

Identifier provenance: The ODX description or DID list the request came from. A DID read without its description yields a number, and a plausible wrong one as soon as the layout is guessed.

Vehicle state and authorisation: Written scope naming the VIN, plus engine off, transmission in park and supply voltage. A 0x22 conditionsNotCorrect is a statement about the state you tested in, not about the service.

False Positive Identification

Every trap on a diagnostic bus is an attribution error: the right bytes, belonging to something else.

  • A response from the wrong ECU: A functional request draws answers from every module on 0x7E8 to 0x7EF. Attribute each answer to the identifier that carried it, not to the request you sent.
  • An NRC attributed to the wrong service: A negative response echoes the service it refused. 7F 22 31 is a read refused as out of range and 7F 2E 33 is a write refused for access; mixing them turns a read finding into a write claim.
  • A lockout caused by your own attempts: invalidKey increments a counter that can survive an ignition cycle. Count every attempt in the log before describing a module as locked out by its design.
  • Session state you left behind: A module that answered in extended session may refuse the same request once S3 expires. Record the session beside each request rather than once per test.
  • The gateway answering as the module behind it: An 0xF187 or 0xF18C answer names the node that produced it. One on the gateway address is the gateway, not the controller behind it.
  • Transport success read as a UDS answer: A DoIP negative acknowledgement with code 0x06 means target unreachable: the transport worked and the route did not. That is a routing finding, not a diagnostic one.
  • Mode 05 on a CAN vehicle: Oxygen-sensor test results live in Mode 06 on ISO 15765-4. A Mode 05 request answered with a negative response is the standard behaving correctly.

Diagnostic Session Checklist

Session and access

  • ☐ Confirm addressing before the first request: physical 0x7E0 asks one module, functional 0x7DF asks every holder.
  • ☐ Switch session with 10 03 and keep TesterPresent running. S3 is five seconds by default and the unlock dies with the session.
  • ☐ Map capability with read services first, a 0x22 sweep and its NRCs, before anything that writes.
  • ☐ Request a seed with 27 01 only where you intend to attempt an unlock, and count attempts: the lockout can outlive the ignition cycle.
  • ☐ Try 0x29 before concluding a module has no access control. NRC 0x34 means authentication is the missing step.

Reads and evidence

  • ☐ Read F1 90, F1 87 and F1 8C, and note which address answered each: VIN, part number and serial together identify the node.
  • ☐ Honour 0x78 and the P2* budget. A one-second client timeout calls a working module dead and then sends into a module still working.
  • ☐ Keep the raw request and response bytes next to the decoded values, so a later reader can re-derive both.
  • ☐ Keep 0x2E, 0x31 and 0x34 off a vehicle in service: the erase is not reversible and a half-written block is a module the car will not start with.