View Single Post
Old 09-10-2004, 03:26 AM   #1
stevieg
See me in my wet t-shirt.
 
stevieg's Avatar
 
Join Date: Aug 2003
Location: Warwickshire, UK
Posts: 1,909
OBDII / Elm MPG meter for mediacar. Almost working but not quite!

I've been working on a instant/average MPG meter to fit into MediaCar.

I've got it almost working, I'm just having trouble on the last 1%

The application appears to work out the MPG (UK gallon) correctly. It also works in 'test' mode where it reads from a logfile.

I used jelm (http://www.sophonix.com/downloads/jelmemulator.asp) with some modifications to send back the pids I needs to test it while developing it.

But when I get it in the car it doesn't work very fast (I had to turn echo on, linefeeds on even though it worked without in the emulator) and crashes eventually with dive by zero.

I haven't found any VB code as a decent starting point really for the elm interface and now I seem to be going round in circles, developing it any further involves sitting in the car on the car pc with a keyboard so I can get live readings..

Does anyone have any dcenet VB source code (VB6 or dot net) they are willing to share or can tell me how to fix the code I have got?

I've attached the source code of what I have done so far. If anyone wants to use any of it by the way it is BSD license so basically you can do what you want with it.
Attached Files
File Type: zip CarData.zip (95.6 KB, 1790 views)
__________________
Ford Focus MP3 : www.stevieg.org/carpc
Car PC Status: COMPLETE
stevieg is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links