The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

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

Reply
 
Thread Tools Display Modes
Old 09-20-2004, 02:00 PM   #61
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Vehicle: 2003/Infiniti/G35 Sport Coupe
Posts: 2,951
My Photos: (0)
I'm currenly adding some "extra" PIDs and conversion functions I found. I'm not quite sure what they are if they are just more standard or extended, if they only work with specific vehicle etc., but I found them here: http://www.ghg.net/dharrison/OBDScanAPI.PDF in mode 1 PID 0x21 and up. I'm assuming there more OBD II standard codes possibly a newer revision?

I'll be testing them out later today. Let me know if you know anything about these PIDs.
__________________
StreetDeck.com Developer (I am Chuck)
Get StreetDeck at http://www.streetdeck.com
god_of_cpu is offline   Reply With Quote
Sponsored Links
Old 09-20-2004, 02:04 PM   #62
Variable Bitrate
 
darkhalo's Avatar
 
Join Date: Apr 2004
Location: Puerto Rico
Vehicle: 2000 Honda S2000
Posts: 302
My Photos: (0)
forgive me for my ignorance but has anything changed regarding the 2.5 updates per second?

Thanks,
eric
__________________
Carputer: 2.8Ghz P4, 512 RAM, 120gb HDD, WIFI, TV tuner, CDRW/DVDROM, Slot load DVD in front.
Screen: Lilliput 7" touchscreen (Custom made Carbon Fiber Screen Enclosure)
S2000 Carputer
darkhalo is offline   Reply With Quote
Old 09-20-2004, 02:28 PM   #63
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Vehicle: 2003/Infiniti/G35 Sport Coupe
Posts: 2,951
My Photos: (0)
Yes actually, while debugging on the weekend I discovered that the SetTimeout function was actually never working. It turns out ELM made a second version of the chip and only this second version has the function enabled, which they just plain don't mention in thier documentation. I have the first version, but I just ordered the second version this weekend so I can test with it. Using the settimeout function it should be possible to change the amount of time the ELM waits before sending another command. This should make it possible to get updates closer to 10 times a second depending on your car's OBD II hardware. The timeout will be controlled by the configuration dialog in the plugin.

I also discovered that if your car uses the PWM protocol, it should be possible to get updates as good as 40 hz, however, not with the ELM, which tops out at 10 hz. Check out http://www.obd-2.com/ for more info.
__________________
StreetDeck.com Developer (I am Chuck)
Get StreetDeck at http://www.streetdeck.com
god_of_cpu is offline   Reply With Quote
Old 09-20-2004, 02:44 PM   #64
See me in my wet t-shirt.
 
stevieg's Avatar
 
Join Date: Aug 2003
Location: Warwickshire, UK
Vehicle: Ford Focus MP3
Posts: 1,909
My Photos: (0)
OK, I'm up and working using the latest version of the API, and updated all the functions successfully, and the Faker DLL works perfectly.

Still not working in the car so far though!!!

The code that I'm using is here http://www.stevegoodman.plus.com/ECUData.zip , left with all logs after running it (nothing seemed to show up though) - the two batch files are to copy the ELM/Faker to a single DLL so I can switch between them.

Attached is the error message - I couldn't see anything in the log
Attached Images
 
__________________
Ford Focus MP3 : www.stevieg.org/carpc
Car PC Status: COMPLETE
stevieg is offline   Reply With Quote
Old 09-20-2004, 03:15 PM   #65
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Vehicle: 2003/Infiniti/G35 Sport Coupe
Posts: 2,951
My Photos: (0)
That error is because it's sending a command to the ELM that is not understood by it. Which means it's communicating with the ELM and recieving data back, but the data it recieved back is a question mark ? which usually means an undefined command was sent to the ELM. I'm going to add another debug statement to that function to output exactly what is sent and recieved when that error occurs. I'll run your code in an hour or two when I get home. Did you try ignoring the error?

Which version of the ELM are you using BTW?
__________________
StreetDeck.com Developer (I am Chuck)
Get StreetDeck at http://www.streetdeck.com
god_of_cpu is offline   Reply With Quote
Old 09-20-2004, 03:26 PM   #66
See me in my wet t-shirt.
 
stevieg's Avatar
 
