RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Sat Feb 17, 2018 7:04 pm

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 69 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
 Post subject: Baud rate for logger found for 32bit DBW
PostPosted: Fri Mar 02, 2007 7:29 pm 
Offline
RomRaider Donator
User avatar

Joined: Sun Apr 09, 2006 12:05 pm
Posts: 866
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.

Image

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
 Profile  
 
 Post subject:
PostPosted: Fri Mar 02, 2007 10:59 pm 
Offline
RomRaider Developer
User avatar

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
 Profile  
 
 Post subject: Re: Baud rate for logger found for 32bit DBW
PostPosted: Sat Mar 03, 2007 7:34 am 
Offline
RomRaider Developer
User avatar

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
 Profile  
 
 Post subject:
PostPosted: Sat Mar 03, 2007 9:24 am 
Offline
Administrator
User avatar

Joined: Mon Jan 30, 2006 9:05 pm
Posts: 774
Location: PA, USA
http://www.plasmatize.com/osecuroms/viewtopic.php?t=279

Theres link to my ROM. Would be more than happy to test? Are you using the Free version of EcuEdit or . .. . paid version?

_________________
Enjoy,

Jeramie


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 03, 2007 10:43 am 
Offline
Experienced
User avatar

Joined: Wed Mar 29, 2006 9:53 pm
Posts: 248
Location: Bakalakadaka St, CO.
This is huge. Nice find Freon :D

I would volunteer to test but it appears my ECU is the same as yours.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 03, 2007 10:47 am 
Offline
Administrator
User avatar

Joined: Wed Mar 29, 2006 10:38 pm
Posts: 5340
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
 Profile  
 
 Post subject:
PostPosted: Sat Mar 03, 2007 11:42 am 
Offline
RomRaider Developer

Joined: Tue Jul 11, 2006 9:25 pm
Posts: 1025
turbo022 wrote:
This is huge. Nice find Freon :D

I would volunteer to test but it appears my ECU is the same as yours.
I also have an 04 sti. :(


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 03, 2007 1:06 pm 
Offline
RomRaider Donator
User avatar

Joined: Sun Apr 09, 2006 12:05 pm
Posts: 866
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
 Profile  
 
 Post subject:
PostPosted: Sat Mar 03, 2007 1:22 pm 
Offline
Administrator
User avatar

Joined: Wed Mar 29, 2006 10:38 pm
Posts: 5340
Nice work Freon.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 03, 2007 1:48 pm 
Offline
Newbie
User avatar

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
 Profile  
 
 Post subject:
PostPosted: Sat Mar 03, 2007 1:59 pm 
Offline
Administrator
User avatar

Joined: Fri Jan 13, 2006 12:33 pm
Posts: 2085
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
 Profile  
 
 Post subject:
PostPosted: Sat Mar 03, 2007 5:32 pm 
Offline
Experienced

Joined: Sun Feb 11, 2007 1:25 pm
Posts: 100
We have the Evo SH7055 running at 62500 baud (4 times standard baud rate).


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 04, 2007 10:13 pm 
Offline
RomRaider Donator
User avatar

Joined: Sun Apr 09, 2006 12:05 pm
Posts: 866
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
 Profile  
 
 Post subject:
PostPosted: Mon Mar 05, 2007 9:44 am 
Offline
Administrator
User avatar

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
 Profile  
 
 Post subject:
PostPosted: Mon Mar 05, 2007 10:18 am 
Offline
Administrator
User avatar

Joined: Fri Jan 13, 2006 12:33 pm
Posts: 2085
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
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 69 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl