8b8e1a93686242e209a57e307a728ac3171a8d2b
Tech-dat/Interface-dat/K-line-dat/K-line-dat.md
| ... | ... | @@ -0,0 +1,45 @@ |
| 1 | + |
|
| 2 | + |
|
| 3 | +# K-line-dat |
|
| 4 | + |
|
| 5 | +- [[CAN-dat]] - [[K-line-dat]] - [[OBD-dat]] |
|
| 6 | + |
|
| 7 | +## ISO 9141-2 (K-Line) Protocol Overview |
|
| 8 | + |
|
| 9 | +**ISO 9141-2** is a diagnostic communication protocol primarily used in European and Asian vehicles manufactured between the late 1990s and the mid-2000s. It is the "language" used by an OBD-II scanner to talk to the Engine Control Unit (ECU). |
|
| 10 | + |
|
| 11 | +### 1. Physical Layer & Pins |
|
| 12 | +The protocol relies on a single-wire or dual-wire serial bus found on the standard 16-pin OBD-II connector: |
|
| 13 | + |
|
| 14 | +* **K-Line (Pin 7):** The bidirectional line used for all data exchange (queries and responses). |
|
| 15 | +* **L-Line (Pin 15):** An optional unidirectional line used only for "waking up" the system in older implementations. |
|
| 16 | + |
|
| 17 | + |
|
| 18 | + |
|
| 19 | +--- |
|
| 20 | + |
|
| 21 | +### 2. Key Technical Specifications |
|
| 22 | +* **Signaling:** Asynchronous serial communication (UART). |
|
| 23 | +* **Voltage Levels:** Based on the vehicle battery (0V for Logic Low, 12V for Logic High). |
|
| 24 | +* **Baud Rate:** Usually fixed at **10.4 kbps**. |
|
| 25 | +* **Initialization:** Requires a specific "5-baud init" (very slow pulse) or a "Fast Init" sequence to establish a handshake before data flows. |
|
| 26 | + |
|
| 27 | +--- |
|
| 28 | + |
|
| 29 | +### 3. Comparison with Modern CAN Bus |
|
| 30 | +| Feature | ISO 9141-2 (K-Line) | ISO 15765 (CAN Bus) | |
|
| 31 | +| :--------------- | :------------------------------ | :----------------------- | |
|
| 32 | +| **Data Speed** | 10.4 kbps | 500 kbps | |
|
| 33 | +| **Architecture** | Master-Slave (Request/Response) | Multi-Master (Broadcast) | |
|
| 34 | +| **Typical Era** | 1996 – 2007 | 2008 – Present | |
|
| 35 | +| **Hardware** | Single wire (K) | Twisted pair (High/Low) | |
|
| 36 | + |
|
| 37 | +--- |
|
| 38 | + |
|
| 39 | +### 4. Implementation for DIY Projects |
|
| 40 | +Since you are familiar with **motor drivers** and **IMU sensors**, you can think of the K-Line as a standard UART signal shifted to 12V. |
|
| 41 | + |
|
| 42 | +If you wanted to interface a 3.3V microcontroller (like an ESP32) with a car's K-Line, you cannot connect them directly. You would need a **Level Shifter** or a dedicated K-Line transceiver chip (such as the **L9637D** or **MC33660**) to handle the 12V swings without frying your MCU. |
|
| 43 | + |
|
| 44 | + |
|
| 45 | + |
Tech-dat/Interface-dat/OBD-dat/OBD-dat.md
| ... | ... | @@ -1,47 +0,0 @@ |
| 1 | - |
|
| 2 | -# OBD-dat |
|
| 3 | - |
|
| 4 | -OBD stands for On-Board Diagnostics. It's a system in modern vehicles that monitors the engine and other vehicle systems. When it detects a problem, it turns on the "check engine" or "service engine soon" light on your dashboard and stores a diagnostic trouble code (DTC) that identifies the issue. This helps technicians diagnose and repair problems more easily. |
|
| 5 | - |
|
| 6 | -## OBD-II Pinout (SAE J1962 Connector) |
|
| 7 | - |
|
| 8 | -| Pin | Description | |
|
| 9 | -| --- | --------------------------------- | |
|
| 10 | -| 1 | Manufacturer specific | |
|
| 11 | -| 2 | SAE J1850 Bus+ (PWM/VPW) | |
|
| 12 | -| 3 | Manufacturer specific | |
|
| 13 | -| 4 | Chassis Ground | |
|
| 14 | -| 5 | Signal Ground | |
|
| 15 | -| 6 | CAN High (ISO 15765-4) | |
|
| 16 | -| 7 | K-Line (ISO 9141-2 / ISO 14230-4) | |
|
| 17 | -| 8 | Manufacturer specific | |
|
| 18 | -| 9 | Manufacturer specific | |
|
| 19 | -| 10 | SAE J1850 Bus- (PWM only) | |
|
| 20 | -| 11 | Manufacturer specific | |
|
| 21 | -| 12 | Manufacturer specific | |
|
| 22 | -| 13 | Manufacturer specific | |
|
| 23 | -| 14 | CAN Low (ISO 15765-4) | |
|
| 24 | -| 15 | L-Line (ISO 9141-2 / ISO 14230-4) | |
|
| 25 | -| 16 | Battery Voltage (+12V) | |
|
| 26 | - |
|
| 27 | -## the pins in the OBD-II connector related to J1850 are: |
|
| 28 | - |
|
| 29 | -Pin 2 (SAE J1850 Bus+): Carries the signal for both PWM and VPW protocols. |
|
| 30 | -Pin 10 (SAE J1850 Bus-): Used only for the PWM protocol (Ford). |
|
| 31 | - |
|
| 32 | -## K-line and L-line |
|
| 33 | - |
|
| 34 | -The K-Line (Pin 7) and L-Line (Pin 15) are communication lines used by the ISO 9141-2 and ISO 14230-4 (KWP2000) diagnostic protocols. These protocols were common in European, Asian, and some Chrysler vehicles before CAN bus became standard. |
|
| 35 | - |
|
| 36 | -- K-Line (Pin 7): This is the primary bidirectional serial communication line. Diagnostic tools use this line to send requests to and receive data from the vehicle's electronic control units (ECUs). |
|
| 37 | -- L-Line (Pin 15): This is an optional unidirectional line primarily used for initialization or "waking up" the ECUs before communication starts on the K-Line. Not all vehicles using K-Line implement or require the L-Line, especially those using the later KWP2000 protocol. |
|
| 38 | - |
|
| 39 | -In essence: |
|
| 40 | - |
|
| 41 | -- K-Line: Does the main talking (sending and receiving data). |
|
| 42 | -- L-Line: Sometimes used to start the conversation (initialization). |
|
| 43 | - |
|
| 44 | - |
|
| 45 | -## ref |
|
| 46 | - |
|
| 47 | -- [[CAN-dat]] - [[SAEJ1850-dat]] |
|
| ... | ... | \ No newline at end of file |
Tech-dat/Interface-dat/can-dat/can-dat.md
| ... | ... | @@ -4,6 +4,11 @@ |
| 4 | 4 | legacy wiki page - https://w.electrodragon.com/w/Category:CAN |
| 5 | 5 | |
| 6 | 6 | |
| 7 | +- [[CAN-dat]] - [[K-line-dat]] - [[OBD-dat]] |
|
| 8 | + |
|
| 9 | +- [[ECU-dat]] |
|
| 10 | + |
|
| 11 | + |
|
| 7 | 12 | ## Chip |
| 8 | 13 | |
| 9 | 14 | - TI ISO1050DUBR |
app-dat/OBD-dat/2026-03-04-18-29-25.png
| ... | ... | Binary files /dev/null and b/app-dat/OBD-dat/2026-03-04-18-29-25.png differ |
app-dat/OBD-dat/2026-03-04-18-29-33.png
| ... | ... | Binary files /dev/null and b/app-dat/OBD-dat/2026-03-04-18-29-33.png differ |
app-dat/OBD-dat/2026-03-04-18-30-04.png
| ... | ... | Binary files /dev/null and b/app-dat/OBD-dat/2026-03-04-18-30-04.png differ |
app-dat/OBD-dat/2026-03-04-18-37-52.png
| ... | ... | Binary files /dev/null and b/app-dat/OBD-dat/2026-03-04-18-37-52.png differ |
app-dat/OBD-dat/OBD-dat.md
| ... | ... | @@ -1,4 +1,66 @@ |
| 1 | 1 | |
| 2 | 2 | # OBD-dat |
| 3 | 3 | |
| 4 | -https://github.com/Edragon/OBD == Repository unavailable due to DMCA takedown. |
|
| ... | ... | \ No newline at end of file |
| 0 | +https://github.com/Edragon/OBD == Repository unavailable due to DMCA takedown. |
|
| 1 | + |
|
| 2 | + |
|
| 3 | + |
|
| 4 | + |
|
| 5 | + |
|
| 6 | + |
|
| 7 | + |
|
| 8 | + |
|
| 9 | + |
|
| 10 | +- [[CAN-dat]] - [[K-line-dat]] - [[OBD-dat]] |
|
| 11 | + |
|
| 12 | +- ELM327 |
|
| 13 | + |
|
| 14 | +- scanmaster ELM |
|
| 15 | + |
|
| 16 | + |
|
| 17 | + |
|
| 18 | + |
|
| 19 | + |
|
| 20 | + |
|
| 21 | +OBD-II Pinout (SAE J1962 Connector) |
|
| 22 | + |
|
| 23 | +| PIN | DESCRIPTION | | |
|
| 24 | +| --- | ----------------- | ----- | |
|
| 25 | +| 1 | `Vendor Option` | | |
|
| 26 | +| 2 | J1850 Bus + | | |
|
| 27 | +| 3 | `Vendor Option` | | |
|
| 28 | +| 4 | Chassis Ground | Power | |
|
| 29 | +| 5 | Signal Ground | Power | |
|
| 30 | +| 6 | CAN (J-2234) High | | |
|
| 31 | +| 7 | ISO 9141-2K-Line | | |
|
| 32 | +| 8 | `Vendor Option` | | |
|
| 33 | +| 9 | `Vendor Option` | | |
|
| 34 | +| 10 | J1850 BUS | | |
|
| 35 | +| 11 | `Vendor Option` | | |
|
| 36 | +| 12 | `Vendor Option` | | |
|
| 37 | +| 13 | `Vendor Option` | | |
|
| 38 | +| 14 | CAN (J-2234) Low | | |
|
| 39 | +| 15 | ISO9141-2Low | | |
|
| 40 | +| 16 | Battery Power | Power | |
|
| 41 | + |
|
| 42 | + |
|
| 43 | + |
|
| 44 | + |
|
| 45 | +OBD stands for On-Board Diagnostics. It's a system in modern vehicles that monitors the engine and other vehicle systems. When it detects a problem, it turns on the "check engine" or "service engine soon" light on your dashboard and stores a diagnostic trouble code (DTC) that identifies the issue. This helps technicians diagnose and repair problems more easily. |
|
| 46 | + |
|
| 47 | + |
|
| 48 | + |
|
| 49 | + |
|
| 50 | +## the pins in the OBD-II connector related to J1850 are: |
|
| 51 | + |
|
| 52 | +- [[J1850-dat]] - [[SAEJ1850-dat]] |
|
| 53 | + |
|
| 54 | +Pin 2 (SAE J1850 Bus+): Carries the signal for both PWM and VPW protocols. |
|
| 55 | +Pin 10 (SAE J1850 Bus-): Used only for the PWM protocol (Ford). |
|
| 56 | + |
|
| 57 | + |
|
| 58 | + |
|
| 59 | + |
|
| 60 | +## ref |
|
| 61 | + |
|
| 62 | +- [[CAN-dat]] |