Announcement

Collapse
No announcement yet.

OBDSim now with multi protocol, benchmarking

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • OBDSim now with multi protocol, benchmarking

    This has been discussed on and off in a couple other threads, but I thought I'd put them together in one place.

    I've added a couple features to obdsim recently that may be of interest to forum regulars: Proper multiple protocol support, and benchmarking. Now any time you attempt to use ATSP[A]{1-9} it'll do the right thing, ATH1 will cause it to show headers appropriate to the protocol you have requested.

    For example, here showing two ECUs with J1850 VPW, and 11 and 29 bit CAN:
    Code:
    >ATDP
    SAE J1850 VPW
    >0100
    48 6B 10 41 00 18 1B 80 01
    48 6B 11 41 00 FF FF FF FE
    >ATSPA9
    OK
    >0100
    18 DA F1 10 06 41 00 18 1B 80 01
    18 DA F1 11 06 41 00 FF FF FF FE
    >ATDP
    Auto, ISO 15765-4 (CAN 29/250)
    >ATSP8
    OK
    >0100
    7E8 06 41 00 18 1B 80 01
    7E9 06 41 00 FF FF FF FE
    >ATH0
    OK
    >0100
    41 00 18 1B 80 01
    41 00 FF FF FF FE
    >
    Additionally, I've now added benchmarking. You can pass "-n" or "--benchmark" to enable it [in future I'm thinking I'll just enable it all the time]. --benchmark takes an optional parameter that says how many seconds it should group the benchmarks by [default 10]. For example, with benchmark=5, and running obdgpslogger against it:
    Code:
    [email protected]:~/src/obdgpslogger/build$ ../bin/obdsim --benchmark=5
    SimPort name: /dev/pts/5
    Successfully initialised obdsim, entering main loop
    0 samples in 5.002191 seconds. 0.00 samples/sec
    0 samples in 5.001282 seconds. 0.00 samples/sec
    Reset
    Echo disabled
    Linefeed disabled
    Spaces disabled
    752 samples in 5.003610 seconds. 150.29 samples/sec
    1065 samples in 5.004683 seconds. 212.80 samples/sec
    1037 samples in 5.004103 seconds. 207.23 samples/sec
    1057 samples in 5.000221 seconds. 211.39 samples/sec
    For windows users, I've finally automated my build process specifically for obdsim on windows. The current version is here: obdsimwindows-2010-06-16.zip. It includes a short text document showing how to use it as well as a text flavor of the manpage.

    Gary (-;
    OBDGPSLogger, for logging OBDII and/or GPS data
    OBDSim, an OBDII/ELM327 software simulator
    mp3car forums: obdgpslogger, obdsim

  • #2
    Well done, Gary! A really nice contribution to the OBDII awesomeness here.
    Originally posted by ghettocruzer
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

    Comment


    • #3
      Agree! Thank you very much Gary!

      Comment


      • #4
        Extremely useful software... saves me a boatload of time during development. Thanks!
        e46|700tsv 2005 model|sb51g xpc2.4ghz opus 150|I-bus|XM Direct&cables | slim slot USB DVD-cdrw|Hawking 54g|iGuidance 2.1-HoluxGPS
        sold it all... :-(


        Coming Soon - 2007 BMW 335i UMPC install

        Comment


        • #5
          Always great to hear someone's actually using my software :-D

          Gary (-;
          OBDGPSLogger, for logging OBDII and/or GPS data
          OBDSim, an OBDII/ELM327 software simulator
          mp3car forums: obdgpslogger, obdsim

          Comment


          • #6
            Oh, and OBDSim actually has its own webpage listing some of the major features and plugins, here: OBDSim

            Gary (-;
            OBDGPSLogger, for logging OBDII and/or GPS data
            OBDSim, an OBDII/ELM327 software simulator
            mp3car forums: obdgpslogger, obdsim

            Comment


            • #7
              obdsimwindows-2010-09-18.zip

              Now defaults to doing benchmarking, and on windows defaults to the gui plugin. ie, "Windows users will find that double clicking the .exe with no command-line options will do what they want".

              I also just tested, and that works with centrafuse, scantool.net, OBD2007 lite. Presumably others, but I don't have anything else to test with.

              Protocols are now settable on the command-line. Use "-L" to list all known OBDII protocols, and set the one you want with "-p". Note that the value passed to "-p" is exactly the same as what you'd pass to ATSP: [A]{0-9}

              Gary (-;
              OBDGPSLogger, for logging OBDII and/or GPS data
              OBDSim, an OBDII/ELM327 software simulator
              mp3car forums: obdgpslogger, obdsim

              Comment

              Working...
              X