Page 1 of 5 12345 LastLast
Results 1 to 10 of 42

Thread: OBDSim now supports multiple ECUs and trouble codes

  1. #1
    SuperMod - OBDII GPS Logger forum
    Auto Apps:loading...

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924

    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. #2
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494
    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.

  3. #3
    VENDOR - ScanTool Vitaliy's Avatar
    Join Date
    Dec 2006
    Location
    Phoenix, AZ
    Posts
    624
    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.

  4. #4
    SuperMod - OBDII GPS Logger forum
    Auto Apps:loading...

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    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

  5. #5
    SuperMod - OBDII GPS Logger forum
    Auto Apps:loading...

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    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

  6. #6
    VENDOR - ScanTool Vitaliy's Avatar
    Join Date
    Dec 2006
    Location
    Phoenix, AZ
    Posts
    624
    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.

  7. #7
    SuperMod - OBDII GPS Logger forum
    Auto Apps:loading...

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    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

  8. #8
    VENDOR - ScanTool Vitaliy's Avatar
    Join Date
    Dec 2006
    Location
    Phoenix, AZ
    Posts
    624
    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.

  9. #9
    VENDOR - ScanTool Vitaliy's Avatar
    Join Date
    Dec 2006
    Location
    Phoenix, AZ
    Posts
    624
    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.

  10. #10
    SuperMod - OBDII GPS Logger forum
    Auto Apps:loading...

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    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

Page 1 of 5 12345 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •