|
 |
|
03-23-2009, 03:08 AM
|
#1
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
New, Free, OBD and GPS Tool
Heya All,
This is my first time posting here, I'm mostly trying to drum up a bit of interest for a new project I've been working on.
The itch I've been trying to scratch [ie, software whose availability is sorely lacking] is twofold:
1) No good software for OSX and Linux [and other POSIX-type systems]
2) No software for logging OBDII data alongside GPS data and trying to do something useful with it afterwards
So, without further ado: OBD GPS Logger
There's a sample of what it does here [output to Google Earth]:
Anyways. Lemme know what you think, if anyone tries it [or would like to suggest features or something]
Gary (-;
|
|
|
|
|
|
Advertisement
|
Sponsored links
|
03-23-2009, 05:57 PM
|
#2
|
|
Newbie
Join Date: Jan 2009
Location: Donegal, Ireland
Posts: 10
|
Very nice. Just bought my first motor last week. Been reading allot of OBD II stuff. This seems one of the more usefull tools iv come across. Mainly 'cos im a linux fan!!
Good Job!
will look forward to trying it out when i finally settle on a converter!
|
|
|
03-25-2009, 04:18 AM
|
#3
|
|
Variable Bitrate
Join Date: Nov 2007
Posts: 242
|
Neat.
|
|
|
03-25-2009, 06:40 AM
|
#4
|
|
Variable Bitrate
Join Date: Mar 2009
Location: Kristiansand, Norway
Posts: 284
|
Quote: Originally Posted by chunkyks 
Heya All,
This is my first time posting here, I'm mostly trying to drum up a bit of interest for a new project I've been working on.
The itch I've been trying to scratch [ie, software whose availability is sorely lacking] is twofold:
1) No good software for OSX and Linux [and other POSIX-type systems]
2) No software for logging OBDII data alongside GPS data and trying to do something useful with it afterwards
<cut>
Anyways. Lemme know what you think, if anyone tries it [or would like to suggest features or something]
Gary (-;
Welcome fellow "newbie"
Some ideas for your program might be:
Log speed and if possible, throttle possition. (realy nice to check if the walleyparker is to be trusted the next time, or to check if the garage have used the car for anything else than to fix a problem, ie. driven around half the city and all of the freeways).
Or where I mistaken on the green and red bars? (I though they where signal strength).
|
|
|
03-25-2009, 07:55 AM
|
#5
|
|
Maximum Bitrate
Join Date: Sep 2005
Location: Stockholm, Sweden
Posts: 652
|
Excellent! Good job!
I have downloaded the code, and maybe I can work out how to implement a COM module for win32 from it!
I want to calculate fuel consumption. Momentary, since start and since reset.
|
|
|
03-25-2009, 01:47 PM
|
#6
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
Quote:
Log speed and if possible, throttle possition. (realy nice to check if the walleyparker is to be trusted the next time, or to check if the garage have used the car for anything else than to fix a problem, ie. driven around half the city and all of the freeways).
Already have both speed and throttle position. In the screenshot posted above, height of the graph is the speed you're going, and the color indicates the MPG you're getting. For now, it just divides the mpg into five 20-percentile groups, so whatever you're seeing is normalised over the car you're driving.
Short version, green good, red bad. Red when you're accellerating, green when you're slowing down :-)
Throttle position isn't indicated on the google earth export, but...
Quote:
I want to calculate fuel consumption. Momentary, since start and since reset.
=710.7*vss/maf
I've added a new tool called obd2csv to the package [currently only in svn, will be in 0.3 release]. If you run obd2csv on a log, it exports everything in the database, plus a couple extras calculated [eg instantaneous mpg]
The trivial way to add things to log is by looking in obdservicecommands.h. In the big table, if you make the middle column something human-readable instead of NULL, then the software will log that too. I haven't verified that I have the correct codes there.
Keep in mind that this software still runs on a laptop, which you probably don't want to leave at your mechanic. If your mechanic going on a joyride is a concern, perhaps you could check the odometer before and after, or maybe get a more trustworthy mechanic :-)
Gary (-;
|
|
|
03-25-2009, 01:55 PM
|
#7
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
Quote:
I have downloaded the code, and maybe I can work out how to implement a COM module for win32 from it!
... COM? ew. Isn't that dead already?
A windows port may be nontrivial [in the sense of "easier to write completely new code"]. I'm using gpsd for logging gps, which is POSIX-only and maintained by ESR, who is notoriously windows-hostile. I'm using POSIX apis to access and control the serial port, so again... might be hard to get working on windows.
On the other hand, there's nothing at all complicated in my software, so cygwin might handle it just fine. I see some people have gpsd working on cygwin, and I think you need a total of about six #defines and the tcsetaddr function to do 90% of the hard work I'm doing to access the OBD port. All the sqlite code should be perfectly portable. All of obd2kml and obd2csv should be nothing more than C99+sqlite.
If you port it to windows, I'd be interested in taking a look :-D
Gary (-;
|
|
|
03-25-2009, 02:10 PM
|
#8
|
|
Admin. Don't bug or I'll byte.
Join Date: Sep 2004
Location: Corning, NY
Posts: 6,142
|
Nicely done! Great contribution to Mac and Unix communities. We've been needing this for awhile.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
03-25-2009, 02:23 PM
|
#9
|
|
Constant Bitrate
Join Date: Oct 2008
Posts: 144
|
Awesome!! This looks like it will be a great addition to the maccar platform!
|
|
|
03-25-2009, 02:51 PM
|
#10
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
Hm, I thought I posted answering some other stuff, but evidently not!
Quote:
I want to calculate fuel consumption. Momentary, since start and since reset.
mpg = 710.7*vss/maf
There's a new tool if you check out the recent svn [will be in 0.3], called obd2csv. obd2csv dumps everything that was logged into a .csv file which you can open in any spreadsheet and use your favorite graphing tools from there. In addition to that, it does a couple calculations, and one of the columns exported is instantaneous mpg.
Quote:
Log speed and if possible, throttle possition. [...] Or where I mistaken on the green and red bars? (I though they where signal strength).
In the chart you see there, height indicates speed at each point. Color indicates mpg at the time. Note that the mpg is divided into 20-percentiles which is cheesy but about 2 minutes coding, vs anything else which was a lot more. In short, green == good mpg, red = not good mpg, and it's normalised over that trip [only calculated when moving]. Hopefully your prius will actually show the same graph colors as your viper in this scenario.
Future graphs [once I figure out better ways of doing the statistical analysis] will make it clear that an M6 wasn't as efficient as a Trebant.
Throttle position and instantaneous speed are two of the things stored in the log, and using obd2csv will dump it for you. They're trivial to add to google earth too, but ... well, throttle position just isn't a very interesting thing to show on google earth. RPM is much more interesting [to me], and you'll see that that's a trace in the google earth file [off by default, just check the checkbox to see it].
Gary (-;
Last edited by chunkyks; 03-25-2009 at 03:21 PM.
Reason: Fixed [quote] tag
|
|
|
03-25-2009, 04:39 PM
|
#11
|
|
Maximum Bitrate
Join Date: Sep 2005
Location: Stockholm, Sweden
Posts: 652
|
nooo, I think COM and DCOM is still there. Aren't they? Maybe OLE is dead.... ;-)
My idee (good one or bad) was to understand how to interface the OBDII device on USB thru your code and then create a COM module with Studio 2008 and then access it with a yahoo widget.
If it can be done I am sure it's educational, and probably fun too.
I did not find the 0.3 version btw. But I still have the 0.2 to figure out .-)
|
|
|
03-25-2009, 04:42 PM
|
#12
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
0.3 isn't out yet. At least for now, I recommend sticking with the subversion flavor.
Gary (-;
|
|
|
03-25-2009, 05:05 PM
|
#13
|
|
FLAC
Join Date: May 2006
Location: Calgary, Alberta
Posts: 1,541
|
Very nice!
__________________
Ampie Case
2.5" Hard Drive 80GB Samsung 5400RPM
256 MB DDR2 PC5400
Xenarc 700TSV - VGA Monitor
Intel D945GCLF Motherboard
M2-ATX-HV
2005 Honda Civic
|
|
|
03-25-2009, 07:15 PM
|
#14
|
|
Super Moderator & Wal-Mart Greeter
Join Date: Sep 2003
Location: New Mexico, USA
Posts: 3,391
|
Interesting. I'll have to give it a go.
__________________
Tidder
Try RevFE
The best frontend I've ever used, period.
Best Quote EVER!!
Quote: Originally Posted by bramlet 
I try to search but I usually only find posts where people ask questions and darquepervert tells them to search.
|
|
|
03-25-2009, 08:28 PM
|
#15
|
|
Constant Bitrate
Join Date: Jun 2008
Posts: 169
|
Nice work, man!
I have nothing to read OBD data yet, but now that I know there is a linux-native tool, I'll be looking around.
Yeah, I am another linux junkie and categorically refuse to put windoze on any of my computers, for any reason. (Bad enough I have to use it at work.)
I can barely type, much less write code, so thanks for the effort and the thread to let us know its around.
|
|
|
|
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 01:27 PM.
| |