Announcement

Collapse
No announcement yet.

OBDSim now supports multiple ECUs and trouble codes

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

  • OBDSim now supports multiple ECUs and trouble codes

    Launched thus:
    Code:
    obdsim -g Logger -s ces2010.db -g Cycle
    There are two ECUs being created. One attached to the logger generator, and one attached to the cycle generator. I see the Logger generator with a valid logfile [otherwise I'd get an error, because the logger generator *requires* a seed]

    Then I have this chat with the sim:
    Code:
    >0100
    41 00 18 1B 80 01
    41 00 FF FF FF FE
    >0105
    41 05 50
    41 05 2A
    >0106
    41 06 3C
    >ATH1
    OK
    >0100
    7E8 00 41 00 18 1B 80 01
    7E8 01 41 00 FF FF FF FE
    >0105
    7E8 00 41 05 51
    7E8 01 41 05 7F
    >0106
    7E8 01 41 06 90
    >
    More info at obdsim's homepage, here: obdsim

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

  • #2
    Very awesome. keep up the great work.
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

    Comment


    • #3
      Great work, indeed. Out of curiosity, what is your main reason for not providing precompiled binaries?
      OBDLink MX: world's smallest, fastest, most advanced OBD/Bluetooth adapter with SW and MS CAN support. Read the review to learn more.
      Need to look up a diagnostic trouble code? Try the most up-to-date, free DTCsearch.com!

      You cannot send me a private message using this forum. Use my email instead: vitaliy[@]scantool.net.

      Comment


      • #4
        Mh. I don't usually provide precompiled binaries because I don't really know if I have any windows users, and obdgpslogger/obdsim changes pretty fast - compiling every time I do an svn commit [up to 428 now!] would get pretty old :-)

        I'll gladly cook them on demand, if you'd like to try it.

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

        Comment


        • #5
          http://icculus.org/obdgpslogger/down...2010-03-10.zip

          That's the current svn rev, built for windows. If anyone needs help getting it up and running [you'll need com0com or similar], feel free to ask.

          Also, my webhost is disappearing for a day or two while they move datacenters. Get your downloads soon :-)

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

          Comment


          • #6
            By the way, this looks wrong:

            Code:
            >0100
            7E8 00 41 00 18 1B 80 01
            7E8 01 41 00 FF FF FF FE
            >0105
            7E8 00 41 05 51
            7E8 01 41 05 7F
            >0106
            7E8 01 41 06 90
            >
            The byte after the 11-bit header is the message byte count. In your example, you should get:

            >0100
            7E8 06 41 00 18 1B 80 01
            7E8 06 41 00 FF FF FF FE
            >0105
            7E8 03 41 05 51
            7E8 03 41 05 7F
            >0106
            7E8 03 41 06 90


            Although I would not expect two different responses to a mode 1 request from the same ECU (7E8).

            Vitaliy
            OBDLink MX: world's smallest, fastest, most advanced OBD/Bluetooth adapter with SW and MS CAN support. Read the review to learn more.
            Need to look up a diagnostic trouble code? Try the most up-to-date, free DTCsearch.com!

            You cannot send me a private message using this forum. Use my email instead: vitaliy[@]scantool.net.

            Comment


            • #7
              Yeah, after a bit of discussion in this thread, that's already been fixed, and the fix is in the version I posted. Now the number on the far left is the ECU [001, 002, 003...] and the number to the right of it is the number of valid numbers coming up. That's probably still not 100% right, but ... I'm reading the spec, and it's hard work.

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

              Comment


              • #8
                Wrong link? It's OK, I know what you're talking about -- I just commented in that thread.

                You can't use 001, 002, etc for the ECU addresses. The correct addresses are specified in the ISO 15765-4, I'll see if I can dig them up for you.

                Vitaliy
                OBDLink MX: world's smallest, fastest, most advanced OBD/Bluetooth adapter with SW and MS CAN support. Read the review to learn more.
                Need to look up a diagnostic trouble code? Try the most up-to-date, free DTCsearch.com!

                You cannot send me a private message using this forum. Use my email instead: vitaliy[@]scantool.net.

                Comment


                • #9
                  ISO 15765-4, Table 3 11 bit legislated-OBD CAN identifiers
                  CAN identifier (hex) Description
                  7DF CAN identifier for functionally addressed request messages sent by external test equipment
                  7E0 Physical request CAN identifier from external test equipment to ECU #1
                  7E8 Physical response CAN identifier from ECU #1 to external test equipment
                  7E1 Physical request CAN identifier from external test equipment to ECU #2
                  7E9 Physical response CAN identifier from ECU #2 to external test equipment
                  7E2 Physical request CAN identifier from external test equipment to ECU #3
                  7EA Physical response CAN identifier from ECU #3 to external test equipment
                  7E3 Physical request CAN identifier from external test equipment to ECU #4
                  7EB Physical response CAN identifier ECU #4 to the external test equipment
                  7E4 Physical request CAN identifier from external test equipment to ECU #5
                  7EC Physical response CAN identifier from ECU #5 to external test equipment
                  7E5 Physical request CAN identifier from external test equipment to ECU #6
                  7ED Physical response CAN identifier from ECU #6 to external test equipment
                  7E6 Physical request CAN identifier from external test equipment to ECU #7
                  7EE Physical response CAN identifier from ECU #7 to external test equipment
                  7E7 Physical request CAN identifier from external test equipment to ECU #8
                  7EF Physical response CAN identifier from ECU #8 to external test equipment

                  While not required for current implementations, it is strongly recommended (and may be required by applicable legislation) that for future implementations the following 11-bit CAN identifier assignments be used:
                  -- 7E0/7E8 for ECM (engine control module);
                  -- 7E1/7E9 for TCM (transmission control module).
                  OBDLink MX: world's smallest, fastest, most advanced OBD/Bluetooth adapter with SW and MS CAN support. Read the review to learn more.
                  Need to look up a diagnostic trouble code? Try the most up-to-date, free DTCsearch.com!

                  You cannot send me a private message using this forum. Use my email instead: vitaliy[@]scantool.net.

                  Comment


                  • #10
                    Also, if you download that obdsim program, the Random generator is broken [shouldn't have built, actually; not sure why it did]. Cycle, logger, and gui_fltk all appear to be working fine though.

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

                    Comment


                    • #11
                      Thank-you!

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

                      Comment


                      • #12
                        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?
                        OBDLink MX: world's smallest, fastest, most advanced OBD/Bluetooth adapter with SW and MS CAN support. Read the review to learn more.
                        Need to look up a diagnostic trouble code? Try the most up-to-date, free DTCsearch.com!

                        You cannot send me a private message using this forum. Use my email instead: vitaliy[@]scantool.net.

                        Comment


                        • #13
                          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:
                          Code:
                          obdsim -g Cycle -g Logger -s ces2010.db
                          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 :-)

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

                          Comment


                          • #14
                            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

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

                            Comment


                            • #15
                              There's a poor man's rendering of the obdgpslogger manpages online, now, here:
                              http://icculus.org/obdgpslogger/manpages/

                              Specifically, the obdsim manpage covers multiple ECU usage:
                              http://icculus.org/obdgpslogger/manp...der/obdsim.txt

                              When I get home tonight, I'll commit the code that makes the ECU numbering work right.

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

                              Comment

                              Working...
                              X