Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > General Hardware Discussion > Fusion Brain


Reply
 
Share Thread Tools Display Modes
Old 06-20-2009, 02:00 PM   #1
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
chunkyks is on a distinguished road
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 (-;
chunkyks is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 06-22-2009, 09:38 AM   #2
Constant Bitrate
 
Join Date: Aug 2007
Location: Northern VA
Posts: 125
cgalpin is an unknown quantity at this point
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.
cgalpin is offline   Reply With Quote
Old 06-23-2009, 08:01 PM   #3
Constant Bitrate
 
Join Date: Aug 2007
Location: Northern VA
Posts: 125
cgalpin is an unknown quantity at this point
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

cgalpin is offline   Reply With Quote
Old 06-23-2009, 09:18 PM   #4
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
Pretty chouette!
2k1Toaster is offline   Reply With Quote
Old 06-24-2009, 01:36 AM   #5
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
chunkyks is on a distinguished road
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 (-;
chunkyks is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
alternative to obdII? kelmk Fusion Brain 4 04-17-2008 12:26 PM



All times are GMT -5. The time now is 04:10 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics