Skip to content

Commit 00083d1

Browse files
committed
use ocpp 1.6 connector status values after transaction start/stop
1 parent 0f257f2 commit 00083d1

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

src/main/java/de/rwth/idsg/steve/repository/dto/TransactionStatusUpdate.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
package de.rwth.idsg.steve.repository.dto;
22

33
import lombok.Getter;
4-
import ocpp.cs._2012._06.ChargePointErrorCode;
5-
import ocpp.cs._2012._06.ChargePointStatus;
6-
7-
import static ocpp.cs._2012._06.ChargePointStatus.AVAILABLE;
8-
import static ocpp.cs._2012._06.ChargePointStatus.OCCUPIED;
4+
import ocpp.cs._2015._10.ChargePointErrorCode;
5+
import ocpp.cs._2015._10.ChargePointStatus;
96

107
/**
11-
* 1) Exists only to ensure type safety
12-
* 2) Does not matter, whether we use ChargePointStatus and ChargePointErrorCode from OCPP 1.2 or 1.5
8+
* Exists only to ensure type safety
139
*
1410
* @author Sevket Goekay <goekay@dbis.rwth-aachen.de>
1511
* @since 17.03.2016
1612
*/
1713
@Getter
1814
public enum TransactionStatusUpdate {
19-
AfterStart(OCCUPIED),
20-
AfterStop(AVAILABLE);
15+
16+
// From OCPP 1.6: When the contactor of a Connector closes, allowing the vehicle to charge
17+
AfterStart(ChargePointStatus.CHARGING),
18+
19+
// From OCPP 1.6: When a charging session has stopped at a Connector, but the Connector is not yet available
20+
// for a new user, e.g. the cable has not been removed or the vehicle has not left the parking bay
21+
AfterStop(ChargePointStatus.FINISHING);
2122

2223
private final String status;
2324
private final String errorCode = ChargePointErrorCode.NO_ERROR.value();

0 commit comments

Comments
 (0)