

Kwp1281tool
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
6ATMEGA1284-PU
PDIP-401.8V~5.5V 10bit 128KB 20MHz 32 4KB AVR FLASH PDIP-40 Microcontrollers (MCU/MPU/SOC) ROHSMicrochip TechnologyMicrocontrollers (MCU/MPU/SOC)FT232RL
SSOP-28-208mil-40℃~+85℃ 3.3V~5.25V、4V~5.25V USB 2.0 USB to UART SSOP-28-208mil USB Converters ROHSFTDIUSB ConvertersL9637D
SOP-8SOP-8 Interface - Specialized ROHSSTMicroelectronicsInterface - Specialized74LS257PC
DIP-160℃~+70℃ 12mA 2.6mA 24mA 27ns@5V,150pF 4.75V~5.25V 74LS Output enable high-impedance、Tri-state output DIP-16 Signal Switches, Multiplexers, DecodersTexas InstrumentsSignal Switches, Multiplexers, DecodersISO6721BQDRQ1
SOIC-8-40℃~+125℃ 11ns 150kV/us 2 2 2.25V~5.5V 2.25V~5.5V 3000 50Mbps High Level SOIC-8 Digital Isolators ROHSTexas InstrumentsDigital Isolators1206L150/8V
1206UncategorisedYTL
README
README.mdVW Radios

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
Parts
33| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 0.1uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C2, C6, C8, C9 |
| 3 | 10K | Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal | R2, R3, R4 |
| 2 | 0.1uF | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C7, C11 |
| 2 | 10μF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C3, C10 |
| 2 | 18pF | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C4, C5 |
| 1 | 0.1μF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C1 |
| 1 | 1206L150 | Fuse:Fuse_1206_3216Metric_Pad1.42x1.75mm_HandSolder | F1 |
| 1 | 18.432 MHz | Crystal:Crystal_HC49-4H_Vertical | Y1 |
| 1 | 1N4148 | Diode_THT:D_DO-35_SOD27_P7.62mm_Horizontal | D1 |
| 1 | 510 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P15.24mm_Horizontal | R1 |
| 1 | 74LS257 | Package_DIP:DIP-16_W7.62mm | U6 |
| 1 | ATmega1284-P | Package_DIP:DIP-40_W15.24mm | U3 |
| 1 | AVR-JTAG-10 | kwp1281tool:avr_jtag | J1 |
| 1 | BZX84-A15,215 | Package_TO_SOT_SMD:SOT-23 | D2 |
| 1 | Conn_01x04_Male | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Horizontal | J3 |
| 1 | FT232RL | Package_SO:SSOP-28_5.3x10.2mm_P0.65mm | U5 |
| 1 | ISO6721BQDRQ1 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U4 |
| 1 | L9637D | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U1 |
| 1 | LD1117S50CTR | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U2 |
| 1 | SW_Omron_B3FS | Button_Switch_THT:SW_TH_Tactile_Omron_B3F-10xx | SW1 |
| 1 | USB_B | Connector_USB:USB_B_OST_USB-B1HSxx_Horizontal | J2 |
The 29 most common of 33 parts.
Similar boards
- 4 layers138.2 × 200.4 mm

- 6 layers76.8 × 160.6 mm

- 2 layers186.7 × 133.4 mm

- 2 layers115.2 × 78.6 mm

- 2 layers35.6 × 40.6 mm

- 2 layers

- 2 layers65 × 53 mm

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 mm

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).