Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

KWP 2000

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

KWP2000 - Basic Information.

Keyword Protocol 2000, abbreviated KWP2000, is a communications protocol used for on-board
vehicle diagnostics systems (OBD). This protocol covers the application layer in the OSI model of
computer networking.

KWP2000 is a Uart based data link protocol

KWP2000 Message Structure

The message structure consists of three parts


1. Header
2. Data Bytes
3. Checksum

Fmt - Format byte


Tgt - Target Address
Src - Source Address
Len Total length of the telegram
SId - Service Identification byte
CS - Check Sum - 8 bit sum services of all bytes, excluding Checksum

The format byte contains 6 bit length information and 2 bit address mode information. The
client (tester) is informed about use of the header bytes by the key bytes
2 bit address mode information:
Bit 7 Bit 6
0 0 no address information
0 1 Exception mode
-CARB
1 0 physical addressing
1 1 functional addressing

Target address byte : This is the target address for the message and is always used together
with the source address byte.

Source address byte : This is the address of the transmitting device.


Length byte :This byte is provided if the length in the header byte (L0 to L5) is set to 0. It
allows the user to transmit messages with data fields longer than 63 bytes. With shorter
messages it may be omitted.
Data Bytes : The data field may contain up to 63 or up to 255 bytes of information,
depending on the use of length information. The first byte of the data field is the Service
Identification Byte.
Checksum Byte : The checksum byte (CS) inserted at the end of the message block is
defined as the simple 8-bit sum series of all bytes in the message
Physical Addressing : Addressing used to initialize Single server/ECUs.
Functional Addressing : Addressing used to initialize many servers/ECUs

You might also like