UDS troubleshooting

Unexpected UDS Negative Response

An ECU returns a negative response when a diagnostic request should succeed, or returns a code inconsistent with the expected flow. This guide helps establish whether the deviation comes from diagnostic state, security access, request interpretation, transport handling, or ECU behavior.

Start the diagnostic workflow

Observable symptoms

What the failure can look like

Possible causes

Boundaries worth checking first

01

Diagnostic session or timing state is not established

The requested service is restricted to a diagnostic session that was not entered, was not accepted, or was lost before the request. Session changes can also alter service availability and timing, producing a negative response that appears inconsistent when the preceding exchange is omitted.

  • UDS
  • Diagnostic Session
  • DCM
02

Security access has not been completed for the requested operation

A protected service can remain unavailable when the required security access sequence was not completed, was performed at an unsuitable point in the flow, or is no longer valid. The resulting response must be interpreted against the ECU's current diagnostic state, not only the final request.

  • UDS
  • Diagnostic Session
  • Security Access
03

The request data or diagnostic description is incorrect

An invalid service parameter, DID, routine-control parameter, or data length can cause the ECU to reject a request that is otherwise valid in concept. An ODX or PDX mismatch can make the diagnostic application construct or decode the exchange incorrectly.

  • UDS
  • DID
  • Routine Control
04

The request is reaching a different ECU or diagnostic endpoint

Incorrect addressing or endpoint selection can produce a valid-looking negative response from an unintended ECU, or cause the expected ECU's response to be interpreted against the wrong diagnostic description. This is especially important when the same service is available on multiple ECUs.

  • UDS
  • ISO-TP
  • DoIP
05

Transport segmentation or response interpretation is incorrect

An ISO-TP or DoIP exchange can be assembled, filtered, timed, or decoded incorrectly. The application may then associate a response with the wrong request or interpret incomplete diagnostic data as an unexpected negative response.

  • UDS
  • ISO-TP
  • DoIP
06

ECU application or DCM behavior does not match the diagnostic definition

The ECU or its Diagnostic Communication Manager may enforce a precondition, timing rule, or service restriction that differs from the available diagnostic description or expected flow. This requires evidence from the complete exchange and may need software-owner investigation.

  • UDS
  • DCM
  • ODX

Ordered investigation

Diagnostic workflow

  1. 01

    Capture the complete failing exchange

    Use the problem description and a BLF recording, where available, to document the triggering request, the complete negative response, preceding session and security access traffic, repetition, and timing. This separates an observed protocol result from an application display or decoding artifact.

    • UDS
    • ISO-TP
    • DoIP
  2. 02

    Confirm the endpoint and transport path

    Verify that the request and response belong to the intended ECU and that the selected transport path is the one used by the test. This rules out a wrong endpoint, filtered traffic, and basic ISO-TP or DoIP association errors without changing ECU state.

    • UDS
    • ISO-TP
    • DoIP
  3. 03

    Reconstruct the diagnostic state before the failure

    Read the exchange in order and identify the active diagnostic session, any security access exchange, and the interval between setup requests and the failing request. This narrows whether the response is consistent with an unestablished or expired state, but does not by itself prove ECU nonconformance.

    • UDS
    • Diagnostic Session
    • Security Access
  4. 04

    Validate request construction and interpretation

    Compare the raw request and response with the applicable ODX or PDX data and the intended UDS operation. Check service parameters, DID or routine-control data, lengths, and response decoding. This rules out data-description and application mapping errors before deeper ECU debugging.

    • UDS
    • DID
    • Routine Control
  5. 05

    Reproduce with controlled state transitions

    Repeat the smallest diagnostic sequence that establishes the required session and security state, then issue the failing request while recording every exchange. Compare repeated outcomes and state transitions to distinguish a deterministic precondition from timing-sensitive or intermittent behavior.

    • UDS
    • Diagnostic Session
    • Security Access
  6. 06

    Compare implementation evidence and escalate the remaining discrepancy

    If endpoint, transport, state, and request data are consistent but the response remains unexpected, compare the result with the ECU diagnostic implementation and DCM configuration. The evidence can support an engineering analysis or supplier/OEM investigation rather than a local correction.

    • UDS
    • DCM
    • ODX

Verification gates

Technical checks

Check the raw negative response

Read the complete response in the BLF recording and identify the negative response structure and its associated service request. Compare it with the value displayed by the diagnostic application.

Expected

The raw exchange and application interpretation identify the same request and negative response code without missing or merged transport data.

If failed

Investigate response decoding, transport assembly, filtering, and endpoint association before diagnosing ECU behavior.

Check request and response endpoint identity

Compare the addressing and endpoint information for the request and response with the intended ECU entry in the ODX or PDX data.

Expected

The request reaches the intended ECU and the response is associated with that same ECU and diagnostic description.

If failed

Correct endpoint selection or diagnostic-data mapping and repeat the capture.

Check diagnostic session establishment

Inspect whether the expected session transition was requested, accepted, and still active immediately before the failing service.

Expected

The required diagnostic session is accepted and no intervening exchange or timeout indicates that the ECU returned to another state.

If failed

Repeat the defined session sequence and investigate session timing or DCM configuration if the state is not retained.

Check security access state

Review the security access exchange and its position relative to the protected request, without assuming that a prior successful exchange remains valid indefinitely.

Expected

The required security state is established before the protected operation and remains applicable when the request is sent.

If failed

Repeat the required security access flow according to the approved diagnostic definition, or involve the ECU software owner if the state changes unexpectedly.

Check DID or routine-control data

Compare the service identifier, DID or routine-control parameters, data length, and encoded values in the recorded request with the ODX or PDX definition.

Expected

The request matches the diagnostic-data definition and the operation's required parameters.

If failed

Correct the diagnostic application, CAPL script, or diagnostic data mapping before attributing the response to the ECU.

Check transport completeness and timing

Inspect the complete ISO-TP or DoIP exchange for segmentation, missing parts, ordering, and timing relevant to the request and response.

Expected

The request and response are complete, correctly associated, and decoded without transport-level gaps.

If failed

Investigate transport configuration, capture filtering, and request/response correlation in CANoe or the diagnostic application.

From evidence to action

Resolution paths

Correct the diagnostic sequence

If the response is caused by missing or misplaced setup, update the test or diagnostic application to establish the required diagnostic session and security access state before issuing the protected request. Preserve the complete exchange in regression evidence.

Align diagnostic data and request encoding

If ODX or PDX data does not match the ECU behavior, correct the diagnostic-data version or the request construction and verify the resulting raw exchange. Update the CAPL script or diagnostic application only after the intended request is clear.

Fix endpoint or transport handling

If the request is sent to the wrong ECU or the ISO-TP or DoIP exchange is misassembled or misinterpreted, correct addressing, transport configuration, filtering, or response correlation, then repeat the controlled reproduction.

Investigate ECU or DCM implementation

If the request, state, endpoint, and transport are consistent but the ECU still returns an unexpected code, document the complete evidence and compare it with the ECU and DCM diagnostic configuration. Resolution may require an ECU software correction or supplier/OEM investigation rather than a local test change.

FAQ

Questions that shape the investigation

Does an unexpected negative response prove that the ECU is defective?
No. The same observation can result from session state, security access, request data, endpoint selection, transport interpretation, or ECU implementation. Confirm the complete exchange and preconditions before assigning ownership.
Why should the full exchange be reviewed instead of only the failing request?
The meaning of a negative response can depend on the preceding diagnostic session and security access sequence, timing, endpoint, and transport context. A single request often cannot distinguish those causes.
How can ODX or PDX contribute to an unexpected response?
An outdated or mismatched diagnostic description can construct the wrong parameters, DID, routine-control data, or response interpretation. Compare the raw request with the applicable ODX or PDX data rather than relying only on the tool display.
When should the issue move from test debugging to ECU investigation?
Escalate after the endpoint, transport, request encoding, diagnostic session, and security access state have been checked and reproduced consistently. Provide the problem description, complete recording, expected flow, and comparison with the diagnostic data.

Diagnostic support

Discuss a UDS Project

If the exchange remains inconsistent after the basic checks, an engineering analysis can organize the recording, diagnostic data, state sequence, and findings into a reproducible technical investigation.