AUTOSAR COM, PduR and DCM Explained: Communication and Diagnostics

An AUTOSAR Classic ECU may exchange hundreds of periodic signals while also responding to diagnostic requests from a tester. Although both activities use the ECU's communication infrastructure, they do not have the same purpose or follow the same upper-layer processing path.

Three Basic Software (BSW) modules are central to understanding these paths:

  • COM (Communication): provides signal-oriented communication. It packs configured signals into I-PDUs for transmission and extracts signals from received I-PDUs.
  • PduR (PDU Router): routes configured Protocol Data Units between software modules.
  • DCM (Diagnostic Communication Manager): manages diagnostic communication and processes diagnostic services such as UDS requests.

A useful mental model is: COM handles signals, PduR routes PDUs, and DCM handles diagnostic services. This distinction is valuable when configuring an ECU, tracing a missing CAN message, or investigating a UDS response.

Scope: This article focuses on AUTOSAR Classic Platform concepts. Exact APIs, configuration parameters, supported features and routing details depend on the AUTOSAR release and the BSW supplier's implementation.

1. Start with the data objects: signal, I-PDU, N-SDU and frame

Before following a module path, distinguish the objects handled at different layers.

ObjectMeaningExample
SignalA configured item of application/network dataVehicle speed
I-PDUAn Interaction Layer PDU containing configured signals or signal groupsA periodic vehicle-status PDU
N-SDUA Network-layer service data unit exchanged at the transport-protocol boundaryDiagnostic payload passed between DCM and CanTp through configured routing
CAN frameA data-link-layer frame transmitted on the CAN busAn 8-byte or CAN FD data frame
UDS messageA diagnostic service request or response22 F1 90 — ReadDataByIdentifier request

These terms are related, but they are not interchangeable. A signal is not a CAN frame, and a UDS request is not automatically a COM signal. COM processes configured signal data. A diagnostic transport protocol handles transport segmentation and reassembly when required, while DCM interprets the diagnostic service.

Two different paths through one ECU

Rendering diagram...

The diagram is conceptual. It shows typical responsibilities, not a universal generated call sequence. Actual routing, interface direction and module placement must be confirmed in the ECU configuration.

2. AUTOSAR COM: signal-oriented communication

COM provides the communication-layer services used to transfer configured signals and signal groups. It sits between the RTE and the lower communication stack in a typical Classic Platform signal path.

2.1 Main responsibilities

Depending on configuration and release, COM commonly supports:

  • Packing signal and signal-group values into I-PDUs for transmission.
  • Unpacking received I-PDUs into signal and signal-group values.
  • Managing configured update-bit behavior.
  • Supporting transmission modes such as periodic, direct, mixed or none, where configured.
  • Handling configured transfer properties, including repetition and minimum-delay behavior.
  • Monitoring configured reception timeouts and invalid or replacement values.
  • Providing signal-level interfaces to the RTE and PduR-facing I-PDU interfaces.

Not every feature is enabled in every ECU. The generated configuration determines which behavior applies to a particular signal or I-PDU.

2.2 Transmit example: vehicle speed

Assume an application component calculates vehicle speed and publishes it through a sender-receiver interface.

  1. The application SWC updates its vehicle-speed data element.
  2. The RTE exposes the configured data to COM through the generated communication mapping.
  3. COM reads the signal value and places it in the configured bit positions of the transmit I-PDU.
  4. The configured transmission condition is met, for example a periodic deadline or an application-triggered update.
  5. COM requests I-PDU transmission through PduR.
  6. PduR routes the I-PDU to the configured lower-layer module, commonly CanIf for a CAN path.
  7. CanIf and the CAN driver handle the configured transmit PDU and controller interaction.
Rendering diagram...

The RTE-to-COM interaction and confirmation callbacks depend on the generated configuration. The sequence is intended to explain the logical path, not prescribe exact API names.

2.3 Receive example: door status

For a received door-status message, the typical flow is reversed:

  1. The CAN controller receives a frame.
  2. The CAN driver and CanIf provide the received I-PDU to the upper communication path.
  3. PduR routes the I-PDU to COM.
  4. COM extracts configured signals using the configured bit positions, lengths and byte order.
  5. The RTE makes the updated data available to the receiving SWC.

A signal can be received at the bus but still appear incorrect to the application if its mapping is inconsistent. Check start bit, bit length, endianness, signedness, scaling, offset and the expected I-PDU mapping.

2.4 COM configuration concepts worth knowing

Configuration conceptWhat to verify
Signal bit position and sizeStart bit, length and placement in the I-PDU
Byte order and data typeEndianness, signedness and value representation
Initial / invalid valueConfigured behavior before valid reception or when data is invalid
Update bitWhether the receiver can identify a newly updated signal
I-PDU lengthConfigured payload length and consistency with the network description
Transmission modePeriodic, direct, mixed or other configured behavior
Reception timeoutTimeout threshold and configured reaction
Tx trigger conditionsWhat causes COM to request transmission

Engineering tip: When a decoded bus value differs from the SWC value, compare the generated COM configuration with the network database (for example, the project's DBC or ARXML source). Do not assume the problem is in the CAN driver.

3. PduR: routing configured Protocol Data Units

PduR is the routing layer between configured communication modules. It forwards PDUs according to generated routing configuration. It is not normally responsible for interpreting the engineering meaning of each signal or the UDS service contained in a diagnostic payload.

3.1 What PduR does

Depending on the configured communication path, PduR can route data between modules such as:

  • COM and CanIf.
  • DCM and a diagnostic transport protocol such as CanTp.
  • Communication interfaces and transport-protocol modules.
  • Other configured upper- and lower-layer communication modules.

The exact combinations depend on the network technology, ECU architecture and BSW configuration.

3.2 Routing is not signal decoding

Consider a CAN I-PDU containing vehicle speed, engine speed and a status bit. COM knows how those signals are represented in the I-PDU. PduR routes the configured PDU to the next module. It does not need to decode vehicle speed into km/h to perform that routing.

Likewise, for a diagnostic PDU, PduR routes the configured data between the transport protocol and DCM. DCM interprets the UDS service identifier and processes the request.

3.3 PduR configuration and routing checks

When examining a PduR configuration, identify:

  1. The source PDU and the module that provides it.
  2. The destination PDU and receiving module.
  3. Whether the path is transmit or receive from the perspective of the module being inspected.
  4. The configured routing path and any gateway or fan-out behavior used by the ECU.
  5. Buffering, queueing or routing-path options where supported and configured.
  6. Any module-specific transmit confirmation or receive indication connections.

Do not assume every route is a simple one-to-one connection. Some architectures use gateway routing or multiple configured destinations. Check the generated PduR configuration and supplier documentation for the selected release.

4. DCM: diagnostic communication and UDS processing

DCM is the AUTOSAR Classic BSW module responsible for diagnostic communication. It receives diagnostic requests through the configured diagnostic communication path, validates and processes services, and prepares diagnostic responses.

DCM does not directly drive the CAN controller. The network interface and transport-protocol modules handle the lower communication functions.

4.1 Common UDS services

SIDServiceTypical purpose
0x10DiagnosticSessionControlSwitch diagnostic session
0x11ECUResetRequest a configured ECU reset
0x14ClearDiagnosticInformationClear selected diagnostic information
0x19ReadDTCInformationRead diagnostic trouble-code information
0x22ReadDataByIdentifierRead configured DID data
0x27SecurityAccessPerform a configured security access sequence
0x28CommunicationControlControl selected communication behavior
0x2EWriteDataByIdentifierWrite configured DID data
0x31RoutineControlStart, stop or request results of a configured routine
0x34RequestDownloadInitiate a supported download sequence
0x36TransferDataTransfer a data block
0x37RequestTransferExitEnd a transfer sequence

The supported services, sub-functions, DIDs, security levels, sessions and conditions are project-specific. A service appearing in the UDS standard does not mean that every ECU implements it.

4.2 What happens when DCM receives a request?

A simplified DCM processing sequence is:

  1. Receive the diagnostic message through the configured PduR and transport path.
  2. Identify the requested service and validate the request format and length.
  3. Check whether the service and sub-function are supported.
  4. Evaluate applicable diagnostic session, security and configured access conditions.
  5. Invoke the configured service-specific processing, such as a DID read callback or routine operation.
  6. Prepare a positive response or a negative response, according to the service outcome and diagnostic rules.
  7. Send the response through the configured PduR and transport path.
Rendering diagram...

This is a conceptual decision flow. The actual DCM state machine, timing, callbacks and response behavior are specified by the selected AUTOSAR release and project configuration.

4.3 Example: ReadDataByIdentifier (0x22)

Suppose a tester requests a vehicle identification number using a configured DID. A request might contain the service identifier 0x22 followed by a two-byte DID. The precise DID and returned data format are defined by the ECU diagnostic specification.

At a high level:

  • DCM identifies the ReadDataByIdentifier service.
  • DCM checks whether the requested DID is configured and readable in the current diagnostic conditions.
  • The configured data access mechanism obtains the DID value.
  • DCM builds the positive response with the service response identifier and DID data, or prepares an applicable negative response.

The data may come from an application callback, configured memory or another project-specific data source. Do not assume all DIDs are stored or retrieved in the same way.

4.4 Positive and negative responses

For many UDS services, a positive response service identifier is the request SID plus 0x40. For example, a positive response to service 0x22 uses 0x62.

A negative response uses the general format:

7F <request SID> <NRC>

The negative response code (NRC) helps identify why a request was not accepted or completed. Examples include:

  • 0x11 — ServiceNotSupported.
  • 0x12 — SubFunctionNotSupported.
  • 0x13 — IncorrectMessageLengthOrInvalidFormat.
  • 0x22 — ConditionsNotCorrect.
  • 0x31 — RequestOutOfRange.
  • 0x33 — SecurityAccessDenied.

These are examples, not a complete list. NRC availability and the conditions for returning them are governed by the applicable diagnostic specification and ECU implementation.

5. How COM, PduR and DCM fit together

AspectCOMPduRDCM
Primary responsibilitySignal-level communicationPDU routingDiagnostic communication
Main data focusSignals and I-PDUsConfigured PDUsUDS requests and responses
Typical upper-layer relationshipRTEMultiple BSW modulesDiagnostic tester / diagnostic application interfaces
Interprets signal engineering valuesYes, according to configurationNo, not its routing purposeNo, not its primary purpose
Interprets UDS service identifiersNoNoYes
Typical CAN pathCOM → PduR → CanIfRoutes configured PDUDCM ↔ PduR ↔ CanTp

A practical distinction:

  • If a periodic vehicle-speed signal is wrong, start with the application/RTE/COM mapping and follow the transmit or receive path.
  • If a PDU is not reaching its configured destination, inspect PduR routing and the connected module interfaces.
  • If a diagnostic request reaches DCM but is rejected, inspect DCM service configuration, session/security conditions and service-specific processing.

6. CAN-based UDS path: where CanTp fits

For diagnostic communication over CAN, ISO-TP transport functionality is commonly provided by AUTOSAR CanTp. It handles transport-protocol functions such as segmentation and reassembly when a diagnostic message cannot be carried in one CAN frame.

A typical receive path is:

CAN bus → CanIf → CanTp → PduR → DCM

A typical response path follows the configured transmit direction:

DCM → PduR → CanTp → CanIf → CAN bus

The exact PDU names, interface APIs and confirmation/indication sequence depend on the ECU's configuration. PduR performs routing; CanTp handles the transport protocol; DCM handles the UDS service.

Rendering diagram...

This diagram deliberately omits some lower-layer callbacks and timing details. Consult the configured CanTp and DCM specifications for the exact behavior.

7. Practical debugging workflow

Debug from the observed boundary rather than changing several modules at once. Capture the same transaction at the application, BSW and bus levels wherever possible.

Case A: application value changes, but no CAN frame appears

Check in this order:

  1. Confirm that the SWC data element is updated with the expected value.
  2. Verify the RTE mapping and generated access API.
  3. Check COM signal-to-I-PDU mapping and the configured I-PDU length.
  4. Check the COM transmission mode, trigger conditions, minimum delay and repetition settings.
  5. Verify that the expected PduR route is configured and enabled.
  6. Check CanIf transmit PDU mapping and controller/channel configuration.
  7. Inspect driver/controller state and bus-level transmission.

Useful evidence: SWC/RTE trace, COM runtime observation, PduR route configuration, CanIf transmit trace and CAN bus capture.

Case B: CAN frame appears, but the decoded signal is wrong

Check:

  • Start bit and signal length.
  • Byte order / endianness.
  • Signed or unsigned representation.
  • Scaling and offset.
  • I-PDU length and payload alignment.
  • Network database version versus generated COM configuration.
  • Whether the correct frame ID and channel are being observed.

Compare raw payload bytes first. Then decode them using the exact network description used to generate the ECU configuration.

Case C: tester sends a request, but DCM does not process it

For a CAN diagnostic path, verify:

  1. The tester uses the expected request addressing and CAN identifiers.
  2. CanIf receives the expected frame on the correct controller/channel.
  3. CanTp accepts the frame and completes any required reassembly.
  4. The configured PduR route delivers the diagnostic N-SDU to DCM.
  5. DCM has the expected receive PDU and diagnostic connection configuration.

Useful evidence: bus trace, CanIf Rx indication, CanTp reception/reassembly trace, PduR routing configuration and DCM receive trace.

Case D: DCM receives the request but returns a negative response

Inspect the response SID and NRC, then check:

  • Is the service and sub-function supported?
  • Is the request length and format correct?
  • Is the ECU in a permitted diagnostic session?
  • Is the required security level unlocked?
  • Is the DID, routine or memory range configured?
  • Are application preconditions satisfied?
  • What status did the configured callback or operation return?

Do not treat every NRC as a transport failure. A negative response often indicates that the request reached diagnostic processing but failed a service-level validation or condition.

Case E: DCM prepares a response, but the tester does not receive it

Trace the transmit path:

  1. DCM response generation and transmit request.
  2. PduR route and destination PDU.
  3. CanTp transmit state, buffer availability and segmentation.
  4. CanIf transmit request and confirmation.
  5. CAN controller state and bus-level transmission.

Check whether the response is delayed, rejected, blocked by a busy transport state or never requested from the lower layer.

8. Configuration review checklist

Use this as a review aid when inspecting an ECU configuration. Names and exact parameters vary by toolchain and AUTOSAR release.

AreaReview questions
RTE / SWCIs the correct sender-receiver data element connected to the expected COM signal?
COMAre signal bit layout, data type, initial value, update behavior and timeout settings correct?
COM I-PDUIs the I-PDU length and transmission mode correct? Are trigger conditions configured?
PduRDoes the source PDU map to the intended destination PDU and module?
CanIfAre the transmit/receive PDU mappings, CAN IDs, controller and channel correct?
CanTpAre addressing, receive/transmit N-PDUs, buffers and transport timing configured for the diagnostic path?
DCMAre diagnostic connections, services, DIDs, sessions, security and callbacks configured?
IntegrationDo generated configuration, network database and diagnostic specification refer to consistent identifiers and layouts?

9. Common misconceptions

  • “COM and PduR perform the same function.” COM handles configured signal processing; PduR routes configured PDUs.
  • “PduR decodes vehicle speed.” PduR routes the PDU. COM handles the configured signal representation.
  • “DCM sends CAN frames directly.” DCM processes diagnostic services. Lower communication and transport modules handle network transmission.
  • “CanTp interprets UDS services.” CanTp handles transport-protocol behavior; DCM interprets diagnostic services.
  • “Every ECU uses the same routing path.” The actual path depends on network type, transport binding, ECU configuration and AUTOSAR release.
  • “A negative response means the CAN communication failed.” The request may have reached DCM successfully and been rejected for a diagnostic-service reason.

10. Verification test scenarios

The following are example test ideas. Expected results must be taken from the ECU requirements, diagnostic specification and selected AUTOSAR configuration.

TestStimulusWhat to verify
COM transmitUpdate a configured SWC signalCorrect raw payload and expected transmission behavior
COM receiveInject a valid I-PDUCorrect signal value becomes available to the receiver
COM timeoutStop a configured periodic messageConfigured timeout and invalid/replacement behavior
PduR routeExercise a configured source PDUData reaches the intended destination module
UDS supported serviceSend a valid request in an allowed sessionExpected positive response and data
UDS unsupported serviceSend an unsupported SIDApplicable configured negative response
UDS session conditionRequest a service in a disallowed sessionCorrect session-related behavior
UDS security conditionRequest a protected operation while lockedCorrect security-related behavior
Multi-frame diagnosticSend a diagnostic payload requiring segmentationCanTp reassembly and DCM delivery are correct
Diagnostic response pathTrigger a response requiring segmentationResponse is segmented and transmitted as expected

For each test, record the tester request, raw bus trace, ECU response, relevant module trace and pass/fail criterion. Avoid hard-coding timing limits without checking the project requirements.

11. Interview questions and answers

1. What is the main responsibility of AUTOSAR COM?
COM provides signal-oriented communication by packing configured signals into I-PDUs and unpacking received I-PDUs.

2. What does PduR do?
PduR routes configured PDUs between communication modules according to the generated routing configuration.

3. Does PduR decode signals?
No. Signal interpretation is handled by modules such as COM. PduR's purpose is PDU routing.

4. What is DCM responsible for?
DCM manages diagnostic communication and processes diagnostic services such as UDS requests.

5. What is the role of CanTp in CAN diagnostics?
CanTp provides transport-protocol handling, including segmentation and reassembly when required. It does not interpret UDS service semantics.

6. What is the typical CAN diagnostic receive path to DCM?
A common path is CanIf → CanTp → PduR → DCM, subject to the ECU's configured architecture.

7. What would you check if a signal is visible in the SWC but not on the bus?
Check RTE mapping, COM signal/I-PDU configuration, transmission trigger and mode, PduR route, CanIf mapping and lower-layer controller status.

8. What would you check if DCM returns an NRC?
Inspect the NRC, service and request format, diagnostic session, security level, DID/routine configuration, preconditions and callback result.

9. How are COM and DCM different?
COM handles signal-level communication; DCM handles diagnostic service requests and responses.

10. Why is the AUTOSAR release important during configuration?
Module specifications, configuration parameters, interfaces and supported behaviors can vary between releases and supplier implementations.

12. Key takeaways

  • COM handles configured signal-level communication and I-PDU packing/unpacking.
  • PduR routes configured PDUs between BSW modules.
  • DCM processes diagnostic services and prepares UDS responses.
  • CanTp handles transport-protocol functions for CAN diagnostics, including segmentation and reassembly when required.
  • Signal communication and diagnostic communication may share lower network infrastructure, but their upper-layer responsibilities are different.
  • Effective debugging follows the complete configured path and uses evidence from each module boundary.

Related AUTOSAR topics

References and release guidance

AUTOSAR specifications are release-specific. A production project may use an earlier release or a supplier-supported baseline. Use the release, module specifications, schema and toolchain agreed for the ECU project; do not assume an example from one release is directly portable to another.

Engineering note: This article explains architecture and typical integration paths. Exact module behavior, configuration parameters, generated interfaces and supported combinations must be checked against the project's selected AUTOSAR release and the supplier's implementation documentation.