Announcement

Collapse
No announcement yet.

Baudrate guessing! Also, bluetooth obdsim

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

  • Baudrate guessing! Also, bluetooth obdsim

    OBDGPSlogger now has a baudrate guesser. Works great for both serial dongles I have here...

    I also put bluetooth support into obdsim. Now you can run "obdsim -b" and on your linux box it'll listen for bluetooth instead of a pty.

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

  • #2
    Originally posted by chunkyks View Post
    OBDGPSlogger now has a baudrate guesser.
    Is this just ATZ at different baudrates until you get a valid response?
    openMobile - An open source C# Front End (why choose openMobile?)
    - Always Recruiting Developers -
    Like what you see? Donations are always welcome

    Comment


    • #3
      Actually I'm using 0100, but in short... yes. It actually was just the first step, I'm now also doing baudrate upgrading [/a la/ pages 48-49 of the ELM datasheet]

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

      Comment


      • #4
        The baudrate upgrader now works too - and valgrind says that there are no possible leaks anywhere

        Woooo. It's been a good day for coding.

        Gary (-;

        Code:
        [email protected]:~/src/tmp/obdgpslogger/build$ valgrind --leak-check=full --show-reachable=yes ../bin/obdgpslogger -b0 -B0 -t -c2 -s /dev/ttyUSB0 -l logger.txt
        ==18543== Memcheck, a memory error detector.
        ==18543== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
        ==18543== Using LibVEX rev 1884, a library for dynamic binary translation.
        ==18543== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
        ==18543== Using valgrind-3.4.1-Debian, a dynamic binary instrumentation framework.
        ==18543== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.
        ==18543== For more details, rerun with: -v
        ==18543== 
        Opening serial port /dev/ttyUSB0, this can take a while
        Baudrate guessing: 9600, success at 9600
        Baudrate upgrading: 38400 [68]:success, 57600 [45]:success, 115200 [22]:fail [no OK], 230400 [11]:success, 460800 [08]:fail [no ELM], 500000 [08]:success, 576000 [06]:fail [no ELM], 
        Successfully connected to serial port. Will log obd data
        Couldn't open gps port on startup.
        temp=69.000000
        rpm=8048.000000
        vss=121.000000
        maf=385.279999
        Creating a new trip
        temp=69.000000
        rpm=8048.000000
        vss=121.000000
        maf=385.279999
        ==18543== 
        ==18543== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 27 from 4)
        ==18543== malloc/free: in use at exit: 0 bytes in 0 blocks.
        ==18543== malloc/free: 423 allocs, 423 frees, 297,095 bytes allocated.
        ==18543== For counts of detected errors, rerun with: -v
        ==18543== All heap blocks were freed -- no leaks are possible.
        [email protected]:~/src/tmp/obdgpslogger/build$
        OBDGPSLogger, for logging OBDII and/or GPS data
        OBDSim, an OBDII/ELM327 software simulator
        mp3car forums: obdgpslogger, obdsim

        Comment


        • #5
          hey,

          is there a problem with bluetooth support in obdsim v 0.16 ?

          Code:
          [email protected]:~/TÚlÚchargements/obdgpslogger/build$ obdsim -b
          obdsim: invalid option -- 'b'
          [email protected]:~/TÚlÚchargements/obdgpslogger/build$ obdsim -v
          Version: 0.16

          Comment


          • #6
            That'll happen if you don't have the bluetooth development stuff installed. It looks for bluetooth.h the header file, so you probably just need to install libbluetooth-dev [or similar for your distro].

            Also remember to read the manpage for obdsim, as it tells you how to set up bluetooth to correctly advertise what it can do

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

            Comment


            • #7
              Thanks, it works

              Comment

              Working...
              X