ALDL protocol

Moderators: theelanman, dapinky, Specky, clemo, Nige, Sy V, Dave Eds, DaveT, Elanlover, muley, Enright, algirdas, nitroman, GeoffSmith

ALDL protocol

Postby al » Sat 22.03.2008, 01:23

Hey guys (Alan esp.),

does anyone have the aldl spec ?

I'm messing around with a little project at the moment; trying to interface this with my Elan. I've got some prototype code at the moment which will parse a response payload that elanscan gets back from the ECU, but I can't seem to get the ECU to respond to my requests (do I need to send some command to put it into a mode where it will respond to the 0xf45601b5 request ? ) :/

Can anyone shed some light ?

BTW Alan, I'd really like to have this be able to save out .ecu files so that proper analysis/comparisons can be done back home on the desktop with elanscan; any chance of getting the format of these files from you ? :)

Cheers,
Al.
User avatar
al
LEC Bit Basher
 
Posts: 544
Joined: Sat 15.04.2006, 15:30
Location: London

Postby ailwyn » Sat 22.03.2008, 09:59

Al,

Are you transmitting at the correct baud? 8192 is the correct ALDL baud, but on the PC the closest it can get to is 8228.5xxx (115,200/14), which (apparently) is close enough not to cause problems.

I've asked Alan in the past about the file layout, and he doesn't have a spec, he just saves the object/structure using a pre-defined routine. Having had a quick poke around I have found the locations of some of the ES data, but never spent any time trying to reverse engineer it all.

Hope that helps

Ailwyn
ailwyn
Forum Member
 
Posts: 3361
Joined: Tue 09.08.2005, 20:45

Postby GeoffSmith » Sat 22.03.2008, 13:27

The ALDL interface is half duplex. Electrically, when writing, it appears as a 10kohm pull up resistor to 5V. Some people have got away with driving directly from an interface output but I always use an open collector buffer. If you are driving directly, then make sure you return the output high and that you're not driving it with any significant impedance - you could use a small signal diode (anode to ECU and cathode to interface). The return data (63 bytes IIRC) is merely spat back from the ECU on completion of the command word.

I have reverse engineered the data and can read it into an Excel spreadsheet. I'll dig out my notes for you. :smt024

Roll on Donington....... Cor, look at the bits on that! :twisted:
Calypso Red S2 #417

USB ElanScan interfaces - £60 incl. UK P&P & £65 incl. ROW P&P
User avatar
GeoffSmith
Kitty Fiddler
 
Posts: 15628
Joined: Fri 03.02.2006, 21:57
Location: S2#417 in Tytherington, Gloucestershire

Postby al » Sun 23.03.2008, 23:39

Nice one, cheers lads !

Managed to coax 8192baud out of the serial adapter with a bit of persuasion, got a first cut up and running talking to the ECU today.

I used the .ini file from ElanScan to generate the codec, it turns out that ElanScan derived quite a few of its variables (all of the ones in the .ini file where size=0) from data returned from the ECU, if you've got any ideas about what those calculations might be I'd be keen to hear them !
User avatar
al
LEC Bit Basher
 
Posts: 544
Joined: Sat 15.04.2006, 15:30
Location: London

Postby GeoffSmith » Sun 23.03.2008, 23:57

I'm sure I've got them somewhere. :roll:
Calypso Red S2 #417

USB ElanScan interfaces - £60 incl. UK P&P & £65 incl. ROW P&P
User avatar
GeoffSmith
Kitty Fiddler
 
Posts: 15628
Joined: Fri 03.02.2006, 21:57
Location: S2#417 in Tytherington, Gloucestershire

Postby Veikra » Sun 27.04.2008, 06:56

Hello people,

Im trying to get elanscan running on xp , but im wondering how to set my comm port to a non stardard baud rate of 8192. Im using an usb to serial adapter, but also tried with a pc with srtraight serial even thoo i know it wouldnt work unless i get the right baud rate.

Can anyone help me figure it out?
User avatar
Veikra
Newbie
 
Posts: 10
Joined: Sat 26.04.2008, 23:55

Postby ailwyn » Sun 27.04.2008, 08:39

Elanscan itself sets the correct baud rate.

Just set your serial port to 115,200 8N1 and the software should take care of the rest.

When using a USB to Serial converter, there are one's that are known to work, and others that are known to have problems (it depends on the chip that they use).

Ailwyn
ailwyn
Forum Member
 
Posts: 3361
Joined: Tue 09.08.2005, 20:45

Postby Veikra » Mon 28.04.2008, 06:07

Well i got the same error message with a serial port pc and with laptop and adaptor, so for now my problem is not yet at the usb serial cable. That might come later. I will try the port setting you gave me when i get a chance to try(hopefully soon).

Thank a lot
User avatar
Veikra
Newbie
 
Posts: 10
Joined: Sat 26.04.2008, 23:55

Postby Veikra » Thu 01.05.2008, 00:04

Ok,

Seems like my adaptor isnt working, so I designed a usb one based on the ftdi chip and now waiting for the printed board to arrive (sponsorship :) )

