Raw Energy Report Update

Although rarely seen in practice, OCPP supports sending multiple sampledValue objects as elements within a MeterValue array. Each value can have different timestamps as shown in the image below:

To support this reporting format, eDRV will be updating the session.raw_energy_report

Raw Energy Report

Each measurand (current. voltage, power) will have its own timestamp value consistent with the meterValue reported by the charge station. This timestamp can be the same or different but will come from meterValue[x].timestamp

raw_energy_report.timestamp will always be the meterValue[0].timestamp

{
  "timestamp": "2023-08-16T13:30.00.00Z",
  "server_timestamp": "2023-08-16T13:30.00.00Z",
  "current": [
    {
      "value": "16.8",
      "unit": "A",
      "phase": "L1",
      "timestamp": "2023-02-15T13:03:02.21Z"
    }
  ],
  "voltage": [
    {
      "value": "227.00",
      "unit": "V",
      "phase": "L1-N",
      "timestamp": "2023-08-16T13:24:37.75Z"
    },
    {
      "value": "233.90",
      "unit": "V",
      "phase": "L3-N",
      "timestamp": "2023-08-16T13:24:38.593Z"
    }
  ],
  "power": [
    {
      "value": "3627",
      "unit": "W",
      "phase": "L1",
      "timestamp": "2023-08-07T11:28:36.51Z"
    }
  ],
  "energy_meter": [
    {
      "value": "4174",
      "unit": "Wh",
      "timestamp": "2023-08-16T13:28.42.4535842Z"
    }
  ]
}