Join Date: Aug 2003
Location: Warwickshire, UK
Vehicle: Ford Focus MP3
Posts: 1,909
My Photos: (0)
Quote: Originally Posted by god_of_cpu
That error is because it's sending a command to the ELM that is not understood by it. Which means it's communicating with the ELM and recieving data back, but the data it recieved back is a question mark ? which usually means an undefined command was sent to the ELM. I'm going to add another debug statement to that function to output exactly what is sent and recieved when that error occurs. I'll run your code in an hour or two when I get home. Did you try ignoring the error?

Which version of the ELM are you using BTW?

I think I tried RETRYing. I'll go out to the car and try IGNOREing.

It's the ELM 320
__________________
Ford Focus MP3 : www.stevieg.org/carpc
Car PC Status: COMPLETE
stevieg is offline   Reply With Quote
Old 09-20-2004, 03:39 PM   #67
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Vehicle: 2003/Infiniti/G35 Sport Coupe
Posts: 2,951
My Photos: (0)
You should've also gotten stuff in the log when you saw the assert telling you which command cased it, it probably just didn't write the file when you clicked retry. I'll update the log write so it flushes the file every time hopefully that will help.

The 320 looks exactly the same as the 323 so thats probably not the problem... Do you know if its the v1.1 of the 320 or the v2.0 of the 320? It outputs this when you issue an ATZ command to it. I will try and add this to the next update so it logs the version when it connects...
__________________
StreetDeck.com Developer (I am Chuck)
Get StreetDeck at http://www.streetdeck.com
god_of_cpu is offline   Reply With Quote
Old 09-20-2004, 03:47 PM   #68
See me in my wet t-shirt.
 
stevieg's Avatar
 
Join Date: Aug 2003
Location: Warwickshire, UK
Vehicle: Ford Focus MP3
Posts: 1,909
My Photos: (0)
Right I've just tried again in the car and pressed ignore.

I've drove up and down the road and here's the log. I stopped and started it after driving, I don't know if that's in the log too.

So now I actually have something working, I have noticed it didn't seem to get the correct data. It said 40MPH, -119 Fuel trim, 4163RPM, and something else for the MAF - can't remember it all. Weird thing was it didn't change - just output the same data !

Below is the log file.

Code:
==================================== Log Started: Sep 20, 2004 - 21:30 ==================================== CELM323 : COM port 1 opened successfully CELM323 : Resuming data polling... CELM323 : Resuming data polling... CELM323 : Resuming data polling... CELM323 : Resuming data polling... CELM323 : ELM device reset! CELM323 : Echo Off CELM323 : Killed threads! CELM323 : SERIAL ERROR! CELM323 : Failed to set timeout! CELM323 : Killed threads! CELM323 : COM port 1 opened successfully CELM323 : Resuming data polling... CELM323 : Resuming data polling... CELM323 : Resuming data polling... CELM323 : Resuming data polling... CELM323 : ELM device reset! CELM323 : Echo Off CELM323 : Killed threads! CELM323 : SERIAL ERROR! CELM323 : Failed to set timeout! CELM323 : Killed threads!

By the way I think it's the V2 - it's about a month old.
__________________
Ford Focus MP3 : www.stevieg.org/carpc
Car PC Status: COMPLETE
stevieg is offline   Reply With Quote
Old 09-20-2004, 04:30 PM   #69
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Vehicle: 2003/Infiniti/G35 Sport Coupe
Posts: 2,951
My Photos: (0)
Yes, it seems to be working as it should be, the reason why you are getting the assertiona failures is cause SetTimeout is failing. I get those too, although it shouldn't be since you should have version 2.0 of the ELM interface. All the data will be wrong cause of the error I mentioned earlier with the conversion function. I'm compiling now and as soon as I get all the bugs fixed I'll upload a new version that should give you the correct values.
__________________
StreetDeck.com Developer (I am Chuck)
Get StreetDeck at http://www.streetdeck.com
god_of_cpu is offline   Reply With Quote
Old 09-20-2004, 04:37 PM   #70
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Vehicle: 2003/Infiniti/G35 Sport Coupe
Posts: 2,951
My Photos: (0)
Heres just the updated DLL... Untested, I'm going out to my car now, but it should work better then your current one. I no longer try to set the timeout in this one.
__________________
StreetDeck.com Developer (I am Chuck)
Get StreetDeck at http://www.streetdeck.com

Last edited by god_of_cpu : 09-21-2004 at 08:40 AM.
god_of_cpu is offline   Reply With Quote
Sponsored Links
Old 09-20-2004, 04:37 PM   #71
See me in my wet t-shirt.
 
