1 import { ChargingProfilePurposeType
, OCPP16ChargingProfile
} from
'./ChargingProfile';
3 import { EmptyObject
} from
'../../EmptyObject';
4 import { OCPP16ChargePointErrorCode
} from
'./ChargePointErrorCode';
5 import { OCPP16ChargePointStatus
} from
'./ChargePointStatus';
6 import { OCPP16DiagnosticsStatus
} from
'./DiagnosticsStatus';
7 import { OCPP16StandardParametersKey
} from
'./Configuration';
9 export enum OCPP16RequestCommand
{
10 BOOT_NOTIFICATION
= 'BootNotification',
11 HEARTBEAT
= 'Heartbeat',
12 STATUS_NOTIFICATION
= 'StatusNotification',
13 CHANGE_CONFIGURATION
= 'ChangeConfiguration',
14 AUTHORIZE
= 'Authorize',
15 START_TRANSACTION
= 'StartTransaction',
16 STOP_TRANSACTION
= 'StopTransaction',
17 METER_VALUES
= 'MeterValues',
18 DIAGNOSTICS_STATUS_NOTIFICATION
= 'DiagnosticsStatusNotification'
21 export enum OCPP16IncomingRequestCommand
{
23 CLEAR_CACHE
= 'ClearCache',
24 CHANGE_AVAILABILITY
= 'ChangeAvailability',
25 UNLOCK_CONNECTOR
= 'UnlockConnector',
26 GET_CONFIGURATION
= 'GetConfiguration',
27 CHANGE_CONFIGURATION
= 'ChangeConfiguration',
28 SET_CHARGING_PROFILE
= 'SetChargingProfile',
29 CLEAR_CHARGING_PROFILE
= 'ClearChargingProfile',
30 REMOTE_START_TRANSACTION
= 'RemoteStartTransaction',
31 REMOTE_STOP_TRANSACTION
= 'RemoteStopTransaction',
32 GET_DIAGNOSTICS
= 'GetDiagnostics',
33 TRIGGER_MESSAGE
= 'TriggerMessage'
36 export type HeartbeatRequest
= EmptyObject
;
38 export interface OCPP16BootNotificationRequest
{
39 chargeBoxSerialNumber
?: string;
40 chargePointModel
: string;
41 chargePointSerialNumber
?: string;
42 chargePointVendor
: string;
43 firmwareVersion
?: string;
46 meterSerialNumber
?: string;
50 export interface StatusNotificationRequest
{
52 errorCode
: OCPP16ChargePointErrorCode
;
54 status: OCPP16ChargePointStatus
;
57 vendorErrorCode
?: string;
60 export interface ChangeConfigurationRequest
{
61 key
: string | OCPP16StandardParametersKey
;
65 export interface RemoteStartTransactionRequest
{
68 chargingProfile
?: OCPP16ChargingProfile
;
71 export interface RemoteStopTransactionRequest
{
72 transactionId
: number;
75 export interface UnlockConnectorRequest
{
79 export interface GetConfigurationRequest
{
80 key
?: string | OCPP16StandardParametersKey
[];
83 export enum ResetType
{
88 export interface ResetRequest
{
92 export interface SetChargingProfileRequest
{
94 csChargingProfiles
: OCPP16ChargingProfile
;
97 export enum OCPP16AvailabilityType
{
98 INOPERATIVE
= 'Inoperative',
99 OPERATIVE
= 'Operative'
102 export interface ChangeAvailabilityRequest
{
104 type: OCPP16AvailabilityType
;
107 export interface ClearChargingProfileRequest
{
109 connectorId
?: number;
110 chargingProfilePurpose
?: ChargingProfilePurposeType
;
114 export interface GetDiagnosticsRequest
{
117 retryInterval
?: number;
122 export interface DiagnosticsStatusNotificationRequest
{
123 status: OCPP16DiagnosticsStatus
126 export enum MessageTrigger
{
127 BootNotification
= 'BootNotification',
128 DiagnosticsStatusNotification
= 'DiagnosticsStatusNotification',
129 FirmwareStatusNotification
= 'FirmwareStatusNotification',
130 Heartbeat
= 'Heartbeat',
131 MeterValues
= 'MeterValues',
132 StatusNotification
= 'StatusNotification'
135 export interface OCPP16TriggerMessageRequest
{
136 requestedMessage
: MessageTrigger
;