Skip to the content
2 layers80.1 × 56.9 mmKwp1281tool, the printed circuit board in 3D

Reverse engineering Volkswagen car radios

Size
80.1 × 56.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
33
Nets
71
Pads
171
Tracks, vias
421, 17
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
27 Mar 2018
Updated
24 May 2026

Overview

Kwp1281tool is an open-source printed circuit board by mnaberez, from the mnaberez/vwradio repository on GitHub, published under the BSD-3-Clause licence. It is a 2-layer board of 80.1 × 56.9 mm with 33 parts on 71 nets, routed with 421 tracks and 17 vias.

It is built around the ATMEGA1284-PU, FT232RL and L9637D, with the 74LS257PC, ISO6721BQDRQ1 and 1206L150/8V among its other parts. Its parts include 11 capacitors, 6 ICs, 4 resistors, 3 connectors and 2 diodes. It belongs with the radio and wireless boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

6

README

README.md

VW Radios

Photo

This repository is all about reverse engineering older Volkswagen car radios, like the Premium 5 radio shown above. The radios studied here are over fifteen years old and are the single-DIN size. Despite their age, they are intelligent and support on-board diagnostics (using VW's KWP1281 protocol on the K-line). You'll find notes about protocols and hardware here, along with partial disassembles of firmware, but no original binaries of firmware or EEPROMs.

VW radios from this era require a four digit security code often referred to as the "SAFE code". The radios usually store the SAFE code in a serial EEPROM like a 93C46 or a 24C04. The SAFE code can be found by opening up the radio, desoldering the EEPROM, reading it, and then soldering the EEPROM back in. I wanted to know if there was an easier way.

I disassembled the firmware for these radios: Premium 4 (Clarion), Premium 5 (Delco), Gamma 5 (TechniSat), and Rhapsody (TechniSat). I found that all of them have backdoors to read the SAFE code via on-board diagnostics. Reading the code this way means the radio does not need to be opened and may not even need to be removed from the car. Since this information is not published anywhere and I couldn't find any tool that could do it, I built my own tool.

Projects

  • kwp1281_tool: Diagnostics protocol tool (Volkswagen KWP1281). It can send arbitrary commands to a radio, or any other module, using the KWP1281 protocol. It can also send commands using a proprietary protocol found in TechniSat radios. Finally, it can automatically retrieve the SAFE code for any of the radios listed above.

  • faceplate_emulator: Faceplate emulator (NEC µPD16432B). It plugs into the Premium 4 radio in place of the faceplate and allows the radio to be controlled over serial. It can also simultaneously control a real faceplate.

  • tape_emulator: Cassette tape emulator (Philips TDA3612). It plugs into the Premium 4 radio in place of the SCA4.4/TDA3612 cassette tape assembly and fools the radio into thinking a tape is playing.

  • volume_monitor: Volume monitor (Mitsubishi M62419FP). It connects in parallel with the M62419FP sound controller used in the Premium 4 radio and sends updates over serial whenever the sound registers are changed.

  • reverse_engineering: Notes about the radios from reverse engineering, including commented disassembly listings of radio firmware. This repository does not contain any original firmware or EEPROM binaries.

Discoveries

Here are some of the more interesting discoveries I made about the radios:

  • All of the radios studied support a common set of KWP1281 diagnostics functions on the normal radio address of 0x56. Some radios (not all) also have protected KWP1281 commands on this same address. The protected commands available vary by model but may include the ability to read the microcontroller's ROM or RAM, and to read/write serial EEPROM(s). Accessing the protected commands requires sending a login block based on the SAFE code and also performing a group reading of a hidden group.

  • VW Premium 4 (Clarion) has an unprotected KWP1281 command 0xF0 that returns the SAFE code. It also contains a hidden mode where the SAFE code can be changed via the faceplate. Entering this mode requires pressing keys that do not exist on the faceplate. I assume there was a special manufacturing faceplate used by the factory.

  • VW Premium 5 (Delco) and Seat Liceo (Delco) respond to a different set of KWP1281 commands on address 0x7C. These commands require authentication using a hardcoded login block. Once authenticated, commands are available to read and write the EEPROM, which can be used to retrieve the SAFE code.

  • VW Gamma 5 (TechniSat) and Rhapsody (TechniSat) have a proprietary, non-KWP protocol on address 0x7C. It is unlike anything that I have found documented and was likely made by TechniSat just for manufacturing of the radio. It has commands to read and write the EEPROM, which can be used to retrieve the SAFE code. The SAFE code area of the EEPROM is normally filtered from these commands, but another command disables the filtering.

Spin-offs

I also developed several other projects as a side effect of this work:

  • premium5: VW Premium 5 car radio emulator and debugger with a web-based interface

  • k0emu: NEC 78K0 instruction set emulator with cycle counting and peripheral device support

  • k0dasm: NEC 78K0 disassembler that generates output compatible with the as78k0 assember

  • f2mc8dump: Exploit to dump the internal ROM of Fujitsu F2MC-8L microcontrollers with external bus

  • f2mc8dasm: Fujitsu F2MC-8 disassembler that generates output compatible with the asf2mc8 assembler

  • m740dasm: Mitsubishi 740 disassembler that generates output compatible with the as740 assembler

Author

Mike Naberezny

Parts

33
QtyValueFootprintReferences
40.1uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC2, C6, C8, C9
310KResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR2, R3, R4
20.1uFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC7, C11
210μFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC3, C10
218pFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC4, C5
10.1μFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1
11206L150Fuse:Fuse_1206_3216Metric_Pad1.42x1.75mm_HandSolderF1
118.432 MHzCrystal:Crystal_HC49-4H_VerticalY1
11N4148Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD1
1510Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P15.24mm_HorizontalR1
174LS257Package_DIP:DIP-16_W7.62mmU6
1ATmega1284-PPackage_DIP:DIP-40_W15.24mmU3
1AVR-JTAG-10kwp1281tool:avr_jtagJ1
1BZX84-A15,215Package_TO_SOT_SMD:SOT-23D2
1Conn_01x04_MaleConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_HorizontalJ3
1FT232RLPackage_SO:SSOP-28_5.3x10.2mm_P0.65mmU5
1ISO6721BQDRQ1Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU4
1L9637DPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU1
1LD1117S50CTRPackage_TO_SOT_SMD:SOT-223-3_TabPin2U2
1SW_Omron_B3FSButton_Switch_THT:SW_TH_Tactile_Omron_B3F-10xxSW1
1USB_BConnector_USB:USB_B_OST_USB-B1HSxx_HorizontalJ2

The 29 most common of 33 parts.

Similar boards

  • 4 layers138.2 × 200.4 mmHV servo drive v1, the printed circuit board in 3D

    HV servo drive v1

    ExcessiveMotion/drive-hardware

    383 parts175CERN-OHL-W-2.0
  • 6 layers76.8 × 160.6 mmScopefun v3, the printed circuit board in 3D

    Scopefun v3

    J1DDERY/data_sampling

    405 parts
  • 2 layers186.7 × 133.4 mmNYCDB-01, the printed circuit board in 3D

    NYCDB-01

    mfkiwl/headphones-xc6slx9

    The audio nerd's headphones

    318 partsGPL-3.0
  • 2 layers115.2 × 78.6 mmL0destar, the printed circuit board in 3D

    L0destar

    m4rkw/l0destar

    l0destar open-source tracker project

    164 parts43
  • 2 layers35.6 × 40.6 mmLotusABSTool, the printed circuit board in 3D

    LotusABSTool

    cloudn1ne/LotusABS

    Play with the EBC430 ECU for Lotus

    13 parts10
  • 2 layersSTM32CAN, the printed circuit board in 3D

    STM32CAN

    witoldo7/STM32CAN

    Trionic 5, 7, 8 flasher interface.

    50 parts5Apache-2.0
  • 2 layers65 × 53 mmKline l9637d, the printed circuit board in 3D

    Kline l9637d

    quangvd917/ab125-kline

    Bản mới của kline-l9637d: C3 SuperMini cắm thẳng lên mạch qua rào cái, không còn giắc J2. PCB một mặt, kích thước 70 × 38 mm, để tự làm. Firmware dùng env c3supermini như cũ, không phải sửa.

    23 parts2
  • 2 layers106 × 95.4 mmHardmpu wt, the printed circuit board in 3D

    Hardmpu wt

    PickledDog/hardmpu-wt

    HardMPU with wavetable module support

    50 parts30Apache-2.0

Questions

How big is the Kwp1281tool PCB?

It measures 80.1 × 56.9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Kwp1281tool use?

33 parts, built around the ATMEGA1284-PU, FT232RL, L9637D and 74LS257PC. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Kwp1281tool KiCad files?

From the mnaberez/vwradio repository on GitHub, at the commit this page was made from: the board is kwp1281_tool/hardware/kicad/kwp1281tool/kwp1281tool.kicad_pcb and its schematic kwp1281_tool/hardware/kicad/kwp1281tool/kwp1281tool.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Kwp1281tool design in my own project?

Its repository publishes it under the BSD-3-Clause licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).