Tendai Bhebhe

What does a 2001 GSX-R1000 ECU tell its dashboard?

I put the engine control unit from a 2001–02 Suzuki GSX-R1000 on my bench with a 12 V adapter, an Arduino Uno and a multimeter, and spent two days working out what it says. It turned out to talk constantly, on one wire, to the dashboard. By the end I could read its fault codes and coolant reading without the bike.

The unit

The ECU is a Denso unit, Suzuki part 32920-40F30 (Denso 112100-0820), from the first-generation GSX-R1000, the K1 and K2. It has two connectors, 34 pins and 26 pins, numbered 1 to 60 in the service manual. The 2001 manual has a wiring diagram with every ECU terminal labelled, and that diagram became the map for everything that follows.

2001 Suzuki GSX-R100
2001 Suzuki GSX-R100 (source: Bennets Insurance)

On the bike, diagnostics on this model are crude. Ground a wire in the harness and the dashboard enters "dealer mode" and shows fault codes like c14 on its display. I wanted to see what the ECU was actually sending the dash.

The black ECU case with wires in both connectors, an Arduino Uno to the right and a multimeter to the left
The bench: ECU, Arduino Uno as a USB-serial bridge, and the multimeter that did most of the work.

The bench

Power goes in on pin 17 and ground on pin 35. I put a 10 Ω resistor in series with the supply, which does two jobs. It limits the current if something is wired wrong, and the voltage across it tells you what the ECU is drawing: volts divided by ten is amps.

12 V supply (+) ── 10 Ω ── ECU pin 17
12 V supply (−) ── ECU pin 35 ── Uno GND

The ECU draws about 190 mA, which puts 0.36 W into that resistor. I used ¼ W resistors.

For listening, I used the Uno as a plain USB-serial adapter. Jump its RESET pin to ground and the main chip stays asleep, so the USB chip on the board passes whatever arrives on pin 1 straight to the PC. No sketch needed. The labels are backwards in this mode: pin 1 is marked TX but carries data into the PC.

Looking in the wrong place

The manual shows four ECU pins, 29 to 32, with no wire in the bike's harness. Forum posts call them a factory port. I spent the first session on them: listening, then sending wake-up messages at every common baud rate. Nothing answered. Whatever they're for, they aren't for diagnostics on a running bike.

Finding the stream on pin 56

Pin 56 is labelled TECH in the manual and goes to the dashboard. My meter showed it flickering just under 5 V. A steady line doesn't flicker, so I connected it to the Uno through a 1 kΩ resistor and swept every baud rate from 300 to 115200.

Every rate caught a burst twice a second, and the bytes changed with the rate, which is what you'd expect when the baud rate is wrong. The useful measurement was the shortest pulse. At every rate it came out at 130–143 µs. One bit lasting about 128 µs means 7812.5 baud, an odd number that falls straight out of an 8 MHz clock divided by 1024. The Uno's USB chip accepts 7812 baud exactly, and at that rate the noise turned into the same eight bytes, every 500 ms:

FF C9 00 FC 40 00 00 FC

The bytes add up to 0x400, which is 0 mod 256. Every frame I captured afterwards did the same, so the last byte is a checksum that makes the frame sum to zero. That also confirmed the framing: 8 data bits, no parity, one stop bit.

Decoding it one input at a time

A bare ECU on a bench thinks every sensor has failed, because none is connected. That's useful. If a byte holds fault flags, it should be full of set bits, and giving one input a valid signal should clear exactly one of them.

Most of the sensors on this bike are 5 V sensors: the ECU supplies 5 V on pin 48, the sensor returns a voltage, and pin 54 is the sensor ground. I faked a sensor with two resistors:

pin 48 (5 V) ── 5.1 kΩ ──┬── 5.1 kΩ ── pin 54 (sensor ground)
                         │
                         └── sensor input under test (2.5 V)

2.5 V is a valid reading for every pressure and throttle sensor. I moved the junction from input to input and watched which bit cleared. Grounding pin 22, the dealer-mode wire, changed byte 2 from C9 to DD and nothing else. So the ECU sends its fault list all the time, and dealer mode only tells the dash to display it.

