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.
| Object | Meaning | Example |
|---|---|---|
| Signal | A configured item of application/network data | Vehicle speed |
| I-PDU | An Interaction Layer PDU containing configured signals or signal groups | A periodic vehicle-status PDU |
| N-SDU | A Network-layer service data unit exchanged at the transport-protocol boundary | Diagnostic payload passed between DCM and CanTp through configured routing |
| CAN frame | A data-link-layer frame transmitted on the CAN bus | An 8-byte or CAN FD data frame |
| UDS message | A diagnostic service request or response | 22 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
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.
- The application SWC updates its vehicle-speed data element.
- The RTE exposes the configured data to COM through the generated communication mapping.
- COM reads the signal value and places it in the configured bit positions of the transmit I-PDU.
- The configured transmission condition is met, for example a periodic deadline or an application-triggered update.
- COM requests I-PDU transmission through PduR.
- PduR routes the I-PDU to the configured lower-layer module, commonly CanIf for a CAN path.
- CanIf and the CAN driver handle the configured transmit PDU and controller interaction.
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:
- The CAN controller receives a frame.
- The CAN driver and CanIf provide the received I-PDU to the upper communication path.
- PduR routes the I-PDU to COM.
- COM extracts configured signals using the configured bit positions, lengths and byte order.
- 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 concept | What to verify |
|---|---|
| Signal bit position and size | Start bit, length and placement in the I-PDU |
| Byte order and data type | Endianness, signedness and value representation |
| Initial / invalid value | Configured behavior before valid reception or when data is invalid |
| Update bit | Whether the receiver can identify a newly updated signal |
| I-PDU length | Configured payload length and consistency with the network description |
| Transmission mode | Periodic, direct, mixed or other configured behavior |
| Reception timeout | Timeout threshold and configured reaction |
| Tx trigger conditions | What 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:
- The source PDU and the module that provides it.
- The destination PDU and receiving module.
- Whether the path is transmit or receive from the perspective of the module being inspected.
- The configured routing path and any gateway or fan-out behavior used by the ECU.
- Buffering, queueing or routing-path options where supported and configured.
- 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
| SID | Service | Typical purpose |
|---|---|---|
0x10 | DiagnosticSessionControl | Switch diagnostic session |
0x11 | ECUReset | Request a configured ECU reset |
0x14 | ClearDiagnosticInformation | Clear selected diagnostic information |
0x19 | ReadDTCInformation | Read diagnostic trouble-code information |
0x22 | ReadDataByIdentifier | Read configured DID data |
0x27 | SecurityAccess | Perform a configured security access sequence |
0x28 | CommunicationControl | Control selected communication behavior |
0x2E | WriteDataByIdentifier | Write configured DID data |
0x31 | RoutineControl | Start, stop or request results of a configured routine |
0x34 | RequestDownload | Initiate a supported download sequence |
0x36 | TransferData | Transfer a data block |
0x37 | RequestTransferExit | End 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:
- Receive the diagnostic message through the configured PduR and transport path.
- Identify the requested service and validate the request format and length.
- Check whether the service and sub-function are supported.
- Evaluate applicable diagnostic session, security and configured access conditions.
- Invoke the configured service-specific processing, such as a DID read callback or routine operation.
- Prepare a positive response or a negative response, according to the service outcome and diagnostic rules.
- Send the response through the configured PduR and transport path.
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
ReadDataByIdentifierservice. - 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
| Aspect | COM | PduR | DCM |
|---|---|---|---|
| Primary responsibility | Signal-level communication | PDU routing | Diagnostic communication |
| Main data focus | Signals and I-PDUs | Configured PDUs | UDS requests and responses |
| Typical upper-layer relationship | RTE | Multiple BSW modules | Diagnostic tester / diagnostic application interfaces |
| Interprets signal engineering values | Yes, according to configuration | No, not its routing purpose | No, not its primary purpose |
| Interprets UDS service identifiers | No | No | Yes |
| Typical CAN path | COM → PduR → CanIf | Routes configured PDU | DCM ↔ 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.
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:
- Confirm that the SWC data element is updated with the expected value.
- Verify the RTE mapping and generated access API.
- Check COM signal-to-I-PDU mapping and the configured I-PDU length.
- Check the COM transmission mode, trigger conditions, minimum delay and repetition settings.
- Verify that the expected PduR route is configured and enabled.
- Check CanIf transmit PDU mapping and controller/channel configuration.
- 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:
- The tester uses the expected request addressing and CAN identifiers.
- CanIf receives the expected frame on the correct controller/channel.
- CanTp accepts the frame and completes any required reassembly.
- The configured PduR route delivers the diagnostic N-SDU to DCM.
- 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:
- DCM response generation and transmit request.
- PduR route and destination PDU.
- CanTp transmit state, buffer availability and segmentation.
- CanIf transmit request and confirmation.
- 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.
| Area | Review questions |
|---|---|
| RTE / SWC | Is the correct sender-receiver data element connected to the expected COM signal? |
| COM | Are signal bit layout, data type, initial value, update behavior and timeout settings correct? |
| COM I-PDU | Is the I-PDU length and transmission mode correct? Are trigger conditions configured? |
| PduR | Does the source PDU map to the intended destination PDU and module? |
| CanIf | Are the transmit/receive PDU mappings, CAN IDs, controller and channel correct? |
| CanTp | Are addressing, receive/transmit N-PDUs, buffers and transport timing configured for the diagnostic path? |
| DCM | Are diagnostic connections, services, DIDs, sessions, security and callbacks configured? |
| Integration | Do 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.
| Test | Stimulus | What to verify |
|---|---|---|
| COM transmit | Update a configured SWC signal | Correct raw payload and expected transmission behavior |
| COM receive | Inject a valid I-PDU | Correct signal value becomes available to the receiver |
| COM timeout | Stop a configured periodic message | Configured timeout and invalid/replacement behavior |
| PduR route | Exercise a configured source PDU | Data reaches the intended destination module |
| UDS supported service | Send a valid request in an allowed session | Expected positive response and data |
| UDS unsupported service | Send an unsupported SID | Applicable configured negative response |
| UDS session condition | Request a service in a disallowed session | Correct session-related behavior |
| UDS security condition | Request a protected operation while locked | Correct security-related behavior |
| Multi-frame diagnostic | Send a diagnostic payload requiring segmentation | CanTp reassembly and DCM delivery are correct |
| Diagnostic response path | Trigger a response requiring segmentation | Response 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
- AUTOSAR BSW, RTE and MCAL Explained
- AUTOSAR Configuration Explained
- Classic vs Adaptive AUTOSAR: Architecture, Execution Models and Engineering Differences
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.
- AUTOSAR Classic Platform — architecture and releases
- AUTOSAR Adaptive Platform — architecture and releases
- AUTOSAR standards overview
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.
