CAN Analysis Tools & Debugging

Module 5: CAN FD & Advanced Topics30 min

CAN Analysis Tools & Debugging

Essential CAN Tools

ToolVendorCostBest For
CANalyzerVector~€3,000+Professional bus analysis, industry standard
CANoeVector~€6,000+Full simulation + analysis + CAPL scripting
PCAN-ViewPEAK-SystemFree (with ~€250 hardware)Budget-friendly monitoring
BusMasterRBEI (open source)FreeOpen-source with scripting
SavvyCANOpen sourceFreeCross-platform, reverse engineering
python-canOpen sourceFreePython scripting and automation

Reading a CAN Trace (.asc format)

0.000000 1  100     Rx   d 8 1A 2B 00 00 00 00 00 00

0.010000 1 120 Rx d 4 05 32 A0 00

0.020000 1 380 Rx d 2 0F 03

FieldValueMeaning
Timestamp0.000000Seconds since trace start
Channel1CAN bus channel
ID100Message identifier (hex)
DirectionRxReceived by logger
TypedData frame
DLC8Data length code
Data1A 2B 00...Payload bytes (hex)

Systematic Debugging Approach

1. Physical layer first: Measure termination (should be 60Ω). Probe CAN_H/CAN_L with oscilloscope.

2. Check for error frames: Filter trace for errors. Continuous errors = physical fault.

3. Check TEC/REC counters: Climbing TEC = local transmit problem. Climbing REC = incoming traffic issues.

4. Check bus load: Above 70%, latency increases and lower-priority messages miss deadlines.

5. Compare against DBC: Decode raw data. Verify signal values make physical sense.

Exercise: Connect a PCAN adapter or ELM327 to your vehicle's OBD-II port. Capture 30 seconds of traffic. Count unique message IDs, find the most frequent one, and check for error frames.