View Single Post
Old 04-02-2011, 04:44 AM   #665 (permalink)
eimix
EcoModding Lurker
 
Join Date: Aug 2010
Location: Lithuania
Posts: 74
Thanks: 3
Thanked 21 Times in 15 Posts
Quote:
Originally Posted by spfautsch View Post
Whatever the case, I just tried out the timeout mechanism I posted about and that seems to have resolved the issue (sped up refresh significantly also).
Are you talking about this part of code:
Code:
  
while ((nowms - ISORequestDelay) < lastRcv)
  {
    delay(1);
    nowms=millis();
  }
How this changes anything?

And 3s delay before ISO init is something written in specification of that protocol. But as you mentioned that shorter also works, i noticed same "delay ramping" in most of VAG-COM cable software: 0s, 0.5s, 1s ... up to 5s.
This could speed up on ECU that supports it.

But for a while i am unable to test code in real (until last tank becomes empty).
  Reply With Quote