Skip to content

Conversation

SebaLukas
Copy link
Member

Describe your changes

Now the min and max limits of the powersupply can be sent in the ChargeParameterDiscoveryRes messages

Issue ticket number and link

The power supply limits should be sent to the EV in the DcChargeParameterDiscoveryRes and not the actual limits from the EnergyManager.

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

@SebaLukas
Copy link
Member Author

Before merging this PR, EVerest/libiso15118#156 should be merged as well

…. Now the min and max limits of the powersupply can be sent in the ChargeParameterDiscoveryRes messages

Signed-off-by: Sebastian Lukas <[email protected]>
@SebaLukas SebaLukas force-pushed the feat/using-powersupply-limits-in-charge_parameter_discovery branch from 627b4a1 to b539c4d Compare September 30, 2025 13:06
Copy link
Member

@james-ctc james-ctc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks fine to me

Copy link
Contributor

@Pietfried Pietfried left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, I'd recommend to reuse the existing power_supply_DC Capabilities type instead of introducing a new type with mostly similar properties

The supported grid code detection method supported by the EVSE
type: string
$ref: /iso15118#/GridCodeIslandingDetectionMethod
Capabilities:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason why this existing type is not reused? https://github.com/EVerest/everest-core/blob/main/types/power_supply_DC.yaml#L36

BeforeCableCheck,
};

struct PowerCapabilities {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: PowerSupplyCapabilities

Comment on lines +254 to +266
types::iso15118::Capabilities capabilities;
capabilities.max_charge_current = caps.max_export_current_A;
capabilities.min_charge_current = caps.min_export_current_A;
capabilities.max_charge_power = caps.max_export_power_W;
capabilities.min_charge_power = caps.min_export_current_A * caps.min_export_voltage_V;
capabilities.max_voltage = caps.max_export_voltage_V;
capabilities.min_voltage = caps.min_export_voltage_V;
capabilities.max_discharge_current = caps.max_import_current_A;
capabilities.min_discharge_current = caps.min_import_current_A;
capabilities.max_discharge_power = caps.max_import_power_W;
capabilities.min_discharge_power =
(caps.min_import_voltage_V.has_value() and caps.min_import_current_A.has_value())
? std::make_optional(caps.min_import_voltage_V.value() * caps.min_import_current_A.value())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could mostly be omited if types::power_supply_DC::Capabilities is used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants