Quote:
Originally Posted by spfautsch
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).