can-utils
can-utils copied to clipboard
canplayer-bisect
A utility script for hunting for CAN packets by bisecting replays of candump logs. Like git bisect, but for candump logs.
start, given a log file and canplayer arguments, assumes the packet you're looking for is there and begins by playing the first half. Then re-invoke the tool with good/yes or bad/no to have it playback the next bisection and repeat.
Interesting idea, and I can certainly see it being useful in some basic cases. My question is, how well would it handle identifying multiple packets? To clarify, the radio in a number of Chrysler vehicles spanning several years is integrated into the canbus. In order to power up, several different packets must be received, with at least some of them (vin) being repeating packets. If the necessary repeating packets stop arriving, it will power off after around 15 seconds.
Thanks. :)
I was using it to search for must repeat packets recently. You can start the bisection with canplayer arguments to loop ('-l i') and then proceed with the search, interrupting the spawned canplayer with ctrl-c when you've found a behaviour in a loop or sure it isn't there.
I will give it a try sometime soon, at the moment I'm trying to figure out if I can get cangw working or not with two Slcan interfaces. If I can then I will be working on a sort of dynamic interface to the gateway function. If I can't get that working then it will be a pseudo gateway using candump, with an interactive selection of what to pass vs block.
On Thursday, April 21, 2016, Ben Gardiner [email protected] wrote:
A utility script for hunting for CAN packets by bisecting replays of candump logs. Like git bisect, but for candump logs.
start, given a log file and canplayer arguments, assumes the packet you're looking for is there and begins by playing the first half. Then re-invoke the tool with good/yes or bad/no to have it playback the next bisection and
repeat.
You can view, comment on, or merge this pull request online at:
https://github.com/linux-can/can-utils/pull/17 Commit Summary
- canplayer-bisect: introduce a tool to hunt for can packets by bisecting replays of candump logs
File Changes
- A canplayer-bisect https://github.com/linux-can/can-utils/pull/17/files#diff-0 (205)
Patch Links:
- https://github.com/linux-can/can-utils/pull/17.patch
- https://github.com/linux-can/can-utils/pull/17.diff
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/linux-can/can-utils/pull/17
I respectfully decline the invitation to join your hallucination.