OBD 1 Diag port reader
#1
Registered User
Thread Starter
Join Date: Jul 2012
Location: Northern Colorado
Posts: 1,776
Likes: 0
Received 109 Likes
on
81 Posts
OBD 1 Diag port reader
Hi all,
As I mentioned on Gevo's smog thread a few days ago, I've been working on a program to read the diagnostic serial data from the OBD 1 diagnostic port. I've created a version with some documentation and attached it as a .zip archive to this thread. I invite you to download it and try it out. Read the UserManual.doc first.
If you short TE2 to E1 on the OBD1 connector, the ECU outputs serial data on pin VF1. Included parameters are rpm, vehicle speed, injector pulse width, ignition advance, TPS setting, AFM setting, ECT value, plus the state of the start switch, the CSI status, idle switch, warm-up mode, air conditioning on, and diag code status.
This program reads that data, displays it and optionally logs it to disk for later analysis after a test drive. It also calculates miles driven, fuel used, and estimated mpg.
Let me know if/how it works for you.
I'm working on a version that integrates O2 sensor data with the data stream, but that's a little while off.
As I mentioned on Gevo's smog thread a few days ago, I've been working on a program to read the diagnostic serial data from the OBD 1 diagnostic port. I've created a version with some documentation and attached it as a .zip archive to this thread. I invite you to download it and try it out. Read the UserManual.doc first.
If you short TE2 to E1 on the OBD1 connector, the ECU outputs serial data on pin VF1. Included parameters are rpm, vehicle speed, injector pulse width, ignition advance, TPS setting, AFM setting, ECT value, plus the state of the start switch, the CSI status, idle switch, warm-up mode, air conditioning on, and diag code status.
This program reads that data, displays it and optionally logs it to disk for later analysis after a test drive. It also calculates miles driven, fuel used, and estimated mpg.
Let me know if/how it works for you.
I'm working on a version that integrates O2 sensor data with the data stream, but that's a little while off.
The following users liked this post:
UGR (09-27-2018)
#2
Glad to see this ! Thanks for all your work RJR.
First thing is first, see if the program will run in windows 8 compatibility mode... unless your program is able to run in android
First thing is first, see if the program will run in windows 8 compatibility mode... unless your program is able to run in android
#3
Registered User
Thread Starter
Join Date: Jul 2012
Location: Northern Colorado
Posts: 1,776
Likes: 0
Received 109 Likes
on
81 Posts
I don't have a Win 8 machine, so I had no way of testing it. However, it's written in Microsoft VB.net 2010 which is Win 8 compatible, so I would expect it to work. Just double click on the .exe file in the runtime directory and see if the form comes up. Even if it can't find a serial port, it should get that far.
I wouldn't hold out much hope for the Android, however:-)
I wouldn't hold out much hope for the Android, however:-)
#5
I tried it on my windows 8 machine, compatibility mode came up and ran into some issues. Lagged around a bit and I had to restart. I think it may work though. On restart comp started updating windows so I let it go and haven't tried it again yet.
#6
Registered User
very cool, been looking for something like this..... thank you!!
Now, perhaps I can eventually tie this into an Arduino to monitor the data in the vehicle.....just dreaming for now.
Now, perhaps I can eventually tie this into an Arduino to monitor the data in the vehicle.....just dreaming for now.
Last edited by RBX; 03-21-2014 at 06:46 AM.
#7
Nha, don't dream, do it! Ardhunios are awesome!
(Sorry slightly off topic) I wanted 110V output in my audi, but didn't want to have car on all the time nor did i want to worry about draining when car was off. So my friend and I wrote a little program using ardhuni as controller, designed a circuit purchased all the parts did some testing and now.. the circuit automatically cuts off when voltage is below some level. If my car was auto we were even gonna have it start the engine automatically. Super fun project! Gonna put it in my 4Runner soon! (wife doesn't need it since I gave her the audi )
(Sorry slightly off topic) I wanted 110V output in my audi, but didn't want to have car on all the time nor did i want to worry about draining when car was off. So my friend and I wrote a little program using ardhuni as controller, designed a circuit purchased all the parts did some testing and now.. the circuit automatically cuts off when voltage is below some level. If my car was auto we were even gonna have it start the engine automatically. Super fun project! Gonna put it in my 4Runner soon! (wife doesn't need it since I gave her the audi )
Trending Topics
#8
Registered User
that is cool, you could have done it with the 5spd by tapping into the clutch kill switch, then monitor rpm(incase you left it in gear) you could remote start it with a bluetooth or wifi shield.
My inverter shuts down before the battery dies....but i have an aux battery anyhow, so I'm not worried about draining a starter battery.
Arduino project to tackle first will be efan control.
now that I think about it, does this software need to be in the jumper mode to work? I'd like to make a mobile unit like a scan gauge, but you can't or shouldn't go driving around all the time in diagnostic mode(jumping the two pins) since that dicks with your timing.
My inverter shuts down before the battery dies....but i have an aux battery anyhow, so I'm not worried about draining a starter battery.
Arduino project to tackle first will be efan control.
now that I think about it, does this software need to be in the jumper mode to work? I'd like to make a mobile unit like a scan gauge, but you can't or shouldn't go driving around all the time in diagnostic mode(jumping the two pins) since that dicks with your timing.
#9
Oh I know that There are ones with built in shut offs. I had a nice inverter that I wanted to use. And the project was a fun exercise.
This OBD reader sounds like it will help my diagnosing the rich condition. I have to find time to make the connector
This OBD reader sounds like it will help my diagnosing the rich condition. I have to find time to make the connector
#10
Registered User
Thread Starter
Join Date: Jul 2012
Location: Northern Colorado
Posts: 1,776
Likes: 0
Received 109 Likes
on
81 Posts
Reading the serial bit stream requires TE2 to be jumped to E1 (ground). This is not the same as jumping TE1 to ground, which is the one that messes with your timing. TE2 puts the system into "super diag" mode which can cause the CEL to come on more quickly to trap intermittent problems, but other than that it does not affect engine performance at all.
#11
Registered User
Awesome project! Unfortunately I know that at least my '90 doesn't have TE2, only TE1. Not sure about the '85 and '88 but probably not. No way to get around that, that you know of?
Anyone that's used this, are you modifying the connections using small spade connectors to the male pins, chopping off the wire at the back of a separate female connector and tying in there, or...?
Also, would this be a compatible 9 pin serial port? Cheap if it is -
Anyone that's used this, are you modifying the connections using small spade connectors to the male pins, chopping off the wire at the back of a separate female connector and tying in there, or...?
Also, would this be a compatible 9 pin serial port? Cheap if it is -
Last edited by jbtvt; 03-21-2014 at 01:00 PM.
#12
Ron, in part 2-A-3-a you mention to get a female db9 connector. If I understand the setuo correctly then we need the db9 connector to connect to pc, right? If so then we need a male connector, correct? Otherwise I may have misunderstood and a 2nd connector is need for some other part?
Thanks. Im at radio shack buying the parts. Lol
EDIT::::: nevermind, I forgot about the serial cable. Lol. Dumb question
Thanks. Im at radio shack buying the parts. Lol
EDIT::::: nevermind, I forgot about the serial cable. Lol. Dumb question
Last edited by Gevo; 03-21-2014 at 07:06 PM.
#13
Registered User
Thread Starter
Join Date: Jul 2012
Location: Northern Colorado
Posts: 1,776
Likes: 0
Received 109 Likes
on
81 Posts
Awesome project! Unfortunately I know that at least my '90 doesn't have TE2, only TE1. Not sure about the '85 and '88 but probably not. No way to get around that, that you know of?
Anyone that's used this, are you modifying the connections using small spade connectors to the male pins, chopping off the wire at the back of a separate female connector and tying in there, or...?
Also, would this be a compatible 9 pin serial port? Cheap if it is - Amazon.com: TRENDnet USB 2.0 to RS-232 DB9 Serial Converter, TU-S9: Electronics
Anyone that's used this, are you modifying the connections using small spade connectors to the male pins, chopping off the wire at the back of a separate female connector and tying in there, or...?
Also, would this be a compatible 9 pin serial port? Cheap if it is - Amazon.com: TRENDnet USB 2.0 to RS-232 DB9 Serial Converter, TU-S9: Electronics
Edit: I don't know when Toyota added this capability to the diag port. I think it was when they went to the larger diag connector, so I'm guessing that the earlier ones with just a few pins won't support this. Nothing I can do about that. There may be a way to get at the data tying directly into a couple of ECU pins, but that would require knowledge only available from inside Toyota R&D and would be far beyond the scope of this project.
Last edited by RJR; 03-22-2014 at 07:16 AM.
#14
Registered User
Yeah I got all excited and went out to check my '91 4Runner connector. Funny thing is the pinout diagram under the protector cap for the connector shows all the pin info for each pin required for this feature, but the connector itself is missing the pins necessary for the serial data (sigh...).This is confirmed by the electrical wiring diagram in the FSM; none of the necessary connection are equipped.
Jim G.
Jim G.
#15
Registered User
Thread Starter
Join Date: Jul 2012
Location: Northern Colorado
Posts: 1,776
Likes: 0
Received 109 Likes
on
81 Posts
Bummer there. Looks like you're one or two model years early. You might want to check and see if the VF1 and TE2 pins exist on your ECU. Maybe they just left the wires out of the harness going to the diag connector.
#18
Registered User
Join Date: Dec 2006
Location: Las Cruces, NM
Posts: 383
Likes: 0
Received 0 Likes
on
0 Posts
Interesting! Thanks for the info!. I suppose thats adequate for these vehicles. My prior OBD-I Mitsubishi's that I have experience tweaking would sample upwards of 40 samples/sec.
Do you know if the ECU (Denso I assume) is rewrite-able? I'm getting ahead of myself though.. No one is going to compile a dump of the ECU to write a program which would allow us to "tune" the fuel and timing maps, alter idle speeds, ect.
Do you know if the ECU (Denso I assume) is rewrite-able? I'm getting ahead of myself though.. No one is going to compile a dump of the ECU to write a program which would allow us to "tune" the fuel and timing maps, alter idle speeds, ect.