stevieg's Avatar
 
Join Date: Aug 2003
Location: Warwickshire, UK
Vehicle: Ford Focus MP3
Posts: 1,909
My Photos: (0)
Quote: Originally Posted by god_of_cpu
Yes, it seems to be working as it should be, the reason why you are getting the assertiona failures is cause SetTimeout is failing. I get those too, although it shouldn't be since you should have version 2.0 of the ELM interface. All the data will be wrong cause of the error I mentioned earlier with the conversion function. I'm compiling now and as soon as I get all the bugs fixed I'll upload a new version that should give you the correct values.

I'll check the interface version in the morning - getting late here and it's a pain to hyperterminal to it using the OSK and touchscreen

I'm chuffed to have something working though and can't wait to try the new version in the morning! Now to start working on some graphics for some gauges
__________________
Ford Focus MP3 : www.stevieg.org/carpc
Car PC Status: COMPLETE
stevieg is offline   Reply With Quote
Old 09-20-2004, 09:54 PM   #72
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Vehicle: 2003/Infiniti/G35 Sport Coupe
Posts: 2,951
My Photos: (0)
I tested out the dll and fixed a few more bugs. I also havent been able to get any of the new PIDs above 20 to work. Let me know if you have any success reading them.

The only 2 current bugs that I know of are the timeout in the configuration dialog does not update the timeout label and the packet generating function still generates incorrect packets which should just effect the faker plugin which I havent updated either.

I still want to add support for Mode 9 PID to get the vehicles VIN and the mode 5-7 pids for running tests, but I can't seem to find any documentation on these have any links or any clue on how these work?
__________________
StreetDeck.com Developer (I am Chuck)
Get StreetDeck at http://www.streetdeck.com
god_of_cpu is offline   Reply With Quote
Old 09-20-2004, 11:32 PM   #73
FLAC
Curiosity's CarPC Specs
 
Curiosity's Avatar
 
Join Date: Mar 2004
Location: Florence Yall, BFKY
Vehicle: 98 Trans Am
Posts: 1,701
My Photos: (3)
Above 20 hex? From what I remember, PID 0 of most modes gives you a 32 bit value of what PIDs are available up to 1Fh and if bit 0 is set, then PID 20h is available which is another set of 32 bits, and so on with 40h, 60h, up to 100h. I don't know what they are past 20h though.

Mode6 is probably the only other interesting one. Each PID has 5 bytes which are 8 bit flags, 16 bit value, 16 bit limit, and can return more than one response to one request.
__________________
XPort 1.24 -GPS port splitter, logger, and USB device resume fix
Curiosity is offline   Reply With Quote
Old 09-21-2004, 06:07 AM   #74
See me in my wet t-shirt.
 
stevieg's Avatar
 
Join Date: Aug 2003
Location: Warwickshire, UK
Vehicle: Ford Focus MP3
Posts: 1,909
My Photos: (0)
OK, I'm still not working completely yet....

No data coming in like it should be.

I've got a log from your DLL.

When I went into Hyperterm for some reason it polled a massive buffer from the ELM that must have been requested by your app... I've attached that too..
Attached Files
File Type: txt LOG.TXT (476 Bytes, 146 views)
File Type: txt ELMDebug.txt (1.4 KB, 155 views)
File Type: txt Sep 21, 2004 - 09_47.txt (464 Bytes, 140 views)
__________________
Ford Focus MP3 : www.stevieg.org/carpc
Car PC Status: COMPLETE
stevieg is offline   Reply With Quote
Old 09-21-2004, 08:40 AM   #75
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Vehicle: 2003/Infiniti/G35 Sport Coupe
Posts: 2,951
My Photos: (0)
Are you running with the DLL attached to this page or did you redownload the SDK from the site. The DLL attached is no longer up to date. Download the SDK for the latest updates.

I can tell the log file you sent me is coming from something thats not the latest compiled DLL. Its possible that the latest DLL didn't get into the zip file I uploaded though.
__________________
StreetDeck.com Developer (I am Chuck)
Get StreetDeck at http://www.streetdeck.com

Last edited by god_of_cpu : 09-21-2004 at 08:46 AM.
god_of_cpu is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone have workign VB code for elm scan? infinkc Engine Management, OBD-II, Engine Diagnostics, etc. 12 06-11-2005 06:16 AM


All times are GMT -5. The time now is 09:04 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics