Getting started to OBD-II using OBDSim

If you are getting started to OBD-II protocol used for cars’ diagnostic, then you need to know the OBDSim simulator. If you want to know more about OBD-II I have posted some links here:

It is different from others OBD-II simulators because you can emulate the ELM327 dongle interface and the car data. In fact it is a little confuse at start, but it is because this software is very powerful.

The easy way to get started is using the fltk GUI, this way:

$ obdsim -g Cycle -g gui_fltk -g Cycle
SimPort name: /dev/pts/6
Successfully initialised obdsim, entering main loop

Please note it creates a virtual serial port (tty) to receive commands (using ELM327 standard) then use “minicom” or other serial console software to open /dev/pts/6 (I tested it configured to 115200 8n1).

Now you can send some commands:

ELM327 v1.3a OBDGPSLogger                                                       
7E8 03 41 0D 09 09

The above command will read the “Vehicle Speed” you defined in the gui_fltk interface. Just click on the pointer of Vehicle Speed and move it, then execute the “010D” to read the new speed.


2 thoughts on “Getting started to OBD-II using OBDSim

  1. Hi, I am trying to get obdsim working using the Socket generator. Have you tried it? I cannot seem to get it to work. I have tried (for instance):
    obdsim –generator=Socket –seed=
    The error messages I get are:
    Couldn’t connect to host: Connection refused
    Couldn’t initialise data generator “Socket”

    Thanks for any hints and tips.

    1. Hi Jeroen,
      I didn’t test it with sockets. I suggest you to test your connection to before testing obdsim.

      You can test it using telnet from the machine you are running obdsim, this way:

      $ telnet 15001

      It is suppose to connect correctly using telnet, case it doesn’t then you need check the route and the server application.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s