12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510 |
- #ifndef DEFINE_H_
- #define DEFINE_H_
- #include "version.h"
- #include <stdlib.h>
- #include <stdio.h>
- #include <time.h>
- #include <sys/timeb.h>
- #define ENABLE 1
- #define DISABLE 0
- #define PASS 1
- #define FAIL 0
- #ifdef AWCCS
- #undef CONNECTOR_TEMP_DETECTION
- #define CCS_ENERGY_TRANSFER_MODE MODE_AC_SINGLE_PHASE_CORE
- #else
- #define CCS_ENERGY_TRANSFER_MODE MODE_DC_EXTENDED
- #endif
- #define SUPPORT_DIN70122_ISO15118_4 0
- #define MIN_SUPPORTED_CURRENT 3
- #define CONNECTOR_TEMP_DETECTION
- #ifdef SUPPORT_ISO15118_VAS
- #define SUPPORT_TLS_CONNECTION
- #endif
- #ifdef SUPPORT_ISO15118_PnC
- #define SUPPORT_TLS_CONNECTION
- #endif
- #define SIZE_OF_LOG_BUFFER 256
- #define PARAMETER_NORMAL_MODE ENABLE
-
- #define MANUAL_SET_EV_TARGET_FUNCTION DISABLE
- #define SUDO_EV_TARGET_VOLTAGE 500
- #define SUDO_EV_TARGET_CURRENT 60
- #define CABLECHECK_TARGET_VOLTAGE 500
- #define CABLECHECK_TARGET_CURRENT 2
- #define PRECHARGE_TARGET_CURRENT 2
- #define CCS_AC_EVSEID "PHIHONG_CCS_AC_001"
- #define CCS_DC_EVSEID "PHIHONG_CCS_DC_001"
- #define CCS_AC_METER_ID "ABCDE-0123456789-0123456789"
- #define CCS_AC_SIG_METER_READING "SIG_METER_READING_ABCDE-0123456789"
- #define V2GT_MSG_PROTOCOL_DIN70121 0
- #define V2GT_MSG_PROTOCOL_ISO15118_2014 1
- #define V2GT_MSG_PROTOCOL_ISO15118_2018 2
- #define V2GT_MSG_PROTOCOL_HIGHEST_PRIORITY 255
- #define V2GT_MSG_PROTOCOL_PREFERENCE V2GT_MSG_PROTOCOL_HIGHEST_PRIORITY
-
-
- #define SET_NO_PWM_IF_NOT_GET_PERMISSION 0
- #define SET_5_PWM_ONCE_RX_CM_SLAC_PARM_REQ 1
- #define SET_5_PWM_ONCE_GET_PERMISSION_IN_AUTHORIZATIONRES 2
- #define FIRMWARE_VERSION_COMPILE_SETTING_RELEASE_MODE ENABLE
- #define NEW_SLAC_ARCHITECTURE_SWITCH ENABLE
- #define CAN_RAMDOM_MATCHING_ID_MECHANISM ENABLE
- #define CAN_RX_TIMEOUT_MECHANISM DISABLE
- #define SLAC_FIRST_RESPONSE_METHOD SET_5_PWM_ONCE_RX_CM_SLAC_PARM_REQ
- #define TCPDUMP_PACKETS_SNIFFER_SWITCH DISABLE
- #define CANDUMP_PACKETS_SNIFFER_SWITCH DISABLE
- #define DYNAMIC_ETH0_IP_MECHANISM ENABLE
- #define CP_PROTECTION_MECHANISM DISABLE
- #define PP_PROTECTION_MECHANISM DISABLE
- #define SUDO_PSD_PARAMETER_MECHANISM ENABLE
- #define TESLA_SLOW_INCREASE_CURRENT_FUNCTION DISABLE
- #define V2G_SECC_TIMEOUT_PROTECTION ENABLE
- #define PATCH_FOR_BMW_I3_BUG_EVSEMAXIMUMVOLTAGELIMIT_599V ENABLE
- #define EV_NORMAL_STOP 1
- #define EV_EMERGENCY_STOP 2
- #define GFD_Invalid 0
- #define GFD_Valid 1
- #define GFD_Warning 2
- #define GFD_Fault 3
- #define GFD_No_IMD 4
- #define ETH0_PORT_BASE 20
- #define MODE_AC_SINGLE_PHASE_CORE 0
- #define MODE_AC_THREE_PHASE_CORE 1
- #define MODE_DC_CORE 2
- #define MODE_DC_EXTENDED 3
- #define MODE_DC_COMBO_CORE 4
- #define MODE_DC_UNIQUE 5
- #define IMAGE_TYPE_KERNEL_CONFIGURATION_DTB 1
- #define IMAGE_TYPE_BOOTLOADER_UBOOT 2
- #define IMAGE_TYPE_OS_KERNEL_ZIMAGE 3
- #define IMAGE_TYPE_ROOT_FILESYSTEM_RAMDISK 4
- #define IMAGE_TYPE_ROOT_APP_ZIP 5
- #define IMAGE_TYPE_BOOTLOADER_MLO_SPL 6
- #define IMAGE_TYPE_USER_CONFIGURATION 7
- #define CHAdeMO_QUANTITY 1
- #define CCS_QUANTITY 1
- #define GB_QUANTITY 1
- #define SystemLogMessage
- #define CSUCOMMDC_TASK_FLAG (ShmInternalComm->InternalCommUnion.bits)
- #define EVCOMM_SYS_INFO (ShmSysConfigAndInfo->SysInfo.CcsChargingData[0])
- #define SLAC_INFO (ShmSysConfigAndInfo->SysInfo.CcsChargingData[0].evcc_slac_data)
- #define CCS_HANDSHAKE_PROTOCOLS (ccs_handshake.supportedAppProtocolReq.AppProtocol)
- #define GPIO_SYS_DIR "/sys/class/gpio"
- #define GPIO_2_23_AM_IO_1 87
- #define DEBUG_CCS_EVEM_MESSAGE_SHOW ENABLE
- #if DEBUG_CCS_EVEM_MESSAGE_SHOW == ENABLE
- #define DEBUG_MAIN_PRINTF printf
- #define DEBUG_EVCOMM_PRINTF printf
- #else
- #define DEBUG_MAIN_PRINTF(...)
- #define DEBUG_EVCOMM_PRINTF(...)
- #endif
- #define EVSE_STATUS_NOT_READY_FOR_PRECHARGE 0
- #define EVSE_STATUS_READY_FOR_PRECHARGE 2
- #define EVSE_STATUS_READY_FOR_ENERGY_TRANSFER 3
- #define ShmSysConfigAndInfoKey 3001
- #define ShmCcsCommKey 3004
- #define ShmStatusCodeKey 3005
- #define ShmInternalCommKey 3009
- #define ShmInternalCommACKey 3007
- struct EthConfigData
- {
- unsigned char EthDhcpClient;
- unsigned char EthMacAddress[18];
- unsigned char EthIpAddress[16];
- unsigned char EthSubmaskAddress[16];
- unsigned char EthGatewayAddress[16];
- };
- struct WifiConfigData
- {
- unsigned char WifiMode;
- unsigned char WifiSsid[256];
- unsigned char WifiPassword[256];
- int WifiRssi;
- unsigned char WifiDhcpServer;
- unsigned char WifiDhcpClient;
- unsigned char WifiMacAddress[18];
- unsigned char WifiIpAddress[16];
- unsigned char WifiSubmaskAddress[16];
- unsigned char WifiGatewayAddress[16];
- };
- struct TeleConfigData
- {
- unsigned char TelcomApn[256];
- int TelcomRssi;
- unsigned char TelcomChapPapId[256];
- unsigned char TelcomChapPapPwd[256];
- unsigned char TelcomModemImei[16];
- unsigned char TelcomSimImsi[16];
- unsigned char TelcomSimStatus;
- unsigned char TelcomModemMode;
- unsigned char TelcomIpAddress[16];
- };
- struct SysConfigData
- {
-
- unsigned char ModelName[64];
- unsigned char SerialNumber[64];
- unsigned char SystemId[128];
- unsigned char SystemDateTime[32];
- unsigned char AuthorisationMode;
- unsigned char DefaultLanguage;
- unsigned char RfidCardNumEndian;
- unsigned short AcPlugInTimes;
- unsigned short GbPlugInTimes;
- unsigned short Ccs1PlugInTime;
- unsigned short Ccs2PlugInTimes;
- unsigned short ChademoPlugInTimes;
-
- unsigned short MaxChargingEnergy;
- unsigned short MaxChargingPower;
- unsigned short MaxChargingCurrent;
- unsigned short MaxChargingDuration;
- unsigned char PhaseLossPolicy;
- unsigned char LocalWhiteCard[10][32];
- unsigned char UserId[32];
-
- unsigned char FtpServer[32];
- struct EthConfigData Eth0Interface;
- struct EthConfigData Eth1Interface;
- struct WifiConfigData AthInterface;
- struct TeleConfigData TelecomInterface;
-
- unsigned int BackendConnTimeout;
- unsigned char OfflinePolicy;
- unsigned short OfflineMaxChargeEnergy;
- unsigned short OfflineMaxChargeDuration;
- unsigned char OcppServerURL[512];
- unsigned char ChargeBoxId[128];
- unsigned int Checksum;
- };
- #define SLAC_EVSE_MAC_LENGTH 6
- #define SLAC_EVMAC_LENGTH 6
- #define SLAC_RUNID_LENGTH 8
- #define SLAC_AAG_LENGTH 64
- struct EVCC_SLAC_DATA_ARRAY_TYPE {
- unsigned char EvMac[SLAC_EVMAC_LENGTH];
- unsigned char RunID[SLAC_RUNID_LENGTH];
- unsigned short AAG[SLAC_AAG_LENGTH];
- unsigned char StartAttenCharCnt;
- unsigned char StartAttenCharErr;
- unsigned char MnbcSoundNum;
- unsigned char MnbcSoundCnt;
- unsigned char AttenProfileCnt;
- unsigned char AagGroupsNum;
- unsigned char AttenCharRspCnt;
- unsigned char ValidateReqCnt;
- unsigned char MatchReqNum;
- float AAG_quality_ori;
- float AAG_quality_refined;
- };
- #define EVCC_SLAC_DATA_ARRAY_TYPE_ARRAY_SIZE 20
- struct EVCC_SLAC_DATA_TYPE {
- unsigned char arrayLen;
- struct EVCC_SLAC_DATA_ARRAY_TYPE array[EVCC_SLAC_DATA_ARRAY_TYPE_ARRAY_SIZE];
- };
- struct ChargingInfoData {
- float MaximumChargingVoltage;
- float AvailableChargingCurrent;
- float AvailableChargingPower;
- float PresentChargingVoltage;
- float PresentChargingCurrent;
- float PresentChargingPower;
- float PresentChargedEnergy;
- int PresentChargedDuration;
- int RemainChargingDuration;
- float EvBatteryMaxVoltage;
- float EvBatteryMaxCurrent;
- float EvBatteryMaxPower;
- float EvBatterytargetVoltage;
- float EvBatterytargetCurrent;
- int EvBatterySoc;
- float EvBatteryCapacity;
- float EvBatteryEngergyRequest;
- unsigned char ConnectorPlugIn;
- unsigned char ConnectorLocked;
- float CpVoltage;
- unsigned char CpState;
- unsigned char CpDuty;
- float PpVoltage;
- unsigned char EVSEPrechargeStatus;
- unsigned char IsolationStatus;
- unsigned char DC_EVSEStatus;
- unsigned char SwitchCpStateE_status;
- unsigned char QCA7K_SetKeyDone;
- unsigned char CpState_err;
- unsigned char CpState_err_logged;
- unsigned char CableCheckPreCountDownDone;
- unsigned char End_Process_inused;
- struct timeb V2G_SECC_CableCheck_Timer_Start;
- struct timeb V2G_SECC_CableCheck_Timer_End;
- struct timeb V2G_SECC_Precharge_Timer_Start;
- struct timeb V2G_SECC_Precharge_Timer_End;
- struct timeb V2G_SECC_CurrentDemand_Timer_Start;
- struct timeb V2G_SECC_CurrentDemand_Timer_End;
- struct timeb V2G_SECC_ChargingStatus_Timer_Start;
- struct timeb V2G_SECC_ChargingStatus_Timer_End;
- struct timeb V2G_SECC_WeldingDetection_Timer_Start;
- struct timeb V2G_SECC_WeldingDetection_Timer_End;
- struct timeb V2G_SECC_Sequence_Timer_Start;
- struct timeb V2G_SECC_Sequence_Timer_End;
- struct timeb V2G_SECC_Msg_Timer_Start;
- struct timeb V2G_SECC_Msg_Timer_End;
- unsigned short SDP_TCP_Server_Port_active;
- unsigned char SessionID[8];
- unsigned char V2G_Rx_Msg;
- unsigned char SequenceError;
- unsigned char SupportedAppProtocol_result;
- char CM_ATTEN_CHAR_IND_retry;
- struct EVCC_SLAC_DATA_TYPE evcc_slac_data;
- unsigned char State_Change_Ignored_Notice;
- unsigned char EVCCID[8];
- unsigned char EVCCID_length;
- float AC_EVSENominalVoltage;
-
- float MaximumChargingVoltage_pre;
- float AvailableChargingCurrent_pre;
- float AvailableChargingPower_pre;
- float PresentChargingVoltage_pre;
- float PresentChargingCurrent_pre;
- float PresentChargingPower_pre;
- float PresentChargedEnergy_pre;
- int PresentChargedDuration_pre;
- int RemainChargingDuration_pre;
- float EvBatteryMaxVoltage_pre;
- float EvBatteryMaxCurrent_pre;
- float EvBatteryMaxPower_pre;
- float EvBatterytargetVoltage_pre;
- float EvBatterytargetCurrent_pre;
- int EvBatterySoc_pre;
- float EvBatteryCapacity_pre;
- float EvBatteryEngergyRequest_pre;
- unsigned char ConnectorPlugIn_pre;
- unsigned char ConnectorPlugIn_new;
- unsigned char ConnectorLocked_pre;
- float CpVoltage_pre;
- unsigned char CpState_pre;
- unsigned char CpDuty_pre;
- float PpVoltage_pre;
- unsigned char EVSEPrechargeStatus_pre;
- unsigned char IsolationStatus_pre;
- unsigned char DC_EVSEStatus_pre;
- unsigned char SwitchCpStateE_status_pre;
- unsigned char V2G_Rx_Msg_pre;
- float AC_EVSENominalVoltage_pre;
- };
- struct SysInfoData
- {
-
- unsigned char SystemStatus;
- unsigned char FactoryConfiguration;
- float InputVoltageR;
- float InputVoltageS;
- float InputVoltageT;
- unsigned int SystemFanRotaSpeed;
- unsigned int PsuFanRotaSpeed;
- unsigned char AuxPower5V;
- unsigned char AuxPower12V;
- unsigned char AuxPower24V;
- unsigned char AuxPower48V;
- unsigned char CsuHwRev[32];
- unsigned char CsuBootLoadFwRev[32];
- unsigned char CsuKernelFwRev[32];
- unsigned char CsuRootFsFwRev[32];
- unsigned char CsuPrimFwRev[32];
- unsigned char LcmHwRev[32];
- unsigned char LcmFwRev[32];
- unsigned char PsuHwRev[32];
- unsigned char PsuPrimFwRev[32];
- unsigned char PsuSecFwRev[32];
- unsigned char AuxPwrHwRev[32];
- unsigned char AuxPwrFwRev[32];
- unsigned char FanModuleHwRev[32];
- unsigned char FanModuleFwRev[32];
- unsigned char RelayModuleHwRev[32];
- unsigned char RelayModuleFwRev[32];
- unsigned char TelcomModemFwRev[32];
- int SystemAmbientTemp;
- int SystemCriticalTemp;
- int CcsConnectorTemp;
- int PsuAmbientTemp;
-
- struct ChargingInfoData ChademoChargingData[CHAdeMO_QUANTITY];
- struct ChargingInfoData CcsChargingData[CCS_QUANTITY];
- struct ChargingInfoData GbChargingData[GB_QUANTITY];
-
- unsigned char InternetConn;
-
- unsigned char OcppConnStatus;
- };
- struct SysConfigAndInfo
- {
- struct SysConfigData SysConfig;
- struct SysInfoData SysInfo;
- };
- struct FaultCodeData
- {
- unsigned char PreviousFaultVal[4];
- union
- {
- unsigned char FaultVal[4];
- struct
- {
-
- unsigned char ChademoOutputFuseBlew : 1;
- unsigned char CcsOutputFuseBlew : 1;
- unsigned char GbOutputFuseBlew : 1;
- unsigned char RcdSelfTestFail : 1;
- unsigned char AcInputContactor1Welding : 1;
- unsigned char AcInputContactor1DrivingFault : 1;
- unsigned char AcInputContactor2Welding : 1;
- unsigned char AcInputContactor2DrivingFault : 1;
-
- unsigned char AcOutputRelayWelding : 1;
- unsigned char AcOutputRelayDrivingFault : 1;
- unsigned char ChademoOutputRelayWelding : 1;
- unsigned char ChademoOutputRelayDrivingFault : 1;
- unsigned char CcsOutputRelayWelding : 1;
- unsigned char CcsOutputRelayDrivingFault : 1;
- unsigned char GbOutputRelayWelding : 1;
- unsigned char GbOutputRelayDrivingFault : 1;
-
- unsigned char AcConnectorTempSensorBroken : 1;
- unsigned char ChademoConnectorTempSensorBroken : 1;
- unsigned char CcsConnectorTempSensorBroken : 1;
- unsigned char GbConnectorTempSensorBroken : 1;
- unsigned char WiFiModuleBroken : 1;
- unsigned char Telecom4GModuleBroken : 1;
- unsigned char AuxPowerModuleBroken : 1;
- unsigned char RelayControlModuleBroken : 1;
-
- unsigned char ChademoConnectorLockFail : 1;
- unsigned char GbConnectorLockFail : 1;
- unsigned char AcConnectorLockFail : 1;
- unsigned char ChademoModuleBroken : 1;
- unsigned char CcsModuleBroken : 1;
- unsigned char GbModuleBroken : 1;
- unsigned char PsuModuleBroken : 1;
- unsigned char : 1;
- } bits;
- } FaultEvents;
- };
- struct AlarmCodeData
- {
- unsigned char PreviousAlarmVal[8];
- union
- {
- unsigned char AlarmVal[8];
- struct
- {
-
- unsigned char SystemL1InputOVP : 1;
- unsigned char SystemL2InputOVP : 1;
- unsigned char SystemL3InputOVP : 1;
- unsigned char SystemL1InputUVP : 1;
- unsigned char SystemL2InputUVP : 1;
- unsigned char SystemL3InputUVP : 1;
- unsigned char PsuL1InputOVP : 1;
- unsigned char PsuL2InputOVP : 1;
-
- unsigned char PsuL3InputOVP : 1;
- unsigned char PsuL1InputUVP : 1;
- unsigned char PsuL2InputUVP : 1;
- unsigned char PsuL3InputUVP : 1;
- unsigned char SystemL1InputDrop : 1;
- unsigned char SystemL2InputDrop : 1;
- unsigned char SystemL3InputDrop : 1;
- unsigned char SystemAcOutputOVP : 1;
-
- unsigned char SystemAcOutputOCP : 1;
- unsigned char SystemChademoOutputOVP : 1;
- unsigned char SystemChademoOutputOCP : 1;
- unsigned char SystemCcsOutputOVP : 1;
- unsigned char SystemCcsOutputOCP : 1;
- unsigned char SystemGbOutputOVP : 1;
- unsigned char SystemGbOutputOCP : 1;
- unsigned char SystemAmbientOTP : 1;
-
- unsigned char SystemCriticalPointOTP : 1;
- unsigned char PsuAmbientOTP : 1;
- unsigned char PsuCriticalPointOTP : 1;
- unsigned char AuxPowerModuleOTP : 1;
- unsigned char RelayBoardOTP : 1;
- unsigned char ChademoConnectorOTP : 1;
- unsigned char CcsConnectorOTP : 1;
- unsigned char GbConnectorOTP : 1;
-
- unsigned char AcConnectorOTP : 1;
- unsigned char RcdTrip : 1;
- unsigned char ChademoGfdTrip : 1;
- unsigned char CcsGfdTrip : 1;
- unsigned char GbGfdTrip : 1;
- unsigned char SpdTrip : 1;
- unsigned char MainPowerBreakerTrip : 1;
- unsigned char AuxPowerBreakerTrip : 1;
-
- unsigned char PsuCommunicationFail : 1;
- unsigned char WiFiModuleCommFail : 1;
- unsigned char Telecom4GModuleCommFail : 1;
- unsigned char RfidModuleCommFail : 1;
- unsigned char BluetoothModuleCommFail : 1;
- unsigned char LcmModuleCommFail : 1;
- unsigned char AuxPowerModuleCommFail : 1;
- unsigned char RelayBoardCommFail : 1;
-
- unsigned char CcsModuleCommFail : 1;
- unsigned char ChademoModuleCommFail : 1;
- unsigned char GbModuleCommFail : 1;
- unsigned char EmergencyStopTrip : 1;
- unsigned char DoorOpen : 1;
- unsigned char SystemFanDecay : 1;
- unsigned char FailToCreateShareMemory : 1;
- unsigned char CsuInitFailed : 1;
-
- unsigned char : 8;
- } bits;
- } AlarmEvents;
- };
- struct InfoCodeData
- {
- unsigned char PreviousInfoVal[8];
- union
- {
- unsigned char InfoVal[8];
- struct
- {
-
- unsigned char NormalStopChargingByUser : 1;
- unsigned char ChargingTimesUp : 1;
- unsigned char ReplaceSystemAirFilter : 1;
- unsigned char ReachChademoMaxPluggingTimes : 1;
- unsigned char ReachCcsMaxPluggingTimes : 1;
- unsigned char ReachGbMaxPluggingTimes : 1;
- unsigned char ReachAcMaxPluggingTimes : 1;
- unsigned char CsuFimrwareUpdateFail : 1;
-
- unsigned char ChademoModuleFimrwareUpdateFail : 1;
- unsigned char CcsModuleFimrwareUpdateFail : 1;
- unsigned char GbModuleFimrwareUpdateFail : 1;
- unsigned char AuxPowerModuleFimrwareUpdateFail : 1;
- unsigned char RelayBoardFimrwareUpdateFail : 1;
- unsigned char LcmModuleFimrwareUpdateFail : 1;
- unsigned char BluetoothModuleFimrwareUpdateFail : 1;
- unsigned char WiFiModuleFimrwareUpdateFail : 1;
-
- unsigned char Telocom4GModuleFimrwareUpdateFail : 1;
- unsigned char PsuFimrwareUpdateFail : 1;
- unsigned char RfidModuleFimrwareUpdateFail : 1;
- unsigned char ConfiguredByUsbFlashDrive : 1;
- unsigned char ConfiguredByBackend : 1;
- unsigned char ConfiguredByWebpage : 1;
- unsigned char InternetDisconnectViaEthernet : 1;
- unsigned char InternetDisconnectViaWiFi : 1;
-
- unsigned char InternetDisconnectVia4Gi : 1;
- unsigned char ApDisconnectViaWiFi : 1;
- unsigned char ApnDisconnectVia4Gi : 1;
- unsigned char : 5;
-
- unsigned char ChademoSeccCommFail : 1;
- unsigned char CcsSeccCommFail : 1;
- unsigned char GbSeccCommFail : 1;
- unsigned char PilotFault : 1;
- unsigned char ChademoBatteryMalfun : 1;
- unsigned char ChademoNoPermission : 1;
- unsigned char ChademoBatteryIncompatibility : 1;
- unsigned char ChademoBatteryOVP : 1;
-
- unsigned char ChademoBatteryUVP : 1;
- unsigned char ChademoBatteryOTP : 1;
- unsigned char ChademoBatteryCurrentDiff : 1;
- unsigned char ChademoBatteryVoltageDiff : 1;
- unsigned char ChademoShiftPosition : 1;
- unsigned char ChademoBatteryOtherFault : 1;
- unsigned char ChademoChargingSystemError : 1;
- unsigned char ChademoEvNormalStop : 1;
-
- unsigned char : 8;
-
- unsigned char BackendDisconnectedViaEthernet : 1;
- unsigned char BackendDisconnectViaWiFi : 1;
- unsigned char BackendDisconnectVia4G : 1;
- unsigned char BackendRemoteStart : 1;
- unsigned char BackendRemoteStop : 1;
- unsigned char BackendRemoteReset : 1;
- unsigned char : 2;
- } bits;
- } InfoEvents;
- };
- struct StatusCodeData {
- unsigned char PresentStatusCode[10][6];
- struct FaultCodeData FaultCode;
- struct AlarmCodeData AlarmCode;
- struct InfoCodeData InfoCode;
- };
- typedef enum boolean { FALSE, TRUE } BOOL;
- enum ResponseCodeType_DIN70121 {
- OK_DIN70121 = 0,
- OK_NewSessionEstablished_DIN70121 = 1,
- OK_OldSessionJoined_DIN70121 = 2,
- OK_CertificateExpiresSoon_DIN70121 = 3,
- FAILED_DIN70121 = 4,
- FAILED_SequenceError_DIN70121 = 5,
- FAILED_ServiceIDInvalid_DIN70121 = 6,
- FAILED_UnknownSession_DIN70121 = 7,
- FAILED_ServiceSelectionInvalid_DIN70121 = 8,
- FAILED_PaymentSelectionInvalid_DIN70121 = 9,
- FAILED_CertificateExpired_DIN70121 = 10,
- FAILED_SignatureError_DIN70121 = 11,
- FAILED_NoCertificateAvailable_DIN70121 = 12,
- FAILED_CertChainError_DIN70121 = 13,
- FAILED_ChallengeInvalid_DIN70121 = 14,
- FAILED_ContractCanceled_DIN70121 = 15,
- FAILED_WrongChargeParameter_DIN70121 = 16,
- FAILED_PowerDeliveryNotApplied_DIN70121 = 17,
- FAILED_TariffSelectionInvalid_DIN70121 = 18,
- FAILED_ChargingProfileInvalid_DIN70121 = 19,
- FAILED_EVSEPresentVoltageToLow_DIN70121 = 20,
- FAILED_MeteringSignatureNotValid_DIN70121 = 21,
- FAILED_WrongEnergyTransferType_DIN70121 = 22
- };
- enum ResponseCodeType_ISO15118_2014 {
- OK_ISO15118_2014 = 0,
- OK_NewSessionEstablished_ISO15118_2014 = 1,
- OK_OldSessionJoined_ISO15118_2014 = 2,
- OK_CertificateExpiresSoon_ISO15118_2014 = 3,
- FAILED_ISO15118_2014 = 4,
- FAILED_SequenceError_ISO15118_2014 = 5,
- FAILED_ServiceIDInvalid_ISO15118_2014 = 6,
- FAILED_UnknownSession_ISO15118_2014 = 7,
- FAILED_ServiceSelectionInvalid_ISO15118_2014 = 8,
- FAILED_PaymentSelectionInvalid_ISO15118_2014 = 9,
- FAILED_CertificateExpired_ISO15118_2014 = 10,
- FAILED_SignatureError_ISO15118_2014 = 11,
- FAILED_NoCertificateAvailable_ISO15118_2014 = 12,
- FAILED_CertChainError_ISO15118_2014 = 13,
- FAILED_ChallengeInvalid_ISO15118_2014 = 14,
- FAILED_ContractCanceled_ISO15118_2014 = 15,
- FAILED_WrongChargeParameter_ISO15118_2014 = 16,
- FAILED_PowerDeliveryNotApplied_ISO15118_2014 = 17,
- FAILED_TariffSelectionInvalid_ISO15118_2014 = 18,
- FAILED_ChargingProfileInvalid_ISO15118_2014 = 19,
- FAILED_MeteringSignatureNotValid_ISO15118_2014 = 20,
- FAILED_NoChargeServiceSelected_ISO15118_2014 = 21,
- FAILED_WrongEnergyTransferMode_ISO15118_2014 = 22,
- FAILED_ContactorError_ISO15118_2014 = 23,
- FAILED_CertificateNotAllowedAtThisEVSE_ISO15118_2014 = 24,
- FAILED_CertificateRevoked_ISO15118_2014 = 25
- };
- enum ResponseCodeType_ISO15118_2018 {
- OK_ISO15118_2018 = 0,
- OK_NewSessionEstablished_ISO15118_2018 = 1,
- OK_OldSessionJoined_ISO15118_2018 = 2,
- OK_CertificateExpiresSoon_ISO15118_2018 = 3,
- OK_IsolationValid_ISO15118_2018 = 4,
- OK_IsolationWarning_ISO15118_2018 = 5,
- WARNING_CertificateExpired_ISO15118_2018 = 6,
- WARNING_NoCertificateAvailable_ISO15118_2018 = 7,
- WARNING_CertValidationError_ISO15118_2018 = 8,
- WARNING_CertVerificationError_ISO15118_2018 = 9,
- WARNING_ContractCanceled_ISO15118_2018 = 10,
- FAILED_ISO15118_2018 = 11,
- FAILED_SequenceError_ISO15118_2018 = 12,
- FAILED_ServiceIDInvalid_ISO15118_2018 = 13,
- FAILED_UnknownSession_ISO15118_2018 = 14,
- FAILED_ServiceSelectionInvalid_ISO15118_2018 = 15,
- FAILED_SignatureError_ISO15118_2018 = 16,
- FAILED_IdentificationSelectionInvalid_ISO15118_2018 = 17,
- FAILED_ChallengeInvalid_ISO15118_2018 = 18,
- FAILED_WrongChargeParameter_ISO15118_2018 = 19,
- FAILED_IsolationFault_ISO15118_2018 = 20,
- FAILED_PowerDeliveryNotApplied_ISO15118_2018 = 21,
- FAILED_TariffSelectionInvalid_ISO15118_2018 = 22,
- FAILED_ChargingProfileInvalid_ISO15118_2018 = 23,
- FAILED_MeteringSignatureNotValid_ISO15118_2018 = 24,
- FAILED_NoChargeServiceSelected_ISO15118_2018 = 25,
- FAILED_WrongEnergyTransferMode_ISO15118_2018 = 26,
- FAILED_ContactorError_ISO15118_2018 = 27,
- FAILED_CertificateRevoked_ISO15118_2018 = 28,
- FAILED_CertificateNotYetValid_ISO15118_2018 = 29
- };
- enum EVSENotificationType { None = 0, StopCharging = 1, ReNegotiation = 2};
- enum ServiceCategoryType { EVCharging = 0, Internet = 1, ContractCertificate = 2, OtherCustom = 3};
- enum PaymentOptionType { Contract = 0, ExternalPayment = 1};
- enum EnergyTransferModeType {
- AC_single_phase_core = 0,
- AC_three_phase_core = 1,
- DC_core = 2,
- DC_extended = 3,
- DC_combo_core = 4,
- DC_unique = 5
- };
- enum unitSymbolType_DIN70121 {
- H_DIN70121 = 0,
- M_DIN70121 = 1,
- S_DIN70121 = 2,
- A_DIN70121 = 3,
- AH_DIN70121 = 4,
- V_DIN70121 = 5,
- VA_DIN70121 = 6,
- W_DIN70121 = 7,
- WS_DIN70121 = 8,
- WH_DIN70121 = 9};
- enum unitSymbolType_ISO15118_2014 {
- h_ISO15118_2014 = 0,
- m_ISO15118_2014 = 1,
- s_ISO15118_2014 = 2,
- A_ISO15118_2014 = 3,
- V_ISO15118_2014 = 4,
- W_ISO15118_2014 = 5,
- Wh_ISO15118_2014 = 6
- };
- enum ProcessingType { Finished = 0, Ongoing = 1, Ongoing_WaitingForCustomerInteraction = 2};
- enum EVSEProcessingType_DIN70121 { Finished_DIN70121 = 0, Ongoing_DIN70121 = 1};
- enum EVSEProcessingType_ISO15118_2014 { Finished_ISO15118_2014 = 0, Ongoing_ISO15118_2014 = 1, Ongoing_WaitingForCustomerInteraction_ISO15118_2014=2 };
- enum DC_EVErrorCodeType {
- NO_ERROR = 0,
- FAILED_RESSTemperatureInhibit = 1,
- FAILED_EVShiftPosition = 2,
- FAILED_ChargerConnectorLockFault = 3,
- FAILED_EVRESSMalfunction = 4,
- FAILED_ChargingCurrentdifferential = 5,
- FAILED_ChargingVoltageOutOfRange = 6,
- Reserved_A = 7,
- Reserved_B = 8,
- Reserved_C = 9,
- FAILED_ChargingSystemIncompatibility = 10,
- NoData = 11
- };
- enum IsolationLevelType_DIN70121 {
- Invalid_DIN70121 = 0,
- Valid_DIN70121 = 1,
- Warning_DIN70121 = 2,
- Fault_DIN70121 = 3
- };
- enum IsolationLevelType_ISO15118_2014 {
- Invalid_ISO15118_2014 = 0,
- Valid_ISO15118_2014 = 1,
- Warning_ISO15118_2014 = 2,
- Fault_ISO15118_2014 = 3,
- No_IMD_ISO15118_2014 = 4
- };
- enum DC_EVSEStatusCodeType {
- EVSE_NotReady = 0,
- EVSE_Ready = 1,
- EVSE_Shutdown = 2,
- EVSE_UtilityInterruptEvent = 3,
- EVSE_IsolationMonitoringActive = 4,
- EVSE_EmergencyShutdown = 5,
- EVSE_Malfunction = 6,
- Reserved_8 = 7,
- Reserved_9 = 8
- };
- enum ScheduleOriginType { EV = 0, SA = 1};
- enum ChargeProgressType_ISO15118_2014 {start_ISO15118_2014 = 0, Stop_ISO15118_2014 = 1, Renegotiate_ISO15118_2014 = 2};
- enum ChargeProgressType_ISO15118_2018 {start_ISO15118_2018 = 0, Renegotiate_ISO15118_2018 = 1, Standby_ISO15118_2018 = 2, Stop_ISO15118_2018 = 3};
- enum evOperationType {Charge = 0, Discharge = 1, Standby = 2};
- enum mechanicalChargingDeviceStatusType {Home = 0, Moving = 1, EndPosition = 2};
- enum EV_CP_StatusType {A = 0, B = 1, C = 2, D = 3, E = 4, F = 5};
- enum EV_Error_Status_CodeType { No_EV_Error = 0, EV_FAILED_EmergencyEvent = 1, EV_FAILED_Breaker = 2, EV_FAILED_RESSTemperatureInhibit = 3,
- EV_FAILED_RESS = 4, EV_FAILED_ChargingCurrentDifferential = 5, EV_FAILED_ChargingVoltageOutOfRange = 6,
- Reserved_by_ISO_1 = 7, Reserved_by_ISO_2 = 8, Reserved_by_ISO_3 = 9, OEM1 = 10,
- OEM2 = 11, OEM3 = 12, OEM4 = 13};
- enum IsolationStatusType { Invalid = 0, Safe = 1, Warning = 2, Fault = 3};
- enum ChargingSessionType { Terminate = 0, Pause = 1};
- enum CostKindType { relativePricePercentage = 0, RenewableGenerationPercentage = 1, CarbonDioxideEmission = 2};
- enum MsgFlowStatus {
- IDLE = 0,
- CM_SLAC_PARM_REQ = 1,
- CM_SLAC_PARM_CONF = 2,
- CM_START_ATTEN_CHAR_IND = 3,
- CM_MNBC_SOUND_IND = 4,
- CM_ATTEN_CHAR_IND = 5,
- CM_ATTEN_CHAR_RSP = 6,
- CM_VALIDATE_REQ = 7,
- CM_VALIDATE_CNF = 8,
- CM_SLAC_MATCH_REQ = 9,
- CM_SLAC_MATCH_CNF = 10,
- CM_AMP_MAP_REQ = 11,
- CM_AMP_MAP_CNF = 12,
- CM_SET_KEY_REQ = 13,
- CM_SET_KEY_CNF = 14,
- SLACC_SDP_UDP_Connection = 15,
- SLACC_SDP_TCP_Connection = 16,
- SupportedAppProtocolRequest = 17,
- SupportedAppProtocolResponse = 18,
- SessionSetupRequest = 19,
- SessionSetupResponse = 20,
- ServiceDiscoveryRequest = 21,
- ServiceDiscoveryResponse = 22,
- ServiceDetailRequest = 23,
- ServiceDetailResponse = 24,
- ServiceAndPaymentSelectionRequest = 25,
- ServiceAndPaymentSelectionResponse = 26,
- PaymentDetailsRequest = 27,
- PaymentDetailsResponse = 28,
- AuthorizationRequest = 29,
- AuthorizationResponse = 30,
- CertificateUpdateRequest = 31,
- CertificateUpdateResponse = 32,
- CertificateInstallationRequest = 33,
- CertificateInstallationResponse = 34,
- ChargeParameterDiscoveryRequest = 35,
- ChargeParameterDiscoveryResponse = 36,
- CableCheckRequest = 37,
- CableCheckResponse = 38,
- PreChargeRequest = 39,
- PreChargeResponse = 40,
- PowerDeliveryRequestStart = 41,
- PowerDeliveryResponsetStart = 42,
- ChargingStatusRequest = 43,
- ChargingStatusResponse = 44,
- CurrentDemandRequest = 45,
- CurrentDemandResponse = 46,
- MeteringReceiptRequest = 47,
- MeteringReceiptResponse = 48,
- PowerDeliveryRequestStop = 49,
- PowerDeliveryResponseStop = 50,
- WeldingDetectionRequest = 51,
- WeldingDetectionResponse = 52,
- SessionStopRequest = 53,
- SessionStopResponse = 54,
- Performance_Timeout = 253,
- Sequence_Timeout = 254,
- Other_Fault = 255
- };
- struct PhysicalValueType_DIN70121 {
- int Multiplier;
- enum unitSymbolType_DIN70121 Unit;
- short Value;
- };
- struct PhysicalValueType_ISO15118_2014 {
- int Multiplier;
- enum unitSymbolType_ISO15118_2014 Unit;
- short Value;
- };
- struct PhysicalValueType_ISO15118_2018 //The final physical value is determined by: Value * 10 ^ Exponent [Unit]
- {
- int Exponent;
- short Value;
- };
- struct AppProtocolType {
- unsigned char ProtocolNamespace[100];
- unsigned int ProtocolNamespaceLen;
- unsigned int VersionNumberMajor;
- unsigned int VersionNumberMinor;
- unsigned char SchemaID;
- unsigned char Priority;
- };
- struct ACD_SSEnergyTransferModeType
- {
- unsigned char EVID[20];
- };
- struct EVSEStatusType
- {
- unsigned short NotificationMaxDelay;
- enum EVSENotificationType EVSENotification;
- };
- struct ServiceIDListType
- {
- unsigned short ServiceID[10];
- };
- struct PaymentOptionListType
- {
- enum PaymentOptionType PaymentOption[2];
- };
- struct ServiceTagType
- {
- unsigned short ServiceID;
- unsigned char ServiceName[32];
- enum ServiceCategoryType ServiceCategory;
- unsigned char ServiceScope[32];
- };
- struct ServiceType_DIN70121
- {
- struct ServiceTagType ServiceTag;
- BOOL FreeService;
- };
- struct ServiceType_ISO15118_2014
- {
- unsigned short ServiceID;
- unsigned char ServiceName[32];
- enum ServiceCategoryType ServiceCategory;
- unsigned char ServiceScope[64];
- BOOL FreeService;
- };
- struct SupportedEnergyTransferModeType
- {
- enum EnergyTransferModeType EnergyTransferMode[6];
- };
- struct ServiceChargeType
- {
- struct ServiceType_DIN70121 Services;
-
- enum EnergyTransferModeType EnergyTransferType;
- };
- struct ChargeServiceType
- {
- struct ServiceType_ISO15118_2014 Services;
- struct SupportedEnergyTransferModeType SupportedEnergyTransferMode;
- };
- struct ServiceListType
- {
- struct ServiceType_ISO15118_2014 Service[8];
- };
- struct IdentificationOptionListType
- {
- enum PaymentOptionType IdentificationOption[2];
- };
- struct ParameterType
- {
- unsigned char Name[32];
- struct PhysicalValueType_ISO15118_2014 PhysicalValue_ISO15118_2014;
- struct PhysicalValueType_ISO15118_2018 PhysicalValue_ISO15118_2018;
- };
- struct ParameterSetType
- {
- short ParameterSetID;
- struct ParameterType Parameter[16];
- };
- struct ServiceParameterListType
- {
- struct ParameterSetType ParameterSet[255];
- };
- struct WPT_SDlEnergyTransferModeType
- {
- struct ServiceParameterListType ServiceParameterList;
- };
- struct SelectedServiceType
- {
- unsigned short ServiceID;
- short ParameterSetID;
- };
- struct SelectedServiceListType
- {
- struct SelectedServiceType SelectedService[16];
- unsigned int SelectedServiceLen;
- };
- struct CertificateChainType
- {
- unsigned char Id[32];
- unsigned char Certificate[800];
- unsigned char SubCertificates[4][800];
- };
- struct PNC_AReqIdentificationModeType
- {
- unsigned char GenChallenge[16];
- unsigned char Id[32];
- };
- struct AC_EVChargeParameterType
- {
- unsigned int DepartureTime;
- struct PhysicalValueType_ISO15118_2014 EAmount;
- struct PhysicalValueType_ISO15118_2014 EVMaxVoltage;
- struct PhysicalValueType_ISO15118_2014 EVMaxCurrent;
- struct PhysicalValueType_ISO15118_2014 EVMinCurrent;
- };
- struct DC_EVStatusType_DIN70121
- {
- BOOL EVReady;
- BOOL EVCabinConditioning;
- BOOL EVRESSConiditioning;
- enum DC_EVErrorCodeType EVErrorCode;
- unsigned char EVRESSSOC;
- };
- struct DC_EVChargeParameterType_DIN70121
- {
- struct DC_EVStatusType_DIN70121 DC_EVStatus;
- struct PhysicalValueType_DIN70121 EVMaximumCurrentLimit;
- struct PhysicalValueType_DIN70121 EVMaximumPowerLimit;
- struct PhysicalValueType_DIN70121 EVMaximumVoltageLimit;
- struct PhysicalValueType_DIN70121 EVEnergyCapacity;
- struct PhysicalValueType_DIN70121 EVEnergyRequest;
- unsigned char FullSOC;
- unsigned char BulkSOC;
- };
- struct DC_EVStatusType_ISO15118_2014
- {
- BOOL EVReady;
- enum DC_EVErrorCodeType EVErrorCode;
- unsigned char EVRESSSOC;
- };
- struct DC_EVChargeParameterType_ISO15118_2014
- {
- unsigned int DepartureTime;
- struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
- struct PhysicalValueType_ISO15118_2014 EVMaximumCurrentLimit;
- struct PhysicalValueType_ISO15118_2014 EVMaximumPowerLimit;
- struct PhysicalValueType_ISO15118_2014 EVMaximumVoltageLimit;
- struct PhysicalValueType_ISO15118_2014 EVEnergyCapacity;
- struct PhysicalValueType_ISO15118_2014 EVEnergyRequest;
- unsigned char FullSOC;
- unsigned char BulkSOC;
- };
- struct Dynamic_CPDReqControlModeType
- {
- unsigned int DepartureTime;
- };
- struct RelativeTimeIntervalType
- {
- unsigned int duration;
- unsigned int start;
- };
- struct PMaxScheduleEntryType
- {
- struct RelativeTimeIntervalType RelativeTimeInterval;
- unsigned short PMax;
- };
- struct PMaxScheduleType
- {
- unsigned short PMaxScheduleID;
- struct PMaxScheduleEntryType PMaxScheduleEntry[1024];
- };
- struct CostType
- {
- unsigned int amount;
- enum CostKindType costKind;
- int amountMultiplier;
- };
- struct ConsumptionCostType
- {
- struct CostType Cost[3];
- struct PhysicalValueType_ISO15118_2014 startValue;
- };
- struct SalesTariffEntryType
- {
- struct RelativeTimeIntervalType RelativeTimeInterval;
- unsigned char EPriceLevel;
- struct ConsumptionCostType ConsumptionCost[3];
- };
- struct SalesTariffType
- {
- unsigned char Id[32];
- short SalesTariffID;
- unsigned char SalesTariffDescription[32];
- unsigned char NumEPriceLevels;
- struct SalesTariffEntryType SalesTariffEntry[1024];
- };
- struct SAScheduleTupleType
- {
- short SAScheduleTupleID;
- struct PMaxScheduleType PMaxSchedule;
- struct SalesTariffType SalesTariff;
- };
- struct ScheduleListType
- {
- enum ScheduleOriginType ScheduleOrigin;
- struct SAScheduleTupleType ScheduleTuple[3];
- };
- struct Scheduled_CPDReqControlModeType
- {
- enum ProcessingType EVProcessing;
- unsigned int DepartureTime;
- unsigned short MaxSupportingPoints;
- struct ScheduleListType ScheduleList;
- };
- struct AC_CPDReqEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
- };
- struct DC_CPDReqEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
- struct PhysicalValueType_ISO15118_2018 EVMinimumChargePower;
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
- struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest;
- unsigned char TargetSOC;
- unsigned char BulkSOC;
- };
- struct BPT_AC_CPDReqEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
- struct PhysicalValueType_ISO15118_2018 EVMaximumDischargePower;
- struct PhysicalValueType_ISO15118_2018 EVMinimumDischargePower;
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMaximumDischargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMinimumDischargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
- };
- struct BPT_DC_CPDReqEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
- struct PhysicalValueType_ISO15118_2018 EVMinimumChargePower;
- struct PhysicalValueType_ISO15118_2018 EVMaximumDischargePower;
- struct PhysicalValueType_ISO15118_2018 EVMinimumDischargePower;
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMaximumDischargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMinimumDischargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
- struct PhysicalValueType_ISO15118_2018 EVMinimumVoltage;
- struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest;
- unsigned char TargetSOC;
- unsigned char BulkSOC;
- };
- struct WPT_CPDReqEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVMaximumPower;
- struct PhysicalValueType_ISO15118_2018 EVMinimumPower;
- struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest;
- };
- struct ACD_CPDReqEnergyTransferModeType
- {
-
- };
- struct SAScheduleListType
- {
- struct SAScheduleTupleType SAScheduleTuple[3];
- };
- struct DC_EVSEStatusType_DIN70121
- {
- enum IsolationLevelType_DIN70121 EVSEIsolationStatus;
- enum DC_EVSEStatusCodeType EVSEStatusCode;
- unsigned int NotificationMaxDelay;
- enum EVSENotificationType EVSENotification;
- };
- struct DC_EVSEChargeParameterType_DIN70121
- {
- struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
- struct PhysicalValueType_DIN70121 EVSEMaximumCurrentLimit;
- struct PhysicalValueType_DIN70121 EVSEMaximumPowerLimit;
- struct PhysicalValueType_DIN70121 EVSEMaximumVoltageLimit;
- struct PhysicalValueType_DIN70121 EVSEMinimumCurrentLimit;
- struct PhysicalValueType_DIN70121 EVSEMinimumVoltageLimit;
- struct PhysicalValueType_DIN70121 EVSECurrentRegulationTolerance;
- struct PhysicalValueType_DIN70121 EVSEPeakCurrentRipple;
- struct PhysicalValueType_DIN70121 EVSEEnergyToBeDelivered;
- };
- struct AC_EVSEStatusType_ISO15118_2014
- {
- BOOL RCD;
- unsigned short NotificationMaxDelay;
- enum EVSENotificationType EVSENotification;
- };
- struct AC_EVSEChargeParameterType_ISO15118_2014
- {
- struct AC_EVSEStatusType_ISO15118_2014 AC_EVSEStatus;
- struct PhysicalValueType_ISO15118_2014 EVSENominalVoltage;
- struct PhysicalValueType_ISO15118_2014 EVSEMaxCurrent;
- };
- struct DC_EVSEStatusType_ISO15118_2014
- {
- unsigned short NotificationMaxDelay;
- enum EVSENotificationType EVSENotification;
- enum IsolationLevelType_ISO15118_2014 EVSEIsolationStatus;
- enum DC_EVSEStatusCodeType DC_EVSEStatusCode;
- };
- struct DC_EVSEChargeParameterType_ISO15118_2014
- {
- struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
- struct PhysicalValueType_ISO15118_2014 EVSEMaximumCurrentLimit;
- struct PhysicalValueType_ISO15118_2014 EVSEMaximumPowerLimit;
- struct PhysicalValueType_ISO15118_2014 EVSEMaximumVoltageLimit;
- struct PhysicalValueType_ISO15118_2014 EVSEMinimumCurrentLimit;
- struct PhysicalValueType_ISO15118_2014 EVSEMinimumVoltageLimit;
- struct PhysicalValueType_ISO15118_2014 EVSECurrentRegulationTolerance;
- struct PhysicalValueType_ISO15118_2014 EVSEPeakCurrentRipple;
- struct PhysicalValueType_ISO15118_2014 EVSEEnergyToBeDelivered;
- };
- struct Scheduled_CPDResControlModeType
- {
- struct ScheduleListType ScheduleList;
- };
- struct AC_CPDResEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent[3];
- struct PhysicalValueType_ISO15118_2018 EVSENominalVoltage;
- struct PhysicalValueType_ISO15118_2018 EVSENominalFrequency;
- };
- struct DC_CPDResEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower;
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVSEMinimumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumVoltage;
- struct PhysicalValueType_ISO15118_2018 EVSEMinimumVoltage;
- };
- struct BPT_AC_CPDResEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent[3];
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumDischargeCurrent[3];
- struct PhysicalValueType_ISO15118_2018 EVSENominalVoltage;
- struct PhysicalValueType_ISO15118_2018 EVSENominalFrequency;
- };
- struct BPT_DC_CPDResEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower;
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumDischargePower;
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumDischargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVSEMinimumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVSEMinimumDischargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumVoltage;
- struct PhysicalValueType_ISO15118_2018 EVSEMinimumVoltage;
- };
- struct WPT_CPDResEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumPower;
- struct PhysicalValueType_ISO15118_2018 EVSEMinimumPower;
- };
- struct ACD_CPDResEnergyTransferModeType
- {
-
- };
- struct ProfileEntryType_DIN70121
- {
- unsigned int ChargingProfileEntryStart;
- short ChargingProfileEntryMaxPower;
- };
- struct ChargingProfileType_DIN70121
- {
- short SAScheduleTupleID;
- struct ProfileEntryType_DIN70121 ProfileEntry[24];
- };
- struct DC_EVPowerDeliveryParameterType_DIN70121
- {
- struct DC_EVStatusType_DIN70121 DC_EVStatus;
- BOOL BulkChargingComplete;
- BOOL ChargingComplete;
- };
- struct ProfileEntryType_ISO15118_2014
- {
- unsigned int ChargingProfileEntryStart;
- struct PhysicalValueType_ISO15118_2018 ChargingProfileEntryMaxPower;
- unsigned char ChargingProfileEntryMaxNumberOfPhasesInUse;
- };
- struct ChargingProfileType_ISO15118_2014
- {
- struct ProfileEntryType_ISO15118_2014 ProfileEntry[24];
- };
- struct DC_EVPowerDeliveryParameterType_ISO15118_2014
- {
- struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
- BOOL BulkChargingComplete;
- BOOL ChargingComplete;
- };
- struct TimeInterval
- {
- unsigned int start;
- unsigned int duration;
- };
- struct PowerScheduleEntryType
- {
- struct TimeInterval TimeInterval;
- struct PhysicalValueType_ISO15118_2018 Power[3];
- };
- struct EVPowerProfileType
- {
- struct PowerScheduleEntryType EVPowerProfileEntry[2048];
- };
- struct Scheduled_PDReqControlModeType
- {
- unsigned char ScheduleTupleID;
- struct EVPowerProfileType EVPowerProfile;
- };
- struct BPT_Scheduled_PDReqControlModeType
- {
- unsigned char ScheduleTupleID;
- struct EVPowerProfileType EVPowerProfile;
- enum evOperationType EVOperation;
- };
- struct ListOfRootCertificateIDsType
- {
- unsigned char RootCertificateID[20][40];
- };
- struct ContractSignatureEncryptedPrivateKeyType
- {
- unsigned char Id[32];
- };
- struct DiffieHellmanPublickeyType
- {
- unsigned char Id[32];
- };
- struct ContractCertificateEncryptedPrivateKeyType
- {
- unsigned char Id[32];
- };
- struct EVTechnicalStatusType
- {
- BOOL EV_Status_ReadyToCharge;
- BOOL EV_Status_ImmobilizationRequest;
- BOOL EV_Status_Immobilized;
- struct PhysicalValueType_ISO15118_2018 EV_Status_WLAN_Strength;
- enum EV_CP_StatusType EV_CP_Status;
- unsigned char EV_Status_RESSSOC;
- enum EV_Error_Status_CodeType EV_Error_Status_Code;
- BOOL EVSE_Timeout;
- };
- struct MeterInfoType_ISO15118_2014
- {
- unsigned char MeterID[32];
- unsigned long MeterReading;
- unsigned char SigMeterReading[64];
- short MeterStatus;
- long TMeter;
- };
- struct Scheduled_MRReqControlModeType
- {
- unsigned char ScheduleTupleID;
- };
- struct MeterInfoType_ISO15118_2018
- {
- unsigned char MeterID[32];
- unsigned long MeterReadingWhCharged;
- unsigned long MeterReadingWhDischarged;
- unsigned long MeterReadingVARhLeading;
- unsigned long MeterReadingVARhLagging;
- unsigned char SignatureMeterReading[64];
- short MeterStatus;
- short TimeStampMeter;
- BOOL ReceiptRequired;
- };
- struct PnC_CLReqIdentificationModeType
- {
- BOOL MeteringReceiptRequested;
- };
- struct Dynamic_CSReqControlModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
- };
- struct Scheduled_CSReqControlModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest;
- BOOL Standby;
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
- };
- struct DisplayParametersType
- {
- unsigned short CurrentRange;
- unsigned char CurrentSOC;
- unsigned char MinimumSOC;
- struct PhysicalValueType_ISO15118_2018 RemainingTimeToMaximumSOC;
- struct PhysicalValueType_ISO15118_2018 RemainingTimeToTargetSOC;
- struct PhysicalValueType_ISO15118_2018 RemainingTimeToBulkSOC;
- struct PhysicalValueType_ISO15118_2018 RemainingTimeToMinimumSOC;
- BOOL ChargingComplete;
- BOOL BulkChargingComplete;
- BOOL InletHot;
- };
- struct PnC_CLResIdentificationModeType
- {
- struct MeterInfoType_ISO15118_2018 MeterInfo;
- };
- struct Dynamic_CSResControlModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVSETargetActivePower;
- };
- struct Scheduled_CDResControlModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower;
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumVoltage;
- };
- struct LFA_EVFinePositioningSetupParametersType
- {
- unsigned char NumberOfSensors;
-
- };
- struct SupportedAppProtocolRequest_DIN70121 {
- struct AppProtocolType AppProtocol[20];
- };
- struct SupportedAppProtocolRequest_ISO15118_2014
- {
- struct AppProtocolType AppProtocol[20];
- };
- struct SupportedAppProtocolRequest_ISO15118_2018
- {
- struct AppProtocolType AppProtocol[20];
- };
- struct SupportedAppProtocolResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- unsigned char SchemaID;
- };
- struct SupportedAppProtocolResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- unsigned char SchemaID;
- };
- struct SupportedAppProtocolResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- unsigned char SchemaID;
- };
- struct SessionSetupRequest_DIN70121
- {
- unsigned char EVCCID[8];
- };
- struct SessionSetupRequest_ISO15118_2014
- {
- unsigned char EVCCID[8];
- };
- struct SessionSetupRequest_ISO15118_2018
- {
- unsigned char EVCCID[8];
- struct ACD_SSEnergyTransferModeType ACD_SSEnergyTransferMode;
- };
- struct SessionSetupResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- unsigned char EVSEID[40];
- long EVSETimeStamp;
- };
- struct SessionSetupResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- unsigned char EVSEID[40];
- long EVSETimeStamp;
- };
- struct SessionSetupResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- unsigned char EVSEID[40];
- struct EVSEStatusType EVSEStatus;
- };
- struct ServiceDiscoveryRequest_DIN70121
- {
- unsigned char ServiceScope[32];
- unsigned int ServiceScopeLen;
- enum ServiceCategoryType ServiceCategory;
- };
- struct ServiceDiscoveryRequest_ISO15118_2014
- {
- unsigned char ServiceScope[32];
- unsigned int ServiceScopeLen;
- enum ServiceCategoryType ServiceCategory;
- };
- struct ServiceDiscoveryRequest_ISO15118_2018
- {
- struct ServiceIDListType SupportedServiceIDs;
- };
- struct ServiceDiscoveryResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- struct PaymentOptionListType PaymentOptions;
- struct ServiceChargeType ChargeService_DIN70121;
- };
- struct ServiceDiscoveryResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct PaymentOptionListType PaymentOptions;
- struct ChargeServiceType ChargeService;
- struct ServiceListType ServiceList;
- };
- struct ServiceDiscoveryResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus;
- struct IdentificationOptionListType IdentificationOptionList;
- struct ServiceListType EnergyTransferServiceList;
- struct ServiceListType VASList;
- };
- struct ServiceDetailRequest_ISO15118_2014
- {
- unsigned short ServiceID;
- };
- struct ServiceDetailRequest_ISO15118_2018
- {
- unsigned short ServiceID;
- struct WPT_SDlEnergyTransferModeType WPT_SDlEnergyTransferMode;
- };
- struct ServiceDetailResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- unsigned short ServiceID;
- struct ServiceParameterListType ServiceParameterList;
- };
- struct ServiceDetailResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- unsigned short ServiceID;
- struct ServiceParameterListType ServiceParameterList;
- struct EVSEStatusType EVSEStatus;
- };
- struct ServiceAndPaymentSelectionRequest_DIN70121
- {
- enum PaymentOptionType SelectedPaymentOption;
- struct SelectedServiceListType SelectedServiceList;
- };
- struct ServiceAndPaymentSelectionRequest_ISO15118_2014
- {
- enum PaymentOptionType SelectedPaymentOption;
- struct SelectedServiceListType SelectedServiceList;
- };
- struct ServiceSelectionRequest_ISO15118_2018
- {
- enum PaymentOptionType SelectedPaymentOption;
- struct SelectedServiceType SelectedEnergyTransferService;
- struct SelectedServiceListType SelectedVASList;
- enum ProcessingType EVProcessing;
- };
- struct ServiceAndPaymentSelectionResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- };
- struct ServiceAndPaymentSelectionResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- };
- struct ServiceSelectionResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus;
- };
- struct PaymentDetailsRequest_ISO15118_2014
- {
- unsigned char eMAID[16];
- struct CertificateChainType ContractSignatureCertChain;
- };
- struct IdentificationDetailsRequest_ISO15118_2018
- {
- struct CertificateChainType ContractSignatureCertChain;
- };
- struct PaymentDetailsResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- unsigned char GenChallenge[16];
- long EVSETimeStamp;
- };
- struct IdentificationDetailsResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus;
- unsigned char GenChallenge[16];
- enum ProcessingType EVSEProcessing;
- };
- struct ContractAuthenticationRequest_DIN70121
- {
-
- };
- struct AuthorizationRequest_ISO15118_2014
- {
- unsigned char GenChallenge[16];
- unsigned char Id[32];
- };
- struct AuthorizationRequest_ISO15118_2018
- {
- struct PNC_AReqIdentificationModeType PNC_AReqIdentificationMode;
- };
- struct ContractAuthenticationResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- enum EVSEProcessingType_DIN70121 EVSEProcessing;
- };
- struct AuthorizationResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- enum EVSEProcessingType_ISO15118_2014 EVSEProcessing;
- };
- struct AuthorizationResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- enum ProcessingType EVSEProcessing;
- struct EVSEStatusType EVSEStatus;
- };
- struct ChargeParameterDiscoveryRequest_DIN70121
- {
- enum EnergyTransferModeType EVRequestedEnergyTransferType;
- struct DC_EVChargeParameterType_DIN70121 DC_EVChargeParameter;
- };
- struct ChargeParameterDiscoveryRequest_ISO15118_2014
- {
- unsigned short MaxEntriesSAScheduleTuple;
- enum EnergyTransferModeType RequestedEnergyTransferMode;
- struct AC_EVChargeParameterType AC_EVChargeParameter;
- struct DC_EVChargeParameterType_ISO15118_2014 DC_EVChargeParameter;
- };
- struct ChargeParameterDiscoveryRequest_ISO15118_2018
- {
- struct Dynamic_CPDReqControlModeType Dynamic_CPDReqControlMode;
- struct Scheduled_CPDReqControlModeType Scheduled_CPDReqControlMode;
- struct AC_CPDReqEnergyTransferModeType AC_CPDReqEnergyTransferMode;
- struct DC_CPDReqEnergyTransferModeType DC_CPDReqEnergyTransferMode;
- struct BPT_AC_CPDReqEnergyTransferModeType BPT_AC_CPDReqEnergyTransferMode;
- struct BPT_DC_CPDReqEnergyTransferModeType BPT_DC_CPDReqEnergyTransferMode;
- struct WPT_CPDReqEnergyTransferModeType WPT_CPDReqEnergyTransferMode;
- struct ACD_CPDReqEnergyTransferModeType ACD_CPDReqEnergyTransferMode;
- };
- struct ChargeParameterDiscoveryResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- enum EVSEProcessingType_DIN70121 EVSEProcessing;
- struct SAScheduleListType SAScheduleList;
- struct DC_EVSEChargeParameterType_DIN70121 DC_EVSEChargeParameter;
- };
- struct ChargeParameterDiscoveryResponse_ISO15118_2014
- {
- enum EVSEProcessingType_ISO15118_2014 EVSEProcessing;
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct SAScheduleListType SAScheduleList;
- struct AC_EVSEChargeParameterType_ISO15118_2014 AC_EVSEChargeParameter;
- struct DC_EVSEChargeParameterType_ISO15118_2014 DC_EVSEChargeParameter;
- };
- struct ChargeParameterDiscoveryResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus;
- enum ProcessingType EVSEProcessing;
- struct Scheduled_CPDResControlModeType Scheduled_CPDResControlMode;
- struct AC_CPDResEnergyTransferModeType AC_CPDResEnergyTransferMode;
- struct DC_CPDResEnergyTransferModeType DC_CPDResEnergyTransferMode;
- struct BPT_AC_CPDResEnergyTransferModeType BPT_AC_CPDResEnergyTransferMode;
- struct BPT_DC_CPDResEnergyTransferModeType BPT_DC_CPDResEnergyTransferMode;
- struct WPT_CPDResEnergyTransferModeType WPT_CPDResEnergyTransferMode;
- struct ACD_CPDResEnergyTransferModeType ACD_CPDResEnergyTransferMode;
- };
- struct PowerDeliveryRequest_DIN70121
- {
- BOOL ReadyToChargeState;
- struct ChargingProfileType_DIN70121 ChargingProfile;
- struct DC_EVPowerDeliveryParameterType_DIN70121 DC_EVPowerDeliveryParameter;
- };
- struct PowerDeliveryRequest_ISO15118_2014
- {
- enum ChargeProgressType_ISO15118_2014 ChargeProgress;
- short SAScheduleTupleID;
- struct ChargingProfileType_ISO15118_2014 ChargingProfile;
- struct DC_EVPowerDeliveryParameterType_ISO15118_2014 DC_EVPowerDeliveryParameter;
- };
- struct PowerDeliveryRequest_ISO15118_2018
- {
- enum ChargeProgressType_ISO15118_2018 ChargeProgress;
- struct Scheduled_PDReqControlModeType Scheduled_PDReqControlMode;
- struct BPT_Scheduled_PDReqControlModeType BPT_Scheduled_PDReqControlMode;
- };
- struct PowerDeliveryResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
- };
- struct PowerDeliveryResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct AC_EVSEStatusType_ISO15118_2014 AC_EVSEStatus;
- struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
- };
- struct PowerDeliveryResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus;
- };
- struct CertificateUpdateRequest_ISO15118_2014
- {
- unsigned char Id[32];
- struct CertificateChainType ContractSignatureCertChain;
- unsigned char eMAID[16];
- struct ListOfRootCertificateIDsType ListOfRootCertificateIDs;
- };
- struct CertificateUpdateResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct CertificateChainType SAProvisioningCertificateChain;
- struct CertificateChainType ContractSignatureCertChain;
- struct ContractSignatureEncryptedPrivateKeyType ContractSignatureEncryptedPrivateKey;
- struct DiffieHellmanPublickeyType DHpublickey;
- unsigned char eMAID[16];
- short RetryCounter;
- };
- struct CertificateInstallationRequest_ISO15118_2014
- {
- unsigned char Id[32];
- unsigned char OEMProvisioningCert[800];
- struct ListOfRootCertificateIDsType ListOfRootCertificateIDs;
- };
- struct CertificateInstallationRequest_ISO15118_2018
- {
- unsigned char Id[32];
- struct CertificateChainType OEMProvisioningCertChain;
- struct ListOfRootCertificateIDsType ListOfRootCertificateIDs;
- unsigned short MaxSupportedCerts;
- };
- struct CertificateInstallationResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct CertificateChainType SAProvisioningCertificateChain;
- struct CertificateChainType ContractSignatureCertChain;
- struct ContractSignatureEncryptedPrivateKeyType ContractSignatureEncryptedPrivateKey;
- struct DiffieHellmanPublickeyType DHpublickey;
- unsigned char eMAID[16];
- };
- struct CertificateInstallationResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus;
- struct CertificateChainType SAProvisioningCertificateChain;
- struct CertificateChainType ContractCertificateChain;
- struct ContractCertificateEncryptedPrivateKeyType ContractEncryptedPrivateKey;
- struct DiffieHellmanPublickeyType DHpublickey;
- enum ProcessingType EVSEProcessing;
- unsigned short RemainingContractCertificateChains;
- };
- struct SystemStatusRequest_ISO15118_2018
- {
- enum mechanicalChargingDeviceStatusType EVMechanicalChargingDeviceStatus;
- struct EVTechnicalStatusType EVTechnicalStatus;
- unsigned char EV_OEMStatus[800];
- };
- struct SystemStatusResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- enum mechanicalChargingDeviceStatusType EVSEMechanicalChargingDeviceStatus;
- BOOL EVSE_ReadyToCharge;
- enum IsolationStatusType EVSE_IsolationStatus;
- BOOL EVSE_Disabled;
- BOOL EVSE_UtilityInterruptEvent;
- BOOL EVSE_EmergencyShutdown;
- BOOL EVSE_Malfunction;
- BOOL EV_InChargePosition;
- BOOL EV_AssociationStatus;
- };
- struct SessionStopRequest_DIN70121
- {
-
- };
- struct SessionStopRequest_ISO15118_2014
- {
- enum ChargingSessionType ChargingSession;
- };
- struct SessionStopRequest_ISO15118_2018
- {
- enum ChargingSessionType ChargingSession;
- };
- struct SessionStopResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- };
- struct SessionStopResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- };
- struct SessionStopResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus;
- };
- struct MeteringReceiptRequest_ISO15118_2014
- {
- unsigned char Id[32];
- unsigned char SessionID[8];
- short SAScheduleTupleID;
- struct MeterInfoType_ISO15118_2014 MeterInfo;
- };
- struct MeteringReceiptRequest_ISO15118_2018
- {
- unsigned char Id[32];
- unsigned char SessionID[8];
- struct Scheduled_MRReqControlModeType Schedule_MRReqControlMode;
- struct MeterInfoType_ISO15118_2018 MeterInfo;
- };
- struct MeteringReceiptResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct AC_EVSEStatusType_ISO15118_2014 AC_EVSEStatus;
- struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
- };
- struct MeteringReceiptResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus;
- };
- struct ChargingStatusRequest_ISO15118_2014
- {
-
- };
- struct ChargingStatusRequest_ISO15118_2018
- {
- struct PnC_CLReqIdentificationModeType PnC_CLReqIdentificationMode;
- struct Dynamic_CSReqControlModeType Dynamic_CSReqControlMode;
- struct Scheduled_CSReqControlModeType Scheduled_CSReqControlMode;
- struct DisplayParametersType DisplayParameters;
- };
- struct ChargingStatusResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- unsigned char EVSEID[40];
- short SAScheduleTupleID;
- struct PhysicalValueType_ISO15118_2014 EVSEMaxCurrent;
- struct MeterInfoType_ISO15118_2014 MeterInfo;
- BOOL ReceiptRequired;
- struct AC_EVSEStatusType_ISO15118_2014 AC_EVSEStatus;
- };
- struct ChargingStatusResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus;
- unsigned char EVSEID[40];
- struct PhysicalValueType_ISO15118_2018 EVSETargetFrequency;
- struct PnC_CLResIdentificationModeType PnC_CLResIdentificationMode;
- struct Dynamic_CSResControlModeType Dynamic_CSResControlMode;
- struct Scheduled_CSReqControlModeType Scheduled_CSReqControlMode;
- };
- struct CableCheckRequest_DIN70121
- {
- struct DC_EVStatusType_DIN70121 DC_EVStatus;
- };
- struct CableCheckRequest_ISO15118_2014
- {
- struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
- };
- struct CableCheckRequest_ISO15118_2018
- {
-
- };
- struct CableCheckResponse_DIN70121
- {
- unsigned int cnt;
- enum ResponseCodeType_DIN70121 ResponseCode;
- struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
- enum EVSEProcessingType_DIN70121 EVSEProcessing;
- };
- struct CableCheckResponse_ISO15118_2014
- {
- unsigned int cnt;
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
- enum EVSEProcessingType_ISO15118_2014 EVSEProcessing;
- };
- struct CableCheckResponse_ISO15118_2018
- {
- unsigned int cnt;
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus;
- enum ProcessingType EVSEProcessing;
- };
- struct PreChargeRequest_DIN70121
- {
- unsigned int cnt;
- struct DC_EVStatusType_DIN70121 DC_EVStatus;
- struct PhysicalValueType_DIN70121 EVTargetVoltage;
- struct PhysicalValueType_DIN70121 EVTargetCurrent;
- };
- struct PreChargeRequest_ISO15118_2014
- {
- unsigned int cnt;
- struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
- struct PhysicalValueType_ISO15118_2014 EVTargetVoltage;
- struct PhysicalValueType_ISO15118_2014 EVTargetCurrent;
- };
- struct PreChargeRequest_ISO15118_2018
- {
- unsigned int cnt;
- struct PhysicalValueType_ISO15118_2018 EVTargetVoltage;
- struct PhysicalValueType_ISO15118_2018 EVTargetCurrent;
- };
- struct PreChargeResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
- struct PhysicalValueType_DIN70121 EVSEPresentVoltage;
- };
- struct PreChargeResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
- struct PhysicalValueType_ISO15118_2014 EVSEPresentVoltage;
- };
- struct PreChargeResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus;
- struct PhysicalValueType_ISO15118_2018 EVSEPresentVoltage;
- };
- struct CurrentDemandRequest_DIN70121
- {
- struct DC_EVStatusType_DIN70121 DC_EVStatus;
- struct PhysicalValueType_DIN70121 EVTargetCurrent;
- struct PhysicalValueType_DIN70121 EVMaximumVoltageLimit;
- struct PhysicalValueType_DIN70121 EVMaximumCurrentLimit;
- struct PhysicalValueType_DIN70121 EVMaximumPowerLimit;
- BOOL BulkChargingComplete;
- BOOL ChargingComplete;
- struct PhysicalValueType_DIN70121 RemainingTimeToFullSoC;
- struct PhysicalValueType_DIN70121 RemainingTimeToBulkSoC;
- struct PhysicalValueType_DIN70121 EVTargetVoltage;
- };
- struct CurrentDemandRequest_ISO15118_2014
- {
- struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
- struct PhysicalValueType_ISO15118_2014 EVTargetCurrent;
- struct PhysicalValueType_ISO15118_2014 EVMaximumVoltageLimit;
- struct PhysicalValueType_ISO15118_2014 EVMaximumCurrentLimit;
- struct PhysicalValueType_ISO15118_2014 EVMaximumPowerLimit;
- BOOL BulkChargingComplete;
- BOOL ChargingComplete;
- struct PhysicalValueType_ISO15118_2014 RemainingTimeToFullSoC;
- struct PhysicalValueType_ISO15118_2014 RemainingTimeToBulkSoC;
- struct PhysicalValueType_ISO15118_2014 EVTargetVoltage;
- };
- struct CurrentDemandRequest_ISO15118_2018
- {
- struct DisplayParametersType DisplayParameters;
- struct PnC_CLReqIdentificationModeType PnC_CLReqIdentificationMode;
- struct Dynamic_CSReqControlModeType Dynamic_CDReqControlMode;
- struct Scheduled_CSReqControlModeType Scheduled_CDReqControlMode;
- };
- struct CurrentDemandResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
- struct PhysicalValueType_DIN70121 EVSEPresentVoltage;
- struct PhysicalValueType_DIN70121 EVSEPresentCurrent;
- BOOL EVSECurrentLimitAchieved;
- BOOL EVSEVoltageLimitAchieved;
- BOOL EVSEPowerLimitAchieved;
- struct PhysicalValueType_DIN70121 EVSEMaximumVoltageLimit;
- struct PhysicalValueType_DIN70121 EVSEMaximumCurrentLimit;
- struct PhysicalValueType_DIN70121 EVSEMaximumPowerLimit;
- };
- struct CurrentDemandResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
- struct PhysicalValueType_ISO15118_2014 EVSEPresentVoltage;
- struct PhysicalValueType_ISO15118_2014 EVSEPresentCurrent;
- BOOL EVSECurrentLimitAchieved;
- BOOL EVSEVoltageLimitAchieved;
- BOOL EVSEPowerLimitAchieved;
- struct PhysicalValueType_ISO15118_2014 EVSEMaximumVoltageLimit;
- struct PhysicalValueType_ISO15118_2014 EVSEMaximumCurrentLimit;
- struct PhysicalValueType_ISO15118_2014 EVSEMaximumPowerLimit;
- unsigned char EVSEID[40];
- short SAScheduleTupleID;
- struct MeterInfoType_ISO15118_2014 MeterInfo;
- BOOL ReceiptRequired;
- };
- struct CurrentDemandResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus;
- struct PhysicalValueType_ISO15118_2018 EVSEPresentVoltage;
- struct PhysicalValueType_ISO15118_2018 EVSEPresentCurrent;
- BOOL EVSECurrentLimitAchieved;
- BOOL EVSEVoltageLimitAchieved;
- BOOL EVSEPowerLimitAchieved;
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeVoltage;
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower;
- unsigned char EVSEID[40];
- struct PnC_CLResIdentificationModeType PnC_CLResIdentificationMode;
- struct Scheduled_CDResControlModeType Scheduled_CDResControlMode;
- };
- struct WeldingDetectionRequest_DIN70121
- {
- struct DC_EVStatusType_DIN70121 DC_EVStatus;
- };
- struct WeldingDetectionRequest_ISO15118_2014
- {
- struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
- };
- struct WeldingDetectionRequest_ISO15118_2018
- {
-
- };
- struct WeldingDetectionResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
- struct PhysicalValueType_DIN70121 EVSEPresentVoltage;
- };
- struct WeldingDetectionResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
- struct PhysicalValueType_ISO15118_2014 EVSEPresentVoltage;
- };
- struct WeldingDetectionResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus;
- struct PhysicalValueType_ISO15118_2018 EVSEPresentVoltage;
- };
- struct FinePositioningSetupRequest_ISO15118_2018
- {
- struct LFA_EVFinePositioningSetupParametersType LFA_EVFinePositioningSetupParameters;
- };
- struct FinePositioningSetupResponse_ISO15118_2018
- {
-
- };
- struct V2GMessageType_DIN70121 {
- enum MsgFlowStatus PresentMsgFlowStatus;
- enum MsgFlowStatus PresentMsgFlowStatus_pre;
-
- struct SupportedAppProtocolRequest_DIN70121 SupportedAppProtocolRequest;
- struct SupportedAppProtocolResponse_DIN70121 SupportedAppProtocolResponse;
- struct SessionSetupRequest_DIN70121 SessionSetupRequest;
- struct SessionSetupResponse_DIN70121 SessionSetupResponse;
- struct ServiceDiscoveryRequest_DIN70121 ServiceDiscoveryRequest;
- struct ServiceDiscoveryResponse_DIN70121 ServiceDiscoveryResponse;
- struct ServiceAndPaymentSelectionRequest_DIN70121 ServiceAndPaymentSelectionRequest;
- struct ServiceAndPaymentSelectionResponse_DIN70121 ServiceAndPaymentSelectionResponse;
- struct ContractAuthenticationRequest_DIN70121 ContractAuthenticationRequest;
- struct ContractAuthenticationResponse_DIN70121 ContractAuthenticationResponse;
- struct ChargeParameterDiscoveryRequest_DIN70121 ChargeParameterDiscoveryRequest;
- struct ChargeParameterDiscoveryResponse_DIN70121 ChargeParameterDiscoveryResponse;
- struct CableCheckRequest_DIN70121 CableCheckRequest;
- struct CableCheckResponse_DIN70121 CableCheckResponse;
- struct PreChargeRequest_DIN70121 PreChargeRequest;
- struct PreChargeResponse_DIN70121 PreChargeResponse;
- struct PowerDeliveryRequest_DIN70121 PowerDeliveryRequest;
- struct PowerDeliveryResponse_DIN70121 PowerDeliveryResponse;
- struct CurrentDemandRequest_DIN70121 CurrentDemandRequest;
- struct CurrentDemandResponse_DIN70121 CurrentDemandResponse;
- struct WeldingDetectionRequest_DIN70121 WeldingDetectionRequest;
- struct WeldingDetectionResponse_DIN70121 WeldingDetectionResponse;
- struct SessionStopRequest_DIN70121 SessionStopRequest;
- struct SessionStopResponse_DIN70121 SessionStopResponse;
- };
- struct V2GMessageType_ISO15118_2014 {
- enum MsgFlowStatus PresentMsgFlowStatus;
- enum MsgFlowStatus PresentMsgFlowStatus_pre;
-
- struct SupportedAppProtocolRequest_ISO15118_2014 SupportedAppProtocolRequest;
- struct SupportedAppProtocolResponse_ISO15118_2014 SupportedAppProtocolResponse;
- struct SessionSetupRequest_ISO15118_2014 SessionSetupRequest;
- struct SessionSetupResponse_ISO15118_2014 SessionSetupResponse;
- struct ServiceDiscoveryRequest_ISO15118_2014 ServiceDiscoveryRequest;
- struct ServiceDiscoveryResponse_ISO15118_2014 ServiceDiscoveryResponse;
- struct ServiceDetailRequest_ISO15118_2014 ServiceDetailRequest;
- struct ServiceDetailResponse_ISO15118_2014 ServiceDetailResponse;
- struct ServiceAndPaymentSelectionRequest_ISO15118_2014 ServiceAndPaymentSelectionRequest;
- struct ServiceAndPaymentSelectionResponse_ISO15118_2014 ServiceAndPaymentSelectionResponse;
- struct PaymentDetailsRequest_ISO15118_2014 PaymentDetailsRequest;
- struct PaymentDetailsResponse_ISO15118_2014 PaymentDetailsResponse;
- struct AuthorizationRequest_ISO15118_2014 AuthorizationRequest;
- struct AuthorizationResponse_ISO15118_2014 AuthorizationResponse;
- struct CertificateUpdateRequest_ISO15118_2014 CertificateUpdateRequest;
- struct CertificateUpdateResponse_ISO15118_2014 CertificateUpdateResponse;
- struct CertificateInstallationRequest_ISO15118_2014 CertificateInstallationRequest;
- struct CertificateInstallationResponse_ISO15118_2014 CertificateInstallationResponse;
- struct ChargeParameterDiscoveryRequest_ISO15118_2014 ChargeParameterDiscoveryRequest;
- struct ChargeParameterDiscoveryResponse_ISO15118_2014 ChargeParameterDiscoveryResponse;
- struct CableCheckRequest_ISO15118_2014 CableCheckRequest;
- struct CableCheckResponse_ISO15118_2014 CableCheckResponse;
- struct PreChargeRequest_ISO15118_2014 PreChargeRequest;
- struct PreChargeResponse_ISO15118_2014 PreChargeResponse;
- struct PowerDeliveryRequest_ISO15118_2014 PowerDeliveryRequest;
- struct PowerDeliveryResponse_ISO15118_2014 PowerDeliveryResponse;
- struct ChargingStatusRequest_ISO15118_2014 ChargingStatusRequest;
- struct ChargingStatusResponse_ISO15118_2014 ChargingStatusResponse;
- struct CurrentDemandRequest_ISO15118_2014 CurrentDemandRequest;
- struct CurrentDemandResponse_ISO15118_2014 CurrentDemandResponse;
- struct MeteringReceiptRequest_ISO15118_2014 MeteringReceiptRequest;
- struct MeteringReceiptResponse_ISO15118_2014 MeteringReceiptResponse;
- struct WeldingDetectionRequest_ISO15118_2014 WeldingDetectionRequest;
- struct WeldingDetectionResponse_ISO15118_2014 WeldingDetectionResponse;
- struct SessionStopRequest_ISO15118_2014 SessionStopRequest;
- struct SessionStopResponse_ISO15118_2014 SessionStopResponse;
- };
- struct V2GMessageType_ISO15118_2018 {
- enum MsgFlowStatus PresentMsgFlowStatus;
- enum MsgFlowStatus PresentMsgFlowStatus_pre;
-
- struct SupportedAppProtocolRequest_ISO15118_2018 SupportedAppProtocolRequest;
- struct SupportedAppProtocolResponse_ISO15118_2018 SupportedAppProtocolResponse;
- struct SessionSetupRequest_ISO15118_2018 SessionSetupRequest;
- struct SessionSetupResponse_ISO15118_2018 SessionSetupResponse;
- struct ServiceDiscoveryRequest_ISO15118_2018 ServiceDiscoveryRequest;
- struct ServiceDiscoveryResponse_ISO15118_2018 ServiceDiscoveryResponse;
- struct ServiceDetailRequest_ISO15118_2018 ServiceDetailRequest;
- struct ServiceDetailResponse_ISO15118_2018 ServiceDetailResponse;
- struct ServiceSelectionRequest_ISO15118_2018 ServiceSelectionRequest;
- struct ServiceSelectionResponse_ISO15118_2018 ServiceSelectionResponse;
- struct IdentificationDetailsRequest_ISO15118_2018 IdentificationDetailsRequest;
- struct IdentificationDetailsResponse_ISO15118_2018 IdentificationDetailsResponse;
- struct AuthorizationRequest_ISO15118_2018 AuthorizationRequest;
- struct AuthorizationResponse_ISO15118_2018 AuthorizationResponse;
- struct CertificateInstallationRequest_ISO15118_2018 CertificateInstallationRequest;
- struct CertificateInstallationResponse_ISO15118_2018 CertificateInstallationResponse;
- struct ChargeParameterDiscoveryRequest_ISO15118_2018 ChargeParameterDiscoveryRequest;
- struct ChargeParameterDiscoveryResponse_ISO15118_2018 ChargeParameterDiscoveryResponse;
- struct CableCheckRequest_ISO15118_2018 CableCheckRequest;
- struct CableCheckResponse_ISO15118_2018 CableCheckResponse;
- struct PreChargeRequest_ISO15118_2018 PreChargeRequest;
- struct PreChargeResponse_ISO15118_2018 PreChargeResponse;
- struct PowerDeliveryRequest_ISO15118_2018 PowerDeliveryRequest;
- struct PowerDeliveryResponse_ISO15118_2018 PowerDeliveryResponse;
- struct ChargingStatusRequest_ISO15118_2018 ChargingStatusRequest;
- struct ChargingStatusResponse_ISO15118_2018 ChargingStatusResponse;
- struct CurrentDemandRequest_ISO15118_2018 CurrentDemandRequest;
- struct CurrentDemandResponse_ISO15118_2018 CurrentDemandResponse;
- struct MeteringReceiptRequest_ISO15118_2018 MeteringReceiptRequest;
- struct MeteringReceiptResponse_ISO15118_2018 MeteringReceiptResponse;
- struct WeldingDetectionRequest_ISO15118_2018 WeldingDetectionRequest;
- struct WeldingDetectionResponse_ISO15118_2018 WeldingDetectionResponse;
- struct SessionStopRequest_ISO15118_2018 SessionStopRequest;
- struct SessionStopResponse_ISO15118_2018 SessionStopResponse;
- };
- struct CcsData {
- unsigned char CommProtocol;
-
-
-
- unsigned char EnergyTransferMode;
- struct V2GMessageType_DIN70121 V2GMessage_DIN70121;
- struct V2GMessageType_ISO15118_2014 V2GMessage_ISO15118_2014;
- struct V2GMessageType_ISO15118_2018 V2GMessage_ISO15118_2018;
- };
- struct InternalComm {
- unsigned char ChargingPermission;
- unsigned char SlaveAddress;
- unsigned char IsolationStatus;
- unsigned char CCSConnectorType;
- unsigned char MaximumAllowedChargingTime;
-
- unsigned int RTC;
- unsigned char EVSEPrechargeStatus;
- int MaximumChargingVoltage;
- int AvailableChargingCurrent;
- int AvailableChargingPower;
- int PresentChargingVoltage;
- int PresentChargingCurrent;
- int PresentChargingPower;
- struct timeb CAN_Rx_Timer_Start;
- struct timeb CAN_Rx_Timer_End;
- int FD_CAN_Socket;
- struct timeb Start_Time;
- struct timeb End_Time;
- unsigned char ChargingPermission_new;
- BOOL AC_RcdStatus;
- unsigned char AC_EVSEID[40];
- unsigned char AC_MeterID[32];
- unsigned char AC_EVSEModelName[32];
- unsigned char AC_BatteryChargeType;
- unsigned char AC_CpPresentPWMDuty;
- unsigned char AC_CpPresentState;
- unsigned short AC_ChargingRemainTime;
- unsigned int AC_CSUAlarmStatusCode;
- unsigned int AC_CcsHeartBeat;
- float AC_GridVoltage[3];
- float AC_MeterReadingValue;
- float AC_CpPositiveVoltage;
- float AC_CpNegativeVoltage;
- float AC_EVSEMaxCurrent;
- float AC_EVSEMinCurrent;
- float AC_EVSEPresentCurrent[3];
- BOOL AC_OutputRelayStatus;
- float AC_AvailableChargingPower;
- unsigned char AC_EVSENotification;
- unsigned char ChargingPermission_pre;
- unsigned char SlaveAddress_pre;
- unsigned char IsolationStatus_pre;
- unsigned char CCSConnectorType_pre;
- unsigned char MaximumAllowedChargingTime_pre;
-
- unsigned int RTC_pre;
- unsigned char EVSEPrechargeStatus_pre;
- int MaximumChargingVoltage_pre;
- int AvailableChargingCurrent_pre;
- int AvailableChargingPower_pre;
- int PresentChargingVoltage_pre;
- int PresentChargingCurrent_pre;
- int PresentChargingPower_pre;
- BOOL AC_RcdStatus_pre;
- unsigned char AC_EVSEID_pre[40];
- unsigned char AC_MeterID_pre[32];
- unsigned char AC_EVSEModelName_pre[32];
- unsigned char AC_BatteryChargeType_pre;
- unsigned char AC_CpPresentPWMDuty_pre;
- unsigned char AC_CpPresentState_pre;
- unsigned short AC_ChargingRemainTime_pre;
- unsigned int AC_CSUAlarmStatusCode_pre;
- unsigned int AC_CcsHeartBeat_pre;
- float AC_GridVoltage_pre[3];
- float AC_MeterReadingValue_pre;
- float AC_CpPositiveVoltage_pre;
- float AC_CpNegativeVoltage_pre;
- float AC_EVSEMaxCurrent_pre;
- float AC_EVSEMinCurrent_pre;
- float AC_EVSEPresentCurrent_pre[3];
- BOOL AC_OutputRelayStatus_pre;
- float AC_AvailableChargingPower_pre;
- unsigned char AC_EVSENotification_pre;
- struct DownloadImageInfoStructure {
- FILE *file;
- unsigned char active;
- unsigned char type;
- char filename[128];
- unsigned long image_rx_cnt;
- unsigned long image_size;
- unsigned long total_can_packets;
- unsigned long image_size_received;
- unsigned char block_quantity;
- unsigned char block_sequence_number;
- unsigned char block_size_KByte;
- unsigned char block_checksum;
- unsigned char final_canmsg_size;
- unsigned char downlaod_percentage;
- unsigned char downlaod_percentage_pre;
- } DownloadImageInfo;
- struct EVSEStopChargingReqType {
- unsigned char type;
- unsigned char alarmcode[6];
- } EVSEStopChargingReq;
- union
- {
- unsigned char InternalCommVal;
- struct
- {
-
- unsigned int matched: 1;
- unsigned int Got_AssignedAddress: 1;
- unsigned int Send_EVBoardStatus: 1;
- unsigned int Got_FWVersionReq: 1;
- unsigned int Got_HWVersionReq: 1;
- unsigned int Got_ChargingPermission: 1;
- unsigned int Got_EVSEOutputStatus: 1;
- unsigned int Got_EnergyCapacity: 1;
- unsigned int Got_EVTargetReq: 1;
- unsigned int Got_EVBatteryInfoReq: 1;
- unsigned int Send_EVStopReq: 1;
- unsigned int Got_EVSEStopReq: 1;
- unsigned int Got_MiscellaneousInfoReq: 1;
- unsigned int Got_DownloadImageReq: 1;
- unsigned int Got_BlockTransferStartReq: 1;
- unsigned int Got_DataTransferReq: 1;
- unsigned int Got_DownloadFinishReq: 1;
- unsigned int Got_IsolationStatus: 1;
- unsigned int Got_CCSConnectorReq: 1;
- unsigned int Got_RTC: 1;
- unsigned int Got_EVSE_Precharge_Info: 1;
- unsigned int Got_EVCCID_Req: 1;
- unsigned int EV_Stop_Type_Emergency: 1;
- unsigned int FW_Update_Done: 1;
- unsigned int FW_Update_Task_inused: 1;
- unsigned int FW_Update_result: 1;
- unsigned int FW_Update_Reboot_inused: 1;
- unsigned int CAN_Rx_Timeout: 1;
- unsigned int Reboot_Process_inused: 1;
- unsigned int reserved: 3;
- } bits;
- } InternalCommUnion;
- };
- #endif
|