|
 |
|
06-18-2009, 12:21 PM
|
#1
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
OBD1, and obdsim plugins
All,
I was talking to cgalpin this morning, and he pointed out that my OBD II Simulator can be used to do some interesting things. Of particular interest is that it's pluggable; you can write different data generator plugins for it that can proxy data from differing sources.
Currently I have two plugins for it. One, called "logger", that reports [through 0x00, 0x20, etc] that it is capable of outputting values based on what columns are in the database, then it draws values from that database, interpolating as it goes.
The second plugin is called "random"; it reports that it's capable of responding to all PIDs 0x01->0x19, and then supplies numbers generously provided by random() whenever it's queried.
cgalpin raised the interesting point that this is a clean way to function as a proxy for OBD1 <-> OBD2. Specifically, if I knew how to talk to an OBD1 car, then I could write a plugin that talks to the car, then have obdsim feed OBD2 data back to the client application. So now I'm curious; how does OBD1 work? Can anyone point me to some decent docs? I googled a bit, but mostly what turns up is a bunch of stuff about GM and a bunch of stuff about how OBD2 is better.
Presumably there's other interesting things you could do with this pluggable OBD2 proxy thing; does anyone have any ideas?
Have fun,
Gary (-;
|
|
|
|
|
|
Advertisement
|
Sponsored links
|
06-18-2009, 12:36 PM
|
#2
|
|
Constant Bitrate
Join Date: Aug 2007
Location: Northern VA
Posts: 125
|
Other than codes I am not sure OBDI exposes the data. I *think* you have to tap into the sensor inputs yourself (or add sensors) and then us something like the FB to convert to a form that would feed the plugin.
I have an OBDI vehicle which has at least VSS, MAF, Temp, O2 sensors that feed data to the ECU. I figured I'd tap into those, feed them to the FB, and read that data, do a little math on it, and pass to obdsim via a custom plugin. Then any software I use just thinks it's dealing with OBDII from that point. We should be able to share a lot of our work this way.
For example on my vehicle with no ECU, as long as I can add sensors or generate the same data, I get to reuse everything else
|
|
|
06-18-2009, 12:52 PM
|
#3
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
Yeah. I think the core point is that loads of awesome software exists that does interesting things with OBD2, and very little [even less that's free as in beer] that works with OBD1. By proxying one onto the other, you get a great corpus of tools that work with OBD1.
Gary (-;
|
|
|
06-18-2009, 12:56 PM
|
#4
|
|
Constant Bitrate
Join Date: Aug 2007
Location: Northern VA
Posts: 125
|
You got it!
|
|
|
06-18-2009, 01:29 PM
|
#5
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
OK, I finally got around to trying to figure out what you mean by FB; Fusion Brain, right?
Looking at the fusion brain website, it seems like it'd be pretty easy, and more general, to write a fusion brain plugin rather than an OBDI plugin. If you were to document how you connect your OBDI car's sensors to a fusion brain, then end users would have all the pieces they need to service OBDII from their aging car for a grand total of sixty five dollars.
Am I on the right track, here? Going a little further, you could butcher up a sheevaplug and an FB and a seven dollar radio shack project enclosure, and end up with your old car throwing out OBDII, all from one tidy box. [Although obdsim is still a software-only toy, so other software would need to be running on the sheevaplug itself, too ...]
Sadly, I don't own any cars appropriate to such a project, but I'm stoked at the potential of helping out...
Gary (-;
Last edited by chunkyks; 06-18-2009 at 01:31 PM.
|
|
|
06-18-2009, 01:34 PM
|
#6
|
|
Constant Bitrate
Join Date: Aug 2007
Location: Northern VA
Posts: 125
|
Yes it would be a FB plugin, but at a minimum it would need configuration for each user, if not modifications. But most of it will be reusable. My point is that OBDI users should have an easier time getting access to the data than a non-obd vehicle since most of the inputs are already there.
I have much loftier goals for my Sheeva when it arrives. Exposing OBDII is one of many things it will do, but yes it will do this just fine.
|
|
|
06-18-2009, 01:39 PM
|
#7
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
Huh. someone already did the hard work on this, too
You'd just have to document what *you* did; that's good enough, I'd think. As I understand it from a brief glance at the documentation, the only difference in software between your implementation and someone else's would be a mapping of {analog input ID on the FB} <-> {OBD II PID} for each input. Easily done with a config file...
Gary (-;
|
|
|
06-18-2009, 01:46 PM
|
#8
|
|
Constant Bitrate
Join Date: Aug 2007
Location: Northern VA
Posts: 125
|
Yes malcom2073 has written a linux driver for the FB. Tripzero added dbus support already (fbd). It's only a partial implementation (for example reading analog inputs isn't working for me yet) but once complete it's going to be very easy to tie it all together.
My idea for a obdsim plugin is to register for the dbus signals coming from fbd and cache the latest value for the stuff you care about. Done!
charles
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
06-18-2009, 01:48 PM
|
#9
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
:boggle:
If you already have a decent fbd daemon, then you're even better off; just create a dbus plugin, and obdsim works with fb, and anything else.
Erm, a dbus plugin certain sounds within my grasp, since I don't have a FB. tripzero will be pleased
Gary (-;
|
|
|
06-18-2009, 01:52 PM
|
#10
|
|
Constant Bitrate
Join Date: Aug 2007
Location: Northern VA
Posts: 125
|
haha. yes. I believe this (dbus plugin) was one of my first comments to you when you said you were making a sim. lol
|
|
|
06-18-2009, 02:02 PM
|
#11
|
|
North of the land of Hey Huns
Join Date: Jun 2004
Location: Westminster, MD
Posts: 1,034
|
I have an aldl based obd1 car as my second car. If I may lend more code to this I may be able to provide aldl support for you
__________________
RevFE - Try it, you just might like it.
Carbon - Next Generation Touchscreen Browser
Come join us on IRC: irc.efnet.net #mp3car
Audiophiles make me chuckle as they pad my wallet.
|
|
|
06-18-2009, 02:04 PM
|
#12
|
|
Admin. Don't bug or I'll byte.
Join Date: Sep 2004
Location: Corning, NY
Posts: 6,141
|
|
|
|
06-18-2009, 02:09 PM
|
#13
|
|
Constant Bitrate
Join Date: Aug 2007
Location: Northern VA
Posts: 125
|
Bugbyte, yup thats the linux driver and fbd we are talking about.
Mal, I don't know what if any protocol mine speaks. It's a rover 14CUX system. The site below shows the pin in/outs and it has a primitive code displayer but other than that I am unaware of any protocol it supports. So my plan is to tap into the wires and use the FB to grab the data I need.
http://www.britishv8.org/Articles/Rover-14CUX-EFI.htm
|
|
|
06-18-2009, 02:13 PM
|
#14
|
|
North of the land of Hey Huns
Join Date: Jun 2004
Location: Westminster, MD
Posts: 1,034
|
cgalpin: ALDL is a mid 80's to early 90's protcol that a good number of GM vehicles used. The reader for it is about $80, and most vehicles support a very large range of information being broadcast back at a rather insane data rate. Mine sends 70 values (a 70 byte string) 10 times per second.
Be careful when hooking in the FB to read analog voltages, as reading voltage can change the voltage that the ECU reads. I'm not entirely sure on the logistics of that.
__________________
RevFE - Try it, you just might like it.
Carbon - Next Generation Touchscreen Browser
Come join us on IRC: irc.efnet.net #mp3car
Audiophiles make me chuckle as they pad my wallet.
|
|
|
06-18-2009, 02:19 PM
|
#15
|
|
Constant Bitrate
Join Date: Aug 2007
Location: Northern VA
Posts: 125
|
Good point on altering the voltage levels. Mmh. Short of adding additional sensors (which I am not sure you can do for a lot of them) I don't know how to avoid that.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:27 AM.
| |