Skip to content
This repository was archived by the owner on Jun 29, 2024. It is now read-only.

Commit 692f2a8

Browse files
committed
Update event types documentation
1 parent e388157 commit 692f2a8

File tree

15 files changed

+57
-196
lines changed

15 files changed

+57
-196
lines changed

uccevc/types.go

+5-30
Original file line numberDiff line numberDiff line change
@@ -7,65 +7,40 @@ const (
77

88
// EV provided an energy demand
99
//
10-
// The callback with this message provides:
11-
// - the device of the EVSE the EV is connected to
12-
// - the entity of the EV
10+
// Use `EnergyDemand` to get the current data
1311
DataUpdateEnergyDemand api.EventType = "DataUpdateEnergyDemand"
1412

1513
// Scenario 2
1614

1715
// EV provided a charge plan constraints
1816
//
19-
// The callback with this message provides:
20-
// - the device of the EVSE the EV is connected to
21-
// - the entity of the EV
17+
// Use `TimeSlotConstraints` to get the current data
2218
DataUpdateTimeSlotConstraints api.EventType = "DataUpdateTimeSlotConstraints"
2319

2420
// Scenario 3
2521

2622
// EV incentive table data updated
2723
//
28-
// The callback with this message provides:
29-
// - the device of the EVSE the EV is connected to
30-
// - the entity of the EV
24+
// Use `IncentiveConstraints` to get the current data
3125
DataUpdateIncentiveTable api.EventType = "DataUpdateIncentiveTable"
3226

33-
// EV incentive table data constraints updated
34-
//
35-
// The callback with this message provides:
36-
// - the device of the EVSE the EV is connected to
37-
// - the entity of the EV
38-
DataUpdateIncentiveTableConstraints api.EventType = "DataUpdateIncentiveTableConstraints"
39-
4027
// EV requested an incentive table, call to WriteIncentiveTableDescriptions required
41-
//
42-
// The callback with this message provides:
43-
// - the device of the EVSE the EV is connected to
44-
// - the entity of the EV
4528
DataRequestedIncentiveTableDescription api.EventType = "DataRequestedIncentiveTableDescription"
4629

4730
// Scenario 2 & 3
4831

4932
// EV requested power limits, call to WritePowerLimits and WriteIncentives required
50-
//
51-
// The callback with this message provides:
52-
// - the device of the EVSE the EV is connected to
53-
// - the entity of the EV
5433
DataRequestedPowerLimitsAndIncentives api.EventType = "DataRequestedPowerLimitsAndIncentives"
5534

5635
// Scenario 4
5736

5837
// EV provided a charge plan
5938
//
60-
// The callback with this message provides:
61-
// - the device of the EVSE the EV is connected to
62-
// - the entity of the EV
39+
// Use `ChargePlanConstraints` to get the current data
6340
DataUpdateChargePlanConstraints api.EventType = "DataUpdateChargePlanConstraints"
6441

6542
// EV provided a charge plan
6643
//
67-
// The callback with this message provides:
68-
// - the device of the EVSE the EV is connected to
69-
// - the entity of the EV
44+
// Use `ChargePlan` to get the current data
7045
DataUpdateChargePlan api.EventType = "DataUpdateChargePlan"
7146
)

ucevcc/types.go

+7-29
Original file line numberDiff line numberDiff line change
@@ -14,79 +14,57 @@ const (
1414

1515
// An EV was connected
1616
//
17-
// The callback with this message provides:
18-
// - the device of the EVSE the EV is connected to
19-
// - the entity of the EV
20-
//
2117
// Use Case EVCC, Scenario 1
2218
EvConnected api.EventType = "EvConnected"
2319

2420
// An EV was disconnected
2521
//
26-
// The callback with this message provides:
27-
// - the device of the EVSE the EV was connected to
28-
// - the entity of the EV
29-
//
3022
// Note: The ev entity is no longer connected to the device!
3123
//
3224
// Use Case EVCC, Scenario 8
3325
EvDisconnected api.EventType = "EvDisconnected"
3426

3527
// EV charge state data was updated
3628
//
37-
// The callback with this message provides:
38-
// - the device of the EVSE the EV is connected to
39-
// - the entity of the EV
29+
// Use `ChargeState` to get the current data
4030
DataUpdateChargeState api.EventType = "DataUpdateChargeState"
4131

4232
// EV communication standard data was updated
4333
//
44-
// The callback with this message provides:
45-
// - the device of the EVSE the EV is connected to
46-
// - the entity of the EV
34+
// Use `CommunicationStandard` to get the current data
4735
//
4836
// Use Case EVCC, Scenario 2
4937
DataUpdateCommunicationStandard api.EventType = "DataUpdateCommunicationStandard"
5038

5139
// EV asymmetric charging data was updated
5240
//
53-
// The callback with this message provides:
54-
// - the device of the EVSE the EV is connected to
55-
// - the entity of the EV
41+
// Use `AsymmetricChargingSupport` to get the current data
5642
DataUpdateAsymmetricChargingSupport api.EventType = "DataUpdateAsymmetricChargingSupport"
5743

5844
// EV identificationdata was updated
5945
//
60-
// The callback with this message provides:
61-
// - the device of the EVSE the EV is connected to
62-
// - the entity of the EV
46+
// Use `Identifications` to get the current data
6347
//
6448
// Use Case EVCC, Scenario 4
6549
DataUpdateIdentifications api.EventType = "DataUpdateIdentifications"
6650

6751
// EV manufacturer data was updated
6852
//
69-
// The callback with this message provides:
70-
// - the device of the EVSE the EV is connected to
71-
// - the entity of the EV
53+
// Use `ManufacturerData` to get the current data
7254
//
7355
// Use Case EVCC, Scenario 5
7456
DataUpdateManufacturerData api.EventType = "DataUpdateManufacturerData"
7557

7658
// EV charging power limits
7759
//
78-
// The callback with this message provides:
79-
// - the device of the EVSE the EV is connected to
80-
// - the entity of the EV
60+
// Use `ChargingPowerLimits` to get the current data
8161
//
8262
// Use Case EVCC, Scenario 6
8363
DataUpdateCurrentLimits api.EventType = "DataUpdateCurrentLimits"
8464

8565
// EV permitted power limits updated
8666
//
87-
// The callback with this message provides:
88-
// - the device of the EVSE the EV is connected to
89-
// - the entity of the EV
67+
// Use `IsInSleepMode` to get the current data
9068
//
9169
// Use Case EVCC, Scenario 7
9270
DataUpdateIsInSleepMode api.EventType = "DataUpdateIsInSleepMode"

ucevcem/types.go

+4-12
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,28 @@ import "github.com/enbility/cemd/api"
55
const (
66
// EV number of connected phases data updated
77
//
8-
// The callback with this message provides:
9-
// - the device of the EVSE the EV is connected to
10-
// - the entity of the EV
8+
// Use `PhasesConnected` to get the current data
119
//
1210
// Use Case EVCEM, Scenario 1
1311
DataUpdatePhasesConnected api.EventType = "DataUpdatePhasesConnected"
1412

1513
// EV current measurement data updated
1614
//
17-
// The callback with this message provides:
18-
// - the device of the EVSE the EV is connected to
19-
// - the entity of the EV
15+
// Use `CurrentPerPhase` to get the current data
2016
//
2117
// Use Case EVCEM, Scenario 1
2218
DataUpdateCurrentPerPhase api.EventType = "DataUpdateCurrentPerPhase"
2319

2420
// EV power measurement data updated
2521
//
26-
// The callback with this message provides:
27-
// - the device of the EVSE the EV is connected to
28-
// - the entity of the EV
22+
// Use `PowerPerPhase` to get the current data
2923
//
3024
// Use Case EVCEM, Scenario 2
3125
DataUpdatePowerPerPhase api.EventType = "DataUpdatePowerPerPhase"
3226

3327
// EV charging energy measurement data updated
3428
//
35-
// The callback with this message provides:
36-
// - the device of the EVSE the EV is connected to
37-
// - the entity of the EV
29+
// Use `EnergyCharged` to get the current data
3830
//
3931
// Use Case EVCEM, Scenario 3
4032
DataUpdateEnergyCharged api.EventType = "DataUpdateEnergyCharged"

ucevsecc/types.go

+2-14
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,14 @@ import "github.com/enbility/cemd/api"
44

55
const (
66
// An EVSE was connected
7-
//
8-
// The callback with this message provides:
9-
// - the device of the EVSE
10-
// - the entity of the EVSE
117
EvseConnected api.EventType = "EvseConnected"
128

139
// An EVSE was disconnected
14-
//
15-
// The callback with this message provides:
16-
// - the device of the EVSE
17-
// - the entity of the EVSE
1810
EvseDisconnected api.EventType = "EvseDisconnected"
1911

2012
// EVSE manufacturer data was updated
2113
//
22-
// The callback with this message provides:
23-
// - the device of the EVSE
24-
// - the entity of the EVSE
14+
// Use `ManufacturerData` to get the current data
2515
//
2616
// Use Case EVSECC, Scenario 1
2717
//
@@ -30,9 +20,7 @@ const (
3020

3121
// EVSE operation state was updated
3222
//
33-
// The callback with this message provides:
34-
// - the device of the EVSE
35-
// - the entity of the EVSE
23+
// Use `OperatingState` to get the current data
3624
//
3725
// Use Case EVSECC, Scenario 2
3826
//

ucevsoc/types.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import "github.com/enbility/cemd/api"
55
const (
66
// EV state of charge data was updated
77
//
8-
// The callback with this message provides:
9-
// - the device of the EVSE the EV is connected to
10-
// - the entity of the EV
8+
// Use `StateOfCharge` to get the current data
119
//
1210
// Use Case EVSOC, Scenario 1
1311
DataUpdateStateOfCharge api.EventType = "DataUpdateStateOfCharge"

uclpc/types.go

+3-9
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,23 @@ import "github.com/enbility/cemd/api"
55
const (
66
// Load control obligation limit data updated
77
//
8-
// The callback with this message provides:
9-
// - the device of the e.g. EVSE
10-
// - the entity of the e.g. EVSE
8+
// Use `ConsumptionLimit` to get the current data
119
//
1210
// Use Case LPC, Scenario 1
1311
DataUpdateLimit api.EventType = "DataUpdateLimit"
1412

1513
// Failsafe limit for the consumed active (real) power of the
1614
// Controllable System data updated
1715
//
18-
// The callback with this message provides:
19-
// - the device of the e.g. EVSE
20-
// - the entity of the e.g. EVSE
16+
// Use `FailsafeConsumptionActivePowerLimit` to get the current data
2117
//
2218
// Use Case LPC, Scenario 2
2319
DataUpdateFailsafeConsumptionActivePowerLimit api.EventType = "DataUpdateFailsafeConsumptionActivePowerLimit"
2420

2521
// Minimum time the Controllable System remains in "failsafe state" unless conditions
2622
// specified in this Use Case permit leaving the "failsafe state" data updated
2723
//
28-
// The callback with this message provides:
29-
// - the device of the e.g. EVSE
30-
// - the entity of the e.g. EVSE
24+
// Use `FailsafeDurationMinimum` to get the current data
3125
//
3226
// Use Case LPC, Scenario 2
3327
DataUpdateFailsafeDurationMinimum api.EventType = "DataUpdateFailsafeDurationMinimum"

uclpcserver/types.go

+4-6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ const (
99
// - the device of the e.g. SMGW
1010
// - the entity of the e.g. SMGW
1111
//
12+
// Use `ConsumptionLimit` to get the current data
13+
//
1214
// Use Case LPC, Scenario 1
1315
DataUpdateLimit api.EventType = "DataUpdateLimit"
1416

@@ -23,19 +25,15 @@ const (
2325
// Failsafe limit for the consumed active (real) power of the
2426
// Controllable System data update received
2527
//
26-
// The callback with this message provides:
27-
// - the device of the e.g. SMGW
28-
// - the entity of the e.g. SMGW
28+
// Use `FailsafeConsumptionActivePowerLimit` to get the current data
2929
//
3030
// Use Case LPC, Scenario 2
3131
DataUpdateFailsafeConsumptionActivePowerLimit api.EventType = "DataUpdateFailsafeConsumptionActivePowerLimit"
3232

3333
// Minimum time the Controllable System remains in "failsafe state" unless conditions
3434
// specified in this Use Case permit leaving the "failsafe state" data update received
3535
//
36-
// The callback with this message provides:
37-
// - the device of the e.g. SMGW
38-
// - the entity of the e.g. SMGW
36+
// Use `FailsafeDurationMinimum` to get the current data
3937
//
4038
// Use Case LPC, Scenario 2
4139
DataUpdateFailsafeDurationMinimum api.EventType = "DataUpdateFailsafeDurationMinimum"

uclpp/types.go

+3-9
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,23 @@ import "github.com/enbility/cemd/api"
55
const (
66
// Load control obligation limit data updated
77
//
8-
// The callback with this message provides:
9-
// - the device of the e.g. EVSE
10-
// - the entity of the e.g. EVSE
8+
// Use `ProductionLimit` to get the current data
119
//
1210
// Use Case LPC, Scenario 1
1311
DataUpdateLimit api.EventType = "DataUpdateLimit"
1412

1513
// Failsafe limit for the produced active (real) power of the
1614
// Controllable System data updated
1715
//
18-
// The callback with this message provides:
19-
// - the device of the e.g. EVSE
20-
// - the entity of the e.g. EVSE
16+
// Use `FailsafeProductionActivePowerLimit` to get the current data
2117
//
2218
// Use Case LPC, Scenario 2
2319
DataUpdateFailsafeProductionActivePowerLimit api.EventType = "DataUpdateFailsafeProductionActivePowerLimit"
2420

2521
// Minimum time the Controllable System remains in "failsafe state" unless conditions
2622
// specified in this Use Case permit leaving the "failsafe state" data updated
2723
//
28-
// The callback with this message provides:
29-
// - the device of the e.g. EVSE
30-
// - the entity of the e.g. EVSE
24+
// Use `FailsafeDurationMinimum` to get the current data
3125
//
3226
// Use Case LPC, Scenario 2
3327
DataUpdateFailsafeDurationMinimum api.EventType = "DataUpdateFailsafeDurationMinimum"

uclppserver/types.go

+3-9
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import "github.com/enbility/cemd/api"
55
const (
66
// Load control obligation limit data update received
77
//
8-
// The callback with this message provides:
9-
// - the device of the e.g. SMGW
10-
// - the entity of the e.g. SMGW
8+
// Use `ProductionLimit` to get the current data
119
//
1210
// Use Case LPC, Scenario 1
1311
DataUpdateLimit api.EventType = "DataUpdateLimit"
@@ -23,19 +21,15 @@ const (
2321
// Failsafe limit for the produced active (real) power of the
2422
// Controllable System data update received
2523
//
26-
// The callback with this message provides:
27-
// - the device of the e.g. SMGW
28-
// - the entity of the e.g. SMGW
24+
// Use `FailsafeProductionActivePowerLimit` to get the current data
2925
//
3026
// Use Case LPC, Scenario 2
3127
DataUpdateFailsafeProductionActivePowerLimit api.EventType = "DataUpdateFailsafeProductionActivePowerLimit"
3228

3329
// Minimum time the Controllable System remains in "failsafe state" unless conditions
3430
// specified in this Use Case permit leaving the "failsafe state" data update received
3531
//
36-
// The callback with this message provides:
37-
// - the device of the e.g. SMGW
38-
// - the entity of the e.g. SMGW
32+
// Use `FailsafeDurationMinimum` to get the current data
3933
//
4034
// Use Case LPC, Scenario 2
4135
DataUpdateFailsafeDurationMinimum api.EventType = "DataUpdateFailsafeDurationMinimum"

0 commit comments

Comments
 (0)