CAN Testing CLI #476
Replies: 2 comments 3 replies
-
Well, I don't think anything CLI is going to directly read Busmaster log files. But, SavvyCAN can load busmaster files and it can save candump files. In theory you should able to thus use it to convert the file format and then use the standard linux CLI tool canplayer to play back the file. |
Beta Was this translation helpful? Give feedback.
-
@collin80 Do you know how can I replay a previously captured frame via wifi to a Macchina A0 running the ESP32RET firmware? Regards |
Beta Was this translation helpful? Give feedback.
-
Hello @collin80 👋
First of all, thank you for building out this awesome tool and making it freely available for all the tinkerers out there! I have been using the GUI and it is helping me work extensively with viewing as well as replaying CAN log data files (specifically busmaster log files) on a virtual CAN bus (using can-utils). 😃
I was building a CAN message parsing logic, and I am using the option "Save decoded frames". So essentially I am getting two text files, one as the output from my program, and one from SavvyCAN. I am using a diff tool on linux to compare the two, and I have caught many errors in my logic since I am new to bit wise operations. Now, however it has come to a maturity. 😄
Now that I am getting a lot of log files, I was thinking of a way to automate this process, and I was looking for a CLI way to replay the Busmaster Log file on the virtual can bus and to get the decoded output as a file, so that the entire process doesn't need a manual intervention. If even the replaying part only works, I can even use the python cantools library to decode the frames and then do the diff to figure out which signals are wrongly decoded (if any).
If there is anything that comes to mind, please let me know. I am trying to script out this testing as much as possible. Thanks very much! 😃
Beta Was this translation helpful? Give feedback.
All reactions