CAN troubleshooting

CAN gateway issue: messages missing, altered, or routed to the wrong network

A CAN gateway issue appears when an expected frame does not cross a network boundary, arrives with incorrect content, or is delivered on the wrong CAN network. This guide helps establish whether the fault is in the observed traffic, message definition, gateway routing, transport handling, or the underlying bus.

Start the diagnostic workflow

Observable symptoms

What the failure can look like

Possible causes

Boundaries worth checking first

01

Incorrect or incomplete gateway routing configuration

The route may be missing, assigned to the wrong destination network, filtered by message identifier, or enabled under conditions that are not active during the failure. This directly produces absent or misrouted destination traffic.

  • CAN
  • CAN-FD
  • PduR
02

Source or destination message definition mismatch

If the gateway or analysis uses an incorrect message identifier, payload length, signal layout, or scaling definition, a valid frame may appear missing or modified even when the underlying forwarding path is functioning.

  • CAN
  • CAN-FD
  • DBC
03

Incorrect AUTOSAR communication-layer mapping

A mismatch between COM, PduR, CanIf, CanTp, and the configured source or destination PDU can prevent the intended data from reaching the gateway route or can associate the route with the wrong lower-layer object. RTE is relevant only when the application fails to produce or consume the signal.

  • COM
  • PduR
  • CanTp
04

CAN or CAN-FD network compatibility mismatch

Differences in CAN versus CAN-FD operation, payload handling, or network configuration can prevent a frame from being accepted or transmitted across the gateway path.

  • CAN
  • CAN-FD
05

Transport-protocol handling failure

For segmented traffic, ISO-TP or CanTp addressing, flow control, or timing behavior can stop forwarding even when ordinary CAN frames cross the gateway correctly.

  • ISO-TP
  • CanTp
06

Physical or bus communication fault

Bus errors, missing source traffic, or a network that is not operating can make the gateway appear defective. The gateway cannot forward a frame that it does not receive or cannot transmit successfully.

  • CAN
  • CAN-FD

Ordered investigation

Diagnostic workflow

  1. 01

    Define the exact route and expected behavior

    Record the source network, destination network, expected message identifier, expected timing, expected payload behavior, and the condition under which forwarding should occur. This prevents a gateway fault from being inferred from an incomplete problem description.

    • CAN
    • CAN-FD
  2. 02

    Verify that the source frame exists

    Use a CAN dump or recording to confirm that the source network produces the expected frame during the failure. This rules out a source-node or test-condition problem but does not establish that the gateway received or routed the frame.

    • CAN
    • CAN-FD
    • CANoe
  3. 03

    Compare source and destination traffic

    Align captures by timestamp and compare identifiers, payload length, data bytes, and repetition period on both networks. This separates no-forwarding, altered-forwarding, wrong-network, and timing-related patterns.

    • CAN
    • CAN-FD
    • CANalyzer
  4. 04

    Validate the message interpretation

    Use the supplied DBC to check identifiers, payload lengths, signal positions, byte order, scaling, and network assignment. This rules out a decoding or database mismatch before software routing is changed.

    • DBC
    • CANoe
    • CANalyzer
  5. 05

    Check whether the traffic is ordinary CAN or segmented transport

    Determine whether the failing exchange consists of ordinary frames or ISO-TP segments. If only segmented traffic fails, narrow the investigation to addressing, flow control, timing, and CanTp behavior rather than the general message route.

    • CAN
    • ISO-TP
    • CanTp
  6. 06

    Trace the configured communication path

    Identify whether the route is signal based, direct I-PDU forwarding, or transport-protocol forwarding. Review the configured source and destination PDU IDs through PduR and the applicable COM, CanIf, or CanTp modules; inspect RTE only if application signal production or consumption is the failing boundary.

    • COM
    • PduR
    • CanTp
  7. 07

    Reproduce with controlled network activity

    Use CANoe or CANalyzer to replay or observe the relevant traffic and vary only the condition associated with the failure. If available, a Python analysis script can compare recordings consistently; this narrows timing and load-dependent behavior without proving a single root cause.

    • CANoe
    • CANalyzer
    • python-can

Verification gates

Technical checks

Source-frame presence

