forked from linux-can/can-utils
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch adds a fourth string field in the can logfile format. This new field contains the rx/tx direction information R/T as the first entry (only one character separated from the CAN frame by space). To generate the logfile format with this extra field candump has to be called with the '-x' option for extra message infos, e.g. 'candump -x -l can0' or 'candump -x -L can0' log2asc and asc2log are extended to support the direction information but still support the previous format without direction information. The format extension does not affect legacy tools, e.g. the existing canplayer ignores this extra information and does not need to be changed. Therefore the existing logfiles remain valid and usable. The extra message infos will be colon separated when there's need for additional content beyond the rx/tx direction information, e.g. R:xx:yyy Suggested-by: Pallavi Revanna https://github.com/brpallu Signed-off-by: Oliver Hartkopp <[email protected]>
- Loading branch information
Showing
3 changed files
with
89 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters