|
@@ -146,12 +146,12 @@ Storage 0x0A200000-0x7FFFFFFF 1886 MB
|
|
|
#define ONE_CONNECTOR_USE 0
|
|
|
#else
|
|
|
#define MAX_PSU_QUANTITY 62
|
|
|
- #define CHAdeMO_QUANTITY 1
|
|
|
- #define CCS_QUANTITY 1
|
|
|
- #define GB_QUANTITY 0
|
|
|
+ #define CHAdeMO_QUANTITY 2
|
|
|
+ #define CCS_QUANTITY 2
|
|
|
+ #define GB_QUANTITY 2
|
|
|
#define AC_QUANTITY 1
|
|
|
#define GENERAL_GUN_QUANTITY 0
|
|
|
- #define PSU_QUANTITY 0
|
|
|
+ #define PSU_QUANTITY 2
|
|
|
#define ONE_CONNECTOR_USE 0
|
|
|
#endif
|
|
|
|
|
@@ -312,8 +312,8 @@ enum CoreProfile {
|
|
|
TimeOffsetNextTransition,
|
|
|
SystemUptimeSec,
|
|
|
FreeVend,
|
|
|
- OcppServer,
|
|
|
- MaintainServer,
|
|
|
+ OcppServer,
|
|
|
+ MaintainServer,
|
|
|
ConfigurationVersion,
|
|
|
_CoreProfile_CNT
|
|
|
};
|
|
@@ -452,7 +452,9 @@ typedef union
|
|
|
unsigned int AlarmStop:1; // 0: no effect, 1: alarm stop
|
|
|
unsigned int BackendStop:1; // 0: no effect, 1: backend stop
|
|
|
unsigned int ManualStop:1; // 0: no effect, 1: manual stop
|
|
|
- unsigned int res:28;
|
|
|
+ unsigned int HardResetStop:1; // 0: no effect, 1: hard reset stop
|
|
|
+ unsigned int SoftResetStop:1; // 0: no effect, 1: soft reset stop
|
|
|
+ unsigned int res:26;
|
|
|
}bits;
|
|
|
}ChargingStop;
|
|
|
|
|
@@ -662,6 +664,18 @@ struct ChargingInfoData
|
|
|
unsigned char CCSGunType;
|
|
|
};
|
|
|
|
|
|
+typedef struct
|
|
|
+{
|
|
|
+ unsigned char AuthId[32];
|
|
|
+ // 0: Authorize idle, 1: Authorize wait, 2: Authorizing
|
|
|
+ unsigned char AuthStatus; // 3: Authorize done, 4: Authorize end
|
|
|
+ unsigned char AuthTarget; // Authorize Target Connector ID: 1 ~ 4, AutoSelection: 0xFF
|
|
|
+ unsigned char AuthType; // 0: _AuthType_None, 1: _AuthType_RFID, 2: _AuthType_RemoteStart
|
|
|
+ unsigned char AuthResult; // 0: _AuthResult_None, 1: _AuthResult_Valid, 2: _AuthResult_Invalid
|
|
|
+ unsigned char AuthRequest; // 0: no request, 1: authorize request
|
|
|
+ unsigned char res;
|
|
|
+}AuthorizingInfoData;
|
|
|
+
|
|
|
typedef union
|
|
|
{
|
|
|
unsigned int SettingValue;
|
|
@@ -672,7 +686,6 @@ typedef union
|
|
|
unsigned int DispenserConfigSync:1; // 0: not synced, 1: synced
|
|
|
unsigned int MiscNeedAnnouncement:1; // 0: no need, 1: need send misc command
|
|
|
unsigned int NeedDispenserVerInfo:1; // 0: no need, 1: need dispenser to report it's version info
|
|
|
- unsigned int EnableAutoGunSelection:1; // 0: disable, 1: enable auto gun selection
|
|
|
unsigned int AuthorizeRequest:1; // 0: idle, 1: requesting ( dispenser -> cabinet)
|
|
|
unsigned int ConnectorTimeoutConfigRequest:1; // 0: no request, 1: connector timeout setting ( ocpp -> cabinet -> dispenser)
|
|
|
unsigned int DefaultPriceConfigRequest:1; // 0: no request, 1: default price setting ( ocpp -> cabinet -> dispenser)
|
|
@@ -692,7 +705,7 @@ typedef union
|
|
|
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 res:7;
|
|
|
+ unsigned int res:8;
|
|
|
}bits;
|
|
|
}DispenserSettingFlag;
|
|
|
|
|
@@ -729,11 +742,7 @@ struct DispenserModule
|
|
|
unsigned char Connector2FwRev[32]; //Connector2 module firmware version
|
|
|
struct LED LedInfo; // LED configuration info
|
|
|
|
|
|
- // 0: Authorize idle, 1: Authorize wait, 2: Authorizing
|
|
|
- unsigned char AuthStatus; // 3: Authorize done, 4: Authorize end
|
|
|
- unsigned char AuthTarget; // Authorize Target Connector ID: 1 ~ 4, AutoSelection: 0xFF
|
|
|
- unsigned char AuthType; // 0: _AuthType_None, 1: _AuthType_RFID, 2: _AuthType_RemoteStart
|
|
|
- unsigned char AuthResult; // 0: _AuthResult_None, 1: _AuthResult_Valid, 2: _AuthResult_Invalid
|
|
|
+ AuthorizingInfoData AuthInfo;
|
|
|
DispenserSettingFlag Setting;
|
|
|
char FwFileName[128];
|
|
|
unsigned char ConnectionChannel;
|
|
@@ -826,8 +835,7 @@ struct ConnectorInfoData
|
|
|
unsigned char ParentDispensetIndex; // Parent Dispenser Index: 0 ~ 3
|
|
|
ConnectorParameter Parameter;
|
|
|
|
|
|
- unsigned char AuthorizingType;
|
|
|
- unsigned char AuthorizingResult; // 0: _AuthResult_None, 1: _AuthResult_Valid, 2: _AuthResult_Invalid
|
|
|
+ AuthorizingInfoData AuthInfo;
|
|
|
struct ChargingInfoData GeneralChargingData;
|
|
|
struct WARNING_CODE_INFO WarningInfo;
|
|
|
|
|
@@ -859,14 +867,11 @@ typedef union
|
|
|
unsigned int SettingValue;
|
|
|
struct
|
|
|
{
|
|
|
- unsigned int StartAuthorize:1; // 0: idle, 1: authorizing
|
|
|
- unsigned int AuthorizingCompleted:1; // 0: not yet, 1: authorizing completed
|
|
|
unsigned int DispenserDisconnection:1; // 0: no connection, 1: dispenser connected
|
|
|
- unsigned int BackendAuthorized:1; // 0: local authorized, 1: backend authorized
|
|
|
unsigned int FlashConfigChanged:1; // 0: no effect, 1: flash config has changed
|
|
|
unsigned int EnableWriteFlash:1; // 0: no effect, 1: enable to write flash after timeout
|
|
|
unsigned int CleanWiringInfo:1; // 0: no effect, 1: clean wiring info
|
|
|
- unsigned int res:25;
|
|
|
+ unsigned int res:28;
|
|
|
}bits;
|
|
|
}CabinetSettingFlag;
|
|
|
|
|
@@ -992,7 +997,7 @@ struct SysInfoData
|
|
|
CabinetMiscCommand CabinetMicsStatus;
|
|
|
struct LocalSharingInfo localSharingInfo; // Local power sharing info structure
|
|
|
DC_Meter_Info DcMeterInfo[4];
|
|
|
- unsigned char OTPTemp; // OTP Temperature
|
|
|
+ unsigned char OTPTemp; // OTP Temperature
|
|
|
unsigned char OTPTempR; // OTP Recovery Temperature
|
|
|
};
|
|
|
|
|
@@ -1306,7 +1311,7 @@ char AlarmStatusCode[160][6]=
|
|
|
"012325", // Connector 2 detects abnormal voltage on the output line
|
|
|
"012326", // System task is lost
|
|
|
"012327", // DC input ovp
|
|
|
- "012328", // reserved
|
|
|
+ "012328", // DC input uvp
|
|
|
"012329", // reserved
|
|
|
"012330", // reserved
|
|
|
"012331", // reserved
|
|
@@ -1492,7 +1497,8 @@ struct AlarmCodeData
|
|
|
unsigned char SystemTaskLost:1; //bit 6
|
|
|
unsigned char DcInputOVP:1; //bit 7
|
|
|
//AlarmVal[16]
|
|
|
- unsigned char :8; //reserved bit 0 ~ bit 7
|
|
|
+ unsigned char DcInputUVP:1; //bit 0
|
|
|
+ unsigned char :7; //reserved bit 0 ~ bit 7
|
|
|
//AlarmVal[17]
|
|
|
unsigned char :8; //reserved bit 0 ~ bit 7
|
|
|
//AlarmVal[18]
|
|
@@ -4562,9 +4568,9 @@ struct StructSignedFirmwareStatusNotification
|
|
|
|
|
|
struct StructSessionTarget
|
|
|
{
|
|
|
- unsigned char targetSoc; // Unit: %, 0 is unlimit
|
|
|
- unsigned short targetEnergy; // Unit: KWH 0 is unlimit
|
|
|
- unsigned short targetDuration; // Unit: Minutes 0 is unlimit
|
|
|
+ unsigned char targetSoc; // Unit: %, 0 is unlimit
|
|
|
+ unsigned short targetEnergy; // Unit: KWH 0 is unlimit
|
|
|
+ unsigned short targetDuration; // Unit: Minutes 0 is unlimit
|
|
|
};
|
|
|
|
|
|
struct OCPP16Data
|
|
@@ -4755,7 +4761,7 @@ struct OCPP16Data
|
|
|
struct StructSecurityEventNotification SecurityEventNotification;
|
|
|
struct StructSignCertificate SignCertificate;
|
|
|
struct StructSignedFirmwareStatusNotification SignedFirmwareStatusNotification;
|
|
|
- struct StructSessionTarget SessionTarget[CONNECTOR_QUANTITY];
|
|
|
+ struct StructSessionTarget SessionTarget[CONNECTOR_QUANTITY];
|
|
|
};
|
|
|
|
|
|
|
|
@@ -6134,7 +6140,7 @@ struct OCPP20Data
|
|
|
struct UpdateFirmware_20 UpdateFirmware;
|
|
|
struct ChargingProfileType SmartChargingProfile[CONNECTOR_QUANTITY];
|
|
|
struct ChargingProfileType MaxChargingProfile;
|
|
|
- struct StructSessionTarget SessionTarget[CONNECTOR_QUANTITY];
|
|
|
+ struct StructSessionTarget SessionTarget[CONNECTOR_QUANTITY];
|
|
|
};
|
|
|
|
|
|
#endif // DEFINE_H_
|