Ill let you know when i get them.
User avatar
Veikra
Newbie
 
Posts: 10
Joined: Sat 26.04.2008, 23:55

Postby al » Thu 01.05.2008, 09:47

You could've ordered a known working USB<>ALDL board from Geoff, comes complete with bizarre plug and optoisolators for a very reasonable price !
Mind you, I didn't either :)

So Geoffers, how about digging out that spreadsheet with the derived variable calculations ? :poke:
User avatar
al
LEC Bit Basher
 
Posts: 544
Joined: Sat 15.04.2006, 15:30
Location: London

Postby ailwyn » Thu 01.05.2008, 09:52

al wrote:So Geoffers, how about digging out that spreadsheet with the derived variable calculations ? :poke:


And putting it where anyone can have a look :smt064
ailwyn
Forum Member
 
Posts: 3361
Joined: Tue 09.08.2005, 20:45

Postby GeoffSmith » Thu 01.05.2008, 12:18

Sorry Al, it is on my todo list but you know how it is........

ailwyn wrote:
al wrote:So Geoffers, how about digging out that spreadsheet with the derived variable calculations ? :poke:


And putting it where anyone can have a look .....


.... as long as Ailwyn's prepared to drop his trousers and bend over. :-D
Calypso Red S2 #417

USB ElanScan interfaces - £60 incl. UK P&P & £65 incl. ROW P&P
User avatar
GeoffSmith
Kitty Fiddler
 
Posts: 15628
Joined: Fri 03.02.2006, 21:57
Location: S2#417 in Tytherington, Gloucestershire

Postby al » Thu 01.05.2008, 13:23

hehe ok, there's not really any rush, just thought I'd take the opportunity to make sure you hadn't forgotten :)
User avatar
al
LEC Bit Basher
 
Posts: 544
Joined: Sat 15.04.2006, 15:30
Location: London

Postby ailwyn » Thu 01.05.2008, 13:42

GeoffSmith wrote:.... as long as Ailwyn's prepared to drop his trousers and bend over. :-D


I'm far to generous for that... always a giver, never the taker :lol:
ailwyn
Forum Member
 
Posts: 3361
Joined: Tue 09.08.2005, 20:45

Postby Veikra » Sat 03.05.2008, 01:13

al wrote:You could've ordered a known working USB<>ALDL board from Geoff, comes complete with bizarre plug and optoisolators for a very reasonable price !
Mind you, I didn't either :)


I didnt think the usb one was already up for sale, and there seemed to be a huge waiting list on the rs232 already. Plus i did have other board to send, so i slipped it in that batch.

Where is Geoff located? US? England?
User avatar
Veikra
Newbie
 
Posts: 10
Joined: Sat 26.04.2008, 23:55

Postby ailwyn » Sat 03.05.2008, 07:36

Veikra wrote:Where is Geoff located? US? England?


England, although we are trying to get enough donations to buy him a one way ticket to the US/Australia/China take your pick :)
ailwyn
Forum Member
 
Posts: 3361
Joined: Tue 09.08.2005, 20:45

Postby Veikra » Sun 04.05.2008, 17:25

Canada ! thats my pick
User avatar
Veikra
Newbie
 
Posts: 10
Joined: Sat 26.04.2008, 23:55

Postby GeoffSmith » Mon 05.05.2008, 17:11

Veikra wrote:I didnt think the usb one was already up for sale, and there seemed to be a huge waiting list on the rs232 already. Plus i did have other board to send, so i slipped it in that batch.


Huh? :smt017

>100 satisfied customers. :D
Calypso Red S2 #417

USB ElanScan interfaces - £60 incl. UK P&P & £65 incl. ROW P&P
User avatar
GeoffSmith
Kitty Fiddler
 
Posts: 15628
Joined: Fri 03.02.2006, 21:57
Location: S2#417 in Tytherington, Gloucestershire

Postby Veikra » Sun 11.05.2008, 00:50

GeoffSmith wrote:
Veikra wrote:I didnt think the usb one was already up for sale, and there seemed to be a huge waiting list on the rs232 already. Plus i did have other board to send, so i slipped it in that batch.


Huh? :smt017

>100 satisfied customers. :D


hmm... hooray for dyslexia ? :p I did browse on the forum, probably saw an older post that made me believe there was still a list going.

what can I say? im new :oops:
User avatar
Veikra
Newbie
 
Posts: 10
Joined: Sat 26.04.2008, 23:55

Postby GeoffSmith » Sun 11.05.2008, 09:41

Welcome to LEC Imnew. :lol:
Calypso Red S2 #417

USB ElanScan interfaces - £60 incl. UK P&P & £65 incl. ROW P&P
User avatar
GeoffSmith
Kitty Fiddler
 
Posts: 15628
Joined: Fri 03.02.2006, 21:57
Location: S2#417 in Tytherington, Gloucestershire


Return to ElanScan

Who is online

Users browsing this forum: No registered users and 5 guests