Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: FTDI USB speed optimization


Guru

Status: Offline
Posts: 2338
Date:
FTDI USB speed optimization


On some PC:s the FTDI interface perfoms very well, on some others it takes about 3 minutes to reflash an ecu.

Having talked to FTDI technical support they adviced to reduce the latencytimer and enable buffering. Indeed this reduced the total programming time down to around 2minutes from original 3 minutes.  A big improvement - even though I am still not happy. On the PC in dyno we get around 30sec and with my e8 programmer I get around 38sec programming time so still need to investigate this further.

Anyway the way to improve the programming speed is to use regedit and modify your USB device with the following settings underlined red.

FTDI_interface_optimization.jpg

__________________

When asking a question, you can also consider posting it to facebook:

http://www.facebook.com/ecueditorcom



Veteran Member

Status: Offline
Posts: 82
Date:

Yes, seems to help:

146.75 K programmed in 119 seconds
Image successfully written to device

Still quite slow though compared to Sami's PC.

__________________

- Jari // GSX1400R '0x // 355.1km/h / 9.193s -



Guru

Status: Offline
Posts: 953
Date:

mine went from about 169 seconds to 118 seconds :)

__________________


Guru

Status: Offline
Posts: 1344
Date:

got mine down to 120 seconds today from 174

__________________

09 busa.????? now what....still got what it takes.......!

I got what you need...!
www.poweredbyford.com

www.marc@poweredbyford.com

 



Guru

Status: Offline
Posts: 2338
Date:

I am still a bit puzzled by this. In the local dyno I go to the speed is around 30sec for the same interface we here have 120s. Regarding UBS settings those are the same as here.

The only difference is that in that PC there is an external USB hub. Its also possible that it has a separate USB 2.0 card as its a desktop PC.

If anyone has USB 2.0 to hook the cable into, could you check the speed - if that is the limiting factor.




__________________

When asking a question, you can also consider posting it to facebook:

http://www.facebook.com/ecueditorcom



Guru

Status: Offline
Posts: 1344
Date:

one weird thing that i noticed is that i was getting different download times from flashing the same .bin to the same computer?has anyone seen this also?

__________________

09 busa.????? now what....still got what it takes.......!

I got what you need...!
www.poweredbyford.com

www.marc@poweredbyford.com

 



Guru

Status: Offline
Posts: 2338
Date:

the flash time depends on amount of non 0xff:s written. If you include shifter code etc. it will take longer. just a few secs difference, but noticeable.



__________________

When asking a question, you can also consider posting it to facebook:

http://www.facebook.com/ecueditorcom



Guru

Status: Offline
Posts: 741
Date:

got flash time down to 118sec...

__________________


Guru

Status: Offline
Posts: 953
Date:

I tried with my wifes laptop using her docking station, first flash without any regedit mods it was 57 seconds, NICE.

 I changed the latency and buffering in regedit and it went up to 117 seconds, switched it back to the original settings and back down to 56 seconds.

The other day when I was using it without the docking station it was in the 170-180 second range I think.



__________________


Member

Status: Offline
Posts: 23
Date:

It may be the difference in your motherboard bus artichectures and/or bus speeds. You may have the old PCI bus in your home PC compared to the newer PCI-E bus that may reside in the dyno PC. PCI-E is way better for communication of high speed USB 2.0 devices. Of course modern Core Duo CPUs, larger faster RAM designs and faster spinning HDDs help, it's the motherboard that will determine how fast data really transmits.

-- Edited by Busashot at 08:00, 2008-11-05

__________________


Senior Member

Status: Offline
Posts: 196
Date:

smithabusa wrote:

 

I tried with my wifes laptop using her docking station, first flash without any regedit mods it was 57 seconds, NICE.

 I changed the latency and buffering in regedit and it went up to 117 seconds, switched it back to the original settings and back down to 56 seconds.

The other day when I was using it without the docking station it was in the 170-180 second range I think.

 




    What latency and buffering made it worse and what made it better? It took me 300 seconds yeasterday. I was on battery which may have been a factor.

 

 

