Results 1 to 7 of 7

Thread: Baudrate guessing! Also, bluetooth obdsim

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

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924

    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. #2
    Raw Wave
    Auto Apps:loading...
    justchat_1's Avatar
    Join Date
    Jul 2008
    Location
    Boston, Ma or NY,NY
    Posts
    1,783
    Quote 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?

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

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

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

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    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:
    chunky@mills:~/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.
    chunky@mills:~/src/tmp/obdgpslogger/build$
    OBDGPSLogger, for logging OBDII and/or GPS data
    OBDSim, an OBDII/ELM327 software simulator
    mp3car forums: obdgpslogger, obdsim

  5. #5
    Newbie
    Join Date
    Nov 2011
    Posts
    5
    hey,

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

    Code:
    cidou@cidou-Inspiron-9300:~/TÚlÚchargements/obdgpslogger/build$ obdsim -b
    obdsim: invalid option -- 'b'
    cidou@cidou-Inspiron-9300:~/TÚlÚchargements/obdgpslogger/build$ obdsim -v
    Version: 0.16

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

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

  7. #7
    Newbie
    Join Date
    Nov 2011
    Posts
    5
    Thanks, it works

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
  •