Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.44 KB

README.md

File metadata and controls

33 lines (25 loc) · 1.44 KB

CAN_logs

Repo to host CAN logs and post processing scripts

Adding new testing event logs:

  1. Under "CAN_logs/logs" create a new folder for the testing event
  2. In this new folder create two folders "raw" and "parsed"
  3. Add all the new logs under the "raw" folder

Processing logs

  1. In a new terminal go to "CAN_logs/scripts"
  2. Run python parse_tcu_data.py <pathToLogFile.txt> This will create a new file called myLog_parsed.txt
  3. 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"
  4. to graph the CAN signals Run python parse_log.py -a <SignalName> graph <pathToLog>

Signals/Data Available

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

Examples

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

Help

Message the #firmware channel for any questions