Mark



__________________


Guru

Status: Offline
Posts: 953
Date:

yes when flashing using usb through the docking station changing those 2 settings made it worst, using usb port on actual laptop it made it better, weird LOL

Busa Quick wrote:


smithabusa wrote:
y

I tried with my wifes laptop using her docking station, first flash without any regedit mods it was 57 seconds, NICE.

 I changed the latency and buffering in regedit and it went up to 117 seconds, switched it back to the original settings and back down to 56 seconds.

The other day when I was using it without the docking station it was in the 170-180 second range I think.





    What latency and buffering made it worse and what made it better? It took me 300 seconds yeasterday. I was on battery which may have been a factor.



Mark







__________________


Veteran Member

Status: Offline
Posts: 82
Date:

Could someone STICKY this thread please? :)

__________________

- Jari // GSX1400R '0x // 355.1km/h / 9.193s -



Veteran Member

Status: Offline
Posts: 28
Date:

I realise that this is an old thread but I'll add some additional information.

With a USB port each device will be allocated a maximum amount of bandwidth during enumeration. The amount of bandwidth allocated may vary depending on OS or USB firmware (not sure about what does the actual allocation). If you have other devices on the same port then the amount of available bandwidth is reduced and the speed will be slower. Avoid having high bandwidth devices like memory sticks on the same port, mice and keyboards are HIDs and will make little difference.

Don't mess with the registry, to change port settings go to:
       Control Panel->System->Device manager-> Ports (COM & LPT)
Double click on thre correct port and select:
        Port settings->Advanced

Maybe this thread should be moved to a less specific forum.



Attachments
__________________


Guru

Status: Offline
Posts: 741
Date:

i tried that before i went into registry (adjust the latenct timer in Device manager), it did speed it up a little but changing the buffer in regisry speed it up even more... 

__________________


Veteran Member

Status: Offline
Posts: 28
Date:

I'll look into that, you should be able to adjust the latency time from Device Manager. I just spent quite a bit of time on this on an unrelated project, trying to optimise some software I wrote to work better with an FTDI chip. Typically I found this thread just a few hours afterwards. I'm in the UK so its easy for me to phne FTDI, they're usually quite helpfull.

Edit: Looking at that again it does say BM options so maybe it doesn't work for the 232R

-- Edited by Rhinoman on Sunday 19th of July 2009 09:26:54 PM

__________________


Guru

Status: Offline
Posts: 741
Date:

Rhinoman wrote:

you should be able to adjust the latency time from Device Manager



 yes you can...



__________________


Guru

Status: Offline
Posts: 2338
Date:

Here you are...

http://www.ftdichip.com/Documents/AppNotes/AN232B-04_DataLatencyFlow.pdf
http://www.ftdichip.com/Documents/TechnicalNotes/TN_103_FTDI_USB_Data_Transfer_Efficiency(FT_000097).pdf

Unfortunately the programming uses one byte packages so optimizing from programming point of view is difficult. The PC processor speed and bus architecture affects greatly the performance.


__________________

When asking a question, you can also consider posting it to facebook:

http://www.facebook.com/ecueditorcom



Veteran Member

Status: Offline
Posts: 45
Date:

Can anyone make this thread STICKY? 
Just installed latest FDT (4.05) and new tuning was needed. Will be easier to find these instructions when these are floating on top of all threads.


__________________
--JaSa


Guru

Status: Offline
Posts: 1344
Date:

set this topic as a sticky jasa....biggrin

__________________

09 busa.????? now what....still got what it takes.......!

I got what you need...!
www.poweredbyford.com

www.marc@poweredbyford.com

 



Newbie

Status: Offline
Posts: 4
Date:

HI Petrik ;

could you please send me the photo of the FTDI Interface Opimization and the schematic diagram of SDS K line cable system .Aswell as if you could let me know were i can fnd the SDS software.Please if you could help and send it to my email ID(Classicautomobile@gmail.com) that would be really helpfull of you 

 

Regards:

Abdul Aleem 

 



__________________
classic aleem
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Tweet this page Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard