DescriptionMake the BattOr agent retry start tracing when we fail to read an ack
This should greatly mitigate a current bug in the BattOr firmware where
sending the command to start tracing causes the BattOr to reset. In this
case, we now retry the full initialization sequence. Because the error
we're hitting is a timeout, and we allow 4 seconds for a command to
be executed before timing out, this means that initialization will
retry after 4 seconds and then make 20 attempts to initialize the BattOr
100 milliseconds apart from each other, making the whole sequence take
something like 6 additional seconds. We can retry this full sequence
up to 5 times. When added to the five or so seconds that the BattOr
already takes to initialize, this means that this full sequence might
take up to 11 * 5 = 55 seconds before deciding that the BattOr can't
be initialized. In practice, I suspect that almost all initializations
will succeed on either their first or second attempts.
BUG=672631
Committed: https://crrev.com/ee8618f9e765917145cc20b136cb6a3ba324db53
Cr-Commit-Position: refs/heads/master@{#437548}
Patch Set 1 #
Messages
Total messages: 14 (10 generated)
|