Pretty neat! :)
Got it connected to COM8, values seem to be changing fine, but the header is wrong.
So, how do you switch the protocol, add ECUs, etc?
I don't currently have a switch protocol process [wouldn't have done me much good before I understood the different protocol headers available, anyways :-D].
Adding ECUs is easy - just specify more generators. Something like:
Tells it to create two ECUs. The first one is with the cycle generator, the second is reading an obdgpslogger logfile. Point it to a valid logfile, for most of my testing nowadays I use ces2010.db, since it has about four and a half uninterrupted hours of running time :-)Code:
obdsim -g Cycle -g Logger -s ces2010.db
Or alternatively, since it seems my webhost is now down,
obdsim -g Cycle -g gui_fltk -g Cycle
To see two ECUs doing pretty much the same thing, and one whose values are chosen by a small, ugly, GUI
There's a poor man's rendering of the obdgpslogger manpages online, now, here:
Specifically, the obdsim manpage covers multiple ECU usage:
When I get home tonight, I'll commit the code that makes the ECU numbering work right.
New windows version, with working ECU addresses:
Hopefully this is a lot closer to the correct way to do this stuff!
Great work! I'm succesful reach to made it work with my OBD software...
I didn't take time to test all functionality of OBDsim. I was writing a simulator too, but I guess it's stupid to do the same thing twice. If I can help to improve yours, it could be good.
Unfortunaltely I didn't reach to open the *.db file (I works with windows). How can I do?
I assume if I create a right db file, I can create answer to all OBD2 mode, can't I?
or using a log file?
The .db file is a log from my other software, obdgpslogger. I have several available for download; ces2010.db is the one I usually use, as it has a four and a half hour uninterrupted drive :-)
Download it from here: http://icculus.org/obdgpslogger/examples/ces2010/, specifically you want this file.
When you run obdsim, pass the path to that file. If you're launching from the command-line, you can just put ces2010.db in the same directory as obdsim.exe, and run from there.
Of course, you don't have to use the logger generator - in the current windows build, there's also Cycle [the default], gui_fltk, and I think others [Random is broken, but it's pretty useless anyway]
remo08; in case it's relevant, I've expanded the manpage for obdsim to include a list of the supported AT commands. If you can't read manpages [ie, you're on windows], I have text renderings online. The obdsim one is here:
Excellent work, indeed! :)