InputWhat I connectedChangeCode
Pin 51, coolant tempresistor to pin 54byte 4 FC → ECc15
Pin 50, intake air temp1 kΩ to pin 54byte 4 FC → DCc21
Pin 58, intake pressure2.5 Vbyte 4 FC → F8c13
Pin 49, throttle position2.5 Vbyte 4 FC → F4c14
Pin 52, atmospheric pressure2.5 Vbyte 4 FC → BCc22
Pin 59, tip-over sensor0.8 Vbyte 4 FC → 7Cc23
Pin 45, secondary throttle2.5 Vbyte 5 40 → 20c29
Pin 57, gear positionlinked to pin 54 (0 V)byte 3 00 → 04c31

Byte 4 follows the manual's order of codes exactly, with c13 at bit 2 up to c23 at bit 7. Bits 0 and 1 are almost certainly c11 and c12, the camshaft and crankshaft sensors, but those only set after four seconds of cranking without a signal. A five-second test on the starter input was too short to tell, and I never ran a longer one. When I gave the secondary throttle sensor a valid voltage, c29 cleared and a new bit appeared next to it. The manual explains why: with both the secondary throttle motor and its sensor missing, only c29 is shown. The new bit is probably c28, the motor.

The gear position input was the one that fooled me. I expected c31 to set when the input was open, but the ECU pulls it up to 5 V internally, and 5 V is a valid gear. It only faults at 0 V.

The temperature isn't a temperature

Byte 1 started at FF and moved when I put a resistor on the coolant input. The ECU doesn't send degrees. It sends the 10-bit voltage it reads on pin 51, with the top 8 bits in byte 1 and the bottom two in the top of byte 2. The dashboard does the conversion.

The coolant sensor is a thermistor between pin 51 and ground, and the ECU pulls the pin up to 5 V through a resistor. I fitted three metered resistors to work out its value:

Coolant raw value against sensor resistance: three measured points sitting on the 1.8 kΩ pull-up curve02565127681023300 Ω1 kΩ3 kΩ10 kΩ505 Ω measured: raw 226505 Ω → 2262160 Ω measured: raw 5592.16 kΩ → 5595040 Ω measured: raw 7545.04 kΩ → 754curve: 1023 × R / (R + 1796)Resistor from pin 51 to pin 54 (log scale)Raw value in the frame
Three measured resistors (dots) on the curve for a 1.8 kΩ pull-up to 5 V (line).
Resistor (metered)Raw valueResistance it impliesAbout
open1023–no reading
5.04 kΩ7545034 Ω3 °C
2.16 kΩ5592164 Ω23 °C
505 Ω226509 Ω64 °C

All three agree on a pull-up of about 1796 Ω, so sensor resistance = 1796 × raw ÷ (1023 − raw). The manual's resistance table for the sensor then turns that into a temperature.

The lowest bit of the reading flickers between neighbouring values, so byte 2 alternates between two values even when nothing changes. That's the red column in this capture, together with the checksum that follows it:

Terminal output of timestamped frames D9 9D 00 EC 40 00 00 5E alternating with D9 5D 00 EC 40 00 00 9E, all marked ok
Live frames with a resistor on the coolant input. Byte 2 flips between 9D and 5D as the lowest bit of the reading flickers; every checksum is ok.

One thing caught me out repeatedly: faults latch. Take a resistor off the coolant input for a second while swapping it, and c15 sets and stays set after the resistor goes back. Only a power cycle clears it, and it has to be a proper one. A quick off-and-on once failed to clear a fault; ten seconds off always worked.

The throttle mark

In dealer mode the dashboard also helps a mechanic set the throttle position sensor, by showing whether it's low, correct or high. Two more bits in byte 2 carry that. I stepped the voltage on the throttle input with different dividers:

Pin 49 voltageByte 2Mark
0.625–1.06 VDBlow
1.12 VDFcorrect
1.18 V and aboveDDhigh

The correct window is less than 0.12 V wide. I never pinned down its edges.

The whole frame

