|
@@ -187,6 +187,7 @@ Storage 0x0A200000-0x7FFFFFFF 1886 MB
|
|
#define ShmOcpp20ModuleKey 1012
|
|
#define ShmOcpp20ModuleKey 1012
|
|
#define ShmRelay2BdKey 1013
|
|
#define ShmRelay2BdKey 1013
|
|
#define ShmYesCustomKey 1014
|
|
#define ShmYesCustomKey 1014
|
|
|
|
+#define ShmOcppPHModuleKey 1015
|
|
|
|
|
|
#define FaultCodeLength 5
|
|
#define FaultCodeLength 5
|
|
#define AlarmCodeLength 20
|
|
#define AlarmCodeLength 20
|
|
@@ -327,6 +328,10 @@ enum CoreProfile {
|
|
MaintainServer,
|
|
MaintainServer,
|
|
StatusNotificationPeriodically,
|
|
StatusNotificationPeriodically,
|
|
StatusNotificationInterval,
|
|
StatusNotificationInterval,
|
|
|
|
+ PreAuthAmount,
|
|
|
|
+ isEnableLocalPowerSharing,
|
|
|
|
+ PowerSharingServerIP,
|
|
|
|
+ EVCCID_PREFIX,
|
|
ConfigurationVersion,
|
|
ConfigurationVersion,
|
|
_CoreProfile_CNT
|
|
_CoreProfile_CNT
|
|
};
|
|
};
|
|
@@ -340,10 +345,11 @@ enum OCPP_START_ID_TYPE {
|
|
IdTokenType_Central=0,
|
|
IdTokenType_Central=0,
|
|
IdTokenType_eMAID,
|
|
IdTokenType_eMAID,
|
|
IdTokenType_ISO14443,
|
|
IdTokenType_ISO14443,
|
|
|
|
+ IdTokenType_ISO15693,
|
|
IdTokenType_KeyCode,
|
|
IdTokenType_KeyCode,
|
|
IdTokenType_Local,
|
|
IdTokenType_Local,
|
|
- IdTokenType_NoAuthorization,
|
|
+ IdTokenType_MacAddress,
|
|
- IdTokenType_ISO15693
|
|
+ IdTokenType_NoAuthorization
|
|
};
|
|
};
|
|
/**************************************************************************************/
|
|
/**************************************************************************************/
|
|
/****structure SysConfigData => shall store the data to NAND flash****************/
|
|
/****structure SysConfigData => shall store the data to NAND flash****************/
|
|
@@ -460,7 +466,7 @@ struct TTIA
|
|
|
|
|
|
struct LocalSharingInfo
|
|
struct LocalSharingInfo
|
|
{
|
|
{
|
|
- unsigned short AvailableShargingCurrent; // 0 ~ rating value amp, Synchronize from local sharing server
|
|
+ unsigned short AvailableShargingCurrent[4]; // 0 ~ rating value amp, Synchronize from local sharing server
|
|
unsigned char isConnectedSharingServer:1; // 0: Disconnected, 1: Connected
|
|
unsigned char isConnectedSharingServer:1; // 0: Disconnected, 1: Connected
|
|
};
|
|
};
|
|
|
|
|
|
@@ -571,7 +577,7 @@ struct SysConfigData
|
|
struct LED LedInfo; // LED configuration info
|
|
struct LED LedInfo; // LED configuration info
|
|
unsigned char ShowInformation;
|
|
unsigned char ShowInformation;
|
|
unsigned char isReqFirstUpgrade; //EVSE is request first upgrade from PH server
|
|
unsigned char isReqFirstUpgrade; //EVSE is request first upgrade from PH server
|
|
- unsigned char isEnableLocalPowerSharging; //0: Disable power sharing 1: Enable power sharing
|
|
+ unsigned char isEnableLocalPowerSharing; //0: Disable power sharing 1: Master 2: Slave
|
|
unsigned char StopChargingByButton; //0: Disable 1: Enable
|
|
unsigned char StopChargingByButton; //0: Disable 1: Enable
|
|
struct LCD_NOUSE Legacy_LcdOveride; // LCD override info (no use anymore)
|
|
struct LCD_NOUSE Legacy_LcdOveride; // LCD override info (no use anymore)
|
|
struct TTIA TTIA_Info; // TTIA configuration struct
|
|
struct TTIA TTIA_Info; // TTIA configuration struct
|
|
@@ -584,6 +590,7 @@ struct SysConfigData
|
|
unsigned char MaintainServerURL[512]; // ws: non-secure OCPP 1.6-J, wss: secure OCPP 1.6-J"
|
|
unsigned char MaintainServerURL[512]; // ws: non-secure OCPP 1.6-J, wss: secure OCPP 1.6-J"
|
|
unsigned char MaintainServerSecurityProfile; // Maintain server security profile 0~3
|
|
unsigned char MaintainServerSecurityProfile; // Maintain server security profile 0~3
|
|
unsigned char MaintainServerSecurityPassword[41]; // Maintain server AuthorizationKey for security profile
|
|
unsigned char MaintainServerSecurityPassword[41]; // Maintain server AuthorizationKey for security profile
|
|
|
|
+ unsigned char PowerSharingServerIP[512]; // Local power sharing server ip address
|
|
};
|
|
};
|
|
|
|
|
|
struct ChargingInfoData
|
|
struct ChargingInfoData
|
|
@@ -623,7 +630,7 @@ struct ChargingInfoData
|
|
unsigned char PilotState;//1:state A, 2:State B1, 3:State B2, 4:State C, 5:State D, 6:State E, 7:State F, 8: Pilot error
|
|
unsigned char PilotState;//1:state A, 2:State B1, 3:State B2, 4:State C, 5:State D, 6:State E, 7:State F, 8: Pilot error
|
|
unsigned char PilotDuty; // 0~100%
|
|
unsigned char PilotDuty; // 0~100%
|
|
unsigned char StartUserId[32]; // This ID is trigger start charging event user by RFID, back-end, BLE.
|
|
unsigned char StartUserId[32]; // This ID is trigger start charging event user by RFID, back-end, BLE.
|
|
- unsigned char StartIdType; // 0: Central 1: eMAID 2: ISO14443 3: ISO15693 4: KeyCode 5: Local 6: MaxAddress 7: NoAuthorization
|
|
+ unsigned char StartIdType; // 0: Central 1: eMAID 2: ISO14443 3: ISO15693 4: KeyCode 5: Local 6: MacAddress 7: NoAuthorization
|
|
unsigned char StartDateTime[32]; // Charging cycle start date time
|
|
unsigned char StartDateTime[32]; // Charging cycle start date time
|
|
unsigned char StopDateTime[32]; // Charging cycle stop date time
|
|
unsigned char StopDateTime[32]; // Charging cycle stop date time
|
|
unsigned char StartMethod;
|
|
unsigned char StartMethod;
|
|
@@ -718,16 +725,7 @@ typedef union
|
|
unsigned int FirmwareUpdateRequest:1; // firmware update request
|
|
unsigned int FirmwareUpdateRequest:1; // firmware update request
|
|
unsigned int FirmwareUpdateConfirm:1; // firmware update start
|
|
unsigned int FirmwareUpdateConfirm:1; // firmware update start
|
|
unsigned int FirmwareUpdateCompleted:1; // firmware update completed
|
|
unsigned int FirmwareUpdateCompleted:1; // firmware update completed
|
|
- unsigned int BackendStatusRequest:1; // 0: no request, 1: backend connection status has changed ( cabinet -> dispenser)
|
|
+ unsigned int res:21;
|
|
- unsigned int EthernetStatusRequest:1; // 0: no request, 1: ethernet connection status has changed ( cabinet -> dispenser)
|
|
|
|
- unsigned int WiFiStatusRequest:1; // 0: no request, 1: wifi connection status has changed ( cabinet -> dispenser)
|
|
|
|
- unsigned int TelcomModemStatusRequest:1; // 0: no request, 1: 4g connection status has changed ( cabinet -> dispenser)
|
|
|
|
- unsigned int BillingStatusRequest:1; // 0: no request, 1: billing status has changed ( cabinet -> dispenser)
|
|
|
|
- unsigned int StopButtonStatusRequest:1; // 0: no request, 1: stop charging button status has changed ( cabinet -> dispenser)
|
|
|
|
- unsigned int AuthModeConfigRequest:1; // 0: no request, 1: AuthMode Config has changed ( cabinet -> dispenser)
|
|
|
|
- unsigned int EVCCIDConfigRequest:1; // 0: no request, 1: EVCCID Config has changed ( cabinet -> dispenser)
|
|
|
|
- unsigned int LEDIntensityRequest:1; // 0: no request, 1: LED Intensity has changed ( cabinet -> dispenser)
|
|
|
|
- unsigned int res:12;
|
|
|
|
}bits;
|
|
}bits;
|
|
}DispenserSettingFlag;
|
|
}DispenserSettingFlag;
|
|
|
|
|
|
@@ -744,7 +742,7 @@ struct DispenserModule
|
|
unsigned char RfidCardNumEndian; //0: little endian, 1: big endian
|
|
unsigned char RfidCardNumEndian; //0: little endian, 1: big endian
|
|
unsigned char isAPP; //for AuthorisationMode=0; 0:false, 1:true
|
|
unsigned char isAPP; //for AuthorisationMode=0; 0:false, 1:true
|
|
unsigned char isQRCode; //for AuthorisationMode=0; 0:false, 1:true
|
|
unsigned char isQRCode; //for AuthorisationMode=0; 0:false, 1:true
|
|
- unsigned char isRFID; //for AuthorisationMode=0; 0:false, 1:true
|
|
+ unsigned char isRFID; //for AuthorisationMode=0; 0:false, 1:true; for Noodoe Credit Card +2^1:true
|
|
unsigned char QRCodeMadeMode; //for isQRCode=1 ; 0: default 1:customized
|
|
unsigned char QRCodeMadeMode; //for isQRCode=1 ; 0: default 1:customized
|
|
unsigned char QRCodeContent[128]; //for QRCodeMadeMode=1
|
|
unsigned char QRCodeContent[128]; //for QRCodeMadeMode=1
|
|
|
|
|
|
@@ -837,7 +835,7 @@ typedef union
|
|
unsigned int Disconnection:1;
|
|
unsigned int Disconnection:1;
|
|
unsigned int GfdDetection:1; // 0: stop, 1: start
|
|
unsigned int GfdDetection:1; // 0: stop, 1: start
|
|
unsigned int GetStartChargingSoc:1; // 0: no effect, 1: get start soc
|
|
unsigned int GetStartChargingSoc:1; // 0: no effect, 1: get start soc
|
|
- unsigned int res:14;
|
|
+ unsigned int res:13;
|
|
}bits;
|
|
}bits;
|
|
}ConnectorParameter;
|
|
}ConnectorParameter;
|
|
|
|
|
|
@@ -1509,7 +1507,7 @@ struct AlarmCodeData
|
|
unsigned char PsuDcDcOtp:1; //bit 2
|
|
unsigned char PsuDcDcOtp:1; //bit 2
|
|
unsigned char PsuDcDcOvp:1; //bit 3
|
|
unsigned char PsuDcDcOvp:1; //bit 3
|
|
unsigned char :4; //reserved bit 4 ~ bit 7
|
|
unsigned char :4; //reserved bit 4 ~ bit 7
|
|
- //AlarmVal[17]
|
|
+ //AlarmVal[17]
|
|
unsigned char :8; //reserved bit 0 ~ bit 7
|
|
unsigned char :8; //reserved bit 0 ~ bit 7
|
|
//AlarmVal[18]
|
|
//AlarmVal[18]
|
|
unsigned char MeterIcCommTimeout:1; //bit 0
|
|
unsigned char MeterIcCommTimeout:1; //bit 0
|
|
@@ -2300,7 +2298,7 @@ struct PsuData
|
|
unsigned char GroupCount;
|
|
unsigned char GroupCount;
|
|
unsigned char Work_Step;
|
|
unsigned char Work_Step;
|
|
struct PsuModuleVer PsuVersion[MAX_PSU_QUANTITY];
|
|
struct PsuModuleVer PsuVersion[MAX_PSU_QUANTITY];
|
|
- unsigned char PsuStopChargeFlag;
|
|
+ unsigned char PsuStopChargeFlag;
|
|
};
|
|
};
|
|
|
|
|
|
/************************************************************************************/
|
|
/************************************************************************************/
|
|
@@ -4418,7 +4416,7 @@ struct OCPP16ConfigurationTable
|
|
struct StrcutSetUserPrice
|
|
struct StrcutSetUserPrice
|
|
{
|
|
{
|
|
unsigned char idToken[21];
|
|
unsigned char idToken[21];
|
|
- unsigned char price[256];
|
|
+ unsigned char price[1024];
|
|
};
|
|
};
|
|
|
|
|
|
struct ChargingPrice
|
|
struct ChargingPrice
|
|
@@ -4462,13 +4460,13 @@ struct StrcutRunningCost
|
|
struct IdlePrice idlePrice; // (optional) Price components while not charging. Optional if no idle fee is charged.
|
|
struct IdlePrice idlePrice; // (optional) Price components while not charging. Optional if no idle fee is charged.
|
|
struct NextPeriod nextPeriod; // (optional) Pricing for next period
|
|
struct NextPeriod nextPeriod; // (optional) Pricing for next period
|
|
struct Triggers triggerMeterValue; // (optional) Triggers to request a new meter value. Optional if no idle fee charged.
|
|
struct Triggers triggerMeterValue; // (optional) Triggers to request a new meter value. Optional if no idle fee charged.
|
|
- unsigned char description[256]; // Compatible California pricing V1.0
|
|
+ unsigned char description[1024]; // Compatible California pricing V1.0
|
|
};
|
|
};
|
|
|
|
|
|
struct StrcutFinalCost
|
|
struct StrcutFinalCost
|
|
{
|
|
{
|
|
int txId;
|
|
int txId;
|
|
- unsigned char description[256];
|
|
+ unsigned char description[1024];
|
|
};
|
|
};
|
|
|
|
|
|
struct StructCost
|
|
struct StructCost
|
|
@@ -4617,8 +4615,8 @@ struct StructCreditDeductResult
|
|
|
|
|
|
struct StructReaderStatus
|
|
struct StructReaderStatus
|
|
{
|
|
{
|
|
- int readerStatus;
|
|
+ int readerStatus;
|
|
- unsigned char creditNo[64];
|
|
+ unsigned char creditNo[64];
|
|
unsigned char ReportReaderStatusReq:1;
|
|
unsigned char ReportReaderStatusReq:1;
|
|
};
|
|
};
|
|
|
|
|
|
@@ -4630,7 +4628,7 @@ struct StructTcciCustomData
|
|
struct StructReaderStatus ReaderStatus[CONNECTOR_QUANTITY];
|
|
struct StructReaderStatus ReaderStatus[CONNECTOR_QUANTITY];
|
|
unsigned char TriggerReaderReq[3];
|
|
unsigned char TriggerReaderReq[3];
|
|
unsigned char SerialNo[CONNECTOR_QUANTITY][37];
|
|
unsigned char SerialNo[CONNECTOR_QUANTITY][37];
|
|
- unsigned char VEMData[CONNECTOR_QUANTITY][65];
|
|
+ unsigned char VEMData[CONNECTOR_QUANTITY][65];
|
|
|
|
|
|
unsigned char ReportCreditDeductReq:1;
|
|
unsigned char ReportCreditDeductReq:1;
|
|
unsigned char ChargerInfoReq:1;
|
|
unsigned char ChargerInfoReq:1;
|
|
@@ -5144,7 +5142,7 @@ struct ChargingScheduleType
|
|
|
|
|
|
struct ChargingProfileType
|
|
struct ChargingProfileType
|
|
{
|
|
{
|
|
- unsigned short int id; // Required. Id of ChargingProfile.
|
|
+ int id; // Required. Id of ChargingProfile.
|
|
unsigned short int stackLevel; // Required. Value determining level in hierarchy stack of profiles. Higher values have precedence over lower values. Lowest level is 0.
|
|
unsigned short int stackLevel; // Required. Value determining level in hierarchy stack of profiles. Higher values have precedence over lower values. Lowest level is 0.
|
|
unsigned char chargingProfilePurpose[36]; // Required. Defines the purpose of the schedule transferred by this profile
|
|
unsigned char chargingProfilePurpose[36]; // Required. Defines the purpose of the schedule transferred by this profile
|
|
unsigned char chargingProfileKind[16]; // Required. Indicates the kind of schedule.
|
|
unsigned char chargingProfileKind[16]; // Required. Indicates the kind of schedule.
|