In the failing interval, count the expected source identifier and compare its observed period with the expected period from the problem description.

Expected

The source frame is present at the expected rate and with a stable payload length.

If failed

Investigate source-node behavior, test conditions, or the source CAN/CAN-FD network before changing gateway routing.

Destination-frame presence

Search the destination capture for the expected identifier during the same timestamp interval and verify the capture channel represents the intended destination network.

Expected

The destination frame appears on the intended network within the expected forwarding delay or cycle.

If failed

Check route configuration, destination network state, filtering, and whether the gateway received the source frame.

Raw payload comparison

Compare source and destination data bytes, payload length, and timestamp spacing before decoding signals.

Expected

Differences match the documented gateway behavior; otherwise the frame content and timing are preserved as expected.

If failed

Check message mapping, CAN versus CAN-FD handling, gateway transformation logic, and DBC interpretation.

DBC consistency

Compare the captured identifier, payload length, signal positions, scaling, and network assignment with the DBC used for analysis.

Expected

The DBC describes the observed frame and assigns it to the captured network correctly.

If failed

Correct the analysis database or obtain the applicable message definition before concluding that the gateway modifies the message.

Bus activity and error evidence

Review the recording around the failure for missing source traffic, abnormal repetition, or communication interruptions on either network.

Expected

Both networks remain active and the source and destination observations are stable during the comparison interval.

If failed

Investigate CAN or CAN-FD network operation and capture conditions; a gateway route cannot be confirmed while the bus evidence is incomplete.

Communication-layer mapping

Compare the configured PduR source and destination PDU IDs with the applicable COM, CanIf, or CanTp interfaces and their source and destination network assignments.

Expected

The same message path is consistently mapped from the source interface to the intended destination interface.

If failed

Review AUTOSAR communication configuration and software integration with the responsible software or integration owner.

From evidence to action

Resolution paths

Correct the gateway route or filter

If the source and destination evidence confirms a route defect, correct the message routing, destination assignment, filtering, or activation condition, then repeat the same source-to-destination comparison.

Align message definitions

If the traffic is correct but interpretation or mapping is not, align the DBC and gateway message definitions for identifier, payload length, signals, scaling, and network assignment. Re-run decoding before evaluating the result.

Fix communication-layer integration

If the PduR route or its COM, CanIf, CanTp, source-PDU, or destination-PDU mapping is inconsistent, correct the applicable configuration and integration artifacts, then verify both ordinary frames and any affected transport traffic.

Address CAN or CAN-FD compatibility

If the networks or gateway path disagree on CAN or CAN-FD behavior, align the applicable network and message configuration and confirm that the gateway accepts and transmits the expected frame type.

FAQ

Questions that shape the investigation

How can a missing destination message be distinguished from a missing source message?
Capture or inspect both networks over the same failure interval. If the source identifier is absent, the evidence does not yet implicate the gateway. If the source is present with the expected timing and the destination is not, routing, filtering, destination-network state, or communication-layer mapping becomes more relevant.
Why should raw CAN data be checked before decoded signals?
A DBC mismatch can make a valid frame appear to contain an incorrect signal or can assign it to the wrong network. Comparing identifier, payload length, data bytes, and timing first separates traffic behavior from interpretation errors.
Does successful forwarding of ordinary CAN frames rule out an ISO-TP problem?
No. It only shows that at least part of the ordinary frame path is functioning. Segmented communication can still fail because ISO-TP or CanTp addressing, flow control, or timing differs from the working path.
What evidence supports a routing configuration issue?
A controlled comparison showing a valid source frame, a stable source network, and no corresponding frame on the intended destination—or a frame on an unintended destination—supports investigating routing. It does not by itself prove whether the defect is in gateway configuration or the communication-layer mapping.
When is supplier or OEM involvement likely to be needed?
Involvement is likely when the required route, message definition, activation condition, or AUTOSAR communication mapping is not available locally, or when the gateway software must be changed and validated by the responsible integration owner. Provide synchronized recordings, the problem description, the DBC used, and the exact expected route.

Diagnostic support

Discuss a CAN Project

When the evidence points to a gateway configuration, communication mapping, or decoding boundary, an engineering analysis can turn synchronized recordings and definitions into a focused finding.