Skip to content

solarcaratuva/CANMessageLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CAN Message Logger

A program that plots the values of user selected CAN message components over time, as well as flagging any obvious errors or CAN errors.

For help, see Colby, Alex, or Jimmy. Made for use by the UVA Solar Car Team.

Installation

Option 1: install the .exe (in releases, Windows only)

Option 2: clone this repo, create and activate a virtual environment, install dependencies from requirements.txt, run main.py

How to use

Run this program via the command line with no arguments to attempt to start a serial connection; this will also create a log file. Alternatively, run with a file as an argument to read-in the data as logged CAN messages. After either of these, the user will be able to run commands

Commands

  • add [name] to create a graph for the named item
  • add [name] [startTime] [endTime] to create a static graph that starts and ends at a certain time
  • rm [name] to delete a shown graph for the named item
  • quit exits the program Note that [name] must be a tracked value

Tracked values

BPS: pack_voltage, pack_current, pack_soc, low_cell_voltage, high_cell_voltage, low_temperature, high_temperature

MotorController: battery_voltage, battery_current, battery_current_direction, motor_current, fet_temp, motor_rpm, pwm_duty, lead_angle, power_mode, control_mode, accelerator_vr_position, regen_vr_position, digital_sw_position, output_target_value, motor_status, regen_status

Rivanna2: throttle, regen, cruise_control_speed, cruise_control_en, forward_en, reverse_en, motor_on, hazards, brake_lights, headlights, left_turn_signal, right_turn_signal, total_current, panel1_voltage, panel2_voltage, panel3_voltage, panel4_voltage, panel1_temp, panel2_temp, panel3_temp, panel4_temp

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages