Blog · 2026-11-10

Sniffing the CANbus on an Audi A5

Stefan Bogdanescu

Founder & Senior Architect

Sniffing the CANbus on an Audi A5

Capturing traffic from a vehicle's Controller Area Network (CANbus) requires more than just plugging a USB-to-CAN adapter into your laptop. The hardware might light up, but that green LED only indicates power and basic device enumeration; it does not guarantee that the adapter is electrically coupled to a live network or configured for the specific protocol stack of the vehicle.

When attempting to interface with an Audi A5 via the OBDII port, the most common failure point is the baud rate configuration. Automotive CAN networks operate on a strict timing schedule defined by ISO 11898-2 and ISO 11898-3. While some generic adapters default to 500 kbps (500,000 bps), this setting is almost certainly incorrect for an Audi.

Audi, along with its Volkswagen Group partners, historically utilized a CAN bus speed of 500 kbps for high-speed communication in later models, but many earlier systems, including various modules within the A5 platform, rely on the legacy 125 kbps standard (often referred to as FlexRay or specific LIN-to-CAN bridges). However, the critical distinction lies in the physical layer implementation. Many modern Audi vehicles utilize a high-speed CAN at 500 kbps for engine and transmission data, but the OBDII port itself often acts as a gateway that may not pass high-speed frames correctly without specific pin configurations or voltage level shifting.

If you are running your sniffer on Linux with the usb2can device recognized (often appearing as /dev/ttyUSB0), the lack of traffic suggests a mismatch between the adapter's clock speed and the vehicle's network. Setting the bit rate to 500,000 on the adapter while the car is transmitting at 125,000 will result in complete silence. The receiver logic in your software stack expects frames spaced out according to the 500kbps timing, but it is physically receiving pulses spaced for 125kbps. This desynchronization causes the parser to drop every single frame as invalid or corrupted.

To verify the actual speed without a vendor-specific tool like Kayak (which often requires expensive licenses or specific dongles), you can use cansniffer with a raw capture mode. If your adapter supports changing speeds via socanfd or similar utilities, try switching to 125 kbps immediately.

# Example of setting the bitrate on a Linux system using socanfd (if supported by hardware)
sudo socanfd -f /dev/ttyUSB0 -b 125000

Once the rate is adjusted, capture traffic to inspect the raw hex dump:

sudo cansniffer -i /dev/ttyUSB0 -d 125000 > can_capture.hex

If you still see nothing after switching to 125 kbps, the issue may be electrical rather than logical. The OBDII port on an Audi A5 is not a direct tap into the main CAN bus; it is often isolated or filtered. You must ensure your adapter's pins are correctly wired to the OBDII pins:

  • Pin 6 (CAN High)
  • Pin 14 (CAN Low)

If these pins are missing from the cable you ordered, the device simply has no path to the network. Additionally, check for termination resistors. Some USB adapters include built-in 60Ω terminators on the CAN H and CAN L lines. If your vehicle's OBDII port already contains internal termination (which many do), adding a second set of terminators can cause signal reflections that corrupt the data stream.

You should also consider voltage levels. Automotive CAN uses 12V logic, whereas USB operates at 5V. While standard ISO-TP or J1939 gateways handle this translation automatically, generic USB-CAN adapters sometimes require external level shifting if they are not designed specifically for automotive OBDII standards. If the adapter is a consumer-grade "USB2CAN" unit without an explicit OBDII isolation chip, it may not be able to read the differential signals correctly from the car's OBDII port.

Before assuming hardware failure, validate that the vehicle's battery is stable and the ignition is on (position 2 or 3). Most CAN modules in an Audi A5 will not broadcast traffic until the engine control unit (ECU) or gateway module has completed its self-check routine. If the network is truly silent at 125 kbps, try toggling the ignition off and on again while monitoring the adapter; sometimes a specific ECU handshake triggers the bus activity.

For developers needing to analyze this data further, consider building a simple Python script using python-can to parse the raw frames once they are successfully captured:

from can import Interface, BusState
import can

bus = Interface(interface='socketcan', channel='can0') # Adjust based on your adapter interface
# Or use serial if using ttyUSB directly with socanfd
# bus = Interface(interface='serial', channel='/dev/ttyUSB0', bitrate=125000)

try:
    bus.is_active = True
except can.CanInterfaceError as e:
    print(f"Interface error: {e}")

for frame in bus:
    print(f"Frame ID: 0x{frame.arbitration_id:03X}, Data: {frame.data.hex()}")

Remember that the specific implementation of the Audi Gateway module dictates what data is available over the OBDII port. Some manufacturers encrypt or filter CAN frames at the gateway level, meaning you might see bus activity but no meaningful diagnostic messages. If you require deep ECU access beyond what the public OBDII spec allows, a dedicated automotive programmer (like an Autel or Launch tool) is often required to bypass these security layers, as generic sniffers cannot negotiate encrypted IDs without the manufacturer's private keys.