Stamp communicate with ALDL interface?
Series8217
Posts: 16
I'm interested in using a BASIC Stamp for an ALDL interface. This is a 8192 baud serial interface that General Motors engine control computers use to send diagnostic information to scantools. Is it possible to have a Stamp receive data (for computation purposes or to display on an LCD for example) on the 8192 baud serial connection?
Comments
You will need an OBDI to serial converter, but after that the Stamp will work fine with the data from the OBDI signals.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
I think I have a schematic for a OBD1 to Serial converter when I use to tune my Chevy LT1 motor...I will try to locate it if you want it..
www.techedge.com.au/vehicle/aldl8192/8192hw.htm
I do already have an OBD1/ALDL to R232 converter, so I guess I just have to get a Stamp now .
Here is a OBDII to serial converter. It has all 9 protocols.
Jason
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
He who dies with the most toys wins!
Iin the Stamp manual it says to use a 22k resistor on the receive pin to limit current to the clamping diode for direct connections to RS232 serial ports (i.e. without the MAX232). Do I still need to use the 22k resistor in the receiving pin on the Stamp when also using the MAX232, or is that just for serial connections without a MAX232? The manual isn't very clear on this.
Its safe to hook the ttl (ie 5 volt)side of the MAX233 directly to the stamp pins.
The 22k resistor is only needed if rs-232 level signals ( which can have levels of 12 to 25 volts ) are connected to the Stamp.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
Now to figure out what this data I'm getting actually means... it doesn't match the normal mode message that the documentation I have shows.
I'm using this converter circuit with an LM2940CT +5v voltage regulator (the one built into my BS2p24/40 Demo Board):
http://www.geocities.com/viscroceus/aldl/sch.pdf
"DB9 pin 3" on that diagram is connected to pin 1 on my BS2p and is used for SEROUT commands. "DB9 pin 2" is connected to pin 2 on my BS2p and is used for SERIN commands.
When I use SERIN and grab a string of characters it works fine. The BS2p picks up the normal mode message from the engine computer (ECU). It is totally consistent and repeats itself without dropping any bytes. Awesome.
The problem appears when I try to use the SEROUT command to send anything to the ECU. No matter what it is I send, the serial interface immediately "locks up" or otherwise stops interpreting the received data. The Stamp works fine, but will timeout when trying to receive data after a SEROUT command has been used to send any data. If I reset the Stamp and program it to not send any data, it will receive the normal mode message from the ECU without me having reset the ECU.. so I know the problem is isolated to my converter circuit or the Stamp itself, not the ECU locking up due to bad data. Any ideas?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Post Edited (Series8217) : 8/9/2006 3:01:27 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Chris, I did some further probing about with a voltmeter. The data line going to the ECU idles at +5V like you say it should, until the SEROUT command is run; then it goes to 0V and transmission stops. By driving the serial output pin low the data line pops back up to +5v and things start working again. So what the MAX233 is doing is converting the +5v signal from my BS2's serial output put to a 0V and thus preventing me from receiving anything. Does this mean I have to use inverted transmission to SEND data but not when receiving it? Serial input on this interface seems to be working perfectly.
Now I can build my PCB and get this thing installed in the car... awesome.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com