From ad53ce708303693d7ac1d8e4fac7875cbed6a666 Mon Sep 17 00:00:00 2001 From: Beck Date: Sat, 1 Mar 2025 20:04:13 -0600 Subject: [PATCH 01/12] TODO - Add placeholders for CAN IDs and bit offsets --- format.json | 320 ++++++++++++++++++++++++++-------------------------- 1 file changed, 160 insertions(+), 160 deletions(-) diff --git a/format.json b/format.json index cf1b1cb..6b69e45 100644 --- a/format.json +++ b/format.json @@ -1,178 +1,178 @@ { - "accelerator_pedal": [4, "float", "%", 0, 1, "MCC;Sensors"], - "speed": [4, "float", "mph", 0, 100, "MCC;Motor Controller I/O"], - "mcc_state": [1, "uint8", "", 0, 7, "MCC;Firmware"], - "fr_telem": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches"], - "crz_pwr_mode": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches"], - "crz_spd_mode": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches"], - "crz_pwr_setpt": [4, "float", "W", 0, 100, "MCC;Firmware"], - "crz_spd_setpt": [4, "float", "mph", 0, 100, "MCC;Firmware"], - "eco": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches"], - "main_telem": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches"], - "foot_brake": [1, "bool", "", 0, 1, "MCC;Sensors"], - "regen_brake": [4, "float", "%", 0, 1, "MCC;Sensors"], - "motor_current": [4, "float", "A", 0, 100, "MCC;Sensors"], - "motor_power": [4, "float", "W", 0, 100, "MCC;Firmware"], - "mc_status": [1, "uint8", "", 0, 0, "MCC;Motor Controller I/O"], + "accelerator_pedal": [4, "float", "%", 0, 1, "MCC;Sensors", 0xFFF, 0], + "speed": [4, "float", "mph", 0, 100, "MCC;Motor Controller I/O", 0xFFF, 0], + "mcc_state": [1, "uint8", "", 0, 7, "MCC;Firmware", 0xFFF, 0], + "fr_telem": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", 0xFFF, 0], + "crz_pwr_mode": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", 0xFFF, 0], + "crz_spd_mode": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", 0xFFF, 0], + "crz_pwr_setpt": [4, "float", "W", 0, 100, "MCC;Firmware", 0xFFF, 0], + "crz_spd_setpt": [4, "float", "mph", 0, 100, "MCC;Firmware", 0xFFF, 0], + "eco": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", 0xFFF, 0], + "main_telem": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", 0xFFF, 0], + "foot_brake": [1, "bool", "", 0, 1, "MCC;Sensors", 0xFFF, 0], + "regen_brake": [4, "float", "%", 0, 1, "MCC;Sensors", 0xFFF, 0], + "motor_current": [4, "float", "A", 0, 100, "MCC;Sensors", 0xFFF, 0], + "motor_power": [4, "float", "W", 0, 100, "MCC;Firmware", 0xFFF, 0], + "mc_status": [1, "uint8", "", 0, 0, "MCC;Motor Controller I/O", 0xFFF, 0], - "driver_eStop": [1, "bool", "", 0, 0, "High Voltage;Shutdown"], - "external_eStop": [1, "bool", "", 0, 0, "High Voltage;Shutdown"], - "crash": [1, "bool", "", 0, 0, "High Voltage;Shutdown"], - "discharge_enable": [1, "bool", "", 0, 0, "High Voltage;Shutdown"], - "discharge_enabled": [1, "bool", "", 0, 0, "High Voltage;Shutdown"], - "charge_enable": [1, "bool", "", 0, 0, "High Voltage;Shutdown"], - "charge_enabled": [1, "bool", "", 0, 0, "High Voltage;Shutdown"], - "isolation": [1, "bool", "", 0, 0, "High Voltage;Shutdown"], - "mcu_hv_en": [1, "bool", "", 0, 0, "High Voltage;Shutdown"], - "mcu_stat_fdbk": [1, "bool", "", 0, 0, "High Voltage;Shutdown"], + "driver_eStop": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], + "external_eStop": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], + "crash": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], + "discharge_enable": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], + "discharge_enabled": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], + "charge_enable": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], + "charge_enabled": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], + "isolation": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], + "mcu_hv_en": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], + "mcu_stat_fdbk": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], - "mppt_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS"], - "motor_controller_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS"], - "low_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS"], - "dcdc_current": [4, "float", "A", 0, 100, "High Voltage;MPS"], - "dcdc_deg": [1, "bool", "", 1, 1, "High Voltage;MPS"], - "use_dcdc": [1, "bool", "", 0, 0, "High Voltage;MPS"], - "supplemental_current": [4, "float", "A", 0, 100, "Battery;Supplemental"], - "supplemental_voltage": [4, "float", "V", 0, 100, "Battery;Supplemental"], - "supplemental_deg": [1, "bool", "", 1, 1, "Battery;Supplemental"], - "use_supp": [1, "bool", "", 0, 0, "High Voltage;MPS"], - "est_supplemental_soc": [4, "float", "%", 0, 100, "Battery;Supplemental"], - "bms_mpio1": [1, "bool", "", 0, 1, "High Voltage;IO"], + "mppt_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", 0xFFF, 0], + "motor_controller_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", 0xFFF, 0], + "low_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", 0xFFF, 0], + "dcdc_current": [4, "float", "A", 0, 100, "High Voltage;MPS", 0xFFF, 0], + "dcdc_deg": [1, "bool", "", 1, 1, "High Voltage;MPS", 0xFFF, 0], + "use_dcdc": [1, "bool", "", 0, 0, "High Voltage;MPS", 0xFFF, 0], + "supplemental_current": [4, "float", "A", 0, 100, "Battery;Supplemental", 0xFFF, 0], + "supplemental_voltage": [4, "float", "V", 0, 100, "Battery;Supplemental", 0xFFF, 0], + "supplemental_deg": [1, "bool", "", 1, 1, "Battery;Supplemental", 0xFFF, 0], + "use_supp": [1, "bool", "", 0, 0, "High Voltage;MPS", 0xFFF, 0], + "est_supplemental_soc": [4, "float", "%", 0, 100, "Battery;Supplemental", 0xFFF, 0], + "bms_mpio1": [1, "bool", "", 0, 1, "High Voltage;IO", 0xFFF, 0], - "park_brake": [1, "bool", "", 0, 1, "Main IO;Sensors"], - "air_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors"], - "brake_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors"], - "dcdc_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors"], - "mainIO_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors"], - "motor_controller_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors"], - "motor_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors"], - "road_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors"], - "l_turn_led_en": [1, "bool", "", 0, 1, "Main IO;Lights"], - "r_turn_led_en": [1, "bool", "", 0, 1, "Main IO;Lights"], - "brake_led_en": [1, "bool", "", 0, 1, "Main IO;Lights"], - "headlights_led_en": [1, "bool", "", 0, 1, "Main IO;Lights"], - "hazards": [1, "bool", "", 0, 0, "Main IO;Lights"], - "main_5V_bus": [4, "float", "V", 0, 100, "Main IO;Sensors"], - "main_12V_bus": [4, "float", "V", 0, 100, "Main IO;Sensors"], - "main_24V_bus": [4, "float", "V", 0, 100, "Main IO;Sensors"], - "main_5V_current": [4, "float", "A", 0, 100, "Main IO;Sensors"], - "main_12V_current": [4, "float", "A", 0, 100, "Main IO;Sensors"], - "main_24V_current": [4, "float", "A", 0, 100, "Main IO;Sensors"], - "bms_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware"], - "hv_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware"], - "mainIO_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware"], - "mcc_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware"], - "mppt_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware"], + "park_brake": [1, "bool", "", 0, 1, "Main IO;Sensors", 0xFFF, 0], + "air_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], + "brake_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], + "dcdc_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], + "mainIO_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], + "motor_controller_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], + "motor_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], + "road_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], + "l_turn_led_en": [1, "bool", "", 0, 1, "Main IO;Lights", 0xFFF, 0], + "r_turn_led_en": [1, "bool", "", 0, 1, "Main IO;Lights", 0xFFF, 0], + "brake_led_en": [1, "bool", "", 0, 1, "Main IO;Lights", 0xFFF, 0], + "headlights_led_en": [1, "bool", "", 0, 1, "Main IO;Lights", 0xFFF, 0], + "hazards": [1, "bool", "", 0, 0, "Main IO;Lights", 0xFFF, 0], + "main_5V_bus": [4, "float", "V", 0, 100, "Main IO;Sensors", 0xFFF, 0], + "main_12V_bus": [4, "float", "V", 0, 100, "Main IO;Sensors", 0xFFF, 0], + "main_24V_bus": [4, "float", "V", 0, 100, "Main IO;Sensors", 0xFFF, 0], + "main_5V_current": [4, "float", "A", 0, 100, "Main IO;Sensors", 0xFFF, 0], + "main_12V_current": [4, "float", "A", 0, 100, "Main IO;Sensors", 0xFFF, 0], + "main_24V_current": [4, "float", "A", 0, 100, "Main IO;Sensors", 0xFFF, 0], + "bms_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", 0xFFF, 0], + "hv_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", 0xFFF, 0], + "mainIO_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", 0xFFF, 0], + "mcc_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", 0xFFF, 0], + "mppt_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", 0xFFF, 0], - "mppt_mode": [1, "bool", "", 0, 1, "Solar Array;MPPT"], - "mppt_current_out": [4, "float", "A", 0, 7, "Solar Array;Sensors"], - "string1_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors"], - "string2_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors"], - "string3_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors"], - "string1_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors"], - "string2_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors"], - "string3_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors"], - "string1_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors"], - "string2_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors"], - "string3_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors"], + "mppt_mode": [1, "bool", "", 0, 1, "Solar Array;MPPT", 0xFFF, 0], + "mppt_current_out": [4, "float", "A", 0, 7, "Solar Array;Sensors", 0xFFF, 0], + "string1_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", 0xFFF, 0], + "string2_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", 0xFFF, 0], + "string3_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", 0xFFF, 0], + "string1_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", 0xFFF, 0], + "string2_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", 0xFFF, 0], + "string3_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", 0xFFF, 0], + "string1_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", 0xFFF, 0], + "string2_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", 0xFFF, 0], + "string3_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", 0xFFF, 0], - "pack_temp": [4, "float", "degC", 0, 55, "Battery;BMS CAN"], - "pack_internal_temp": [4, "float", "degC", 0, 100, "Battery;BMS CAN"], - "pack_current": [4, "float", "A", -24.4, 48.8, "Battery;BMS CAN"], - "pack_voltage": [4, "float", "V", 77.5, 113.15, "Battery;BMS CAN"], - "pack_power": [4, "float", "W", -2760.86, 5521.72, "Battery;Firmware"], - "populated_cells": [2, "uint16", "", 0, 100, "Battery;BMS CAN"], - "soc": [4, "float", "%", 0, 100, "Battery;BMS CAN"], - "soh": [4, "float", "%", 0, 100, "Battery;BMS CAN"], - "pack_amphours": [4, "float", "Ah", 57, 57, "Battery;BMS CAN"], - "adaptive_total_capacity": [4, "float", "Ah", 0, 100, "Battery;BMS CAN"], - "fan_speed": [1, "uint8", "", 0, 6, "Battery;BMS CAN"], - "pack_resistance": [4, "float", "mOhm", 0, 100, "Battery;BMS CAN"], - "bms_input_voltage": [4, "float", "V", 12, 24, "Battery;BMS CAN"], + "pack_temp": [4, "float", "degC", 0, 55, "Battery;BMS CAN", 0xFFF, 0], + "pack_internal_temp": [4, "float", "degC", 0, 100, "Battery;BMS CAN", 0xFFF, 0], + "pack_current": [4, "float", "A", -24.4, 48.8, "Battery;BMS CAN", 0xFFF, 0], + "pack_voltage": [4, "float", "V", 77.5, 113.15, "Battery;BMS CAN", 0xFFF, 0], + "pack_power": [4, "float", "W", -2760.86, 5521.72, "Battery;Firmware", 0xFFF, 0], + "populated_cells": [2, "uint16", "", 0, 100, "Battery;BMS CAN", 0xFFF, 0], + "soc": [4, "float", "%", 0, 100, "Battery;BMS CAN", 0xFFF, 0], + "soh": [4, "float", "%", 0, 100, "Battery;BMS CAN", 0xFFF, 0], + "pack_amphours": [4, "float", "Ah", 57, 57, "Battery;BMS CAN", 0xFFF, 0], + "adaptive_total_capacity": [4, "float", "Ah", 0, 100, "Battery;BMS CAN", 0xFFF, 0], + "fan_speed": [1, "uint8", "", 0, 6, "Battery;BMS CAN", 0xFFF, 0], + "pack_resistance": [4, "float", "mOhm", 0, 100, "Battery;BMS CAN", 0xFFF, 0], + "bms_input_voltage": [4, "float", "V", 12, 24, "Battery;BMS CAN", 0xFFF, 0], - "bps_fault": [1, "bool", "", 0, 0, "Battery;BMS"], + "bps_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0xFFF, 0], - "voltage_failsafe": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "current_failsafe": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "relay_failsafe": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "cell_balancing_active": [1, "bool", "", 1, 1, "Battery;BMS CAN"], - "charge_interlock_failsafe": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "thermistor_b_value_table_invalid": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "input_power_supply_failsafe": [1, "bool", "", 0, 0, "Battery;BMS CAN"], + "voltage_failsafe": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "current_failsafe": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "relay_failsafe": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "cell_balancing_active": [1, "bool", "", 1, 1, "Battery;BMS CAN", 0xFFF, 0], + "charge_interlock_failsafe": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "thermistor_b_value_table_invalid": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "input_power_supply_failsafe": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "discharge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "charger_safety_relay_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "internal_hardware_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "internal_heatsink_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "internal_software_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "highest_cell_voltage_too_high_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "lowest_cell_voltage_too_low_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "pack_too_hot_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "high_voltage_interlock_signal_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "precharge_circuit_malfunction": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "abnormal_state_of_charge_behavior": [1, "bool", "", 0, 0, "Battery;BMS CAN"], + "discharge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "charger_safety_relay_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "internal_hardware_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "internal_heatsink_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "internal_software_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "highest_cell_voltage_too_high_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "lowest_cell_voltage_too_low_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "pack_too_hot_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "high_voltage_interlock_signal_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "precharge_circuit_malfunction": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "abnormal_state_of_charge_behavior": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "internal_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "cell_balancing_stuck_off_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "weak_cell_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "low_cell_voltage_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "open_wiring_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "current_sensor_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "highest_cell_voltage_over_5V_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "cell_asic_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "weak_pack_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "fan_monitor_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "thermistor_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "external_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "redundant_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "high_voltage_isolation_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "input_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], - "charge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN"], + "internal_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "cell_balancing_stuck_off_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "weak_cell_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "low_cell_voltage_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "open_wiring_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "current_sensor_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "highest_cell_voltage_over_5V_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "cell_asic_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "weak_pack_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "fan_monitor_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "thermistor_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "external_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "redundant_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "high_voltage_isolation_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "input_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "charge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "cell_group1_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group2_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group3_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group4_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group5_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group6_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group7_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group8_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group9_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group10_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group11_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group12_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group13_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group14_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group15_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group16_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group17_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group18_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group19_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group20_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group21_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group22_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group23_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group24_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group25_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group26_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group27_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group28_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group29_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group30_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], - "cell_group31_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS"], + "cell_group1_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group2_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group3_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group4_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group5_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group6_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group7_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group8_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group9_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group10_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group11_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group12_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group13_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group14_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group15_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group16_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group17_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group18_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group19_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group20_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group21_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group22_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group23_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group24_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group25_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group26_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group27_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group28_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group29_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group30_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group31_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "tstamp_ms": [2, "uint16", "ms", 0, 999, "Software;Timestamp"], - "tstamp_sc": [1, "uint8", "s", 0, 59, "Software;Timestamp"], - "tstamp_mn": [1, "uint8", "min", 0, 59, "Software;Timestamp"], - "tstamp_hr": [1, "uint8", "hr", 0, 23, "Software;Timestamp"], - "tstamp_unix": [8, "uint64", "ms", 0, 0, "Software;Timestamp"], - "lat": [4, "float", "Degree", 0, 0, "Software;GPS"], - "lon": [4, "float", "Degree", 0, 0, "Software;GPS"], - "elev": [4, "float", "meter", 0, 0, "Software;GPS"] + "tstamp_ms": [2, "uint16", "ms", 0, 999, "Software;Timestamp", 0xFFF, 0], + "tstamp_sc": [1, "uint8", "s", 0, 59, "Software;Timestamp", 0xFFF, 0], + "tstamp_mn": [1, "uint8", "min", 0, 59, "Software;Timestamp", 0xFFF, 0], + "tstamp_hr": [1, "uint8", "hr", 0, 23, "Software;Timestamp", 0xFFF, 0], + "tstamp_unix": [8, "uint64", "ms", 0, 0, "Software;Timestamp", 0xFFF, 0], + "lat": [4, "float", "Degree", 0, 0, "Software;GPS", 0xFFF, 0], + "lon": [4, "float", "Degree", 0, 0, "Software;GPS", 0xFFF, 0], + "elev": [4, "float", "meter", 0, 0, "Software;GPS", 0xFFF, 0] } - + From b1ae99498e542818faa6f19252d737faf82037e2 Mon Sep 17 00:00:00 2001 From: James Vollmer Date: Sun, 2 Mar 2025 13:08:26 -0600 Subject: [PATCH 02/12] WIP - Update actual CAN IDs and bit offsets NOTE: Changed byte lengths to lengths in CAN messages --- format.json | 140 ++++++++++++++++++++++++++-------------------------- 1 file changed, 70 insertions(+), 70 deletions(-) diff --git a/format.json b/format.json index 6b69e45..bd71b27 100644 --- a/format.json +++ b/format.json @@ -1,19 +1,19 @@ { - "accelerator_pedal": [4, "float", "%", 0, 1, "MCC;Sensors", 0xFFF, 0], - "speed": [4, "float", "mph", 0, 100, "MCC;Motor Controller I/O", 0xFFF, 0], + "accelerator_pedal": [4, "float", "%", 0, 1, "PDC;Sensors", 0x200, 0], + "speed": [4, "float", "mph", 0, 100, "PDC;Motor Controller I/O", 0x208, 0], "mcc_state": [1, "uint8", "", 0, 7, "MCC;Firmware", 0xFFF, 0], - "fr_telem": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", 0xFFF, 0], + "fr_telem": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", 0x300, 0], "crz_pwr_mode": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", 0xFFF, 0], - "crz_spd_mode": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", 0xFFF, 0], + "crz_spd_mode": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", 0x300, 3], "crz_pwr_setpt": [4, "float", "W", 0, 100, "MCC;Firmware", 0xFFF, 0], "crz_spd_setpt": [4, "float", "mph", 0, 100, "MCC;Firmware", 0xFFF, 0], - "eco": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", 0xFFF, 0], + "eco": [1, "bool", "", 0, 1, "PDC;Motor Controller I/O", 0x207, 1], "main_telem": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", 0xFFF, 0], "foot_brake": [1, "bool", "", 0, 1, "MCC;Sensors", 0xFFF, 0], - "regen_brake": [4, "float", "%", 0, 1, "MCC;Sensors", 0xFFF, 0], + "regen_brake": [4, "float", "%", 0, 1, "PDC;Sensors", 0x201, 0], "motor_current": [4, "float", "A", 0, 100, "MCC;Sensors", 0xFFF, 0], "motor_power": [4, "float", "W", 0, 100, "MCC;Firmware", 0xFFF, 0], - "mc_status": [1, "uint8", "", 0, 0, "MCC;Motor Controller I/O", 0xFFF, 0], + "mc_status": [1, "uint8", "", 0, 0, "PDC;Motor Controller I/O", 0x207, 2], "driver_eStop": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], @@ -41,7 +41,7 @@ "bms_mpio1": [1, "bool", "", 0, 1, "High Voltage;IO", 0xFFF, 0], - "park_brake": [1, "bool", "", 0, 1, "Main IO;Sensors", 0xFFF, 0], + "park_brake": [1, "bool", "", 0, 1, "PDC;Sensors", 0x207, 3], "air_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], "brake_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], "dcdc_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], @@ -49,15 +49,15 @@ "motor_controller_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], "motor_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], "road_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], - "l_turn_led_en": [1, "bool", "", 0, 1, "Main IO;Lights", 0xFFF, 0], - "r_turn_led_en": [1, "bool", "", 0, 1, "Main IO;Lights", 0xFFF, 0], - "brake_led_en": [1, "bool", "", 0, 1, "Main IO;Lights", 0xFFF, 0], + "l_turn_led_en": [1, "bool", "", 0, 1, "Steering Wheel;Lights", 0x300, 1], + "r_turn_led_en": [1, "bool", "", 0, 1, "Steering Wheel;Lights", 0x300, 2], + "brake_led_en": [1, "bool", "", 0, 1, "PDC;Lights", 0x20A, 0], "headlights_led_en": [1, "bool", "", 0, 1, "Main IO;Lights", 0xFFF, 0], "hazards": [1, "bool", "", 0, 0, "Main IO;Lights", 0xFFF, 0], - "main_5V_bus": [4, "float", "V", 0, 100, "Main IO;Sensors", 0xFFF, 0], - "main_12V_bus": [4, "float", "V", 0, 100, "Main IO;Sensors", 0xFFF, 0], + "main_5V_bus": [4, "float", "V", 0, 100, "PDC;Sensors", 0x203, 0], + "main_12V_bus": [4, "float", "V", 0, 100, "PDC;Sensors", 0x202, 0], "main_24V_bus": [4, "float", "V", 0, 100, "Main IO;Sensors", 0xFFF, 0], - "main_5V_current": [4, "float", "A", 0, 100, "Main IO;Sensors", 0xFFF, 0], + "main_5V_current": [4, "float", "A", 0, 100, "PDC;Sensors", 0x204, 0], "main_12V_current": [4, "float", "A", 0, 100, "Main IO;Sensors", 0xFFF, 0], "main_24V_current": [4, "float", "A", 0, 100, "Main IO;Sensors", 0xFFF, 0], "bms_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", 0xFFF, 0], @@ -67,71 +67,71 @@ "mppt_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", 0xFFF, 0], - "mppt_mode": [1, "bool", "", 0, 1, "Solar Array;MPPT", 0xFFF, 0], + "mppt_mode": [1, "bool", "", 0, 1, "Solar Array;MPPT", 0x401, 0], "mppt_current_out": [4, "float", "A", 0, 7, "Solar Array;Sensors", 0xFFF, 0], - "string1_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", 0xFFF, 0], - "string2_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", 0xFFF, 0], - "string3_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", 0xFFF, 0], - "string1_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", 0xFFF, 0], - "string2_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", 0xFFF, 0], - "string3_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", 0xFFF, 0], - "string1_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", 0xFFF, 0], - "string2_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", 0xFFF, 0], - "string3_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", 0xFFF, 0], + "string1_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", 0x404, 0], + "string2_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", 0x409, 0], + "string3_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", 0x414, 0], + "string1_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", 0x402, 0], + "string2_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", 0x407, 0], + "string3_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", 0x412, 0], + "string1_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", 0x403, 0], + "string2_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", 0x408, 0], + "string3_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", 0x413, 0], - "pack_temp": [4, "float", "degC", 0, 55, "Battery;BMS CAN", 0xFFF, 0], - "pack_internal_temp": [4, "float", "degC", 0, 100, "Battery;BMS CAN", 0xFFF, 0], - "pack_current": [4, "float", "A", -24.4, 48.8, "Battery;BMS CAN", 0xFFF, 0], - "pack_voltage": [4, "float", "V", 77.5, 113.15, "Battery;BMS CAN", 0xFFF, 0], + "pack_temp": [1, "float", "degC", 0, 55, "Battery;BMS", 0x102, 40], + "pack_internal_temp": [1, "float", "degC", 0, 100, "Battery;BMS", 0x102, 48], + "pack_current": [2, "float", "A", -24.4, 48.8, "Battery;BMS", 0x101, 0], + "pack_voltage": [2, "float", "V", 77.5, 113.15, "Battery;BMS", 0x101, 16], "pack_power": [4, "float", "W", -2760.86, 5521.72, "Battery;Firmware", 0xFFF, 0], - "populated_cells": [2, "uint16", "", 0, 100, "Battery;BMS CAN", 0xFFF, 0], - "soc": [4, "float", "%", 0, 100, "Battery;BMS CAN", 0xFFF, 0], - "soh": [4, "float", "%", 0, 100, "Battery;BMS CAN", 0xFFF, 0], - "pack_amphours": [4, "float", "Ah", 57, 57, "Battery;BMS CAN", 0xFFF, 0], - "adaptive_total_capacity": [4, "float", "Ah", 0, 100, "Battery;BMS CAN", 0xFFF, 0], - "fan_speed": [1, "uint8", "", 0, 6, "Battery;BMS CAN", 0xFFF, 0], - "pack_resistance": [4, "float", "mOhm", 0, 100, "Battery;BMS CAN", 0xFFF, 0], - "bms_input_voltage": [4, "float", "V", 12, 24, "Battery;BMS CAN", 0xFFF, 0], + "populated_cells": [1, "uint16", "", 0, 100, "Battery;BMS", 0x102, 16], + "soc": [1, "float", "%", 0, 100, "Battery;BMS", 0x101, 32], + "soh": [1, "float", "%", 0, 100, "Battery;BMS", 0x101, 40], + "pack_amphours": [2, "float", "Ah", 57, 57, "Battery;BMS", 0x102, 0], + "adaptive_total_capacity": [2, "float", "Ah", 0, 100, "Battery;BMS", 0x100, 32], + "fan_speed": [1, "uint8", "", 0, 6, "Battery;BMS", 0x102, 56], + "pack_resistance": [2, "float", "mOhm", 0, 100, "Battery;BMS", 0x101, 48], + "bms_input_voltage": [2, "float", "V", 12, 24, "Battery;BMS", 0x102, 24], "bps_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0xFFF, 0], - "voltage_failsafe": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "current_failsafe": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "relay_failsafe": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "cell_balancing_active": [1, "bool", "", 1, 1, "Battery;BMS CAN", 0xFFF, 0], - "charge_interlock_failsafe": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "thermistor_b_value_table_invalid": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "input_power_supply_failsafe": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "voltage_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 0], + "current_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 1], + "relay_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 2], + "cell_balancing_active": [1, "bool", "", 1, 1, "Battery;BMS", 0x100, 3], + "charge_interlock_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 4], + "thermistor_b_value_table_invalid": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 5], + "input_power_supply_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 6], - "discharge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "charger_safety_relay_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "internal_hardware_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "internal_heatsink_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "internal_software_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "highest_cell_voltage_too_high_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "lowest_cell_voltage_too_low_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "pack_too_hot_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "high_voltage_interlock_signal_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "precharge_circuit_malfunction": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "abnormal_state_of_charge_behavior": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "discharge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 0], + "charger_safety_relay_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 1], + "internal_hardware_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 2], + "internal_heatsink_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 3], + "internal_software_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 4], + "highest_cell_voltage_too_high_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 5], + "lowest_cell_voltage_too_low_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 6], + "pack_too_hot_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 7], + "high_voltage_interlock_signal_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 0], + "precharge_circuit_malfunction": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 0], + "abnormal_state_of_charge_behavior": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 0], - "internal_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "cell_balancing_stuck_off_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "weak_cell_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "low_cell_voltage_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "open_wiring_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "current_sensor_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "highest_cell_voltage_over_5V_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "cell_asic_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "weak_pack_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "fan_monitor_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "thermistor_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "external_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "redundant_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "high_voltage_isolation_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "input_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], - "charge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS CAN", 0xFFF, 0], + "internal_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 16], + "cell_balancing_stuck_off_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 17], + "weak_cell_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 18], + "low_cell_voltage_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 19], + "open_wiring_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 20], + "current_sensor_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 21], + "highest_cell_voltage_over_5V_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 22], + "cell_asic_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 23], + "weak_pack_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 24], + "fan_monitor_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 25], + "thermistor_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 26], + "external_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 27], + "redundant_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 28], + "high_voltage_isolation_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 29], + "input_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 30], + "charge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 31], "cell_group1_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], "cell_group2_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], From 42b8dac0cf9c84d639caf31ea2df9e5d2ee73581 Mon Sep 17 00:00:00 2001 From: James Vollmer Date: Sun, 2 Mar 2025 13:13:04 -0600 Subject: [PATCH 03/12] Add cell voltages --- format.json | 62 ++++++++++++++++++++++++++--------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/format.json b/format.json index bd71b27..483de31 100644 --- a/format.json +++ b/format.json @@ -133,37 +133,37 @@ "input_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 30], "charge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 31], - "cell_group1_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group2_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group3_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group4_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group5_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group6_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group7_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group8_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group9_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group10_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group11_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group12_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group13_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group14_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group15_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group16_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group17_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group18_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group19_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group20_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group21_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group22_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group23_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group24_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group25_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group26_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group27_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group28_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group29_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group30_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], - "cell_group31_voltage": [4, "float", "V", 2.5, 3.65, "Battery;BMS", 0xFFF, 0], + "cell_group1_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group2_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group3_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group4_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group5_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group6_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group7_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group8_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group9_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group10_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group11_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group12_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group13_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group14_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group15_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group16_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group17_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group18_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group19_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group20_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group21_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group22_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group23_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group24_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group25_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group26_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group27_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group28_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group29_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group30_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group31_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], "tstamp_ms": [2, "uint16", "ms", 0, 999, "Software;Timestamp", 0xFFF, 0], From f4fefb0c3785ddf4cd14c90d0035174d4a505e8e Mon Sep 17 00:00:00 2001 From: James Vollmer Date: Sun, 2 Mar 2025 13:33:27 -0600 Subject: [PATCH 04/12] Make hex IDs strings --- format.json | 318 ++++++++++++++++++++++++++-------------------------- 1 file changed, 159 insertions(+), 159 deletions(-) diff --git a/format.json b/format.json index 483de31..2cda3e9 100644 --- a/format.json +++ b/format.json @@ -1,178 +1,178 @@ { - "accelerator_pedal": [4, "float", "%", 0, 1, "PDC;Sensors", 0x200, 0], - "speed": [4, "float", "mph", 0, 100, "PDC;Motor Controller I/O", 0x208, 0], - "mcc_state": [1, "uint8", "", 0, 7, "MCC;Firmware", 0xFFF, 0], - "fr_telem": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", 0x300, 0], - "crz_pwr_mode": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", 0xFFF, 0], - "crz_spd_mode": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", 0x300, 3], - "crz_pwr_setpt": [4, "float", "W", 0, 100, "MCC;Firmware", 0xFFF, 0], - "crz_spd_setpt": [4, "float", "mph", 0, 100, "MCC;Firmware", 0xFFF, 0], - "eco": [1, "bool", "", 0, 1, "PDC;Motor Controller I/O", 0x207, 1], - "main_telem": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", 0xFFF, 0], - "foot_brake": [1, "bool", "", 0, 1, "MCC;Sensors", 0xFFF, 0], - "regen_brake": [4, "float", "%", 0, 1, "PDC;Sensors", 0x201, 0], - "motor_current": [4, "float", "A", 0, 100, "MCC;Sensors", 0xFFF, 0], - "motor_power": [4, "float", "W", 0, 100, "MCC;Firmware", 0xFFF, 0], - "mc_status": [1, "uint8", "", 0, 0, "PDC;Motor Controller I/O", 0x207, 2], + "accelerator_pedal": [4, "float", "%", 0, 1, "PDC;Sensors", "0x200", 0], + "speed": [4, "float", "mph", 0, 100, "PDC;Motor Controller I/O", "0x208", 0], + "mcc_state": [1, "uint8", "", 0, 7, "MCC;Firmware", "0xFFF", 0], + "fr_telem": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", "0x300", 0], + "crz_pwr_mode": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", "0xFFF", 0], + "crz_spd_mode": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", "0x300", 3], + "crz_pwr_setpt": [4, "float", "W", 0, 100, "MCC;Firmware", "0xFFF", 0], + "crz_spd_setpt": [4, "float", "mph", 0, 100, "MCC;Firmware", "0xFFF", 0], + "eco": [1, "bool", "", 0, 1, "PDC;Motor Controller I/O", "0x207", 1], + "main_telem": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", "0xFFF", 0], + "foot_brake": [1, "bool", "", 0, 1, "MCC;Sensors", "0xFFF", 0], + "regen_brake": [4, "float", "%", 0, 1, "PDC;Sensors", "0x201", 0], + "motor_current": [4, "float", "A", 0, 100, "MCC;Sensors", "0xFFF", 0], + "motor_power": [4, "float", "W", 0, 100, "MCC;Firmware", "0xFFF", 0], + "mc_status": [1, "uint8", "", 0, 0, "PDC;Motor Controller I/O", "0x207", 2], - "driver_eStop": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], - "external_eStop": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], - "crash": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], - "discharge_enable": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], - "discharge_enabled": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], - "charge_enable": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], - "charge_enabled": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], - "isolation": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], - "mcu_hv_en": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], - "mcu_stat_fdbk": [1, "bool", "", 0, 0, "High Voltage;Shutdown", 0xFFF, 0], + "driver_eStop": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], + "external_eStop": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], + "crash": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], + "discharge_enable": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], + "discharge_enabled": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], + "charge_enable": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], + "charge_enabled": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], + "isolation": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], + "mcu_hv_en": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], + "mcu_stat_fdbk": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], - "mppt_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", 0xFFF, 0], - "motor_controller_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", 0xFFF, 0], - "low_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", 0xFFF, 0], - "dcdc_current": [4, "float", "A", 0, 100, "High Voltage;MPS", 0xFFF, 0], - "dcdc_deg": [1, "bool", "", 1, 1, "High Voltage;MPS", 0xFFF, 0], - "use_dcdc": [1, "bool", "", 0, 0, "High Voltage;MPS", 0xFFF, 0], - "supplemental_current": [4, "float", "A", 0, 100, "Battery;Supplemental", 0xFFF, 0], - "supplemental_voltage": [4, "float", "V", 0, 100, "Battery;Supplemental", 0xFFF, 0], - "supplemental_deg": [1, "bool", "", 1, 1, "Battery;Supplemental", 0xFFF, 0], - "use_supp": [1, "bool", "", 0, 0, "High Voltage;MPS", 0xFFF, 0], - "est_supplemental_soc": [4, "float", "%", 0, 100, "Battery;Supplemental", 0xFFF, 0], - "bms_mpio1": [1, "bool", "", 0, 1, "High Voltage;IO", 0xFFF, 0], + "mppt_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", "0xFFF", 0], + "motor_controller_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", "0xFFF", 0], + "low_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", "0xFFF", 0], + "dcdc_current": [4, "float", "A", 0, 100, "High Voltage;MPS", "0xFFF", 0], + "dcdc_deg": [1, "bool", "", 1, 1, "High Voltage;MPS", "0xFFF", 0], + "use_dcdc": [1, "bool", "", 0, 0, "High Voltage;MPS", "0xFFF", 0], + "supplemental_current": [4, "float", "A", 0, 100, "Battery;Supplemental", "0xFFF", 0], + "supplemental_voltage": [4, "float", "V", 0, 100, "Battery;Supplemental", "0xFFF", 0], + "supplemental_deg": [1, "bool", "", 1, 1, "Battery;Supplemental", "0xFFF", 0], + "use_supp": [1, "bool", "", 0, 0, "High Voltage;MPS", "0xFFF", 0], + "est_supplemental_soc": [4, "float", "%", 0, 100, "Battery;Supplemental", "0xFFF", 0], + "bms_mpio1": [1, "bool", "", 0, 1, "High Voltage;IO", "0xFFF", 0], - "park_brake": [1, "bool", "", 0, 1, "PDC;Sensors", 0x207, 3], - "air_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], - "brake_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], - "dcdc_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], - "mainIO_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], - "motor_controller_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], - "motor_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], - "road_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", 0xFFF, 0], - "l_turn_led_en": [1, "bool", "", 0, 1, "Steering Wheel;Lights", 0x300, 1], - "r_turn_led_en": [1, "bool", "", 0, 1, "Steering Wheel;Lights", 0x300, 2], - "brake_led_en": [1, "bool", "", 0, 1, "PDC;Lights", 0x20A, 0], - "headlights_led_en": [1, "bool", "", 0, 1, "Main IO;Lights", 0xFFF, 0], - "hazards": [1, "bool", "", 0, 0, "Main IO;Lights", 0xFFF, 0], - "main_5V_bus": [4, "float", "V", 0, 100, "PDC;Sensors", 0x203, 0], - "main_12V_bus": [4, "float", "V", 0, 100, "PDC;Sensors", 0x202, 0], - "main_24V_bus": [4, "float", "V", 0, 100, "Main IO;Sensors", 0xFFF, 0], - "main_5V_current": [4, "float", "A", 0, 100, "PDC;Sensors", 0x204, 0], - "main_12V_current": [4, "float", "A", 0, 100, "Main IO;Sensors", 0xFFF, 0], - "main_24V_current": [4, "float", "A", 0, 100, "Main IO;Sensors", 0xFFF, 0], - "bms_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", 0xFFF, 0], - "hv_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", 0xFFF, 0], - "mainIO_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", 0xFFF, 0], - "mcc_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", 0xFFF, 0], - "mppt_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", 0xFFF, 0], + "park_brake": [1, "bool", "", 0, 1, "PDC;Sensors", "0x207", 3], + "air_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "0xFFF", 0], + "brake_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "0xFFF", 0], + "dcdc_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "0xFFF", 0], + "mainIO_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "0xFFF", 0], + "motor_controller_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "0xFFF", 0], + "motor_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "0xFFF", 0], + "road_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "0xFFF", 0], + "l_turn_led_en": [1, "bool", "", 0, 1, "Steering Wheel;Lights", "0x300", 1], + "r_turn_led_en": [1, "bool", "", 0, 1, "Steering Wheel;Lights", "0x300", 2], + "brake_led_en": [1, "bool", "", 0, 1, "PDC;Lights", "0x20A", 0], + "headlights_led_en": [1, "bool", "", 0, 1, "Main IO;Lights", "0xFFF", 0], + "hazards": [1, "bool", "", 0, 0, "Main IO;Lights", "0xFFF", 0], + "main_5V_bus": [4, "float", "V", 0, 100, "PDC;Sensors", "0x203", 0], + "main_12V_bus": [4, "float", "V", 0, 100, "PDC;Sensors", "0x202", 0], + "main_24V_bus": [4, "float", "V", 0, 100, "Main IO;Sensors", "0xFFF", 0], + "main_5V_current": [4, "float", "A", 0, 100, "PDC;Sensors", "0x204", 0], + "main_12V_current": [4, "float", "A", 0, 100, "Main IO;Sensors", "0xFFF", 0], + "main_24V_current": [4, "float", "A", 0, 100, "Main IO;Sensors", "0xFFF", 0], + "bms_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "0xFFF", 0], + "hv_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "0xFFF", 0], + "mainIO_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "0xFFF", 0], + "mcc_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "0xFFF", 0], + "mppt_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "0xFFF", 0], - "mppt_mode": [1, "bool", "", 0, 1, "Solar Array;MPPT", 0x401, 0], - "mppt_current_out": [4, "float", "A", 0, 7, "Solar Array;Sensors", 0xFFF, 0], - "string1_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", 0x404, 0], - "string2_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", 0x409, 0], - "string3_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", 0x414, 0], - "string1_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", 0x402, 0], - "string2_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", 0x407, 0], - "string3_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", 0x412, 0], - "string1_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", 0x403, 0], - "string2_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", 0x408, 0], - "string3_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", 0x413, 0], + "mppt_mode": [1, "bool", "", 0, 1, "Solar Array;MPPT", "0x401", 0], + "mppt_current_out": [4, "float", "A", 0, 7, "Solar Array;Sensors", "0xFFF", 0], + "string1_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", "0x404", 0], + "string2_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", "0x409", 0], + "string3_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", "0x414", 0], + "string1_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", "0x402", 0], + "string2_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", "0x407", 0], + "string3_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", "0x412", 0], + "string1_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", "0x403", 0], + "string2_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", "0x408", 0], + "string3_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", "0x413", 0], - "pack_temp": [1, "float", "degC", 0, 55, "Battery;BMS", 0x102, 40], - "pack_internal_temp": [1, "float", "degC", 0, 100, "Battery;BMS", 0x102, 48], - "pack_current": [2, "float", "A", -24.4, 48.8, "Battery;BMS", 0x101, 0], - "pack_voltage": [2, "float", "V", 77.5, 113.15, "Battery;BMS", 0x101, 16], - "pack_power": [4, "float", "W", -2760.86, 5521.72, "Battery;Firmware", 0xFFF, 0], - "populated_cells": [1, "uint16", "", 0, 100, "Battery;BMS", 0x102, 16], - "soc": [1, "float", "%", 0, 100, "Battery;BMS", 0x101, 32], - "soh": [1, "float", "%", 0, 100, "Battery;BMS", 0x101, 40], - "pack_amphours": [2, "float", "Ah", 57, 57, "Battery;BMS", 0x102, 0], - "adaptive_total_capacity": [2, "float", "Ah", 0, 100, "Battery;BMS", 0x100, 32], - "fan_speed": [1, "uint8", "", 0, 6, "Battery;BMS", 0x102, 56], - "pack_resistance": [2, "float", "mOhm", 0, 100, "Battery;BMS", 0x101, 48], - "bms_input_voltage": [2, "float", "V", 12, 24, "Battery;BMS", 0x102, 24], + "pack_temp": [1, "float", "degC", 0, 55, "Battery;BMS", "0x102", 40], + "pack_internal_temp": [1, "float", "degC", 0, 100, "Battery;BMS", "0x102", 48], + "pack_current": [2, "float", "A", -24.4, 48.8, "Battery;BMS", "0x101", 0], + "pack_voltage": [2, "float", "V", 77.5, 113.15, "Battery;BMS", "0x101", 16], + "pack_power": [4, "float", "W", -2760.86, 5521.72, "Battery;Firmware", "0xFFF", 0], + "populated_cells": [1, "uint16", "", 0, 100, "Battery;BMS", "0x102", 16], + "soc": [1, "float", "%", 0, 100, "Battery;BMS", "0x101", 32], + "soh": [1, "float", "%", 0, 100, "Battery;BMS", "0x101", 40], + "pack_amphours": [2, "float", "Ah", 57, 57, "Battery;BMS", "0x102", 0], + "adaptive_total_capacity": [2, "float", "Ah", 0, 100, "Battery;BMS", "0x100", 32], + "fan_speed": [1, "uint8", "", 0, 6, "Battery;BMS", "0x102", 56], + "pack_resistance": [2, "float", "mOhm", 0, 100, "Battery;BMS", "0x101", 48], + "bms_input_voltage": [2, "float", "V", 12, 24, "Battery;BMS", "0x102", 24], - "bps_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0xFFF, 0], + "bps_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0xFFF", 0], - "voltage_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 0], - "current_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 1], - "relay_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 2], - "cell_balancing_active": [1, "bool", "", 1, 1, "Battery;BMS", 0x100, 3], - "charge_interlock_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 4], - "thermistor_b_value_table_invalid": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 5], - "input_power_supply_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 6], + "voltage_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 0], + "current_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 1], + "relay_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 2], + "cell_balancing_active": [1, "bool", "", 1, 1, "Battery;BMS", "0x100", 3], + "charge_interlock_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 4], + "thermistor_b_value_table_invalid": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 5], + "input_power_supply_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 6], - "discharge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 0], - "charger_safety_relay_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 1], - "internal_hardware_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 2], - "internal_heatsink_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 3], - "internal_software_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 4], - "highest_cell_voltage_too_high_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 5], - "lowest_cell_voltage_too_low_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 6], - "pack_too_hot_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 7], - "high_voltage_interlock_signal_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 0], - "precharge_circuit_malfunction": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 0], - "abnormal_state_of_charge_behavior": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 0], + "discharge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 0], + "charger_safety_relay_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 1], + "internal_hardware_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 2], + "internal_heatsink_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 3], + "internal_software_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 4], + "highest_cell_voltage_too_high_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 5], + "lowest_cell_voltage_too_low_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 6], + "pack_too_hot_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 7], + "high_voltage_interlock_signal_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 0], + "precharge_circuit_malfunction": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 0], + "abnormal_state_of_charge_behavior": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 0], - "internal_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 16], - "cell_balancing_stuck_off_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 17], - "weak_cell_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 18], - "low_cell_voltage_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 19], - "open_wiring_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 20], - "current_sensor_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 21], - "highest_cell_voltage_over_5V_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 22], - "cell_asic_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 23], - "weak_pack_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 24], - "fan_monitor_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 25], - "thermistor_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 26], - "external_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 27], - "redundant_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 28], - "high_voltage_isolation_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 29], - "input_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 30], - "charge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS", 0x100, 31], + "internal_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 16], + "cell_balancing_stuck_off_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 17], + "weak_cell_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 18], + "low_cell_voltage_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 19], + "open_wiring_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 20], + "current_sensor_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 21], + "highest_cell_voltage_over_5V_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 22], + "cell_asic_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 23], + "weak_pack_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 24], + "fan_monitor_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 25], + "thermistor_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 26], + "external_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 27], + "redundant_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 28], + "high_voltage_isolation_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 29], + "input_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 30], + "charge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 31], - "cell_group1_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group2_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group3_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group4_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group5_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group6_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group7_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group8_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group9_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group10_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group11_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group12_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group13_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group14_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group15_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group16_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group17_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group18_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group19_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group20_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group21_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group22_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group23_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group24_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group25_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group26_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group27_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group28_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group29_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group30_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], - "cell_group31_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", 0x103, 8], + "cell_group1_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group2_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group3_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group4_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group5_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group6_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group7_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group8_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group9_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group10_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group11_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group12_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group13_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group14_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group15_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group16_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group17_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group18_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group19_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group20_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group21_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group22_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group23_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group24_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group25_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group26_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group27_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group28_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group29_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group30_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group31_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "tstamp_ms": [2, "uint16", "ms", 0, 999, "Software;Timestamp", 0xFFF, 0], - "tstamp_sc": [1, "uint8", "s", 0, 59, "Software;Timestamp", 0xFFF, 0], - "tstamp_mn": [1, "uint8", "min", 0, 59, "Software;Timestamp", 0xFFF, 0], - "tstamp_hr": [1, "uint8", "hr", 0, 23, "Software;Timestamp", 0xFFF, 0], - "tstamp_unix": [8, "uint64", "ms", 0, 0, "Software;Timestamp", 0xFFF, 0], - "lat": [4, "float", "Degree", 0, 0, "Software;GPS", 0xFFF, 0], - "lon": [4, "float", "Degree", 0, 0, "Software;GPS", 0xFFF, 0], - "elev": [4, "float", "meter", 0, 0, "Software;GPS", 0xFFF, 0] + "tstamp_ms": [2, "uint16", "ms", 0, 999, "Software;Timestamp", "0xFFF", 0], + "tstamp_sc": [1, "uint8", "s", 0, 59, "Software;Timestamp", "0xFFF", 0], + "tstamp_mn": [1, "uint8", "min", 0, 59, "Software;Timestamp", "0xFFF", 0], + "tstamp_hr": [1, "uint8", "hr", 0, 23, "Software;Timestamp", "0xFFF", 0], + "tstamp_unix": [8, "uint64", "ms", 0, 0, "Software;Timestamp", "0xFFF", 0], + "lat": [4, "float", "Degree", 0, 0, "Software;GPS", "0xFFF", 0], + "lon": [4, "float", "Degree", 0, 0, "Software;GPS", "0xFFF", 0], + "elev": [4, "float", "meter", 0, 0, "Software;GPS", "0xFFF", 0] } From 56c361b2935eb553b097f93876a1d289c41096e9 Mon Sep 17 00:00:00 2001 From: James Vollmer Date: Sun, 2 Mar 2025 13:35:09 -0600 Subject: [PATCH 05/12] Remove '0x' --- format.json | 318 ++++++++++++++++++++++++++-------------------------- 1 file changed, 159 insertions(+), 159 deletions(-) diff --git a/format.json b/format.json index 2cda3e9..bcc8913 100644 --- a/format.json +++ b/format.json @@ -1,178 +1,178 @@ { - "accelerator_pedal": [4, "float", "%", 0, 1, "PDC;Sensors", "0x200", 0], - "speed": [4, "float", "mph", 0, 100, "PDC;Motor Controller I/O", "0x208", 0], - "mcc_state": [1, "uint8", "", 0, 7, "MCC;Firmware", "0xFFF", 0], - "fr_telem": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", "0x300", 0], - "crz_pwr_mode": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", "0xFFF", 0], - "crz_spd_mode": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", "0x300", 3], - "crz_pwr_setpt": [4, "float", "W", 0, 100, "MCC;Firmware", "0xFFF", 0], - "crz_spd_setpt": [4, "float", "mph", 0, 100, "MCC;Firmware", "0xFFF", 0], - "eco": [1, "bool", "", 0, 1, "PDC;Motor Controller I/O", "0x207", 1], - "main_telem": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", "0xFFF", 0], - "foot_brake": [1, "bool", "", 0, 1, "MCC;Sensors", "0xFFF", 0], - "regen_brake": [4, "float", "%", 0, 1, "PDC;Sensors", "0x201", 0], - "motor_current": [4, "float", "A", 0, 100, "MCC;Sensors", "0xFFF", 0], - "motor_power": [4, "float", "W", 0, 100, "MCC;Firmware", "0xFFF", 0], - "mc_status": [1, "uint8", "", 0, 0, "PDC;Motor Controller I/O", "0x207", 2], + "accelerator_pedal": [4, "float", "%", 0, 1, "PDC;Sensors", "200", 0], + "speed": [4, "float", "mph", 0, 100, "PDC;Motor Controller I/O", "208", 0], + "mcc_state": [1, "uint8", "", 0, 7, "MCC;Firmware", "FFF", 0], + "fr_telem": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", "300", 0], + "crz_pwr_mode": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", "FFF", 0], + "crz_spd_mode": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", "300", 3], + "crz_pwr_setpt": [4, "float", "W", 0, 100, "MCC;Firmware", "FFF", 0], + "crz_spd_setpt": [4, "float", "mph", 0, 100, "MCC;Firmware", "FFF", 0], + "eco": [1, "bool", "", 0, 1, "PDC;Motor Controller I/O", "207", 1], + "main_telem": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", "FFF", 0], + "foot_brake": [1, "bool", "", 0, 1, "MCC;Sensors", "FFF", 0], + "regen_brake": [4, "float", "%", 0, 1, "PDC;Sensors", "201", 0], + "motor_current": [4, "float", "A", 0, 100, "MCC;Sensors", "FFF", 0], + "motor_power": [4, "float", "W", 0, 100, "MCC;Firmware", "FFF", 0], + "mc_status": [1, "uint8", "", 0, 0, "PDC;Motor Controller I/O", "207", 2], - "driver_eStop": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], - "external_eStop": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], - "crash": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], - "discharge_enable": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], - "discharge_enabled": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], - "charge_enable": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], - "charge_enabled": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], - "isolation": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], - "mcu_hv_en": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], - "mcu_stat_fdbk": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "0xFFF", 0], + "driver_eStop": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + "external_eStop": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + "crash": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + "discharge_enable": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + "discharge_enabled": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + "charge_enable": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + "charge_enabled": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + "isolation": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + "mcu_hv_en": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + "mcu_stat_fdbk": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - "mppt_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", "0xFFF", 0], - "motor_controller_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", "0xFFF", 0], - "low_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", "0xFFF", 0], - "dcdc_current": [4, "float", "A", 0, 100, "High Voltage;MPS", "0xFFF", 0], - "dcdc_deg": [1, "bool", "", 1, 1, "High Voltage;MPS", "0xFFF", 0], - "use_dcdc": [1, "bool", "", 0, 0, "High Voltage;MPS", "0xFFF", 0], - "supplemental_current": [4, "float", "A", 0, 100, "Battery;Supplemental", "0xFFF", 0], - "supplemental_voltage": [4, "float", "V", 0, 100, "Battery;Supplemental", "0xFFF", 0], - "supplemental_deg": [1, "bool", "", 1, 1, "Battery;Supplemental", "0xFFF", 0], - "use_supp": [1, "bool", "", 0, 0, "High Voltage;MPS", "0xFFF", 0], - "est_supplemental_soc": [4, "float", "%", 0, 100, "Battery;Supplemental", "0xFFF", 0], - "bms_mpio1": [1, "bool", "", 0, 1, "High Voltage;IO", "0xFFF", 0], + "mppt_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", "FFF", 0], + "motor_controller_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", "FFF", 0], + "low_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", "FFF", 0], + "dcdc_current": [4, "float", "A", 0, 100, "High Voltage;MPS", "FFF", 0], + "dcdc_deg": [1, "bool", "", 1, 1, "High Voltage;MPS", "FFF", 0], + "use_dcdc": [1, "bool", "", 0, 0, "High Voltage;MPS", "FFF", 0], + "supplemental_current": [4, "float", "A", 0, 100, "Battery;Supplemental", "FFF", 0], + "supplemental_voltage": [4, "float", "V", 0, 100, "Battery;Supplemental", "FFF", 0], + "supplemental_deg": [1, "bool", "", 1, 1, "Battery;Supplemental", "FFF", 0], + "use_supp": [1, "bool", "", 0, 0, "High Voltage;MPS", "FFF", 0], + "est_supplemental_soc": [4, "float", "%", 0, 100, "Battery;Supplemental", "FFF", 0], + "bms_mpio1": [1, "bool", "", 0, 1, "High Voltage;IO", "FFF", 0], - "park_brake": [1, "bool", "", 0, 1, "PDC;Sensors", "0x207", 3], - "air_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "0xFFF", 0], - "brake_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "0xFFF", 0], - "dcdc_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "0xFFF", 0], - "mainIO_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "0xFFF", 0], - "motor_controller_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "0xFFF", 0], - "motor_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "0xFFF", 0], - "road_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "0xFFF", 0], - "l_turn_led_en": [1, "bool", "", 0, 1, "Steering Wheel;Lights", "0x300", 1], - "r_turn_led_en": [1, "bool", "", 0, 1, "Steering Wheel;Lights", "0x300", 2], - "brake_led_en": [1, "bool", "", 0, 1, "PDC;Lights", "0x20A", 0], - "headlights_led_en": [1, "bool", "", 0, 1, "Main IO;Lights", "0xFFF", 0], - "hazards": [1, "bool", "", 0, 0, "Main IO;Lights", "0xFFF", 0], - "main_5V_bus": [4, "float", "V", 0, 100, "PDC;Sensors", "0x203", 0], - "main_12V_bus": [4, "float", "V", 0, 100, "PDC;Sensors", "0x202", 0], - "main_24V_bus": [4, "float", "V", 0, 100, "Main IO;Sensors", "0xFFF", 0], - "main_5V_current": [4, "float", "A", 0, 100, "PDC;Sensors", "0x204", 0], - "main_12V_current": [4, "float", "A", 0, 100, "Main IO;Sensors", "0xFFF", 0], - "main_24V_current": [4, "float", "A", 0, 100, "Main IO;Sensors", "0xFFF", 0], - "bms_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "0xFFF", 0], - "hv_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "0xFFF", 0], - "mainIO_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "0xFFF", 0], - "mcc_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "0xFFF", 0], - "mppt_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "0xFFF", 0], + "park_brake": [1, "bool", "", 0, 1, "PDC;Sensors", "207", 3], + "air_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], + "brake_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], + "dcdc_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], + "mainIO_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], + "motor_controller_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], + "motor_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], + "road_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], + "l_turn_led_en": [1, "bool", "", 0, 1, "Steering Wheel;Lights", "300", 1], + "r_turn_led_en": [1, "bool", "", 0, 1, "Steering Wheel;Lights", "300", 2], + "brake_led_en": [1, "bool", "", 0, 1, "PDC;Lights", "20A", 0], + "headlights_led_en": [1, "bool", "", 0, 1, "Main IO;Lights", "FFF", 0], + "hazards": [1, "bool", "", 0, 0, "Main IO;Lights", "FFF", 0], + "main_5V_bus": [4, "float", "V", 0, 100, "PDC;Sensors", "203", 0], + "main_12V_bus": [4, "float", "V", 0, 100, "PDC;Sensors", "202", 0], + "main_24V_bus": [4, "float", "V", 0, 100, "Main IO;Sensors", "FFF", 0], + "main_5V_current": [4, "float", "A", 0, 100, "PDC;Sensors", "204", 0], + "main_12V_current": [4, "float", "A", 0, 100, "Main IO;Sensors", "FFF", 0], + "main_24V_current": [4, "float", "A", 0, 100, "Main IO;Sensors", "FFF", 0], + "bms_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "FFF", 0], + "hv_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "FFF", 0], + "mainIO_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "FFF", 0], + "mcc_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "FFF", 0], + "mppt_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "FFF", 0], - "mppt_mode": [1, "bool", "", 0, 1, "Solar Array;MPPT", "0x401", 0], - "mppt_current_out": [4, "float", "A", 0, 7, "Solar Array;Sensors", "0xFFF", 0], - "string1_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", "0x404", 0], - "string2_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", "0x409", 0], - "string3_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", "0x414", 0], - "string1_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", "0x402", 0], - "string2_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", "0x407", 0], - "string3_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", "0x412", 0], - "string1_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", "0x403", 0], - "string2_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", "0x408", 0], - "string3_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", "0x413", 0], + "mppt_mode": [1, "bool", "", 0, 1, "Solar Array;MPPT", "401", 0], + "mppt_current_out": [4, "float", "A", 0, 7, "Solar Array;Sensors", "FFF", 0], + "string1_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", "404", 0], + "string2_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", "409", 0], + "string3_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", "414", 0], + "string1_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", "402", 0], + "string2_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", "407", 0], + "string3_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", "412", 0], + "string1_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", "403", 0], + "string2_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", "408", 0], + "string3_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", "413", 0], - "pack_temp": [1, "float", "degC", 0, 55, "Battery;BMS", "0x102", 40], - "pack_internal_temp": [1, "float", "degC", 0, 100, "Battery;BMS", "0x102", 48], - "pack_current": [2, "float", "A", -24.4, 48.8, "Battery;BMS", "0x101", 0], - "pack_voltage": [2, "float", "V", 77.5, 113.15, "Battery;BMS", "0x101", 16], - "pack_power": [4, "float", "W", -2760.86, 5521.72, "Battery;Firmware", "0xFFF", 0], - "populated_cells": [1, "uint16", "", 0, 100, "Battery;BMS", "0x102", 16], - "soc": [1, "float", "%", 0, 100, "Battery;BMS", "0x101", 32], - "soh": [1, "float", "%", 0, 100, "Battery;BMS", "0x101", 40], - "pack_amphours": [2, "float", "Ah", 57, 57, "Battery;BMS", "0x102", 0], - "adaptive_total_capacity": [2, "float", "Ah", 0, 100, "Battery;BMS", "0x100", 32], - "fan_speed": [1, "uint8", "", 0, 6, "Battery;BMS", "0x102", 56], - "pack_resistance": [2, "float", "mOhm", 0, 100, "Battery;BMS", "0x101", 48], - "bms_input_voltage": [2, "float", "V", 12, 24, "Battery;BMS", "0x102", 24], + "pack_temp": [1, "float", "degC", 0, 55, "Battery;BMS", "102", 40], + "pack_internal_temp": [1, "float", "degC", 0, 100, "Battery;BMS", "102", 48], + "pack_current": [2, "float", "A", -24.4, 48.8, "Battery;BMS", "101", 0], + "pack_voltage": [2, "float", "V", 77.5, 113.15, "Battery;BMS", "101", 16], + "pack_power": [4, "float", "W", -2760.86, 5521.72, "Battery;Firmware", "FFF", 0], + "populated_cells": [1, "uint16", "", 0, 100, "Battery;BMS", "102", 16], + "soc": [1, "float", "%", 0, 100, "Battery;BMS", "101", 32], + "soh": [1, "float", "%", 0, 100, "Battery;BMS", "101", 40], + "pack_amphours": [2, "float", "Ah", 57, 57, "Battery;BMS", "102", 0], + "adaptive_total_capacity": [2, "float", "Ah", 0, 100, "Battery;BMS", "100", 32], + "fan_speed": [1, "uint8", "", 0, 6, "Battery;BMS", "102", 56], + "pack_resistance": [2, "float", "mOhm", 0, 100, "Battery;BMS", "101", 48], + "bms_input_voltage": [2, "float", "V", 12, 24, "Battery;BMS", "102", 24], - "bps_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0xFFF", 0], + "bps_fault": [1, "bool", "", 0, 0, "Battery;BMS", "FFF", 0], - "voltage_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 0], - "current_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 1], - "relay_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 2], - "cell_balancing_active": [1, "bool", "", 1, 1, "Battery;BMS", "0x100", 3], - "charge_interlock_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 4], - "thermistor_b_value_table_invalid": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 5], - "input_power_supply_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 6], + "voltage_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "100", 0], + "current_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "100", 1], + "relay_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "100", 2], + "cell_balancing_active": [1, "bool", "", 1, 1, "Battery;BMS", "100", 3], + "charge_interlock_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "100", 4], + "thermistor_b_value_table_invalid": [1, "bool", "", 0, 0, "Battery;BMS", "100", 5], + "input_power_supply_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "100", 6], - "discharge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 0], - "charger_safety_relay_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 1], - "internal_hardware_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 2], - "internal_heatsink_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 3], - "internal_software_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 4], - "highest_cell_voltage_too_high_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 5], - "lowest_cell_voltage_too_low_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 6], - "pack_too_hot_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 7], - "high_voltage_interlock_signal_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 0], - "precharge_circuit_malfunction": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 0], - "abnormal_state_of_charge_behavior": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 0], + "discharge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 0], + "charger_safety_relay_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 1], + "internal_hardware_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 2], + "internal_heatsink_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 3], + "internal_software_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 4], + "highest_cell_voltage_too_high_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 5], + "lowest_cell_voltage_too_low_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 6], + "pack_too_hot_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 7], + "high_voltage_interlock_signal_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 0], + "precharge_circuit_malfunction": [1, "bool", "", 0, 0, "Battery;BMS", "100", 0], + "abnormal_state_of_charge_behavior": [1, "bool", "", 0, 0, "Battery;BMS", "100", 0], - "internal_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 16], - "cell_balancing_stuck_off_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 17], - "weak_cell_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 18], - "low_cell_voltage_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 19], - "open_wiring_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 20], - "current_sensor_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 21], - "highest_cell_voltage_over_5V_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 22], - "cell_asic_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 23], - "weak_pack_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 24], - "fan_monitor_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 25], - "thermistor_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 26], - "external_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 27], - "redundant_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 28], - "high_voltage_isolation_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 29], - "input_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 30], - "charge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS", "0x100", 31], + "internal_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 16], + "cell_balancing_stuck_off_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 17], + "weak_cell_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 18], + "low_cell_voltage_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 19], + "open_wiring_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 20], + "current_sensor_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 21], + "highest_cell_voltage_over_5V_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 22], + "cell_asic_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 23], + "weak_pack_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 24], + "fan_monitor_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 25], + "thermistor_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 26], + "external_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 27], + "redundant_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 28], + "high_voltage_isolation_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 29], + "input_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 30], + "charge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 31], - "cell_group1_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group2_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group3_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group4_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group5_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group6_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group7_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group8_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group9_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group10_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group11_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group12_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group13_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group14_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group15_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group16_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group17_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group18_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group19_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group20_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group21_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group22_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group23_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group24_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group25_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group26_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group27_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group28_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group29_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group30_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], - "cell_group31_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "0x103", 8], + "cell_group1_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group2_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group3_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group4_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group5_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group6_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group7_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group8_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group9_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group10_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group11_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group12_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group13_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group14_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group15_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group16_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group17_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group18_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group19_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group20_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group21_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group22_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group23_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group24_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group25_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group26_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group27_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group28_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group29_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group30_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group31_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "tstamp_ms": [2, "uint16", "ms", 0, 999, "Software;Timestamp", "0xFFF", 0], - "tstamp_sc": [1, "uint8", "s", 0, 59, "Software;Timestamp", "0xFFF", 0], - "tstamp_mn": [1, "uint8", "min", 0, 59, "Software;Timestamp", "0xFFF", 0], - "tstamp_hr": [1, "uint8", "hr", 0, 23, "Software;Timestamp", "0xFFF", 0], - "tstamp_unix": [8, "uint64", "ms", 0, 0, "Software;Timestamp", "0xFFF", 0], - "lat": [4, "float", "Degree", 0, 0, "Software;GPS", "0xFFF", 0], - "lon": [4, "float", "Degree", 0, 0, "Software;GPS", "0xFFF", 0], - "elev": [4, "float", "meter", 0, 0, "Software;GPS", "0xFFF", 0] + "tstamp_ms": [2, "uint16", "ms", 0, 999, "Software;Timestamp", "FFF", 0], + "tstamp_sc": [1, "uint8", "s", 0, 59, "Software;Timestamp", "FFF", 0], + "tstamp_mn": [1, "uint8", "min", 0, 59, "Software;Timestamp", "FFF", 0], + "tstamp_hr": [1, "uint8", "hr", 0, 23, "Software;Timestamp", "FFF", 0], + "tstamp_unix": [8, "uint64", "ms", 0, 0, "Software;Timestamp", "FFF", 0], + "lat": [4, "float", "Degree", 0, 0, "Software;GPS", "FFF", 0], + "lon": [4, "float", "Degree", 0, 0, "Software;GPS", "FFF", 0], + "elev": [4, "float", "meter", 0, 0, "Software;GPS", "FFF", 0] } From 485fec20d5e0ca0d2f0422d74bc9191450150701 Mon Sep 17 00:00:00 2001 From: sbasu107 Date: Mon, 23 Feb 2026 01:57:00 -0600 Subject: [PATCH 06/12] Updated Readme to include mention of CAN ID and bit offset --- README.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index edbf31e..b16085f 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,21 @@ -# sc1-data-format -Format for the byte arrays sent from firmware to software within the solar car and from the solar car to the engineering dashboard. The format also contains additional information about each piece of data that is collected from the solar car, as detailed below. +# sc-data-format +Format for the byte arrays sent from firmware to software within the solar car and from the solar car to the telemetry visualization dashboards. The format also contains additional information about each piece of data that is collected from the solar car, as detailed below. ## Format The following information is listed within the format for each piece of data being collected from the solar car: -* Name - A name to identify each piece of data. -* Number of bytes - The number of bytes that each piece of data takes up within the byte arrays mentioned above. This value depends on the data type (see next point). -* Data type - The data type that each piece of data should be interpreted as. This is used for consistency when constructing and unpacking the byte arrays. -* Units - The units of each piece of data, if applicable (empty string if not applicable). -* Nominal minimum - The nominal minimum value for each piece of data, expressed as a number and assumed to be in the same units as previously listed. The value of a given piece of data should not fall below this value during normal operation. +* **Name** - A name to identify each piece of data. +* **Number of bytes** - The number of bytes that each piece of data takes up within the byte arrays mentioned above. This value depends on the data type (see next point). +* **Data type** - The data type that each piece of data should be interpreted as. This is used for consistency when constructing and unpacking the byte arrays. +* **Units** - The units of each piece of data, if applicable (empty string if not applicable). +* **Nominal minimum** - The nominal minimum value for each piece of data, expressed as a number and assumed to be in the same units as previously listed. The value of a given piece of data should not fall below this value during normal operation. * The default value, when the nominal minimum value for a piece of data is not yet known, is 0. -* Nominal maximum - The nominal maximum value for each piece of data, expressed as a number and assumed to be in the same units as previously listed. The value of a given piece of data should not exceed this value during normal operation. +* **Nominal maximum** - The nominal maximum value for each piece of data, expressed as a number and assumed to be in the same units as previously listed. The value of a given piece of data should not exceed this value during normal operation. * The default value, when the nominal maximum value for a piece of data is not yet known, is 100. -* Category/Subsystem - Indicates the category or electrical subsystem that each piece of data belongs to. This value is currently only used for categorizing data when selecting what will be shown in the graphs in the engineering dashboard. +* **Category/Subsystem** - Indicates the category or electrical subsystem that each piece of data belongs to. This value is currently only used for categorizing data when selecting what will be shown in the graphs in the engineering dashboard. * Ideally, each piece of data would belong to a specific electrical subsystem. However, sometimes it makes more sense to categorize certain pieces of data, like data from sensors that aren't necessarily collecting data about a specific subsystem, differently. +* **CAN ID (hex)** - a hexadecimal identifier for the CAN message associated with the datum. This allows the firmware and software to correlate values with specific bus frames. +* **Bit offset** - the offset in bits within the CAN message payload where the value starts. This is used when packing/unpacking the field from a CAN frame. For each piece of data, the information described above will be listed as follows: - "name": [\<num bytes\>, "data_type", "units", \<nominal min\>, \<nominal max\>, "Category/Subsystem"] + "name": [\<num bytes\>, "data_type", "units", \<nominal min\>, \<nominal max\>, "Category/Subsystem", "CAN ID (hex)", bit offset] From 8fa3826602facc8ba6db7bc3ece078eca4310326 Mon Sep 17 00:00:00 2001 From: sbasu107 Date: Mon, 23 Feb 2026 02:31:54 -0600 Subject: [PATCH 07/12] Sort and group data format by Category/Subsystem field --- format.json | 367 +++++++++++++++++++++++++++------------------------- 1 file changed, 188 insertions(+), 179 deletions(-) diff --git a/format.json b/format.json index daefdfb..ab2337b 100644 --- a/format.json +++ b/format.json @@ -1,179 +1,188 @@ -{ - "accelerator_pedal": [4, "float", "%", 0, 1, "PDC;Sensors", "200", 0], - "speed": [4, "float", "mph", 0, 100, "PDC;Motor Controller I/O", "208", 0], - "mcc_state": [1, "uint8", "", 0, 7, "MCC;Firmware", "FFF", 0], - "fr_telem": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", "300", 0], - "crz_pwr_mode": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", "FFF", 0], - "crz_spd_mode": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", "300", 3], - "crz_pwr_setpt": [4, "float", "W", 0, 100, "MCC;Firmware", "FFF", 0], - "crz_spd_setpt": [4, "float", "mph", 0, 100, "MCC;Firmware", "FFF", 0], - "eco": [1, "bool", "", 0, 1, "PDC;Motor Controller I/O", "207", 1], - "main_telem": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", "FFF", 0], - "foot_brake": [1, "bool", "", 0, 1, "MCC;Sensors", "FFF", 0], - "regen_brake": [4, "float", "%", 0, 1, "PDC;Sensors", "201", 0], - "motor_current": [4, "float", "A", 0, 100, "MCC;Sensors", "FFF", 0], - "motor_power": [4, "float", "W", 0, 100, "MCC;Firmware", "FFF", 0], - "mc_status": [1, "uint8", "", 0, 0, "PDC;Motor Controller I/O", "207", 2], - - "driver_eStop": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - "external_eStop": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - "crash": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - "discharge_enable": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - "discharge_enabled": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - "charge_enable": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - "charge_enabled": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - "isolation": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - "mcu_hv_en": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - "mcu_stat_fdbk": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - - "mppt_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", "FFF", 0], - "motor_controller_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", "FFF", 0], - "low_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", "FFF", 0], - "dcdc_current": [4, "float", "A", 0, 100, "High Voltage;MPS", "FFF", 0], - "dcdc_deg": [1, "bool", "", 1, 1, "High Voltage;MPS", "FFF", 0], - "use_dcdc": [1, "bool", "", 0, 0, "High Voltage;MPS", "FFF", 0], - "supplemental_current": [4, "float", "A", 0, 100, "Battery;Supplemental", "FFF", 0], - "supplemental_voltage": [4, "float", "V", 0, 100, "Battery;Supplemental", "FFF", 0], - "supplemental_deg": [1, "bool", "", 1, 1, "Battery;Supplemental", "FFF", 0], - "use_supp": [1, "bool", "", 0, 0, "High Voltage;MPS", "FFF", 0], - "est_supplemental_soc": [4, "float", "%", 0, 100, "Battery;Supplemental", "FFF", 0], - "bms_mpio1": [1, "bool", "", 0, 1, "High Voltage;IO", "FFF", 0], - - "park_brake": [1, "bool", "", 0, 1, "PDC;Sensors", "207", 3], - "air_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], - "brake_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], - "dcdc_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], - "mainIO_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], - "motor_controller_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], - "motor_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], - "road_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], - "l_turn_led_en": [1, "bool", "", 0, 1, "Steering Wheel;Lights", "300", 1], - "r_turn_led_en": [1, "bool", "", 0, 1, "Steering Wheel;Lights", "300", 2], - "brake_led_en": [1, "bool", "", 0, 1, "PDC;Lights", "20A", 0], - "headlights_led_en": [1, "bool", "", 0, 1, "Main IO;Lights", "FFF", 0], - "hazards": [1, "bool", "", 0, 0, "Main IO;Lights", "FFF", 0], - "main_5V_bus": [4, "float", "V", 0, 100, "PDC;Sensors", "203", 0], - "main_12V_bus": [4, "float", "V", 0, 100, "PDC;Sensors", "202", 0], - "main_24V_bus": [4, "float", "V", 0, 100, "Main IO;Sensors", "FFF", 0], - "main_5V_current": [4, "float", "A", 0, 100, "PDC;Sensors", "204", 0], - "main_12V_current": [4, "float", "A", 0, 100, "Main IO;Sensors", "FFF", 0], - "main_24V_current": [4, "float", "A", 0, 100, "Main IO;Sensors", "FFF", 0], - "bms_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "FFF", 0], - "hv_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "FFF", 0], - "mainIO_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "FFF", 0], - "mcc_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "FFF", 0], - "mppt_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "FFF", 0], - - "mppt_mode": [1, "bool", "", 0, 1, "Solar Array;MPPT", "401", 0], - "mppt_current_out": [4, "float", "A", 0, 7, "Solar Array;Sensors", "FFF", 0], - "string1_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", "404", 0], - "string2_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", "409", 0], - "string3_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", "414", 0], - "string1_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", "402", 0], - "string2_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", "407", 0], - "string3_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", "412", 0], - "string1_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", "403", 0], - "string2_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", "408", 0], - "string3_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", "413", 0], - - "pack_temp": [1, "float", "degC", 0, 55, "Battery;BMS", "102", 40], - "pack_internal_temp": [1, "float", "degC", 0, 100, "Battery;BMS", "102", 48], - "pack_current": [2, "float", "A", -24.4, 48.8, "Battery;BMS", "101", 0], - "pack_voltage": [2, "float", "V", 77.5, 113.15, "Battery;BMS", "101", 16], - "pack_power": [4, "float", "W", -2760.86, 5521.72, "Battery;Firmware", "FFF", 0], - "populated_cells": [1, "uint16", "", 0, 100, "Battery;BMS", "102", 16], - "soc": [1, "float", "%", 0, 100, "Battery;BMS", "101", 32], - "soh": [1, "float", "%", 0, 100, "Battery;BMS", "101", 40], - "pack_amphours": [2, "float", "Ah", 57, 57, "Battery;BMS", "102", 0], - "adaptive_total_capacity": [2, "float", "Ah", 0, 100, "Battery;BMS", "100", 32], - "fan_speed": [1, "uint8", "", 0, 6, "Battery;BMS", "102", 56], - "pack_resistance": [2, "float", "mOhm", 0, 100, "Battery;BMS", "101", 48], - "bms_input_voltage": [2, "float", "V", 12, 24, "Battery;BMS", "102", 24], - - "bps_fault": [1, "bool", "", 0, 0, "Battery;BMS", "FFF", 0], - - "voltage_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "100", 0], - "current_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "100", 1], - "relay_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "100", 2], - "cell_balancing_active": [1, "bool", "", 1, 1, "Battery;BMS", "100", 3], - "charge_interlock_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "100", 4], - "thermistor_b_value_table_invalid": [1, "bool", "", 0, 0, "Battery;BMS", "100", 5], - "input_power_supply_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "100", 6], - - "discharge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 0], - "charger_safety_relay_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 1], - "internal_hardware_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 2], - "internal_heatsink_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 3], - "internal_software_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 4], - "highest_cell_voltage_too_high_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 5], - "lowest_cell_voltage_too_low_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 6], - "pack_too_hot_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 7], - "high_voltage_interlock_signal_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 0], - "precharge_circuit_malfunction": [1, "bool", "", 0, 0, "Battery;BMS", "100", 0], - "abnormal_state_of_charge_behavior": [1, "bool", "", 0, 0, "Battery;BMS", "100", 0], - - "internal_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 16], - "cell_balancing_stuck_off_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 17], - "weak_cell_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 18], - "low_cell_voltage_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 19], - "open_wiring_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 20], - "current_sensor_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 21], - "highest_cell_voltage_over_5V_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 22], - "cell_asic_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 23], - "weak_pack_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 24], - "fan_monitor_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 25], - "thermistor_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 26], - "external_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 27], - "redundant_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 28], - "high_voltage_isolation_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 29], - "input_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 30], - "charge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 31], - - "cell_group1_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group2_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group3_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group4_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group5_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group6_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group7_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group8_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group9_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group10_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group11_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group12_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group13_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group14_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group15_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group16_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group17_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group18_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group19_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group20_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group21_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group22_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group23_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group24_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group25_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group26_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group27_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group28_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group29_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group30_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group31_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - - "tstamp_ms": [2, "uint16", "ms", 0, 999, "Software;Timestamp", "FFF", 0], - "tstamp_sc": [1, "uint8", "s", 0, 59, "Software;Timestamp", "FFF", 0], - "tstamp_mn": [1, "uint8", "min", 0, 59, "Software;Timestamp", "FFF", 0], - "tstamp_hr": [1, "uint8", "hr", 0, 23, "Software;Timestamp", "FFF", 0], - "tstamp_unix": [8, "uint64", "ms", 0, 0, "Software;Timestamp", "FFF", 0], - "lat": [4, "float", "Degree", 0, 0, "Software;GPS", "FFF", 0], - "lon": [4, "float", "Degree", 0, 0, "Software;GPS", "FFF", 0], - "elev": [4, "float", "meter", 0, 0, "Software;GPS", "FFF", 0], - "lap_count": [4, "int32", "", 0, 1000, "Software;Lap Counter", "FFF", 0], - "current_section": [4, "int32", "", 0, 100, "Software;Lap Counter", "FFF", 0], - "lap_duration": [4, "uint32", "ms", 0, 600000, "Software;Lap Counter", "FFF", 0], - - "optimized_target_power": [4, "float", "kW", 0, 10, "Race Strategy;Model Outputs", "FFF", 0], - "maximum_distance_traveled": [4, "float", "m", 0, 100000, "Race Strategy;Model Outputs", "FFF", 0] -} - +{ + "abnormal_state_of_charge_behavior": [1, "bool", "", 0, 0, "Battery;BMS", "100", 0], + "adaptive_total_capacity": [2, "float", "Ah", 0, 100, "Battery;BMS", "100", 32], + "bms_input_voltage": [2, "float", "V", 12, 24, "Battery;BMS", "102", 24], + "bps_fault": [1, "bool", "", 0, 0, "Battery;BMS", "FFF", 0], + "cell_asic_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 23], + "cell_balancing_active": [1, "bool", "", 1, 1, "Battery;BMS", "100", 3], + "cell_balancing_stuck_off_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 17], + "cell_group10_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group11_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group12_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group13_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group14_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group15_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group16_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group17_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group18_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group19_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group1_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group20_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group21_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group22_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group23_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group24_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group25_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group26_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group27_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group28_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group29_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group2_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group30_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group31_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group3_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group4_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group5_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group6_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group7_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group8_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group9_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "charge_interlock_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "100", 4], + "charge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 31], + "charger_safety_relay_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 1], + "current_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "100", 1], + "current_sensor_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 21], + "discharge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 0], + "external_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 27], + "fan_monitor_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 25], + "fan_speed": [1, "uint8", "", 0, 6, "Battery;BMS", "102", 56], + "high_voltage_interlock_signal_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 0], + "high_voltage_isolation_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 29], + "highest_cell_voltage_over_5V_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 22], + "highest_cell_voltage_too_high_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 5], + "input_power_supply_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "100", 6], + "input_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 30], + "internal_communication_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 16], + "internal_hardware_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 2], + "internal_heatsink_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 3], + "internal_software_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 4], + "low_cell_voltage_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 19], + "lowest_cell_voltage_too_low_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 6], + "open_wiring_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 20], + "pack_amphours": [2, "float", "Ah", 57, 57, "Battery;BMS", "102", 0], + "pack_current": [2, "float", "A", -24.4, 48.8, "Battery;BMS", "101", 0], + "pack_internal_temp": [1, "float", "degC", 0, 100, "Battery;BMS", "102", 48], + "pack_resistance": [2, "float", "mOhm", 0, 100, "Battery;BMS", "101", 48], + "pack_temp": [1, "float", "degC", 0, 55, "Battery;BMS", "102", 40], + "pack_too_hot_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 7], + "pack_voltage": [2, "float", "V", 77.5, 113.15, "Battery;BMS", "101", 16], + "populated_cells": [1, "uint16", "", 0, 100, "Battery;BMS", "102", 16], + "precharge_circuit_malfunction": [1, "bool", "", 0, 0, "Battery;BMS", "100", 0], + "redundant_power_supply_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 28], + "relay_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "100", 2], + "soc": [1, "float", "%", 0, 100, "Battery;BMS", "101", 32], + "soh": [1, "float", "%", 0, 100, "Battery;BMS", "101", 40], + "thermistor_b_value_table_invalid": [1, "bool", "", 0, 0, "Battery;BMS", "100", 5], + "thermistor_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 26], + "voltage_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "100", 0], + "weak_cell_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 18], + "weak_pack_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 24], + + "pack_power": [4, "float", "W", -2760.86, 5521.72, "Battery;Firmware", "FFF", 0], + + "est_supplemental_soc": [4, "float", "%", 0, 100, "Battery;Supplemental", "FFF", 0], + "supplemental_current": [4, "float", "A", 0, 100, "Battery;Supplemental", "FFF", 0], + "supplemental_deg": [1, "bool", "", 1, 1, "Battery;Supplemental", "FFF", 0], + "supplemental_voltage": [4, "float", "V", 0, 100, "Battery;Supplemental", "FFF", 0], + + "bms_mpio1": [1, "bool", "", 0, 1, "High Voltage;IO", "FFF", 0], + + "dcdc_current": [4, "float", "A", 0, 100, "High Voltage;MPS", "FFF", 0], + "dcdc_deg": [1, "bool", "", 1, 1, "High Voltage;MPS", "FFF", 0], + "low_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", "FFF", 0], + "motor_controller_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", "FFF", 0], + "mppt_contactor": [1, "bool", "", 1, 1, "High Voltage;MPS", "FFF", 0], + "use_dcdc": [1, "bool", "", 0, 0, "High Voltage;MPS", "FFF", 0], + "use_supp": [1, "bool", "", 0, 0, "High Voltage;MPS", "FFF", 0], + + "charge_enable": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + "charge_enabled": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + "crash": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + "discharge_enable": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + "discharge_enabled": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + "driver_eStop": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + "external_eStop": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + "isolation": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + "mcu_hv_en": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + "mcu_stat_fdbk": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + + "crz_pwr_mode": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", "FFF", 0], + "main_telem": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", "FFF", 0], + + "crz_pwr_setpt": [4, "float", "W", 0, 100, "MCC;Firmware", "FFF", 0], + "crz_spd_setpt": [4, "float", "mph", 0, 100, "MCC;Firmware", "FFF", 0], + "mcc_state": [1, "uint8", "", 0, 7, "MCC;Firmware", "FFF", 0], + "motor_power": [4, "float", "W", 0, 100, "MCC;Firmware", "FFF", 0], + + "foot_brake": [1, "bool", "", 0, 1, "MCC;Sensors", "FFF", 0], + "motor_current": [4, "float", "A", 0, 100, "MCC;Sensors", "FFF", 0], + + "bms_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "FFF", 0], + "hv_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "FFF", 0], + "mainIO_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "FFF", 0], + "mcc_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "FFF", 0], + "mppt_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "FFF", 0], + + "hazards": [1, "bool", "", 0, 0, "Main IO;Lights", "FFF", 0], + "headlights_led_en": [1, "bool", "", 0, 1, "Main IO;Lights", "FFF", 0], + + "air_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], + "brake_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], + "dcdc_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], + "mainIO_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], + "main_12V_current": [4, "float", "A", 0, 100, "Main IO;Sensors", "FFF", 0], + "main_24V_bus": [4, "float", "V", 0, 100, "Main IO;Sensors", "FFF", 0], + "main_24V_current": [4, "float", "A", 0, 100, "Main IO;Sensors", "FFF", 0], + "motor_controller_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], + "motor_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], + "road_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], + + "brake_led_en": [1, "bool", "", 0, 1, "PDC;Lights", "20A", 0], + + "eco": [1, "bool", "", 0, 1, "PDC;Motor Controller I/O", "207", 1], + "mc_status": [1, "uint8", "", 0, 0, "PDC;Motor Controller I/O", "207", 2], + "speed": [4, "float", "mph", 0, 100, "PDC;Motor Controller I/O", "208", 0], + + "accelerator_pedal": [4, "float", "%", 0, 1, "PDC;Sensors", "200", 0], + "main_12V_bus": [4, "float", "V", 0, 100, "PDC;Sensors", "202", 0], + "main_5V_bus": [4, "float", "V", 0, 100, "PDC;Sensors", "203", 0], + "main_5V_current": [4, "float", "A", 0, 100, "PDC;Sensors", "204", 0], + "park_brake": [1, "bool", "", 0, 1, "PDC;Sensors", "207", 3], + "regen_brake": [4, "float", "%", 0, 1, "PDC;Sensors", "201", 0], + + "maximum_distance_traveled": [4, "float", "m", 0, 100000, "Race Strategy;Model Outputs"], + "optimized_target_power": [4, "float", "kW", 0, 10, "Race Strategy;Model Outputs"], + + "elev": [4, "float", "meter", 0, 0, "Software;GPS", "FFF", 0], + "lat": [4, "float", "Degree", 0, 0, "Software;GPS", "FFF", 0], + "lon": [4, "float", "Degree", 0, 0, "Software;GPS", "FFF", 0], + + "current_section": [4, "int32", "", 0, 100, "Software;Lap Counter", "FFF", 0], + "lap_count": [4, "int32", "", 0, 1000, "Software;Lap Counter", "FFF", 0], + "lap_duration": [4, "uint32", "ms", 0, 600000, "Software;Lap Counter", "FFF", 0], + + "tstamp_hr": [1, "uint8", "hr", 0, 23, "Software;Timestamp", "FFF", 0], + "tstamp_mn": [1, "uint8", "min", 0, 59, "Software;Timestamp", "FFF", 0], + "tstamp_ms": [2, "uint16", "ms", 0, 999, "Software;Timestamp", "FFF", 0], + "tstamp_sc": [1, "uint8", "s", 0, 59, "Software;Timestamp", "FFF", 0], + "tstamp_unix": [8, "uint64", "ms", 0, 0, "Software;Timestamp", "FFF", 0], + + "mppt_mode": [1, "bool", "", 0, 1, "Solar Array;MPPT", "401", 0], + + "mppt_current_out": [4, "float", "A", 0, 7, "Solar Array;Sensors", "FFF", 0], + "string1_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", "403", 0], + "string1_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", "402", 0], + "string1_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", "404", 0], + "string2_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", "408", 0], + "string2_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", "407", 0], + "string2_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", "409", 0], + "string3_I_in": [4, "float", "A", 0, 7, "Solar Array;Sensors", "413", 0], + "string3_V_in": [4, "float", "V", 0, 60, "Solar Array;Sensors", "412", 0], + "string3_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", "414", 0], + + "crz_spd_mode": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", "300", 3], + "fr_telem": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", "300", 0], + + "l_turn_led_en": [1, "bool", "", 0, 1, "Steering Wheel;Lights", "300", 1], + "r_turn_led_en": [1, "bool", "", 0, 1, "Steering Wheel;Lights", "300", 2] +} \ No newline at end of file From 022b97f3f8b9aba62fe2214fd1d257d22cb1e5b8 Mon Sep 17 00:00:00 2001 From: "Shobhin B." <40325803+sbasu107@users.noreply.github.com> Date: Mon, 23 Feb 2026 17:50:11 -0600 Subject: [PATCH 08/12] Added Race Strategy CAN ID placeholders --- format.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/format.json b/format.json index ab2337b..001a11a 100644 --- a/format.json +++ b/format.json @@ -150,8 +150,8 @@ "park_brake": [1, "bool", "", 0, 1, "PDC;Sensors", "207", 3], "regen_brake": [4, "float", "%", 0, 1, "PDC;Sensors", "201", 0], - "maximum_distance_traveled": [4, "float", "m", 0, 100000, "Race Strategy;Model Outputs"], - "optimized_target_power": [4, "float", "kW", 0, 10, "Race Strategy;Model Outputs"], + "maximum_distance_traveled": [4, "float", "m", 0, 100000, "Race Strategy;Model Outputs", "FFF", 0], + "optimized_target_power": [4, "float", "kW", 0, 10, "Race Strategy;Model Outputs", "FFF", 0], "elev": [4, "float", "meter", 0, 0, "Software;GPS", "FFF", 0], "lat": [4, "float", "Degree", 0, 0, "Software;GPS", "FFF", 0], @@ -185,4 +185,4 @@ "l_turn_led_en": [1, "bool", "", 0, 1, "Steering Wheel;Lights", "300", 1], "r_turn_led_en": [1, "bool", "", 0, 1, "Steering Wheel;Lights", "300", 2] -} \ No newline at end of file +} From 0ad97674d392c8ff5826112410774c3d722d3603 Mon Sep 17 00:00:00 2001 From: sbasu107 Date: Mon, 23 Feb 2026 18:08:13 -0600 Subject: [PATCH 09/12] Added Powertrain signals from firmware spreadsheet, will look at High Voltage --- format.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/format.json b/format.json index 001a11a..9e879c5 100644 --- a/format.json +++ b/format.json @@ -150,6 +150,20 @@ "park_brake": [1, "bool", "", 0, 1, "PDC;Sensors", "207", 3], "regen_brake": [4, "float", "%", 0, 1, "PDC;Sensors", "201", 0], + "batt_i": [4, "float", "A", -50, 50, "Powertrain;Sensors", "503", 0], + "i_12v": [4, "float", "A", 0, 20, "Powertrain;Sensors", "500", 0], + "supp_i": [4, "float", "A", 0, 100, "Powertrain;Sensors", "502", 0], + "supp_v": [4, "float", "V", 0, 100, "Powertrain;Sensors", "504", 0], + "v_12v": [4, "float", "V", 0, 15, "Powertrain;Sensors", "501", 0], + + "BATT_POS_CONT_MCU": [1, "bool", "", 0, 1, "Powertrain;Status", "505", 1], + "ESTOP_MCU": [1, "bool", "", 0, 1, "Powertrain;Status", "505", 0], + "MC_CONT_MCU": [1, "bool", "", 0, 1, "Powertrain;Status", "505", 6], + "MCU_BATT_EN": [1, "bool", "", 0, 1, "Powertrain;Status", "505", 4], + "MPPT_CONT_MCU": [1, "bool", "", 0, 1, "Powertrain;Status", "505", 5], + "PPC1_DCDC_INVALID": [1, "bool", "", 0, 1, "Powertrain;Status", "505", 2], + "PPC1_SUPP_INVALID": [1, "bool", "", 0, 1, "Powertrain;Status", "505", 3], + "maximum_distance_traveled": [4, "float", "m", 0, 100000, "Race Strategy;Model Outputs", "FFF", 0], "optimized_target_power": [4, "float", "kW", 0, 10, "Race Strategy;Model Outputs", "FFF", 0], From c73a9f5caa4bed2c3faa64a0942a7e278479019f Mon Sep 17 00:00:00 2001 From: sbasu107 Date: Tue, 24 Feb 2026 16:50:11 -0600 Subject: [PATCH 10/12] sorted cell group voltage groups by number --- format.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/format.json b/format.json index 9e879c5..0e534d0 100644 --- a/format.json +++ b/format.json @@ -6,6 +6,15 @@ "cell_asic_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 23], "cell_balancing_active": [1, "bool", "", 1, 1, "Battery;BMS", "100", 3], "cell_balancing_stuck_off_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 17], + "cell_group1_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group2_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group3_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group4_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group5_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group6_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group7_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group8_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], + "cell_group9_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], "cell_group10_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], "cell_group11_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], "cell_group12_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], @@ -16,7 +25,6 @@ "cell_group17_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], "cell_group18_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], "cell_group19_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group1_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], "cell_group20_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], "cell_group21_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], "cell_group22_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], @@ -27,16 +35,8 @@ "cell_group27_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], "cell_group28_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], "cell_group29_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group2_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], "cell_group30_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], "cell_group31_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group3_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group4_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group5_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group6_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group7_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group8_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], - "cell_group9_voltage": [2, "float", "V", 2.5, 3.65, "Battery;BMS", "103", 8], "charge_interlock_failsafe": [1, "bool", "", 0, 0, "Battery;BMS", "100", 4], "charge_limit_enforcement_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 31], "charger_safety_relay_fault": [1, "bool", "", 0, 0, "Battery;BMS", "100", 1], From 8d094ad5ab69b8aee8b8c38ad9865f345a68592c Mon Sep 17 00:00:00 2001 From: sbasu107 Date: Tue, 24 Feb 2026 17:01:40 -0600 Subject: [PATCH 11/12] Added steering wheel signals --- format.json | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/format.json b/format.json index 0e534d0..63504be 100644 --- a/format.json +++ b/format.json @@ -123,7 +123,6 @@ "mcc_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "FFF", 0], "mppt_can_heartbeat": [1, "bool", "", 1, 1, "Main IO;Firmware", "FFF", 0], - "hazards": [1, "bool", "", 0, 0, "Main IO;Lights", "FFF", 0], "headlights_led_en": [1, "bool", "", 0, 1, "Main IO;Lights", "FFF", 0], "air_temp": [4, "float", "degC", 0, 100, "Main IO;Sensors", "FFF", 0], @@ -195,8 +194,16 @@ "string3_temp": [4, "float", "degC", 20, 50, "Solar Array;Sensors", "414", 0], "crz_spd_mode": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", "300", 3], - "fr_telem": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", "300", 0], - - "l_turn_led_en": [1, "bool", "", 0, 1, "Steering Wheel;Lights", "300", 1], - "r_turn_led_en": [1, "bool", "", 0, 1, "Steering Wheel;Lights", "300", 2] + "headlight": [1, "bool", "", 0, 1, "Steering Wheel;Lights", "300", 0], + "left_blink": [1, "bool", "", 0, 1, "Steering Wheel;Lights", "300", 1], + "right_blink": [1, "bool", "", 0, 1, "Steering Wheel;Lights", "300", 2], + "hazards": [1, "bool", "", 0, 1, "Steering Wheel;Lights", "304", 0], + "direction_switch": [1, "bool", "forward/reverse direction", 0, 1, "Steering Wheel;Driver Buttons/Switches", "300", 3], + "horn": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", "300", 4], + "crz_mode_a": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", "300", 5], + "crz_set": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", "300", 6], + "crz_reset": [1, "bool", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", "300", 7], + "regen_brake": [4, "float", "%", 0, 1, "Steering Wheel;Sensors", "301", 0], + "throttle": [4, "float", "%", 0, 1, "Steering Wheel;Sensors", "302", 0], + "drive_mode": [1, "uint8", "", 0, 1, "Steering Wheel;Driver Buttons/Switches", "303", 0] } From c6b0c0a4b4e7c288a9acb7c790acfa72476d18b3 Mon Sep 17 00:00:00 2001 From: sbasu107 Date: Tue, 24 Feb 2026 17:44:20 -0600 Subject: [PATCH 12/12] Updated High Voltage Section --- format.json | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/format.json b/format.json index 63504be..6561ac8 100644 --- a/format.json +++ b/format.json @@ -95,16 +95,30 @@ "use_dcdc": [1, "bool", "", 0, 0, "High Voltage;MPS", "FFF", 0], "use_supp": [1, "bool", "", 0, 0, "High Voltage;MPS", "FFF", 0], - "charge_enable": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - "charge_enabled": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - "crash": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - "discharge_enable": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - "discharge_enabled": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - "driver_eStop": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - "external_eStop": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - "isolation": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - "mcu_hv_en": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], - "mcu_stat_fdbk": [1, "bool", "", 0, 0, "High Voltage;Shutdown", "FFF", 0], + "bms_chrg_en": [1, "bool", "", 0, 1, "High Voltage;Shutdown", "300", 0], + "chrg_en_fdbck": [1, "bool", "", 0, 1, "High Voltage;Shutdown", "300", 0], + "charge_enable": [1, "bool", "", 0, 1, "High Voltage;Shutdown", "300", 0], + "charge_enabled": [1, "bool", "", 0, 1, "High Voltage;Shutdown", "300", 0], + "crash": [1, "bool", "", 0, 1, "High Voltage;Shutdown", "300", 0], + "bms_dschrg_en": [1, "bool", "", 0, 1, "High Voltage;Shutdown", "300", 0], + "dschrg_en_fdbck": [1, "bool", "", 0, 1, "High Voltage;Shutdown", "300", 0], + "bms_mpo1": [1, "bool", "", 0, 1, "High Voltage;IO", "300", 0], + "driver_estop_fdbck": [1, "bool", "", 0, 1, "High Voltage;Shutdown", "300", 0], + "ext_estop_fdbck": [1, "bool", "", 0, 1, "High Voltage;Shutdown", "300", 0], + "dcdc_deg": [1, "bool", "", 0, 1, "High Voltage;MPS", "FFF", 0], + "supp_deg": [1, "bool", "", 0, 1, "High Voltage;Supplemental", "FFF", 0], + "isolation": [1, "bool", "", 0, 1, "High Voltage;Shutdown", "300", 0], + "isolation_fdbck": [1, "bool", "", 0, 1, "High Voltage;Shutdown", "300", 0], + "lo_cont_telem": [1, "bool", "", 0, 1, "High Voltage;MPS", "300", 0], + "mc_cont_telem": [1, "bool", "", 0, 1, "High Voltage;MPS", "300", 0], + "mppt_cont_telem": [1, "bool", "", 0, 1, "High Voltage;MPS", "300", 0], + "mcu_stat_fdbk": [1, "bool", "", 0, 1, "High Voltage;Shutdown", "300", 0], + "mcu_hv_en": [1, "bool", "", 0, 1, "High Voltage;Shutdown", "25", 0], + "supp_is": [4, "float", "A", 0, 100, "High Voltage;Sensors", "302", 0], + "sense_vsupp": [4, "float", "V", 0, 100, "High Voltage;Sensors", "303", 0], + "use_supp": [1, "bool", "", 0, 1, "High Voltage;MPS", "300", 0], + "use_dcdc": [1, "bool", "", 0, 1, "High Voltage;MPS", "300", 0], + "dcdc_is": [4, "float", "A", -50, 50, "High Voltage;Sensors", "301", 0], "crz_pwr_mode": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", "FFF", 0], "main_telem": [1, "bool", "", 0, 1, "MCC;Driver Buttons/Switches", "FFF", 0],