|
RomRaider
Documentation
Community
Developers
|
| Author |
Message |
|
Freon
|
Post subject: Baud rate for logger found for 32bit DBW Posted: Fri Mar 02, 2007 7:29 pm |
|
 |
| RomRaider Donator |
 |
Joined: Sun Apr 09, 2006 12:05 pm Posts: 867 Location: Indianapolis, IN
|
Unless I've missed it I don't think this has been found.
Anyway, here is an example of how to change the baud rate of the logger. This is an AJ243, 2004 STI:
This should hold true for all the 512kb, 7055 based ECUs.
SMR is set to h'00 (cleared)
BRR is set to d'129
This results in 4800baud, 8-N-1, no "multiprocessor support", n=0
To know which channel, the same channel is set to 1200baud by setting SMR to #1 then BRR to d'129. I'm not positive it will be 100% consistent, but my ECU uses SCI channel 2. One other channel (SCI3) also has the BRR set to d'129, but SMR is also set to #1 which results in n:1, and 1200 baud. I'm unsure what that controls, but I did test changing it to d'64 with no immediately apparent ill effects.
The location is 0x3AE9E, 2byte.
To change the baud to 9600, the d'129 2byte 1D map needs to be changed to d'64.
The information on why and how this works can be found in the hardware manual.
If anyone wants to test a different 32bit DBW ECU other than the 2004 USDM STI (AJ243), please post a link to or post your ROM and I can give you a modified version to test. I'm not sure how to get Enguinity to let you log at 9600, as I don't use it to log at all, but Ecuedit just requires adding a small tag to be added in the XML for 9600 baud to make it a selection.
The effects are pretty apparent. Log period dropped on a particular set of parameters from 260ms to about 140ms. I added two extra parameters and only added about 10ms.
|
|
| Top |
|
 |
|
drees
|
Post subject: Posted: Fri Mar 02, 2007 10:59 pm |
|
 |
| RomRaider Developer |
 |
Joined: Thu Mar 23, 2006 5:21 am Posts: 454 Location: San Diego, CA
|
|
Very nice! Do you think this is supported on the 16bit ECUs as well?
|
|
| Top |
|
 |
|
kascade
|
Post subject: Re: Baud rate for logger found for 32bit DBW Posted: Sat Mar 03, 2007 7:34 am |
|
 |
| RomRaider Developer |
 |
Joined: Sun Jul 16, 2006 12:09 am Posts: 644 Location: Brisbane, Australia
|
Freon wrote: I'm not sure how to get Enguinity to let you log at 9600, as I don't use it to log at all, but Ecuedit just requires adding a small tag to be added in the XML for 9600 baud to make it a selection.
This has been added for the next RomRaider logger release.
_________________ Paul.
------------------------------------
MY04 Forester XT (Aus. spec)
|
|
| Top |
|
 |
|
Jeramie
|
Post subject: Posted: Sat Mar 03, 2007 9:24 am |
|
 |
| Administrator |
 |
Joined: Mon Jan 30, 2006 9:05 pm Posts: 774 Location: PA, USA
|
|
| Top |
|
 |
|
turbo022
|
Post subject: Posted: Sat Mar 03, 2007 10:43 am |
|
 |
| Experienced |
 |
Joined: Wed Mar 29, 2006 9:53 pm Posts: 248 Location: Bakalakadaka St, CO.
|
This is huge. Nice find Freon
I would volunteer to test but it appears my ECU is the same as yours.
|
|
| Top |
|
 |
|
merchgod
|
Post subject: Posted: Sat Mar 03, 2007 10:47 am |
|
 |
| RomRaider Donator |
 |
Joined: Wed Mar 29, 2006 10:38 pm Posts: 5336
|
drees wrote: Very nice! Do you think this is supported on the 16bit ECUs as well?
Tinywrex had a post a while back about finding the same thing in the 16bit ecus.
|
|
| Top |
|
 |
|
Tgui
|
Post subject: Posted: Sat Mar 03, 2007 11:42 am |
|
 |
| RomRaider Developer |
Joined: Tue Jul 11, 2006 9:25 pm Posts: 1025
|
turbo022 wrote: This is huge. Nice find Freon  I would volunteer to test but it appears my ECU is the same as yours. I also have an 04 sti. 
|
|
| Top |
|
 |
