Go Back   Third Generation F-Body Message Boards > Tech Boards > DFI and ECM
Sign in using an external account
Register Forgot Password?

DFI and ECM Discuss all aspects of DFI (Digital Fuel Injection), ECMs (Electronic Control Module), scanners, and diagnostic equipment. Fine tune your Third Gen computer system for top performance.

Welcome to ThirdGen.org!
Welcome to ThirdGen.org.

You are currently viewing our forum as a guest, which gives you limited access to view most discussions and access our other features. By joining our community, at no cost, 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 free, fast and simple, join the ThirdGen.org community today!


Reply
 
Thread Tools Search this Thread
Old 08-20-2009, 05:11 PM   #1
Junior Member
 
Join Date: Dec 2005
Posts: 3

Classifieds Rating: (0)
ALDL Serial (TTL) Question

Hey guys... this is a great site, and this is my first post for something I haven't been able to find out myself. I'm investigating building an ALDL datalogger for iPhones. Nothing fancy at first, probably just for dumping the data frames to the internal flash for later download. Maybe later I can build a dashboard UI, but for now, I just want the ECM's data stream.

As I understand it, ALDL's datastream (at least for my '7427) is 8192 baud 5V TTL. The iPhone is 3.3V TTL, which should be a simple level conversion, using something like the LM1117 chip and a couple of caps. I've seen some ALDL homebrew schematics that use the PC's TX line... is this necessary? If I just jump the ALDL's diagnostic pin to ground with a 10kohm resistor, I can effectively put the ECM into datastream mode, correct? Then all I need is the ALDL TX => iPhone RX level converter and I'm set? If I were to desire the iPhone to enable the datalogging mode through software (rather than a 10kohm resistor), what would be required of the iPhone's TX pin?

This is not an iPhone-specific question, it can be applied to any datalogger device that happens to require 3.3V (or even 5V) TTL input.

Thanks!
SnackPack is offline vBGarage Page   Reply With Quote
Old 08-20-2009, 08:14 PM   #2
Member
 
Drumer919's Avatar
 
Join Date: Mar 2009
Location: Columbus, OH
Posts: 185
Car: 1995 S10
Engine: 5.7 L31
Transmission: 4L60E
Axle/Gears: 8.8 Ford/3.73 posi

Classifieds Rating: (0)
Re: ALDL Serial (TTL) Question

I'm not much help but I use my WinMo6.5 phone to datalog my AEM UEGO using a bluetooth serial port. Never tried to get it to work with the ALDL data though.
__________________
Dan - ASE certified-A1, A4, A5, A8
This is for all things four wheeled and fast...
95 S10 ecsb-350ci, Ported 906 vortec's, L31 intake, 9.5:1, Crane(.484/.512 216/228 112LSA), Hooker Super comps, 2.5" ORY, E-cutout, 40 series flow, 4L60E, 8.8 f*rd posi w/ 3.73's, 7427 PCM, MPFI mode, $OD, WB02. - Daily Driven!
Drumer919 is offline vBGarage Page   Reply With Quote
Old 08-20-2009, 08:58 PM   #3
Moderator
 
Six_Shooter's Avatar
 
Join Date: Mar 2006
Posts: 2,620
Car: 1973 Datsun 240Z/ 1985 S-15 Jimmy
Engine: Turbo 2.8L I6/To be decided
Transmission: 5-speed/T-5
Axle/Gears: R200 3.90/7.5" 3.73

Classifieds Rating: (1)
Re: ALDL Serial (TTL) Question

The '427 doesn't use the 10K resistor to enable datalogging. Only the '165 uses that.

You have to send a command to the ECM to enable serial data.

Look in the stickies of the DIY PROM, for more information.
__________________
If you're not living on the edge, you're taking up too much space.
Six_Shooter is offline vBGarage Page   Reply With Quote
Old 08-21-2009, 01:36 AM   #4
Junior Member
 
Join Date: Dec 2005
Posts: 3

Classifieds Rating: (0)
Re: ALDL Serial (TTL) Question

Quote:
Originally Posted by Six_Shooter View Post
The '427 doesn't use the 10K resistor to enable datalogging. Only the '165 uses that.

You have to send a command to the ECM to enable serial data.

Look in the stickies of the DIY PROM, for more information.
Thanks, I've seen that the 10k resistor won't work... and after looking at the 0D.adx file for Tuner Pro, I think I see the bytes I need to send... Mode 1 ALDL Dump Request?

I understand that RX/TX are multiplexed into one wire on the ALDL side... does anyone have any clues how to do this from a 3.3v TTL on the PC side? I've been studying the schematic here: http://cable.invisibill.net/, but my skills are limited... it seems like if I can convert the 5v to 3.3 and vice versa, just a diode would work for the multiplexing, right?

Please, school me.
SnackPack is offline vBGarage Page   Reply With Quote
Old 08-22-2009, 12:44 AM   #5
Junior Member
 
Join Date: Dec 2005
Posts: 3

Classifieds Rating: (0)
Re: ALDL Serial (TTL) Question *iPhone*

Just an update of what I've found...

I started playing with the serial device in my Mac, with some simple C code... I got it to open the serial port at 8192 baud and send command strings. I noticed that with my ALDL -> USB adapter that all of my commands would just echo back, which leads me to believe that there is nothing special that needs to be done for the multiplexed RX/TX on the ALDL side.

I had a heck of a time figuring out why my command would not return anything else, until I realized my checksum algorithm was wrong. I changed it to a 2's compliment checksum and voila... a 3+63+1-byte (command response + payload + checksum) string was returned by the ECM (after the echoed command). I dumped several hundred frames to a file for later parsing... it looks like good data!

Next, I cobbled together a C program for the iphone to make sure I can open its serial port at 8192 baud... it works! Although I have no device yet to connect to it, it's a great start.

All in all, a good day... I'm just waiting on my iPhone connectors and logic level converters to arrive in the mail before I can actually log some data. I'll keep you guys posted.
SnackPack is offline vBGarage Page   Reply With Quote
Old 08-22-2009, 12:44 AM
ThirdGen
1992 Camaro




Paid Advertisement


Reply

Go Back   Third Generation F-Body Message Boards > Tech Boards > DFI and ECM

Tags
7427, adapter, aldl, baud, dump, ground, iphone, mode, pfi, port, received, request, response, serial, ttl
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off

 


1982 Camaro '82 || 1983 Camaro '83 || 1984 Camaro '84 || 1985 Camaro '85 || 1986 Camaro '86 || 1987 Camaro '87 || 1988 Camaro '88 || 1989 Camaro '89 || 1990 Camaro '90 || 1991 Camaro '91 || 1992 Camaro '92


All times are GMT -5. The time now is 03:31 PM.


Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
All content copyright © 1997 - 2012 ThirdGen.org. All rights reserved. No part of this website may be reproduced without the expressed, documented, and written consent of ThirdGen.org's Administrators.

Emails & Contact Details