Read VIN from OBD adapter

vjamit picture vjamit · Nov 7, 2013 · Viewed 14.1k times · Source

i'm working on this app which requires me to read the VIN from the OBD II adapter and check if OBD is connected to the same vehicle. When i'm sending the command(09 02) to fetch VIN i'm not able to get the complete VIN.

Every time i send the command i'm not receiving first 3 characters. The only thing i receive is the last 7 characters of the VIN, and sometimes i get the previous 7 characters.

Not able to figure out whats wrong.

Any kind of help or support will be much appreciated.

Answer

Dragomir Goranov picture Dragomir Goranov · Nov 5, 2014

Yes, not every manufacturer supports this command ($09 $02) for reading the VIN. Different manufacturers use different commands. Please, provide more detailed information, so that you can receive a good answer:

  1. What is the vehicle that you are connecting to?
  2. What is the communication protocol (KWP 2000, UDS, CAN, K-Line, J1850...) ?
  3. What device are you using to communicate with the vehicle?
  4. With which control unit exactly are you trying to communicate?