|
Freon
|
Post subject: Posted: Sat Mar 03, 2007 1:06 pm |
|
 |
| RomRaider Donator |
 |
Joined: Sun Apr 09, 2006 12:05 pm Posts: 867 Location: Indianapolis, IN
|
|
Those with the 04 STI can test it as well, though it already works for me. With the AJ243, A2ZS710J just change 0x3AE9E from d'129 to d'64 and set your logger to 9600.
Jeramie:
A8JK100X: 0x4E67C should be it. Change it from d'129 to d'64.
I have not tried 14400 (d'42) or 19200 (d'32) baud, though that is perfectly possible as well. I'm only worried about sucking up CPU cycles. I imagine it isn't a big deal. 9600 is a good start. It can go up to 38400 (d'15).
|
|
| Top |
|
 |
|
merchgod
|
Post subject: Posted: Sat Mar 03, 2007 1:22 pm |
|
 |
| RomRaider Donator |
 |
Joined: Wed Mar 29, 2006 10:38 pm Posts: 5336
|
|
| Top |
|
 |
|
disque71
|
Post subject: Posted: Sat Mar 03, 2007 1:48 pm |
|
 |
| Newbie |
 |
Joined: Fri Jun 09, 2006 4:42 pm Posts: 57
|
|
why only max at 9600 8-N-1, can we go higher? thats the limitation of the hardware? i'd like to get a copy of the assembly to do some eploration, where can i find this?
|
|
| Top |
|
 |
|
qoncept
|
Post subject: Posted: Sat Mar 03, 2007 1:59 pm |
|
 |
| Administrator |
 |
Joined: Fri Jan 13, 2006 12:33 pm Posts: 2079 Location: Palo, IA
|
Very neat. I didn't realize the 32-bit ECUs had such a slow sample rate compared to the 16-bit, but I suppose moving twice as much data will do that.. 
_________________ - Jared
|
|
| Top |
|
 |
|
jcsbanks
|
Post subject: Posted: Sat Mar 03, 2007 5:32 pm |
|
|
|
|
We have the Evo SH7055 running at 62500 baud (4 times standard baud rate).
|
|
| Top |
|
 |
|
Freon
|
Post subject: Posted: Sun Mar 04, 2007 10:13 pm |
|
 |
| RomRaider Donator |
 |
Joined: Sun Apr 09, 2006 12:05 pm Posts: 867 Location: Indianapolis, IN
|
|
Yikes! Well the hardware document only lists up to 38400, although there is no necessary limit for the CPU to run other baud rates not listed explicitly. It describes the actual calculation used to convert the bit-rate register setting (the d'129, d'64 I'm talking about) to baud rate.
I'll probably try 19200, 28800, etc. over the next few days.
I'm hoping the speed increase will make road dyno calculations work far better if nothing else.
|
|
| Top |
|
 |
|
Jeramie
|
Post subject: Posted: Mon Mar 05, 2007 9:44 am |
|
 |
| Administrator |
 |
Joined: Mon Jan 30, 2006 9:05 pm Posts: 774 Location: PA, USA
|
|
Just wanted to make sure there is currently no way to make the RomRaider logger support higher bauds right? (I realize it's not setup to now, just wanted to make sure, there is no easy XML edit to make this happen now). Thanks
_________________ Enjoy,
Jeramie
|
|
| Top |
|
 |
|
qoncept
|
Post subject: Posted: Mon Mar 05, 2007 10:18 am |
|
 |
| Administrator |
 |
Joined: Fri Jan 13, 2006 12:33 pm Posts: 2079 Location: Palo, IA
|
Freon wrote: Yikes! Well the hardware document only lists up to 38400, although there is no necessary limit for the CPU to run other baud rates not listed explicitly. It describes the actual calculation used to convert the bit-rate register setting (the d'129, d'64 I'm talking about) to baud rate.
I'll probably try 19200, 28800, etc. over the next few days.
I'm hoping the speed increase will make road dyno calculations work far better if nothing else.
It seems to me, with the crank position sensor giving goofy RPM readings at times, it might not be much better. MAF in g/s is a pretty good indication of power to the wheels and very consistant. 
_________________ - Jared
|
|
| Top |
|
 |
Who is online |
Users browsing this forum: No registered users and 6 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|