Protocol overview (level 1)
Level-1 K-Line: 10400 8N1, wake, session, checksum, live tables, and fault-code reads.
Wire
- ISO 9141 K-Line: one wire, half-duplex, 10400 baud 8N1.
- The cable echoes every byte you send before the ECU answers. Strip it (exact copy, or a copy with bits only cleared when a valid reply follows).
- Frame:
[header][total length incl. checksum][service][args…][checksum]. Requests start0x72(or0xFEfor StartComm); replies start0x02. - Checksum =
(0x100 − (sum of bytes mod 256)) mod 256. A valid frame sums to 0 mod 256. A plain sum is wrong. Example:72 07 72 17 00 0F→EF.
Session
- Wake: line LOW for 70 ms, timed atomically, then idle 130 ms.
- StartComm
FE 04 72 8C(a reply is not required). - Liveness:
72 05 00 F0 99, then72 05 71 00 18, then7E 06 01 01 00 7A. The first one that gets any reply means the session is up. Retry wake 1–3 up to 4 times. - StartDiag
72 05 71 00 18(required before the live tables answer). - ECM-ID
72 07 72 00 00 05 10→02 0B 72 00 00 <5 bytes> ck. Up to 3 tries, 300 ms apart. Fall back to the ID inside the StartDiag reply.
Live data
Read 72 07 72 <table> 00 <count> ck and cut the data bytes from the last valid
02 L 72 <table> frame. Each field is raw × scale + add over big-endian bytes,
with sentinels (absent), ranges (invalid), clamps, per-ECM-ID sources and
fallback chains. Every value carries a provenance:
bench / field / reference / provisional. Five layouts exist (t17.sub8 Keihin,
t17.sub4 Shindengen, t13.type7, t11.type1, generic.t17). The SDK detects
the layout by probing tables 0x17 → 0x13 → 0x11.
Fault codes (beta)
72 05 74 01/02/03 → 02 0C 74 <sub> <payload> ck. The payload is a 00 lead byte
followed by (code, sub) pairs, read as Honda blink codes such as 7-1. Only Keihin
boxes are decoded. If anything does not parse, the result is "unreadable", never a
guess.
Next: Troubleshooting