The round 20-pin plug under the bonnet: what each pin carries and the wire colour behind it. Useful when building or checking a K-line cable.
projekt36.com/wiring/diagnostic-connector/
The round 20-pin connector under the bonnet is where BMW testers (and K-line cables with a 20-pin adapter) talk to the control units. Pins 14, 19 and 16 give the tester battery, ground and ignition.
Most units share the TxD line on pin 20; RxD on pin 15 wakes them up. The four-cylinder DME has its own line on pin 17.
Redrawn from BMW ETM 0670.5 diagnostic link (05/99), standard petrol E36 (316i–328i); diesel and M3 parts are left out. Not covered: pins 5, 11 and 13 are not used; pins 2, 3 and 4 are the M3 CAN lines.
BMW labels every wire with its size and colour, for example 2.5 SW/GE: 2.5 mm², black (schwarz) with a yellow (gelb) stripe. Connectors are numbered X…, followed by the pin. The wires in these diagrams are drawn at relative thickness, so the 25 mm² battery cable stands out from a 0.35 mm² signal wire.
Codes used here: SW = black, RT = red, GN = green, BL = blue, GE = yellow, BR = brown, WS = white.