ByteContents
1Coolant sensor voltage, top 8 of 10 bits
2Bits 7–6: coolant, bottom 2 bits. Bit 4: dealer mode. Bits 2–1: throttle mark (dealer mode only). Bits 3 and 0: always set, meaning unknown
3Bit 2: c31 gear position. Rest always clear
4Bits 2–7: c13, c14, c15, c21, c22, c23. Bits 0–1: probably c11, c12
5Bit 6: c29. Bit 5: probably c28
6, 7Always 00
8Checksum: all eight bytes sum to 0 mod 256

Some inputs never show up in the stream at all: the clutch switch, the neutral switch, two straps in the harness, and the exhaust valve position sensor. The stream is about sensor faults, not switch states.

Leaving the laptop behind

Once I knew the format, I wrote a decoder twice. The Python version runs on the PC and prints the mode, coolant temperature and named fault codes whenever the frame changes. Then I put the same decoder on the Uno itself, listening on a software serial pin, and plugged the Uno into my phone with a USB terminal app.

Phone terminal showing the decoder output: frame FF DD 00 FC 40 00 00 E8, dealer mode on, coolant sensor open, throttle high, and seven named fault codes
The Uno decoding the stream on its own, read on a phone. A bare ECU reports every sensor it can't see.
Decoder output switching from DEALER MODE ON at 0 seconds to DEALER MODE OFF at 10 seconds
Toggling the dealer-mode wire by hand. Only byte 2 and the checksum change.

That's a pocket fault reader for a bike with no diagnostic connector. It doesn't need the bike's dashboard to work, which matters when the dashboard is the thing you suspect.

Both decoders, the capture scripts, the raw captures and my full bench notes are on GitHub: GSXR1000-K1-K2-ECU-Experiment.

How I killed it

The last test was the starter signal on pin 28, which is a 12 V input. I fed it 12 V through a 9.87 kΩ resistor, which limits the current to about a milliamp. During that work the 10 Ω supply resistors started burning, one after another.

I was tired. While swapping things around I picked up a second ECU, a K3 unit from a 2003 GSX-R1000, and connected it in place of the K1 without noticing. It worked, but differently: frames five times as fast, an extra fault bit, different voltages on a few pins. I spent most of a night recording what I thought was a damaged K1 changing behaviour. It was a healthy K3 behaving like a K3.

When I found the mix-up I went back to the real K1, and this time put a 12 V 5 W bulb (Yes it was a 2006 GSX-R600 mirror with a indicator) in the supply line instead of a resistor. A bulb can't burn out the way a small resistor does, and its brightness shows the current.

TestK1 nowHealthy
Pin 17 to ground, unpowered6.36 MΩmegohms
Pin 17, powered through the bulb6.51 Vabout 10 V
Pin 48, the 5 V sensor supply1.81 V4.94 V
Pin 48 to ground, unpowered2.3 Ω–

The 12 V input was fine. The 5 V sensor supply was shorted to ground inside the case, the same in both directions, so it wasn't a diode. The ECU's regulator was sitting in current limit trying to feed that short, which is why the unit drew enough to cook a ¼ W resistor. A shorted capacitor, the regulator, or a chip on the 5 V line had failed. My best guess is that 12 V reached a 5 V pin during the starter tests, through a probe or a divider on the wrong pin.

Finding the failed part would mean opening the case, feeding a volt into pin 48 from a current-limited supply, and feeling for the part that warms up. This case is a solid plastic shell with gel over the connectors, and I can't open it without wrecking it. So the K1 is retired.

What I'd tell someone trying this

  • Use a 2 W resistor or a filament bulb in the supply. A ¼ W 10 Ω resistor burns at the ECU's normal current. Never use an LED bulb here.
  • Count every pin twice before putting 12 V near it, and always go through a resistor. On this connector, a 12 V input sits right next to 5 V pins. I lost one test to a probe one pin over, and probably the whole ECU to something similar.
  • Meter every resistor. I logged a "1 kΩ" that was really 10.2 kΩ, and a "51 kΩ" that was 5.04 kΩ.
  • Check which unit is on the bench at the start of every session if you own more than one.
  • Power off for a full ten seconds when you need a fault to clear.
  • Listen before you send. Everything here came from listening to one wire and putting resistors on inputs. Nothing was ever transmitted to the ECU on that line.