ocpp/v2_0_1/datatype/dc_charging_parameters
OCPP 2.0.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
| 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) (0–100) |
custom_data | CustomData | — | |
energy_amount | Int | — | Amount of energy requested (in Wh). This inludes energy required for preconditioning. |
ev_energy_capacity | Int | — | Capacity of the electric vehicle battery (in Wh) |
ev_max_current | Int | ✓ | Maximum current (amps) supported by the electric vehicle. Includes cable capacity. |
ev_max_power | Int | — | Maximum power (in W) supported by the electric vehicle. Required for DC charging. |
ev_max_voltage | Int | ✓ | Maximum voltage supported by the electric vehicle |
full_soc | Int | — | Percentage of SoC at which the EV considers the battery fully charged. (possible values: 0 - 100) (0–100) |
state_of_charge | Int | — | Energy available in the battery (in percent of the battery capacity) (0–100) |
Schema: DCChargingParametersType · DC_Charging_Parameters · urn:x-oca:ocpp:uid:2:233251
pub type DcChargingParameters {
DcChargingParameters(
bulk_soc: option.Option(Int),
custom_data: option.Option(custom_data.CustomData),
energy_amount: option.Option(Int),
ev_energy_capacity: option.Option(Int),
ev_max_current: Int,
ev_max_power: option.Option(Int),
ev_max_voltage: Int,
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(Int), ev_energy_capacity: option.Option(Int), ev_max_current: Int, ev_max_power: option.Option(Int), ev_max_voltage: Int, 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: Int,
ev_max_voltage ev_max_voltage: Int,
) -> 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.