Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

canplayer-bisect #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BenGardiner
Copy link

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.

@RawLiquid
Copy link

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.

@BenGardiner
Copy link
Author

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.

@RawLiquid
Copy link

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 notifications@github.com 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:

#17
Commit Summary

  • canplayer-bisect: introduce a tool to hunt for can packets by
    bisecting replays of candump logs

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#17

I respectfully decline the invitation to join your hallucination.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants