Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Engine Management, OBD-II, Engine Diagnostics, etc. > OBDII GPS Logger


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

Old 03-23-2009, 05:57 PM   #2
Newbie
 
Join Date: Jan 2009
Location: Donegal, Ireland
Posts: 10
bluenarf is an unknown quantity at this point
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!
bluenarf is offline   Reply With Quote
Old 03-25-2009, 04:18 AM   #3
Variable Bitrate
 
Join Date: Nov 2007
Posts: 242
NSFW is an unknown quantity at this point
Neat.
NSFW is offline   Reply With Quote
Old 03-25-2009, 06:40 AM   #4
Variable Bitrate
 
Join Date: Mar 2009
Location: Kristiansand, Norway
Posts: 284
Crinos is an unknown quantity at this point
Quote: Originally Posted by chunkyks View Post
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).
Crinos is offline   Reply With Quote
Old 03-25-2009, 07:55 AM   #5
Maximum Bitrate
 
bes51659's Avatar
 
Join Date: Sep 2005
Location: Stockholm, Sweden
Posts: 652
bes51659 is on a distinguished road
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.
__________________
A 8051 system that controls PC power etc with or without BMW IBus and is a GPS receiver with dead reckoning. mp3car thread

My car installation mp3car thread "showing off project"
bes51659 is offline   Reply With Quote
Old 03-25-2009, 01:47 PM   #6
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
chunkyks is on a distinguished road
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 (-;
chunkyks is offline   Reply With Quote
Old 03-25-2009, 01:55 PM   #7
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
chunkyks is on a distinguished road
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 (-;
chunkyks is offline   Reply With Quote
Old 03-25-2009, 02:10 PM   #8
Admin. Don't bug or I'll byte.
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Posts: 6,142
Bugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to behold
Nicely done! Great contribution to Mac and Unix communities. We've been needing this for awhile.
__________________
Want to:
-Find out about the iBug?
-Stop being a newbie? Take a look at the FAQ Emporium?
-Find out about carPC's in just 5 minutes? View the Car PC 101 video
-Help me kill my car PC
-Watch live video streams from my mobile PC? Check it out here.
-Where is the iBug?
Bugbyte is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 03-25-2009, 02:23 PM   #9
Constant Bitrate
 
scatebase's Avatar
 
Join Date: Oct 2008
Posts: 144
scatebase is an unknown quantity at this point
Awesome!! This looks like it will be a great addition to the maccar platform!
__________________
xb_mini
scatebase is offline   Reply With Quote
Old 03-25-2009, 02:51 PM   #10
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
chunkyks is on a distinguished road
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
chunkyks is offline   Reply With Quote
Old 03-25-2009, 04:39 PM   #11
Maximum Bitrate
 
bes51659's Avatar
 
Join Date: Sep 2005
Location: Stockholm, Sweden
Posts: 652
bes51659 is on a distinguished road
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 .-)
__________________
A 8051 system that controls PC power etc with or without BMW IBus and is a GPS receiver with dead reckoning. mp3car thread

My car installation mp3car thread "showing off project"
bes51659 is offline   Reply With Quote
Old 03-25-2009, 04:42 PM   #12
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
chunkyks is on a distinguished road
0.3 isn't out yet. At least for now, I recommend sticking with the subversion flavor.

Gary (-;
chunkyks is offline   Reply With Quote
Old 03-25-2009, 05:05 PM   #13
FLAC
 
Join Date: May 2006
Location: Calgary, Alberta
Posts: 1,541
Maheriano will become famous soon enoughMaheriano will become famous soon enough
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
Maheriano is offline   Reply With Quote
Old 03-25-2009, 07:15 PM   #14
Super Moderator & Wal-Mart Greeter
 
Tidder's Avatar
 
Join Date: Sep 2003
Location: New Mexico, USA
Posts: 3,391
Tidder has a brilliant futureTidder has a brilliant futureTidder has a brilliant futureTidder has a brilliant futureTidder has a brilliant futureTidder has a brilliant futureTidder has a brilliant futureTidder has a brilliant futureTidder has a brilliant futureTidder has a brilliant futureTidder has a brilliant future
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 View Post
I try to search but I usually only find posts where people ask questions and darquepervert tells them to search.

Tidder is offline   Reply With Quote
Old 03-25-2009, 08:28 PM   #15
Constant Bitrate
 
Join Date: Jun 2008
Posts: 169
rogerdugans is an unknown quantity at this point
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.
rogerdugans 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
96 Ford Explorer - OBD, GPS, Custom LCD Dash, Emerg Resp peterfnet Show off your project 0 09-12-2008 12:23 PM
Plug-in request: Vehicle Maintenance (for the gifted coders out there) justintime CF Plugins 120 04-08-2008 01:04 AM
Software for logging OBD and GPS ? elkiv54 Engine Management, OBD-II, Engine Diagnostics, etc. 2 08-31-2005 06:21 AM
OBD Diagnostics connected all the time? Zoltan Engine Management, OBD-II, Engine Diagnostics, etc. 7 08-23-2004 03:47 PM
MS Streets and trips with MS GPS module out tomorrow. deer killer GPS 2 08-15-2004 05:49 PM



All times are GMT -5. The time now is 01:27 PM.


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