ALDL PC Interfacing
AOL screen name: weinerschizel
MSN Messenger: weinerschizel@hotmail.com
My first program I’m writing is simply to backup the PCM. I want to download the entire memory bank on the PCM to a file on the computer. Next, I want to write a program that will Flash and re-upload the file to the PCM. I am also working to make it as GENERIC as possible so those out there with any OBD-I/II GM cars can make use of it (if this is possible).
I have already viewed “Andrews ALDL GM stuff” and virtually everything linked to it. I also have a copy of the HEX definitions from the OBD I computer.
ANY HELP IS GREATLY APPRECIATED!!!!!
A few questions:
1) What language are you programming in?
2) What PCM are you targeting first?
3) Do you have any documentation other than what was on my web site? <img src="gr_grin.gif" border="0"> You'll need much more, I'm afraid...
I don't have much for OBDII yet, but I'm working on it. http://www.akmcables.com/obdii.htm
Here's the gist of how it's done. Unfortunately, I don't know the commands to do this, but here's the procedure.
First, you put the PCM in to 'execute from RAM' mode. Then you load commands in to the PCM RAM, and the microcontroller takes over. Not only is the OBDII command required, but knowing Motorola 68HCXX is required (the LS1 uses a 68HC332 variant). At least, I *believe* this is how it's done, according to folks I've talk to (Steve Cole at TTS and Dave at Carputing).
Way over my head, I'm afraid...
-Andrew
I'm going to wite a preliminary set of programs in C++ to run from the dos prompt... then make a bootable cd that can do these things cause DOS is way more stable and I don't like the idea of windows crashing when i go to flash my PCM <img src="gr_sad.gif" border="0"> that would be no good.
As far as further documentation. I don't have much <img src="gr_sad.gif" border="0"> I would like to get my hands on as much as possible. I'm a sophomore studying computer engineering though wich helps a LOT cause I can gain access to help from professors and what not.
the problems I'm encountering right now are:
1) my c++ is a little rusty <img src="gr_sad.gif" border="0"> but i'm taking a new class in it right now so this will help.
2) haven't quite figured out how to read from the serial port... but it doesn't look that hard to figure out.
3) my biggest major hurdle. I'm not sure what command to send to the PCM to get it to transmit it's memory contents to the pc.... is there code that will allow you to define what you would like to grab from the memory like which blocks and what not?? My first goal is to grab it ALL.... Every little bit of it so I can back it up <img src="gr_stretch.gif" border="0">
I did find your site VERY informative!! its great!! I will share any information I find with you. Thanks for your help!!!!!
As for the commands, if you're not too proud to do a little reverse engineering, you can download the PCMread program from http://www.carputing.com - it allows you to log communications to disk. You can look at the transmitted and received commands & responses. However, you're going to need to know Motorola assembler to really make sense of these (see my post above about executing from RAM - the OBDI LT1 PCM does it too).
Keep in mind. This software ONLY works on OBDI LT1 cars, and no others. GM changes their ALDL routines for nearly every engine & platform. And OBDII is completely different.
As for 'fixing a messed up PCM', you CANNOT do that over the ALDL bus wire. Period. You must remove, reprogram, and resolder the flash memory chip. My old page at http://www.mindspring.com/~amattei/flashfix.htm covers how I used to do this (my old method). I need to make a new page. I've got 3 PCMs at my house, and at least 2 in transit, that I'll be fixing in the next few days. <img src="gr_grin.gif" border="0">
-Andrew
Gary
Trending Topics
<strong>What I've been avoiding, is having to buy the SAE-3000 manual (OBD bible) for $90.</strong><hr></blockquote>
BUY IT!!!
My copy came in yesterday and it is awesome. To get the data rate you want you'll need to put together a request that returns multiple piece of information at once. This book tells exactly how to do it and has examples of the request/responses.
I'm working on a OBDII scan tool for my palm pilot right now.
What I really want to know is how to make my windows roll up and down like this thing does:
http://www.topdowntech.com/productInfo.html
<img src="gr_grin.gif" border="0">
OBDI stuff
On the original subject I wrote a 94-95 scan tool in perl using linux. It was a fun toy but I never really got the timing exact so my frame rate was only 10-12 fps.
Just so you know, LT1 Edit and Tunercat both download ALL the memory that is addressable by the pcm. There are two parts of the 94-95 pcm, the T side and the E side. $0 to $1FFF are memory, $2000 and up is the flash prom on each side.
When you say OBDI, I assume you mean the 94-95 lt1 f-body pcms. OBDI is not much of a standard when it comes to stuff like this so each pcm is going to be a bit different in its own way.
My '93 LT1 doesnt flash so I lost interest in doing that on my own.
Eric
The Best V8 Stories One Small Block at Time
i got interface with the serial port figured out... I'm just having one last trouble with it though. I can't get the right library to allow me to use outp and inp tags... I'm runing GRRRRR stupid friggien riggen, microsoft visual c++. Were did you find the library to do it with?
Thanks for the help!
ftp://diy-efi.org/incoming/95camaro.zip
-Andrew
Also a free OBD-II VPW software driver that requires no hardware interface (save the two wires to connect) includes source code. It's a bit flaky due to the standard PC (DOS and Windows) not having a much of a concept of what "real time" actually means. Trying to get DOS to calculate timings as small as 40 microseconds is a big ask. But it works on some platforms and I can get trouble codes out of my LS1 using it.
If anyone wants to have a go at making it more stable please do. I don't have time right now, but I'd love to see it working properly.
These can be found at www.blacky.co.nz/free
Plus Carbytes V2 (also free) which, as well as being a scan tool, allows you to download and save your ECM's memory.
Regards
Paul
P.S. Hi Andrew M. (aka Camaroholic) if you ever get the OBD-II hardware working I would be interested in porting EFIlive V5 to use it.
Too many lists - not enough bandwidth <img src="gr_stretch.gif" border="0">
I still have all my links saved so maybe they will be of use to you.
Carputing
ECU Software
GM P4 ECM Crossreference
How to hack GM ECM
DIY EFI
Ruse Electronics (Interface Cables)
LT1 Edit
TunerCat
Universal Cross Disassembler
Have you seen the CJ II scanner for the Palm OS? You can see it at www.etoolcart.com I've talked to the guy about a GP of sorts- it was priced about the same as Atap.
JEFF
Here is the CJ II:
http://www.etoolcart.com/product.asp?3=9
[ January 17, 2002: Message edited by: JJH98SS ]</p>




