Sponsored links

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


Reply
 
Share Thread Tools Display Modes
Old 07-22-2009, 10:29 PM   #1
Newbie
 
Join Date: Jul 2009
Posts: 2
mataston is an unknown quantity at this point
distance travelled

i want to build a device that i can connect to the obd2 interface, to enable me to record the distance travelled, i know i can see this by reseting the trip counter but, but i want to seperate business from pleasure. i was looking at maybe using a picmicro, having two push button switches, one for business and one for pleasure, when i get in the car i press which ever button and it will record the mileage. not sure how i would retrieve this info????
all help appreciated
mataston is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 07-23-2009, 09:20 PM   #2
VENDOR - ScanTool
 
Join Date: Dec 2006
Posts: 234
Vitaliy is on a distinguished road
If this is for tax or business purposes, you also need to be able to enter a short description of the trip. E.g., "meeting with a client", "checking rental property", etc. No?
__________________
— Did you know that MP3Car sells OBD-2 interfaces? Get your ElmScan 5 Compact for only $64.95!
— Need to look up a diagnostic trouble code? Try the most up-to-date, free DTCsearch.com!
Vitaliy is offline   Reply With Quote
Old 07-24-2009, 04:16 AM   #3
Constant Bitrate
 
Join Date: Oct 2008
Posts: 179
p2psmurf is an unknown quantity at this point
For tax purposes there are many existing solutions.
See: http://www.accredis.co.uk/
p2psmurf is offline   Reply With Quote
Old 07-24-2009, 04:35 AM   #4
licensed to kill
 
kev000's Avatar
 
Join Date: Aug 2006
Location: Deep in the Rockies... coding in caves
Posts: 1,039
kev000 will become famous soon enough
afiak, you can't get this from standard obd-II. I have written code to keep track of that via GPS though. However, it's not as accurate as getting it straight from the car...
__________________
LinuxICE - because my car already has enough windows (and because I like speed).
LinuxICE2 beta2 is released!!! get it now!
Follow OpenICE development
kev000 is offline   Reply With Quote
Old 07-24-2009, 07:55 PM   #5
VENDOR - OBDPros
 
Join Date: Mar 2006
Posts: 350
michbound is on a distinguished road
Quote: Originally Posted by kev000 View Post
afiak, you can't get this from standard obd-II. I have written code to keep track of that via GPS though. However, it's not as accurate as getting it straight from the car...

You could derive this by requesting the speed from OBD II every minute (pid 0d) and continually adding the distance travelled in that interval. distance travelled would be speed/60 in this case added every minute.

for greater accuracy request the speed every second and integrate...

Thanks
Paul
michbound is offline   Reply With Quote
Old 07-24-2009, 08:09 PM   #6
Terminal flasher
 
Sonicxtacy02's Avatar
 
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,307
Sonicxtacy02 has a spectacular aura aboutSonicxtacy02 has a spectacular aura about
my vehicle maintenance plugin for RR does this. You have 3 mileage calculators. Total, trip, and waypoint calculation. All thats needed is a gps connection to RR. If you wish to do something standalone yourself, i can share my code for distance calculation
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
Sonicxtacy02 is offline   Reply With Quote
Old 07-26-2009, 12:30 PM   #7
Newbie
 
Join Date: Jul 2009
Posts: 2
mataston is an unknown quantity at this point
odometer

this info is allready computed by the car, it must be doing this via the information from the vehicle speed. the accredis is what i am trying to do but without the information being sent to various servers. No it is not for tax purposes, it is purely for my own information. I think the idea of polling the can bus to request the speed once a second, for the duration of the journey maybe an idea.
mataston is offline   Reply With Quote
Old 07-26-2009, 05:36 PM   #8
North of the land of Hey Huns
 
Join Date: Jun 2004
Location: Westminster, MD
Posts: 1,038
malcom2073 is a name known to allmalcom2073 is a name known to allmalcom2073 is a name known to allmalcom2073 is a name known to allmalcom2073 is a name known to allmalcom2073 is a name known to all
Speed is usually read into the ecu as pulses from a magnetic pickup in the transmission. If you count the pulses not only do you get speed but you get 100% accurate measurement of how often the wheels have turned. Deriving distance from speed is inaccurate but the more samples per second you get the more accurate it is.
__________________
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.
malcom2073 is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 07-27-2009, 04:06 AM   #9
VENDOR - ScanTool
 
Join Date: Dec 2006
Posts: 234
Vitaliy is on a distinguished road
Quote: Originally Posted by malcom2073 View Post
Deriving distance from speed is inaccurate but the more samples per second you get the more accurate it is.

Based on my experience, requesting speed over OBD-II and integrating is an extremely accurate method of measuring the distance.

Vitaliy
__________________
— Did you know that MP3Car sells OBD-2 interfaces? Get your ElmScan 5 Compact for only $64.95!
— Need to look up a diagnostic trouble code? Try the most up-to-date, free DTCsearch.com!
Vitaliy 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
RRPDC - RoadRunner park distance control extension plugin Robby BMW RR Released Plugins 102 11-01-2009 03:33 PM
police laptop\radio frequency jdogg1583 Hardware Development 63 03-31-2008 05:32 PM
distance via gps, help, urgently needed Dj-[NRG] Software & Software Development 3 08-06-2007 10:48 PM
NAV bug: CNavRouteTypeModule - 'by distance', and HWY route options incorrect S4Per StreetDeck 2 07-07-2006 05:38 PM
Voice Doesn't Always Announce Distance skeeter007 Map Monkey 24 12-22-2004 04:47 PM



All times are GMT -5. The time now is 04:20 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