Scanning the K line of a Mercedes Sprinter - KWP2000 detected - Doubts about PIDs - Mercedes-Benz Forum

LinkBack Thread Tools Display Modes
post #1 of 2 (permalink) Old 11-27-2011, 08:35 PM Thread Starter
BenzWorld Newbie
Date registered: Nov 2011
Posts: 1
Mentioned: 0 Post(s)
Quoted: 0 Post(s)
(Thread Starter)
Scanning the K line of a Mercedes Sprinter - KWP2000 detected - Doubts about PIDs

Hello all.
This is my first message at this forum.

My father has a Mercedes-Benz Sprinter who has a 14 pin round diagnostic connector for to connect a diagnostic tool (We are currently using a genuine tool from Mercedes).

I find out the functionality of each pin present at the diagnostic connector using an oscilloscope (explained at my PDF log).

We have a genuine scanner tool of Mercedes-Benz (proprietary hardware and software of Mercedes) where we can see live data parameter like, RPM, coolant temperature, speed and many other parameters. We also can read trouble codes using this tool.
What I need is to read live data from this diagnostic connector using my own hardware and a microcontroller (I am using a Microchip dsPIC30F MCU for now, but I can change to a Freescale or ST with ARM core later, if necessary). I want to read RPM, speed, coolant temperature and others, just by using my hardware and a MCU.

I did my own hardware suitable to read all data packets which flows trough the K-line at 10.400 bps, so I was able to read all request packets sent by the diagnostic tool and also the response packets from Sprinter. I find out that it uses the ISO14230 protocolo (also know as Keyword protocol 2000).

The hardware design was very simples:

K-line <-> ISO9141 hardware <-> UART2 @ 10.400bps <-> dsPIC30F4013 <-> UART1 @ 115200bps <-> MAX232 <-> PC with a serial port monitor software

Below is a link to a PDF file containing a report of my Logs where is shown the received packets and a study of each packet byte.

After this logs, I noticed that Mercedes scan tool is using the Diagnostic Service named readDataByCommonIdentifier Request Service Id (0x22) to request data from K-line. When this kind of Service ID is used, the PID value is described by two bytes (a high and a low byte). This PIDs, in this case, are named as recordCommonIdentifier (2 bytes).

These are some recordCommonIdentifier PIDs used by the Mercedes tool to read live data, like RPM and coolant temperature: This can be viewed in the PDF log I did.
and many other starting with a high byte (containing 1Dh value)

In all packets received by the PC, we can notice that the checksum byte (last byte) was always correct, so I have sure these packets are valid packets, to be "interpreted"

My questions are :
1) Is there any document where I can check the meaning of each PID and how to interpret the data bytes (To read the RPM correctly for example)?

2) Would it be a proprietary data encoding made by Mercedes-Benz? It is a way to make the user dependent on their scan tools to read data parameters from K-line?

3) I noticed that there is third-party tools who are able to read the same data that the genuine diagnostic tool from Mercedes is able to. Anyone have idea on how they did to build their own scanners for Mercedes Spritner and trucks/bus?

4) Do I need to make a reverse engineering to get the data with my own hardware?
seccoxiru is offline  
Sponsored Links
post #2 of 2 (permalink) Old 05-21-2013, 07:12 AM
BenzWorld Newbie
Date registered: May 2013
Posts: 1
Mentioned: 0 Post(s)
Quoted: 0 Post(s)
Hi, I was watching your post here

and i have the same problem. Do you have any solution? Do you have information about the used protocol? Sorry for my english. and thank you by all.

from Argentine
fernandoalo is offline  
Sponsored Links

  Mercedes-Benz Forum > General Mercedes-Benz Forums > General Mercedes-Benz

Quick Reply

Register Now

In order to be able to post messages on the Mercedes-Benz Forum forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.

User Name:
Please enter a password for your user account. Note that passwords are case-sensitive.


Confirm Password:
Email Address
Please enter a valid email address for yourself.

Email Address:


  • Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
    Thread Tools
    Show Printable Version Show Printable Version
    Email this Page Email this Page
    Display Modes
    Linear Mode Linear Mode

    Similar Threads
    Topic Author Forum Replies Last Post
    Berger doubts Mercedes can catch up in 2011 gerkebi Mercedes-Benz Motorsports & Racing 3 02-23-2011 11:35 AM
    2007 Sprinter 144 Hightop Diesel / 2500W Pure sine Wave Line Power Locksmithy General Mercedes-Benz 1 04-11-2010 03:40 PM
    scanning? phamilton01 W140 S-Class 2 10-27-2008 04:06 PM
    Having doubts!!! Creative85 W210 E-Class 0 10-31-2006 07:49 PM
    Doubts Zé Bocaina G-Class 4 04-01-2006 05:38 PM

    Posting Rules  
    You may post new threads
    You may post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Trackbacks are On
    Pingbacks are On
    Refbacks are On


    Title goes here

    video goes here
    description goes here. Read Full Story
    For the best viewing experience please update your browser to Google Chrome