Results 1 to 5 of 5

Thread: OBDII and Fusion Brain

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

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    929

    OBDII and Fusion Brain

    So it seems to me [correct me if I'm wrong], that some people are using their fusion brain to read sensors in their car, readings that you'd usually do with an OBDII device.

    The problem with this is that there's a huge corpus of excellent OBDII tools out there that you can't use with an FB setup like this, which kinda sucks.


    I've been working on a pluggable OBDII simulator, and just finished a plugin that solves this problem. Using it, your Fusion Brain's output is presented as an OBDII device that you can use standard OBDII tools to work with.

    It's actually a dbus plugin, primarily intended to work with kev000/tripzero's fbd in this thread. The way it works, you run trip's fusion brain daemon to listen to the FB and spit out dbus signals, then run my simulator configured to listen to those signals and present OBDII data.

    The configuration for it looks like this:
    Code:
    # obdsim dbus plugin sample config file
    
    # We specifically listen to only one member from one path from one
    #    interface
    
    # The message for the member-path-interface tuple must come in as two
    #    numbers. The first is mapped to a PID using this file. The second
    #    is a real or integer that is the actual value.
    
    # bus can be "session" or "system"
    bus=session
    
    interface=org.openice.test
    
    path=/org/openice/test/testsignal
    
    member=SomeSignal
    
    # Some sample mappings.
    # Each mapping is of the form:
    # map {dec number} -> {hex PID}
    
    # Map 22 to engine temperature
    map 22 -> 0x05
    # Map 34 to airflow mass
    map 34 -> 0x10
    Obviously you'll need to modify it to work with dbus, perhaps if trip or someone else could post a sample config written to work with fbd, that would be great. Unfortunately, I don't have a fusion brain so I'm not able to actually test this in a real environment, but the software is working fine with trip's test program he wrote for testing helping me with this plugin.

    At this stage, it's still orientated heavily towards technical users, for which I apologise [although it occurs to me that most FB users are probably smarter than your average bear anyways :-)]. But what you need to do is check out from svn, build with dbus enabled, write a config file for fbd [almost everyone will use the same config file for this; which is why I suggested a smart person might be able to post a good config in this thread]. Quick and easy instructions to svn checkout and build:

    Code:
    svn co svn://svn.icculus.org/obdgpslogger/trunk obdgpslogger
    mkdir obdgpslogger/build
    cd obdgpslogger/build
    cmake -DOBD_ENABLE_DBUS=On ..
    make
    Then to run it:
    Code:
    cd ../bin
    ./obdsim -g DBus -s ../src/sim/generators/dbus/dbustest.simconf
    Instead of that sample config, you should use an fbd one, of course.

    So that's still pretty techie, but if anyone has a chance to try it, please post in this thread with details, information, advice, general abuse, all that good stuff.

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

  2. #2
    Constant Bitrate
    Join Date
    Aug 2007
    Location
    Northern VA
    Posts
    135
    I might be the only one right now, but I think others will see the light once they see it. Will get to trying it later this week.

  3. #3
    Constant Bitrate
    Join Date
    Aug 2007
    Location
    Northern VA
    Posts
    135

    Thumbs up

    Whoohoo! Good stuff!

    Works as advertised! Setup the config file for the signal you send, and it does it's thing. fbd is going to need some love to make this useful since it just spits out raw FB values right now and we need a configurable way to transform the values as well as set the delta to send a signal on, but this takes it a long way.

    BTW, if the Fusion Brain guys are watching, you *really* need to move this sort of stuff to the FB PIC itself instead of doing all this in software off the FB.

    Sample fbd dbus signal config file below.

    Thanks again Gary,
    charles

    Code:
    # obdsim dbus plugin sample config file for fbd based signals
    
    # We specifically listen to only one member from one path from one
    #    interface
    
    # The message for the member-path-interface tuple must come in as two
    #    numbers. The first is mapped to a PID using this file. The second
    #    is a real or integer that is the actual value.
    
    # bus can be "session" or "system"
    bus=system
    
    interface=org.openice.fbd.fusionbrain
    
    path=/org/openice/fbd
    
    member=AnalogValueChanged
    
    # Some sample mappings.
    # Each mapping is of the form:
    # map {dec number} -> {hex PID}
    # Where 0 >= {dec number} < 13
    
    # Map 1 to engine temperature
    map 1 -> 0x05
    
    # Map to airflow mass
    map 2 -> 0x10
    
    # Map to rpm
    map 3 -> 0x0C
    
    # Map to vss
    map 11 -> 0x0D
    
    # Map to throttlepos
    map 12 -> 0x11

  4. #4
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,052
    Pretty chouette!
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

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

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    929
    Awesome stuff. I hope you don't mind, I modified your config and put that one in as the sample config file in the repository.

    Woooo!

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

Similar Threads

  1. alternative to obdII?
    By kelmk in forum Fusion Brain
    Replies: 4
    Last Post: 04-17-2008, 11:26 AM

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
  •