Does OCPP V2.0 central station gets from charge point MeterStop? #325
-
In OCPP V1.6 the central station gets StopTransactionRequest which has getMeterStop function. @TVolden |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi @ezolti, Maybe @robert-s-ubi can help. |
Beta Was this translation helpful? Give feedback.
-
Hi @ezolti, I would refer you to the OCPP 2.0.1 Specification, Part 2, Chapter 1.5. It specifies which fields in the TransactionEventRequest need to be populated for which kind of transaction event (started, updated or ended). To answer your specific question: TransactionEventRequest#getMeterValue() |
Beta Was this translation helpful? Give feedback.
-
Hi @ezolti, this is really not an issue with the library. Please consult the OCPP 2.0.1 specification to understand how transaction meter values work in OCPP 2.0.1. In short: OCPP 2.0.1 no longer has the "hardwired" MeterStop reading that OCPP 1.6 had. Instead, the meter values are fully configurable. So the ones you find in the TransactionEventRequest(ENDED) are the ones that have been configured. To get the transaction end readings, filter for the SampledValues with context = "Transaction.End". |
Beta Was this translation helpful? Give feedback.
Hi @ezolti,
this is really not an issue with the library. Please consult the OCPP 2.0.1 specification to understand how transaction meter values work in OCPP 2.0.1.
In short: OCPP 2.0.1 no longer has the "hardwired" MeterStop reading that OCPP 1.6 had. Instead, the meter values are fully configurable. So the ones you find in the TransactionEventRequest(ENDED) are the ones that have been configured. To get the transaction end readings, filter for the SampledValues with context = "Transaction.End".