Repo to host CAN logs and post processing scripts
- Under "CAN_logs/logs" create a new folder for the testing event
- In this new folder create two folders "raw" and "parsed"
- Add all the new logs under the "raw" folder
- In a new terminal go to "CAN_logs/scripts"
- Run
python parse_tcu_data.py <pathToLogFile.txt>
This will create a new file called myLog_parsed.txt - Move this parsed log file to "CAN_logs/myTestingEvent/parsed"
a. If possible give the new log a descriptive name ex: "Reid_AMS_fault_3rdRun" - to graph the CAN signals Run
python parse_log.py -a <SignalName> graph <pathToLog>
Please open scripts/2024CAR.dbc with Visual Studio Code or CANDB++ or Notepad to see what signals are available for viewing
Note: To parse an entire folder of log files, run python parse_tcu_data.py <pathToFolder> -All
Example of parsing a single log file:
python parse_tcu_data.py ../logs/June8Testing/raw/Reid_AMS_Fault_3rdRun.TXT
Example of parsing an entire folder of log files
- Example:
python parse_tcu_data.py ../logs/August31Testing/raw -All
Plotting and creating a CSV of a signal
- Format:
python filterAndPlot.py <path_to_logFile.txt> <signalName> <createCSV[yes|no]>
- Example:
python filterAndPlot.py ../logs/Sept21Testing/parsed/LOGS24_parsed.txt INV_Id yes
Message the #firmware channel for any questions