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?
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
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?
You cannot send me a private message using this forum. Use my email instead: vitaliy[@]scantool.net.
— Did you know that MP3Car sells OBD-2 interfaces? Get your OBDLink for only $84.99!
— Need to look up a diagnostic trouble code? Try the most up-to-date, free DTCsearch.com!
For tax purposes there are many existing solutions.
See: http://www.accredis.co.uk/
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...
Former author of LinuxICE, nghost.
Current author of nobdy.
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
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
NOVA, MD, DC Monthly Meets Here
Ride Runner and Centrafuse 3 plugin creator
mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
Find my plugins on the MP3Car App Store!
Follow Me on Twitter or Facebook
Live mp3Car Facebook Chat
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.
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 - Super fast, modular frontend. Most powerful skinning engine in existence. Strong enough for an i7 made for a fitpc.Originally Posted by mitchjs
Just a shame I can't justify a carpc to use it on anymore.
Based on my experience, requesting speed over OBD-II and integrating is an extremely accurate method of measuring the distance.
Vitaliy
You cannot send me a private message using this forum. Use my email instead: vitaliy[@]scantool.net.
— Did you know that MP3Car sells OBD-2 interfaces? Get your OBDLink for only $84.99!
— Need to look up a diagnostic trouble code? Try the most up-to-date, free DTCsearch.com!
Bookmarks