rust_ocpp/v1_6/types/
measurand.rs

1/// Allowable values of the optional "measurand" field of a Value element, as used in MeterValuesRequest and StopTransaction.req messages. Default value of "measurand" is always "Energy.Active.Import.Register"
2#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
3pub enum Measurand {
4    ///Instantaneous current flow from EV
5    #[serde(rename = "Current.Export")]
6    CurrentExport,
7    /// Instantaneous current flow to EV
8    #[serde(rename = "Current.Import")]
9    CurrentImport,
10    /// Maximum current offered to EV
11    #[serde(rename = "Current.Offered")]
12    CurrentOffered,
13    /// Numerical value read from the "active electrical energy" (Wh or kWh) register of the (most authoritative) electrical meter measuring energy exported (to the grid).
14    #[serde(rename = "Energy.Active.Export.Register")]
15    EnergyActiveExportRegister,
16    /// Numerical value read from the "active electrical energy" (Wh or kWh) register of the (most authoritative) electrical meter measuring energy imported (from the grid supply).
17    #[default]
18    #[serde(rename = "Energy.Active.Import.Register")]
19    EnergyActiveImportRegister,
20    ///  Numerical value read from the "reactive electrical energy" (VARh or kVARh) register of the (most authoritative) electrical meter measuring energy exported (to the grid).
21    #[serde(rename = "Energy.Reactive.Export.Register")]
22    EnergyReactiveExportRegister,
23    /// Numerical value read from the "reactive electrical energy" (VARh or kVARh) register of the (most authoritative) electrical meter measuring energy imported (from the grid supply).
24    #[serde(rename = "Energy.Reactive.Import.Register")]
25    EnergyReactiveImportRegister,
26    /// Absolute amount of "active electrical energy" (Wh or kWh) exported (to the grid) during an associated time "interval", specified by a Metervalues ReadingContext, and applicable interval duration configuration values (in seconds) for "ClockAlignedDataInterval" and "MeterValueSampleInterval".
27    #[serde(rename = "Energy.Active.Export.Interval")]
28    EnergyActiveExportInterval,
29    /// Absolute amount of "active electrical energy" (Wh or kWh) imported (from the grid supply) during an associated time "interval", specified by a Metervalues ReadingContext, and applicable interval duration configuration values (in seconds) for "ClockAlignedDataInterval" and "MeterValueSampleInterval".
30    #[serde(rename = "Energy.Active.Import.Interval")]
31    EnergyActiveImportInterval,
32    /// Absolute amount of "reactive electrical energy" (VARh or kVARh) exported (to the grid) during an associated time "interval", specified by a Metervalues ReadingContext, and applicable interval duration configuration values (in seconds) for "ClockAlignedDataInterval" and "MeterValueSampleInterval".
33    #[serde(rename = "Energy.Reactive.Export.Interval")]
34    EnergyReactiveExportInterval,
35    ///  Absolute amount of "reactive electrical energy" (VARh or kVARh) imported (from the grid supply) during an associated time "interval", specified by a Metervalues ReadingContext, and applicable interval duration configuration values (in seconds) for "ClockAlignedDataInterval" and "MeterValueSampleInterval".
36    #[serde(rename = "Energy.Reactive.Import.Interval")]
37    EnergyReactiveImportInterval,
38    /// Instantaneous reading of powerline frequency. NOTE: OCPP 1.6 does not have a UnitOfMeasure for frequency, the UnitOfMeasure for any SampledValue with measurand: Frequency is Hertz.
39    Frequency,
40    /// Instantaneous active power exported by EV. (W or kW)
41    #[serde(rename = "Power.Active.Export")]
42    PowerActiveExport,
43    /// Instantaneous active power imported by EV. (W or kW)
44    #[serde(rename = "Power.Active.Import")]
45    PowerActiveImport,
46    /// Instantaneous power factor of total energy flow
47    #[serde(rename = "Power.Factor")]
48    PowerFactor,
49    /// Maximum power offered to EV
50    #[serde(rename = "Power.Offered")]
51    PowerOffered,
52    /// Instantaneous reactive power exported by EV. (var or kvar)
53    #[serde(rename = "Power.Reactive.Export")]
54    PowerReactiveExport,
55    /// Instantaneous reactive power imported by EV. (var or kvar)
56    #[serde(rename = "Power.Reactive.Import")]
57    PowerReactiveImport,
58    /// Fan speed in RPM
59    #[serde(rename = "RPM")]
60    Rpm,
61    /// State of charge of charging vehicle in percentage
62    SoC,
63    /// Temperature reading inside Charge Point.
64    Temperature,
65    /// Instantaneous AC RMS supply voltage
66    Voltage,
67}