ocpp/v2_1/datatype/dc_charging_parameters
OCPP 2.1 DcChargingParameters data type (schema DCChargingParametersType).
to_json/decoder map to/from its OCPP-J JSON object; new (when
present) builds a value from the required fields only.
Types
EV DC charging parameters for ISO 15118-2
| Field | Type | Req | Description |
|---|---|---|---|
bulk_soc | Int | — | Percentage of SoC at which the EV considers a fast charging process to end. (possible values: 0 - 100) Relates to: + ISO 15118-2: DC_EVChargeParameterType: BulkSOC (0–100) |
custom_data | CustomData | — | |
energy_amount | Float | — | Amount of energy requested (in Wh). This inludes energy required for preconditioning. Relates to: + ISO 15118-2: DC_EVChargeParameterType: EVEnergyRequest |
ev_energy_capacity | Float | — | Capacity of the electric vehicle battery (in Wh). Relates to: + ISO 15118-2: DC_EVChargeParameterType: EVEnergyCapacity |
ev_max_current | Float | ✓ | Maximum current (in A) supported by the electric vehicle. Includes cable capacity. Relates to: + ISO 15118-2: DC_EVChargeParameterType:EVMaximumCurrentLimit |
ev_max_power | Float | — | Maximum power (in W) supported by the electric vehicle. Required for DC charging. Relates to: + ISO 15118-2: DC_EVChargeParameterType: EVMaximumPowerLimit |
ev_max_voltage | Float | ✓ | Maximum voltage supported by the electric vehicle. Relates to: + ISO 15118-2: DC_EVChargeParameterType: EVMaximumVoltageLimit |
full_soc | Int | — | Percentage of SoC at which the EV considers the battery fully charged. (possible values: 0 - 100) Relates to: + ISO 15118-2: DC_EVChargeParameterType: FullSOC (0–100) |
state_of_charge | Int | — | Energy available in the battery (in percent of the battery capacity) Relates to: + ISO 15118-2: DC_EVChargeParameterType: DC_EVStatus: EVRESSSOC (0–100) |
Schema: DCChargingParametersType
pub type DcChargingParameters {
DcChargingParameters(
bulk_soc: option.Option(Int),
custom_data: option.Option(custom_data.CustomData),
energy_amount: option.Option(Float),
ev_energy_capacity: option.Option(Float),
ev_max_current: Float,
ev_max_power: option.Option(Float),
ev_max_voltage: Float,
full_soc: option.Option(Int),
state_of_charge: option.Option(Int),
)
}
Constructors
-
DcChargingParameters( bulk_soc: option.Option(Int), custom_data: option.Option(custom_data.CustomData), energy_amount: option.Option(Float), ev_energy_capacity: option.Option(Float), ev_max_current: Float, ev_max_power: option.Option(Float), ev_max_voltage: Float, full_soc: option.Option(Int), state_of_charge: option.Option(Int), )
Values
pub fn decoder() -> decode.Decoder(DcChargingParameters)
Decode a DcChargingParameters from its OCPP-J JSON object, enforcing schema constraints.
pub fn new(
ev_max_current ev_max_current: Float,
ev_max_voltage ev_max_voltage: Float,
) -> DcChargingParameters
Construct a DcChargingParameters from its required fields, with every optional field set to None.
pub fn to_json(value: DcChargingParameters) -> json.Json
Encode a DcChargingParameters to its OCPP-J JSON object.