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 06-01-2009, 01:22 AM   #1
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 403
chunkyks is on a distinguished road
MAF NO DATA Problem

This is a followup thread to this one.

longfeltwant was getting occasional NO DATA responses to the same PID that was working the rest of the time.

I was just re-reading the elm327 spec [there's a copy in doc/ in the svn repo]. There's an internal timeout that might explain what you're seeing. Could you try editing logger/obdserial.c, around line 105, and add a blindcmd that increases the timeout? Something like
blindcmd(fd,"ATST50\r");

The default is 32, which represents about 200ms [according to the doc. Also according to the doc, it represents 128 if you do the math. Yay embedded documentation].

Try increasing that to, say, 50 [which represents a timeout of either 312 or 200ms depending on which bit of the docs are correct...]

Gary (-;
chunkyks is online now   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 06-02-2009, 12:10 AM   #2
VENDOR - ScanTool
 
Join Date: Dec 2006
Posts: 235
Vitaliy is on a distinguished road
Quote: Originally Posted by chunkyks View Post
This is a followup thread to this one.

longfeltwant was getting occasional NO DATA responses to the same PID that was working the rest of the time.

I was just re-reading the elm327 spec [there's a copy in doc/ in the svn repo]. There's an internal timeout that might explain what you're seeing. Could you try editing logger/obdserial.c, around line 105, and add a blindcmd that increases the timeout? Something like
blindcmd(fd,"ATST50\r");

The default is 32, which represents about 200ms [according to the doc. Also according to the doc, it represents 128 if you do the math. Yay embedded documentation].

Try increasing that to, say, 50 [which represents a timeout of either 312 or 200ms depending on which bit of the docs are correct...]

Gary (-;

The numbers in the datasheet, are in hex.

32 hex = 50 decimal
50 x 4 ms = 200 ms

Best regards,

Vitaliy
__________________
— Did you know that MP3Car sells OBD-2 interfaces? Get your ElmScan 5 Compact for only $59.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 06-02-2009, 02:18 AM   #3
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 403
chunkyks is on a distinguished road
Oh, hey. Thank-you!

Gary (-;
chunkyks is online now   Reply With Quote
Old 06-02-2009, 03:44 AM   #4
Newbie
 
Join Date: May 2009
Posts: 31
longfeltwant is an unknown quantity at this point
I tried adding

Code:
blindcmd(fd,"ATST50\r");

at line 106 of /src/logger/obdserial.c and ran it in my 2005 Jeep Liberty. On the command line, right when obdgpslogger starts up, after saying it connected to the serial ports, in the middle of the errors about creating the tables, it says

Code:
OBD PID 16 [maf] unsupported

Then it prints lines for temp, rpm, vss, throttlepos, and gpspos -- then repeats. It never prints any values for MAF. Before, when I was sometimes getting lines with readings for "maf", it may have been some kind of bug printing the wrong field name. Who knows.

Anyway, I continue to get reasonable results, except without the red/green coloration which would indicate the incalculable mpg. I will modify obd2kml to use some other criteria for the coloration, or will calculate it a different way, and then I will post my results.

Attached are two trips I took yesterday and today. I have changed the extension from kml to txt to attach to this post. This little system is looking better and better, and your improvements have really made a difference.
Attached Files
File Type: txt obdlogger-2009-05-31.txt (409.8 KB, 21 views)
File Type: txt obdlogger-2009-06-01.txt (34.3 KB, 29 views)
longfeltwant is offline   Reply With Quote
Old 06-02-2009, 12:30 PM   #5
Newbie
 
Join Date: May 2009
Posts: 31
longfeltwant is an unknown quantity at this point
I have an answer to why my Jeep won't give out a MAF reading. I asked an automotive professional friend and he said:

"There is an easy answer for your MAF sensor question...your Jeep
doesn't have one. The fuel injection system does speed-density
calculations where the PCM uses data from the MAP (Manifold Absolute
Pressure) sensor and RPM readings from the CKP (Crankshaft Position)
sensor to calculate injector pulsewidth and timing."

So I will try to think of a different strategy for calculating MPG.
longfeltwant is offline   Reply With Quote
Old 06-02-2009, 12:36 PM   #6
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 403
chunkyks is on a distinguished road
Quote:
Code:
OBD PID 16 [maf] unsupported

Heh. No MAF for you, sorry. I'm not sure why it was successful before, perhaps it was an errant response from another ECU [currently I'm trying to figure out how to safely only get the engine ECU to respond using ATCRA].

Errors about the database; were they "table already exists" kinda things? It's worth noting that once the code has noticed MAF isn't available, when it creates the database it won't create a maf column.

It's just occurred to me that there may be a bug lurking in obd2kml where if the maf column doesn't exist, you may get unreliable output. Can you make sure that if you create a brand new logfile from scratch, without maf in it, that obd2kml doesn't just crash? I remember writing code for obd2csv that sanity checked and refused to try to calculate certain columns if you don't have maf or vss, but I don't remember doing the same thing in obd2kml.


Rather than change the colorations, feel free to add new graphs to obd2kml. If you can figure out good graphs to add, go ahead! To add colored graphs, check kml/heightandcolor.h. To add plain graphs, check kml/singleheight.h
If you come up with completely new and better visualisations, please let me know.

At this point I've crossed into the realm where my knowledge of statistics and useful data visualisation is holding me back, so if you have useful stuff to add, *please* do so :-D

Oh, and I'm abundantly aware that the progress reporting in obd2kml is hopelessly busted. It's only used for the gui, but fixing it "properly" is pretty high on my list of stuff to do. If you add stuff, and "forget" to bother with progress reporting, that's fine; it'll incite me to figure out a decent fix for the problem.

Quote:
This little system is looking better and better, and your improvements have really made a difference.

I'm glad! I know I've said this many times before, but seeing people actually using my stuff gets me totally stoked. One day I hope to actually have an easy-to-use, popular tool for linux and OSX users.

Gary (-;
chunkyks is online now   Reply With Quote
Old 06-02-2009, 12:39 PM   #7
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 403
chunkyks is on a distinguished road
Quote:
I have an answer to why my Jeep won't give out a MAF reading

Heh. I'm glad that obdgpslogger is getting the engine capabilities right. I rewrote most of the capabilities code at the weekend, and was slightly worried I might have introduced bugs :-)

Gary (-;
chunkyks is online now   Reply With Quote
Old 06-28-2009, 01:40 PM   #8
Newbie
 
Join Date: Jun 2009
Posts: 8
smokeybreeze is an unknown quantity at this point
Quote: Originally Posted by longfeltwant View Post
I have an answer to why my Jeep won't give out a MAF reading. I asked an automotive professional friend and he said:

"There is an easy answer for your MAF sensor question...your Jeep
doesn't have one. The fuel injection system does speed-density
calculations where the PCM uses data from the MAP (Manifold Absolute
Pressure) sensor and RPM readings from the CKP (Crankshaft Position)
sensor to calculate injector pulsewidth and timing."

So I will try to think of a different strategy for calculating MPG.

Hey longfeltwant -

Did you ever come up with the MPG calculations when no MAF sensor data is available?

I'm having the same issue and am interested in working on this too.
smokeybreeze is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 06-28-2009, 04:27 PM   #9
Newbie
 
Join Date: May 2009
Posts: 31
longfeltwant is an unknown quantity at this point
No I did not ever find a solution to the MPG problem. I found a few different descriptions online of people who calculated MPG using complicated calculations with things like engine displacement, so it wouldn't be a universal calculation. I decided to focus on other ways to make the data look good in Google Earth. But if you have a bright idea, I'm keen to hear it.
longfeltwant 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
How to use your VERIZON cell for FREE internet racerboy6996 Wireless Communications 260 08-23-2009 04:47 PM
Packed data anyone???????? jfiliaul Engine Management, OBD-II, Engine Diagnostics, etc. 4 03-17-2009 07:30 PM
Can you guys please help me??? OBD Renault Clio help needed! madtoonbull Engine Management, OBD-II, Engine Diagnostics, etc. 7 02-19-2009 11:36 AM
Digimoto 5.0 Beta Release digimotojoel Engine Management, OBD-II, Engine Diagnostics, etc. 3 02-26-2007 12:34 AM
Windows XP hibernation problem: delete corrupt hibernation data? bosskong WinNT Based 4 10-10-2005 01:56 PM



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