From a1c0f85bef4e81971d0d0a08b37568a3b7ccd99d Mon Sep 17 00:00:00 2001 From: Jeremy Lerner Date: Wed, 19 Feb 2025 09:15:03 -0500 Subject: [PATCH 1/4] Add Tesla specific VSS signals --- overlays/DIMO/dimo.vspec | 64 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/overlays/DIMO/dimo.vspec b/overlays/DIMO/dimo.vspec index 2f0c4fe89..f742c9ca0 100644 --- a/overlays/DIMO/dimo.vspec +++ b/overlays/DIMO/dimo.vspec @@ -66,3 +66,67 @@ Vehicle.Powertrain.TractionBattery.Charging.AddedEnergy: datatype: float unit: kWh description: Amount of charge added to the high voltage battery during the current charging session, expressed in kilowatt-hours. + +Vehicle.Powertrain.TractionBattery.ACCurrentPower: + datatype: float + type: sensor + unit: W + description: Current electrical energy via AC (alternating current) flowing in/out of battery. Positive = Energy flowing in to battery, e.g. during charging. + Negative = Energy flowing out of battery, e.g. during driving. + +Vehicle.Powertrain.TractionBattery.DCCurrentPower: + datatype: float + type: sensor + unit: W + description: Current electrical energy via DC (direct current) flowing in/out of battery. Positive = Energy flowing in to battery, e.g. during charging. + Negative = Energy flowing out of battery, e.g. during driving. + +Vehicle.Powertrain.TractionBattery.Charging.ACAddedEnergy: + type: sensor + datatype: float + unit: kWh + description: Amount of charge added to the high voltage battery during the current charging session via AC (alternating current), expressed in kilowatt-hours. + +Vehicle.Powertrain.TractionBattery.Charging.DCAddedEnergy: + type: sensor + datatype: float + unit: kWh + description: Amount of charge added to the high voltage battery during the current charging session via DC (direct current), expressed in kilowatt-hours. + +Vehicle.Powertrain.TractionBattery.Charging.ChargeCurrent.AllPhases: + datatype: float + type: sensor + unit: A + description: Current AC charging current (rms) at inlet. Negative if returning energy to grid. + +Vehicle.ADAS.CruiseControl.CruiseFollowTime: + datatype: float + type: sensor + description: Tesla cruise follow distance seems to be directly proportional to time, but is not seconds + +Vehicle.VehicleIdentification.Model.MaxSpeedAllowed: + datatype: float + type: sensor + unit: km/h + description: Max speed the vehicle can achieve while Speed Limit Mode is active + +Vehicle.ADAS.ObstacleDetection.Forward.Setting + datatype: string + type: sensor + description: Forward collision warning settings, possible values are 'Average', 'Early', 'Late', 'Default', and 'Off' + +Vehicle.GuestModeEnabled + datatype: boolean + type: sensor + description: Whether Guest Mode is enabled in the vehicle, true if Guest Mode is active, false otherwise + +Vehicle.Powertrain.IdealRange + datatype: float + type: sensor + unit: km + description: Remaining ideal range in meters using only battery. + +Vehicle.ADAS.LaneDepartureDetection.Level + datatype: string + type: sensor + description: The level of Lane Departure Detection, possible values are 'Assist', 'None', 'Warning', and 'Default' \ No newline at end of file From 6bc969772bc58e8d7301141282280c66bcd6502d Mon Sep 17 00:00:00 2001 From: Jeremy Lerner Date: Wed, 19 Feb 2025 22:19:19 -0500 Subject: [PATCH 2/4] Custom tesla VSS signals added --- overlays/DIMO/dimo.vspec | 66 ++++++++++++++++++++++++++++++++-------- 1 file changed, 53 insertions(+), 13 deletions(-) diff --git a/overlays/DIMO/dimo.vspec b/overlays/DIMO/dimo.vspec index f742c9ca0..a6f6a6f08 100644 --- a/overlays/DIMO/dimo.vspec +++ b/overlays/DIMO/dimo.vspec @@ -67,27 +67,27 @@ Vehicle.Powertrain.TractionBattery.Charging.AddedEnergy: unit: kWh description: Amount of charge added to the high voltage battery during the current charging session, expressed in kilowatt-hours. -Vehicle.Powertrain.TractionBattery.ACCurrentPower: +Vehicle.Powertrain.TractionBattery.CurrentPower.AC: datatype: float type: sensor unit: W description: Current electrical energy via AC (alternating current) flowing in/out of battery. Positive = Energy flowing in to battery, e.g. during charging. Negative = Energy flowing out of battery, e.g. during driving. -Vehicle.Powertrain.TractionBattery.DCCurrentPower: +Vehicle.Powertrain.TractionBattery.CurrentPower.DC: datatype: float type: sensor unit: W description: Current electrical energy via DC (direct current) flowing in/out of battery. Positive = Energy flowing in to battery, e.g. during charging. Negative = Energy flowing out of battery, e.g. during driving. -Vehicle.Powertrain.TractionBattery.Charging.ACAddedEnergy: +Vehicle.Powertrain.TractionBattery.Charging.AddedEnergy.AC: type: sensor datatype: float unit: kWh description: Amount of charge added to the high voltage battery during the current charging session via AC (alternating current), expressed in kilowatt-hours. -Vehicle.Powertrain.TractionBattery.Charging.DCAddedEnergy: +Vehicle.Powertrain.TractionBattery.Charging.AddedEnergy.DC: type: sensor datatype: float unit: kWh @@ -101,32 +101,72 @@ Vehicle.Powertrain.TractionBattery.Charging.ChargeCurrent.AllPhases: Vehicle.ADAS.CruiseControl.CruiseFollowTime: datatype: float - type: sensor + type: actuator description: Tesla cruise follow distance seems to be directly proportional to time, but is not seconds Vehicle.VehicleIdentification.Model.MaxSpeedAllowed: datatype: float - type: sensor + type: actuator unit: km/h description: Max speed the vehicle can achieve while Speed Limit Mode is active -Vehicle.ADAS.ObstacleDetection.Forward.Setting +Vehicle.ADAS.ObstacleDetection.Forward.Setting: datatype: string - type: sensor + type: actuator description: Forward collision warning settings, possible values are 'Average', 'Early', 'Late', 'Default', and 'Off' -Vehicle.GuestModeEnabled +Vehicle.GuestModeEnabled: datatype: boolean - type: sensor + type: actuator description: Whether Guest Mode is enabled in the vehicle, true if Guest Mode is active, false otherwise -Vehicle.Powertrain.IdealRange +Vehicle.Powertrain.IdealRange: datatype: float type: sensor unit: km description: Remaining ideal range in meters using only battery. -Vehicle.ADAS.LaneDepartureDetection.Level +Vehicle.ADAS.LaneDepartureDetection.Level: + datatype: string + type: actuator + description: The level of Lane Departure Detection, possible values are 'Assist', 'None', 'Warning', and 'Default' + +Vehicle.VehicleIdentification.Trim: datatype: string + type: attribute + description: Trim level of the vehicle + +Vehicle.VehicleIdentification.VehicleName: + datatype: string + type: attribute + description: Name of the vehicle, as specified by the driver + +Vehicle.VehicleIdentification.VehicleSoftwareVersion: + datatype: string + type: attribute + description: The version of the software running on the vehicle + +Vehicle.Powertrain.TractionBattery.Charging.IsFastChargingCableConnected: + datatype: boolean + type: sensor + description: Indicates if a fast charging cable is physically connected to the vehicle or not. + +Vehicle.ADAS.ObstacleDetection.BlindSpot.IsEnabled: + datatype: boolean + type: actuator + description: Indicates if obstacle sensor system is enabled (i.e. monitoring for obstacles). True = Enabled. False = Disabled. + +Vehicle.ADAS.SpeedLimitWarning: + datatype: string + type: actuator + description: State of the Speed Limit Warning system, possible values are 'Display', 'None', 'Chime', 'Default' + +Vehicle.Powertrain.TractionBattery.Charging.ChargeVoltage.ChargeVoltage: + datatype: float type: sensor - description: The level of Lane Departure Detection, possible values are 'Assist', 'None', 'Warning', and 'Default' \ No newline at end of file + description: Current charging voltage from AC or DC input, as measured at the charging inlet. + +Vehicle.VehicleIdentification.VehicleSoftwareUpdateVersion: + datatype: string + type: attribute + description: The version of the software that is to be installed at the next update From e53c54ce73a17a828eb74cfb7ceae55e4c2e5988 Mon Sep 17 00:00:00 2001 From: Jeremy Lerner Date: Tue, 25 Feb 2025 21:22:22 -0500 Subject: [PATCH 3/4] basic only --- overlays/DIMO/dimo.vspec | 86 ++-------------------------------------- 1 file changed, 4 insertions(+), 82 deletions(-) diff --git a/overlays/DIMO/dimo.vspec b/overlays/DIMO/dimo.vspec index a6f6a6f08..60fbe462a 100644 --- a/overlays/DIMO/dimo.vspec +++ b/overlays/DIMO/dimo.vspec @@ -67,106 +67,28 @@ Vehicle.Powertrain.TractionBattery.Charging.AddedEnergy: unit: kWh description: Amount of charge added to the high voltage battery during the current charging session, expressed in kilowatt-hours. -Vehicle.Powertrain.TractionBattery.CurrentPower.AC: +Vehicle.Powertrain.TractionBattery.Charging.CurrentPowerAC: datatype: float type: sensor unit: W description: Current electrical energy via AC (alternating current) flowing in/out of battery. Positive = Energy flowing in to battery, e.g. during charging. Negative = Energy flowing out of battery, e.g. during driving. -Vehicle.Powertrain.TractionBattery.CurrentPower.DC: +Vehicle.Powertrain.TractionBattery.Charging.CurrentPowerDC: datatype: float type: sensor unit: W description: Current electrical energy via DC (direct current) flowing in/out of battery. Positive = Energy flowing in to battery, e.g. during charging. Negative = Energy flowing out of battery, e.g. during driving. -Vehicle.Powertrain.TractionBattery.Charging.AddedEnergy.AC: +Vehicle.Powertrain.TractionBattery.Charging.AddedEnergyAC: type: sensor datatype: float unit: kWh description: Amount of charge added to the high voltage battery during the current charging session via AC (alternating current), expressed in kilowatt-hours. -Vehicle.Powertrain.TractionBattery.Charging.AddedEnergy.DC: +Vehicle.Powertrain.TractionBattery.Charging.AddedEnergyDC: type: sensor datatype: float unit: kWh description: Amount of charge added to the high voltage battery during the current charging session via DC (direct current), expressed in kilowatt-hours. - -Vehicle.Powertrain.TractionBattery.Charging.ChargeCurrent.AllPhases: - datatype: float - type: sensor - unit: A - description: Current AC charging current (rms) at inlet. Negative if returning energy to grid. - -Vehicle.ADAS.CruiseControl.CruiseFollowTime: - datatype: float - type: actuator - description: Tesla cruise follow distance seems to be directly proportional to time, but is not seconds - -Vehicle.VehicleIdentification.Model.MaxSpeedAllowed: - datatype: float - type: actuator - unit: km/h - description: Max speed the vehicle can achieve while Speed Limit Mode is active - -Vehicle.ADAS.ObstacleDetection.Forward.Setting: - datatype: string - type: actuator - description: Forward collision warning settings, possible values are 'Average', 'Early', 'Late', 'Default', and 'Off' - -Vehicle.GuestModeEnabled: - datatype: boolean - type: actuator - description: Whether Guest Mode is enabled in the vehicle, true if Guest Mode is active, false otherwise - -Vehicle.Powertrain.IdealRange: - datatype: float - type: sensor - unit: km - description: Remaining ideal range in meters using only battery. - -Vehicle.ADAS.LaneDepartureDetection.Level: - datatype: string - type: actuator - description: The level of Lane Departure Detection, possible values are 'Assist', 'None', 'Warning', and 'Default' - -Vehicle.VehicleIdentification.Trim: - datatype: string - type: attribute - description: Trim level of the vehicle - -Vehicle.VehicleIdentification.VehicleName: - datatype: string - type: attribute - description: Name of the vehicle, as specified by the driver - -Vehicle.VehicleIdentification.VehicleSoftwareVersion: - datatype: string - type: attribute - description: The version of the software running on the vehicle - -Vehicle.Powertrain.TractionBattery.Charging.IsFastChargingCableConnected: - datatype: boolean - type: sensor - description: Indicates if a fast charging cable is physically connected to the vehicle or not. - -Vehicle.ADAS.ObstacleDetection.BlindSpot.IsEnabled: - datatype: boolean - type: actuator - description: Indicates if obstacle sensor system is enabled (i.e. monitoring for obstacles). True = Enabled. False = Disabled. - -Vehicle.ADAS.SpeedLimitWarning: - datatype: string - type: actuator - description: State of the Speed Limit Warning system, possible values are 'Display', 'None', 'Chime', 'Default' - -Vehicle.Powertrain.TractionBattery.Charging.ChargeVoltage.ChargeVoltage: - datatype: float - type: sensor - description: Current charging voltage from AC or DC input, as measured at the charging inlet. - -Vehicle.VehicleIdentification.VehicleSoftwareUpdateVersion: - datatype: string - type: attribute - description: The version of the software that is to be installed at the next update From 214e4bc29cab3c00d0755f9faaa3c8b9d58375ac Mon Sep 17 00:00:00 2001 From: Jeremy Lerner Date: Tue, 25 Feb 2025 21:31:31 -0500 Subject: [PATCH 4/4] AC DC --- overlays/DIMO/dimo.vspec | 6 ------ 1 file changed, 6 deletions(-) diff --git a/overlays/DIMO/dimo.vspec b/overlays/DIMO/dimo.vspec index 60fbe462a..f5e052faf 100644 --- a/overlays/DIMO/dimo.vspec +++ b/overlays/DIMO/dimo.vspec @@ -86,9 +86,3 @@ Vehicle.Powertrain.TractionBattery.Charging.AddedEnergyAC: datatype: float unit: kWh description: Amount of charge added to the high voltage battery during the current charging session via AC (alternating current), expressed in kilowatt-hours. - -Vehicle.Powertrain.TractionBattery.Charging.AddedEnergyDC: - type: sensor - datatype: float - unit: kWh - description: Amount of charge added to the high voltage battery during the current charging session via DC (direct current), expressed in kilowatt-hours.