define.h 123 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925
  1. #ifndef DEFINE_H_
  2. #define DEFINE_H_
  3. /**************************************************************************************/
  4. /*********************************NAND Flash mapping *****************************/
  5. /**************************************************************************************/
  6. /*
  7. sector size 512 KiB
  8. Page size 4096 b
  9. OOB size 224 b
  10. Erase size 524288 b
  11. -------------------------------------------------------------------------------------------------------------------------------
  12. Segment Physical address Size
  13. -------------------------------------------------------------------------------------------------------------------------------
  14. MLO 0x00000000-0x0007FFFF 512 KB
  15. Primary u-boot 0x00080000-0x0017FFFF 1 MB
  16. Environment 0x00180000-0x001FFFFF 512 KB
  17. Secondary u-boot 0x00200000-0x002FFFFF 1 MB
  18. Primary dtb 0x00300000-0x0037FFFF 512 KB
  19. Secondary dtb 0x00380000-0x003FFFFF 512 KB
  20. Primary kernel 0x00400000-0x00DFFFFF 10 MB
  21. Secondary Kernel 0x00E00000-0x017FFFFF 10 MB
  22. Primary root file system 0x01800000-0x029FFFFF 24 MB
  23. Secondary root file system 0x03000000-0x047FFFFF 24 MB
  24. Primary user configuration 0x04800000-0x004DFFFF 6 MB
  25. Secondary user configuration 0x04E00000-0x0053FFFF 6 MB
  26. Factory default configuration 0x05400000-0x0059FFFF 6 MB
  27. Storage 0x05A00000-0x7FFFFFFF 1958 MB
  28. */
  29. /**************************************************************************************/
  30. /*********************************System Limitation**********************************/
  31. /**************************************************************************************/
  32. /*Rating outout power and current*/
  33. #define RATED_POWER 25 //kW
  34. #define RATED_CURRENT 350 //Amp, it depend on the capacity of charging connector
  35. /*relevant to Quantity */
  36. #define MAX_PSU_QUANTITY 62
  37. #define CHAdeMO_QUANTITY 1
  38. #define CCS_QUANTITY 1
  39. #define GB_QUANTITY 0
  40. #define PSU_QUANTITY 1
  41. #define ONE_CONNECTOR_USE 1
  42. /*SystemLog message*/
  43. #define SystemLogMessage //for engineer to do analysis
  44. /**************************************************************************************/
  45. /**************************share memory key information***************************/
  46. /**************************************************************************************/
  47. #define ShmSysConfigAndInfoKey 1001
  48. #define ShmPsuKey 1002
  49. #define ShmCHAdeMOCommKey 1003
  50. #define ShmCcsCommKey 1004
  51. #define ShmStatusCodeKey 1005
  52. #define ShmPrimaryMcuKey 1006
  53. #define ShmFanBdKey 1007
  54. #define ShmRelayBdKey 1008
  55. #define ShmOcppModuleKey 1009
  56. /**************************************************************************************/
  57. /****structure SysConfigData => shall store the data to NAND flash****************/
  58. /****structure SysInfoData => shall NOT store the data to NAND flash***************/
  59. /****according to System Configuration and Information Table.xlsx Rev.0.2 *******/
  60. /**************************************************************************************/
  61. struct EthConfigData
  62. {
  63. unsigned char EthDhcpClient; //0: enable,1: disable
  64. unsigned char EthMacAddress[18]; //default: Null
  65. unsigned char EthIpAddress[16]; //Eth0 default:192.168.0.10 ,Eth1 default:192.168.1.10
  66. unsigned char EthSubmaskAddress[16]; //Eth0 default:255.255.255.0 ,Eth1 default:255.255.255.0
  67. unsigned char EthGatewayAddress[16]; //Eth0 default:192.168.0.254 ,Eth1 default:192.168.1.254
  68. };
  69. struct WifiConfigData
  70. {
  71. unsigned char WifiMode; //0: disable, 1: Infrastructure client, 2: Infrastructure server, 3: Ad-Hoc
  72. unsigned char WifiSsid[256]; //default: Null
  73. unsigned char WifiPassword[256]; //default: Null
  74. int WifiRssi; //dbm
  75. unsigned char WifiDhcpServer; //0: enable, 1: disable
  76. unsigned char WifiDhcpClient; //0: enable, 1: disable
  77. unsigned char WifiMacAddress[18]; //default: Null
  78. unsigned char WifiIpAddress[16]; //default:192.168.2.10
  79. unsigned char WifiSubmaskAddress[16]; //default:255.255.255.0
  80. unsigned char WifiGatewayAddress[16]; //default:192.168.2.254
  81. unsigned char WifiNetworkConn; //0: disconnected, 1: connected
  82. };
  83. struct TeleConfigData
  84. {
  85. unsigned char TelcomModelName[64]; //default: Null
  86. unsigned char TelcomSoftwareVer[64]; //default: Null
  87. unsigned char TelcomApn[256]; //default: Null
  88. int TelcomRssi; //dbm
  89. unsigned char TelcomChapPapId[256]; //default: Null
  90. unsigned char TelcomChapPapPwd[256]; //default: Null
  91. unsigned char TelcomModemImei[16]; //default: Null
  92. unsigned char TelcomSimImsi[16]; //default: Null
  93. unsigned char TelcomSimStatus;//0: no SIM card is found, 1: valid SIM card, 2: invalid SIM card
  94. unsigned char TelcomModemMode;//0: No services, 1: CDMA, 2: GSM/GPRS, 3: WCDMA, 4: GSM/WCDMA, 5: TD_SCDMA mode, 6: Unknow
  95. unsigned char TelcomIpAddress[16]; //default: Null
  96. unsigned char TelcomNetworkConn; //0: disconnected, 1: connected
  97. };
  98. struct SysConfigData
  99. {
  100. /**************System***************/
  101. unsigned char ModelName[64]; //charger model name
  102. unsigned char SerialNumber[64]; //charger system serial number
  103. unsigned char SystemId[128]; //charger system ID
  104. unsigned char SystemDateTime[32]; //charger system date and time
  105. unsigned char AuthorisationMode; //0: Phihong RFID tag, 1: OCPP backend, 2: Phihong backend, 3: free mode
  106. unsigned char DefaultLanguage; //
  107. unsigned char RfidCardNumEndian; //0: little endian, 1: big endian
  108. unsigned short AcPlugInTimes; //0~65535
  109. unsigned short GbPlugInTimes; //0~65535
  110. unsigned short Ccs1PlugInTime; //0~65535
  111. unsigned short Ccs2PlugInTimes; //0~65535
  112. unsigned short ChademoPlugInTimes; //0~65535
  113. /**************Charging***************/
  114. unsigned short MaxChargingEnergy; //0: no limit, 1 ~ 65535 kWh
  115. unsigned short MaxChargingPower; //0: rating value, 1 ~ RATING_POWER kW"
  116. unsigned short MaxChargingCurrent; //0: rating value, 1 ~ RATING_CURRENT amp"
  117. unsigned short MaxChargingDuration; //0: no limit, 1 ~ 65535 minutes
  118. unsigned char PhaseLossPolicy; //0: charging, 1: stop charging
  119. unsigned char LocalWhiteCard[10][32]; //Max. card quantity is 10
  120. unsigned char UserId[32]; //the user use this ID to trigger charging event, it can be RFID card number, OCPP IdTag, etc.
  121. /**************Network***************/
  122. unsigned char FtpServer[32]; //the ftp server for Phihong server to do data transimission
  123. struct EthConfigData Eth0Interface;
  124. struct EthConfigData Eth1Interface;
  125. struct WifiConfigData AthInterface;
  126. struct TeleConfigData TelecomInterface;
  127. /**************Backend***************/
  128. unsigned int BackendConnTimeout; //default : 300s
  129. unsigned char OfflinePolicy; //0: local list, 1: Phihong RFID tag, 2: free charging, 3: no charging
  130. unsigned short OfflineMaxChargeEnergy; //0: same as MaxChargingEnergy, 1 ~ 65535 kWh
  131. unsigned short OfflineMaxChargeDuration; //0: same as MaxChargeDuration, 1 ~ 65535 minutes
  132. unsigned char OcppServerURL[512]; //http: non-secure OCPP 1.5-S, https: secure OCPP 1.5-S, ws: non-secure OCPP 1.6-J, wss: secure OCPP 1.6-J"
  133. unsigned char ChargeBoxId[128];
  134. unsigned int Checksum; //4 bytes checksum
  135. };
  136. struct ChargingInfoData
  137. {
  138. unsigned char Index;
  139. unsigned char Type; // 0 : Chademo, 1 : CCS, 2: GB
  140. unsigned char type_index;
  141. unsigned char SystemStatus; //0: Booting, 1: idle, 2: authorizing, 3: preparing, 4: charging, 5: terminating, 6: alarm, 7: fault
  142. unsigned char PreSystemStatus;
  143. unsigned char CardNumber[32];
  144. float MaximumChargingVoltage; //0~6553.5 volt
  145. float AvailableChargingCurrent; //0~6553.5 amp
  146. float AvailableChargingPower; //0~6553.5 kW
  147. float PresentChargingVoltage; //0~6553.5 volt
  148. float PresentChargingCurrent; //0~6553.5 amp
  149. float PresentChargingPower; //0~6553.5 kW
  150. float PresentChargedEnergy; //0~6553.5 kWh
  151. int PresentChargedDuration; // second
  152. int RemainChargingDuration; // second
  153. float EvBatteryMaxVoltage; // 0~6553.5 volt
  154. float EvBatterytargetVoltage; // 0~6553.5 volt
  155. float EvBatterytargetCurrent; //102.3 0~200(A) (unit:1A)
  156. int EvBatterySoc; // 0~100%
  157. unsigned char ConnectorPlugIn; //0: unplug, 1: Plug-in
  158. unsigned char GunLocked; //0: unlocked 1: locked
  159. float PilotVoltage;
  160. unsigned char PilotState;//1:state A, 2:State B1, 3:State B2, 4:State C, 5:State D, 6:State E, 7:State F, 8: Pilot error
  161. unsigned char PilotDuty; // 0~100%
  162. // Connector Temp
  163. unsigned char ConnectorTemp; //0x00: -60¢XC ~ 0xFE: 194
  164. // Charging Status
  165. unsigned char ChargingStatus; // for gfd result => 0x00 : None, 0x01 : Can Start Charging, 0x02 : Stop Charging
  166. float OutputEnergy; // output energy by per charging
  167. unsigned char RelayK1K2Status; // 0x00 : open, 0x01 : close
  168. int TimeoutPid;
  169. unsigned char SmartChargeEnable;
  170. };
  171. struct SysInfoData
  172. {
  173. /**************System***************/
  174. unsigned char BootingStatus; // 0 : booting, 1 : Initializing Complete.
  175. unsigned char FactoryConfiguration; //0: normal, 1: trigger, charger will return the configuration to factory default if trigger
  176. float InputVoltageR; //0~655.35 volt
  177. float InputVoltageS; //0~655.35 volt
  178. float InputVoltageT; //0~655.35 volt
  179. unsigned int SystemFanRotaSpeed; //0 ~ 65535 RPM
  180. unsigned int PsuFanRotaSpeed; //0 ~ 65535 RPM
  181. unsigned char AuxPower5V; //0 ~ 255 volt
  182. unsigned char AuxPower12V; //0 ~ 255 volt
  183. unsigned char AuxPower24V; //0 ~ 255 volt
  184. unsigned char AuxPower48V; //0 ~ 255 volt
  185. unsigned char CsuHwRev[32]; //CSU board hardware version
  186. unsigned char CsuBootLoadFwRev[32]; //CSU board bootloader firmware version
  187. unsigned char CsuKernelFwRev[32];//CSU board OS kernel firmware version
  188. unsigned char CsuRootFsFwRev[32];//CSU board root file system firmware version
  189. unsigned char CsuPrimFwRev[32]; //CSU board root file system firmware version
  190. unsigned char LcmHwRev[32]; //LCM module hardware version
  191. unsigned char LcmFwRev[32]; //LCM module firmware version
  192. unsigned char PsuHwRev[32]; //PSU hardware version
  193. unsigned char PsuPrimFwRev[32]; //PSU primary firmware version
  194. unsigned char PsuSecFwRev[32]; //PSU secondary firmware version
  195. unsigned char AuxPwrHwRev[32]; //Aux. power module hardware version
  196. unsigned char AuxPwrFwRev[32]; //Aux. power module firmware version
  197. unsigned char FanModuleHwRev[32]; //Fan module hardware version
  198. unsigned char FanModuleFwRev[32]; //Fan module firmware version
  199. unsigned char RelayModuleHwRev[32]; //Relay control module hardware version
  200. unsigned char RelayModuleFwRev[32]; //Relay control module firmware version
  201. unsigned char TelcomModemFwRev[32]; //the 3G/4G modem firmware version
  202. int SystemAmbientTemp; // -40 ~ 215 degree C
  203. int SystemCriticalTemp; // -40 ~ 215 degree C
  204. int CcsConnectorTemp; // -40 ~ 215 degree C
  205. int PsuAmbientTemp; // -40 ~ 215 degree C
  206. /**************Charging***************/
  207. struct ChargingInfoData ChademoChargingData[CHAdeMO_QUANTITY];
  208. struct ChargingInfoData CcsChargingData[CCS_QUANTITY];
  209. struct ChargingInfoData GbChargingData[GB_QUANTITY];
  210. unsigned char CurGunSelected;
  211. /**************Network***************/
  212. unsigned char InternetConn; //0: disconnected, 1: connected
  213. /**************Backend***************/
  214. unsigned char OcppConnStatus; //0: disconnected, 1: connected
  215. /**************Alston***************/
  216. unsigned char WaitForPlugit; //0: none scan, 1: scanning
  217. unsigned char PageIndex; //0 : Initialize
  218. //1 : idle
  219. //4 : Authorizing
  220. //5 : Authorizing complete
  221. //6 : Authorizing fail
  222. //7 : Wait for Plug
  223. //8 : Pre-charge
  224. //9 : Charging
  225. unsigned char AcContactorStatus; //0 : disconnected, 1 : connected
  226. unsigned char SelfTestSeq; //
  227. unsigned char ReAssignedFlag; // 0 : none, other : gun number.
  228. unsigned char FirmwareUpdate; // 0 : none, 1 : update.
  229. };
  230. struct WARNING_CODE_INFO
  231. {
  232. unsigned char WarningCount;
  233. unsigned char PageIndex;
  234. unsigned char WarningCode[10][7];
  235. };
  236. struct SysConfigAndInfo
  237. {
  238. struct SysConfigData SysConfig;
  239. struct SysInfoData SysInfo;
  240. struct WARNING_CODE_INFO SysWarningInfo;
  241. };
  242. /**************************************************************************************/
  243. /**************************Alarm Share memory**************************************/
  244. /***************************************************************************************
  245. Status Code A B C D E F
  246. 0: Issue 1: From EVSE 1: Fault (unrecoverable) 001 ~ 999 serial number
  247. e.g., hardware broken, system latch
  248. 1: Recovered 2: From EV 2: Alarm (recoverable)
  249. e.g., OTP, OVP
  250. 3: From Backend 3: Information
  251. e.g., swipe card to stop charging
  252. according to XXX.Revxx
  253. ***************************************************************************************/
  254. /**************************************************************************************/
  255. char FaultStatusCode[32][6]=
  256. {
  257. "011001", //CHAdeMO output fuse blew
  258. "011002", //CCS output fuse blew
  259. "011003", //GB output fuse blew
  260. "011004", //RCD/CCID self-test fail
  261. "011005", //AC input contactor 1 welding
  262. "011006", //AC input contactor 1 driving fault
  263. "011007", //AC input contactor 2 welding
  264. "011008", //AC input contactor 2 driving fault
  265. "011009", //AC output relay welding
  266. "011010", //AC output relay driving fault
  267. "011011", //CHAdeMO output relay welding
  268. "011012", //CHAdeMO output relay driving fault
  269. "011013", //CCS output relay welding
  270. "011014", //CCS output relay driving fault
  271. "011015", //GB output relay welding
  272. "011016", //GB output relay driving fault
  273. "011017", //AC connector temperature sensor broken
  274. "011018", //CHAdeMO connector temperature sensor broken
  275. "011019", //CCS connector temperature sensor broken
  276. "011020", //GB connector temperature sensor broken
  277. "011021", //WiFi module broken
  278. "011022", //3G/4G module broken
  279. "011023", //Aux. power module broken
  280. "011024", //Relay control module /smart box broken
  281. "011025", //CHAdeMO connector lock fail
  282. "011026", //GB connector lock fail
  283. "011027", //AC connector lock fail
  284. "011028", //CHAdeMO module broken
  285. "011029", //CCS module broken
  286. "011030", //GBT module broken
  287. "011031", //PSU module broken
  288. "011032" //Reserved
  289. };
  290. struct FaultCodeData
  291. {
  292. unsigned char PreviousFaultVal[4];
  293. union
  294. {
  295. unsigned char FaultVal[4];
  296. struct
  297. {
  298. //FaultVal[0]
  299. unsigned char ChademoOutputFuseBlew:1; //bit 0
  300. unsigned char CcsOutputFuseBlew:1; //bit 1
  301. unsigned char GbOutputFuseBlew:1; //bit 2
  302. unsigned char RcdSelfTestFail:1; //bit 3
  303. unsigned char AcInputContactor1Welding:1; //bit 4
  304. unsigned char AcInputContactor1DrivingFault:1; //bit 5
  305. unsigned char AcInputContactor2Welding:1; //bit 6
  306. unsigned char AcInputContactor2DrivingFault:1; //bit 7
  307. //FaultVal[1]
  308. unsigned char AcOutputRelayWelding:1; //bit 0
  309. unsigned char AcOutputRelayDrivingFault:1; //bit 1
  310. unsigned char ChademoOutputRelayWelding:1; //bit 2
  311. unsigned char ChademoOutputRelayDrivingFault :1; //bit 3
  312. unsigned char CcsOutputRelayWelding:1; //bit 4
  313. unsigned char CcsOutputRelayDrivingFault:1; //bit 5
  314. unsigned char GbOutputRelayWelding:1; //bit 6
  315. unsigned char GbOutputRelayDrivingFault:1; //bit 7
  316. //FaultVal[2]
  317. unsigned char AcConnectorTempSensorBroken:1; //bit 0
  318. unsigned char ChademoConnectorTempSensorBroken:1; //bit 1
  319. unsigned char CcsConnectorTempSensorBroken:1; //bit 2
  320. unsigned char GbConnectorTempSensorBroken:1; //bit 3
  321. unsigned char WiFiModuleBroken:1; //bit 4
  322. unsigned char Telecom4GModuleBroken:1; //bit 5
  323. unsigned char AuxPowerModuleBroken:1; //bit 6
  324. unsigned char RelayControlModuleBroken :1; //bit 7
  325. //FaultVal[3]
  326. unsigned char ChademoConnectorLockFail:1; //bit 0
  327. unsigned char GbConnectorLockFail:1; //bit 1
  328. unsigned char AcConnectorLockFail:1; //bit 2
  329. unsigned char ChademoModuleBroken:1; //bit 3
  330. unsigned char CcsModuleBroken:1; //bit 4
  331. unsigned char GbModuleBroken:1; //bit 5
  332. unsigned char PsuModuleBroken:1; //bit 6
  333. unsigned char :1; //bit 7 reserved
  334. }bits;
  335. }FaultEvents;
  336. };
  337. char AlarmStatusCode[64][6]=
  338. {
  339. "012200", //System L1 input OVP
  340. "012201", //System L2 input OVP
  341. "012202", //System L3 input OVP
  342. "012203", //System L1 input UVP
  343. "012204", //System L2 input UVP
  344. "012205", //System L3 input UVP
  345. "012206", //PSU L1 input OVP
  346. "012207", //PSU L2 input OVP
  347. "012208", //PSU L3 input OVP
  348. "012209", //PSU L1 input UVP
  349. "012210", //PSU L2 input UVP
  350. "012211", //PSU L3 input UVP
  351. "012212", //System L1 input drop
  352. "012213", //System L2 input drop
  353. "012214", //System L3 input drop
  354. "012215", //System AC output OVP
  355. "012216", //System AC output OCP
  356. "012217", //System CHAdeMO output OVP
  357. "012218", //System CHAdeMO output OCP
  358. "012219", //System CCS output OVP
  359. "012220", //System CCS output OCP
  360. "012221", //System GB output OVP
  361. "012222", //System GB output OCP
  362. "012223", //System ambient/inlet OTP
  363. "012224", //System critical point OTP
  364. "012225", //PSU ambient/inlet OTP
  365. "012226", //PSU critical point OTP
  366. "012227", //Aux. power module OTP
  367. "012228", //Relay board/smart box OTP
  368. "012229", //CHAdeMO connector OTP
  369. "012230", //CCS connector OTP
  370. "012231", //GB connector OTP
  371. "012232", //AC connector OTP
  372. "012233", //RCD/CCID trip
  373. "012234", //CHAdeMO GFD trip
  374. "012235", //CCS GFD trip
  375. "012236", //GB GFD trip
  376. "012237", //SPD trip
  377. "012238", //Main power breaker trip
  378. "012239", //Aux. power breaker trip
  379. "012240", //PSU communication fail
  380. "012241", //WiFi module communication fail
  381. "012242", //3G/4G module communication fail
  382. "012243", //RFID module communication fail
  383. "012244", //Bluetooth module communication fail
  384. "012245", //LCM module communication fail
  385. "012246", //Aux. power module communication fail
  386. "012247", //Relay control boaed/smart box communication fail
  387. "012248", //CCS module communication fail
  388. "012249", //CHAdeMO module communication fail
  389. "012250", //GBT module communication fail
  390. "012251", //Emergency stop
  391. "012252", //Door open
  392. "012253", //System fan decay
  393. "012254", //Fail to create share memory
  394. "012255", //CSU initialization failed
  395. "012256", //AC Ground Fault
  396. "012257", //MCU self-test Fault
  397. "012258", //Relay self-test Fault
  398. "012259", //CHAdeMO groundfault detection timeout (GFD)
  399. "012260", //CCS groundfault detection timeout (GFD)
  400. "012261", //GB groundfault detection timeout (GFD)
  401. "012262", //Reserved
  402. "012263" //Reserved
  403. };
  404. struct AlarmCodeData
  405. {
  406. unsigned char PreviousAlarmVal[8];
  407. union
  408. {
  409. unsigned char AlarmVal[8];
  410. struct
  411. {
  412. //AlarmVal[0]
  413. unsigned char SystemL1InputOVP:1; //bit 0
  414. unsigned char SystemL2InputOVP:1; //bit 1
  415. unsigned char SystemL3InputOVP:1; //bit 2
  416. unsigned char SystemL1InputUVP:1; //bit 3
  417. unsigned char SystemL2InputUVP:1; //bit 4
  418. unsigned char SystemL3InputUVP:1; //bit 5
  419. unsigned char PsuL1InputOVP:1; //bit 6
  420. unsigned char PsuL2InputOVP:1; //bit 7
  421. //AlarmVal[1]
  422. unsigned char PsuL3InputOVP:1; //bit 0
  423. unsigned char PsuL1InputUVP:1; //bit 1
  424. unsigned char PsuL2InputUVP:1; //bit 2
  425. unsigned char PsuL3InputUVP :1; //bit 3
  426. unsigned char SystemL1InputDrop:1; //bit 4
  427. unsigned char SystemL2InputDrop:1; //bit 5
  428. unsigned char SystemL3InputDrop:1; //bit 6
  429. unsigned char SystemAcOutputOVP:1; //bit 7
  430. //AlarmVal[2]
  431. unsigned char SystemAcOutputOCP:1; //bit 0
  432. unsigned char SystemChademoOutputOVP:1; //bit 1
  433. unsigned char SystemChademoOutputOCP:1; //bit 2
  434. unsigned char SystemCcsOutputOVP:1; //bit 3
  435. unsigned char SystemCcsOutputOCP:1; //bit 4
  436. unsigned char SystemGbOutputOVP:1; //bit 5
  437. unsigned char SystemGbOutputOCP:1; //bit 6
  438. unsigned char SystemAmbientOTP :1; //bit 7
  439. //AlarmVal[3]
  440. unsigned char SystemCriticalPointOTP:1; //bit 0
  441. unsigned char PsuAmbientOTP:1; //bit 1
  442. unsigned char PsuCriticalPointOTP:1; //bit 2
  443. unsigned char AuxPowerModuleOTP:1; //bit 3
  444. unsigned char RelayBoardOTP:1; //bit 4
  445. unsigned char ChademoConnectorOTP:1; //bit 5
  446. unsigned char CcsConnectorOTP:1; //bit 6
  447. unsigned char GbConnectorOTP:1; //bit 7
  448. //AlarmVal[4]
  449. unsigned char AcConnectorOTP:1; //bit 0
  450. unsigned char RcdTrip:1; //bit 1
  451. unsigned char ChademoGfdTrip:1; //bit 2
  452. unsigned char CcsGfdTrip:1; //bit 3
  453. unsigned char GbGfdTrip:1; //bit 4
  454. unsigned char SpdTrip:1; //bit 5
  455. unsigned char MainPowerBreakerTrip:1; //bit 6
  456. unsigned char AuxPowerBreakerTrip:1; //bit 7
  457. //AlarmVal[5]
  458. unsigned char PsuCommunicationFail:1; //bit 0
  459. unsigned char WiFiModuleCommFail:1; //bit 1
  460. unsigned char Telecom4GModuleCommFail:1; //bit 2
  461. unsigned char RfidModuleCommFail:1; //bit 3
  462. unsigned char BluetoothModuleCommFail:1; //bit 4
  463. unsigned char LcmModuleCommFail:1; //bit 5
  464. unsigned char AuxPowerModuleCommFail:1; //bit 6
  465. unsigned char RelayBoardCommFail:1; //bit 7
  466. //AlarmVal[6]
  467. unsigned char CcsModuleCommFail:1; //bit 0
  468. unsigned char ChademoModuleCommFail:1; //bit 1
  469. unsigned char GbModuleCommFail:1; //bit 2
  470. unsigned char EmergencyStopTrip:1; //bit 3
  471. unsigned char DoorOpen:1; //bit 4
  472. unsigned char SystemFanDecay:1; //bit 5
  473. unsigned char FailToCreateShareMemory:1; //bit 6
  474. unsigned char CsuInitFailed:1; //bit 7
  475. //AlarmVal[7]
  476. unsigned char AcGroundfaultFail:1; //bit 0
  477. unsigned char McuSelftestFail:1; //bit 1
  478. unsigned char RelaySelftestFail:1; //bit 2
  479. unsigned char ChademoGroundfaultTimeout:1; //bit 3
  480. unsigned char CcsGroundfaultTimeout:1; //bit 4
  481. unsigned char GbGroundfaultTimeout:1; //bit 5
  482. unsigned char :1; //bit 6
  483. unsigned char :1; //bit 7
  484. }bits;
  485. }AlarmEvents;
  486. };
  487. char InfoStatusCode[128][6]=
  488. {
  489. //Information comes from EVSE
  490. "013600", //Normal stop charging by user
  491. "013601", //Charging Time's up
  492. "013602", //Replace system air filter
  493. "013603", //Reach to CHAdeMO max. plugging times.
  494. "013604", //Reach to CCS max. plugging times.
  495. "013605", //Reach to GB max. plugging times.
  496. "013606", //Reach to AC max. plugging times.
  497. "013607", //CSU fimrware update fail
  498. "013608", //CHAdeMO Module fimrware update fail
  499. "013609", //CCS Module fimrware update fail
  500. "013610", //GB Module fimrware update fail
  501. "013611", //Aux. power module fimrware update fail
  502. "013612", //Relay control module fimrware update fail
  503. "013613", //LCM module fimrware update fail
  504. "013614", //Bluetooth module fimrware update fail
  505. "013615", //WiFi module fimrware update fail
  506. "013616", //3G/4G module fimrware update fail
  507. "013617", //SMR fimrware update fail
  508. "013618", //RFID module fimrware update fail
  509. "013619", //configured by USB flash drive
  510. "013620", //configured by backend
  511. "013621", //configured by webpage
  512. "013622", //disconnected from Internet through Ethernet
  513. "013623", //disconnected from Internet through WiFi
  514. "013624", //disconnected from Internet through 3G/4G
  515. "013625", //disconnected from AP through WiFi
  516. "013626", //disconnected from APN through 3G/4G
  517. "013627", //Reserved
  518. "013628", //Reserved
  519. "013629", //Reserved
  520. "013630", //Reserved
  521. "013631", //Reserved
  522. //Information comes from EV
  523. "023700", //CHAdeMO EV communication Fail
  524. "023701", //CCS EV communication Fail
  525. "023702", //GB EV communication Fail
  526. "023703", //AC: pilot fault
  527. "023704", //CHAdeMO: battery malfunction
  528. "023705", //CHAdeMO: no charging permission
  529. "023706", //CHAdeMO: battery incompatibility
  530. "023707", //CHAdeMO: battery OVP
  531. "023708", //CHAdeMO: battery UVP
  532. "023709", //CHAdeMO: battery OTP
  533. "023710", //CHAdeMO: battery current difference
  534. "023711", //CHAdeMO: battery voltage difference
  535. "023712", //CHAdeMO: shift position
  536. "023713", //CHAdeMO: battery other fault
  537. "023714", //CHAdeMO: charging system error
  538. "023715", //CHAdeMO: EV normal stop
  539. "023716", //CHAdeMO: connector temperature sensor broken
  540. "023717", //CHAdeMO: connector lock fail
  541. "023718", //CHAdeMO: D1 ON No Receive
  542. "023719", //CHAdeMO: BMS K to J Timeout
  543. "023720", //CHAdeMO: BMS Charge Allow Timeout
  544. "023721", //CHAdeMO: Wait GroundFault Timeout
  545. "023722", //CHAdeMO: BMS EV Relay Timeout
  546. "023723", //CHAdeMO: BMS Request Current Timeout
  547. "023724", //CHAdeMO: BMS K to J OFF Timeout
  548. "023725", //CHAdeMO: BMS EV Relay OFF Timeout
  549. "023726", //CHAdeMO: ADC More Than 10V
  550. "023727", //CHAdeMO: ADC More Than 20V
  551. "023728", //CHAdeMO: BMS Charge Before Stop
  552. "023729", //CHAdeMO: Charger Get Normal Stop
  553. "023730", //CHAdeMO: Charger Get Emergency Stop
  554. "023731", //CHAdeMO: Isolation Result Fail
  555. "023732", //CHAdeMO: Miss Link With MotherBoard
  556. "023733", //CHAdeMO: Output Voltage More Than Limit
  557. "023734", //CHAdeMO: Request Current More Than Limit
  558. "023735", //CHAdeMO: Re Cap BMS Eqr Current Exceed
  559. "023736", //CHAdeMO: Charge Remain Count Down
  560. //Information comes from Backend
  561. "033900", //disconnected from backend through Ethernet
  562. "033901", //disconnected from backend through WiFi
  563. "033902", //disconnected from backend through 3G/4G
  564. "033903", //Remote start charging by backend
  565. "033904", //Remote stop charging by backend
  566. "033905", //Remote reset by backend
  567. "033906", //Reserved
  568. "033907", //Reserved
  569. };
  570. struct InfoCodeData
  571. {
  572. unsigned char PreviousInfoVal[10];
  573. union
  574. {
  575. unsigned char InfoVal[10];
  576. struct
  577. {
  578. //InfoVal[0]
  579. unsigned char NormalStopChargingByUser:1; //bit 0
  580. unsigned char ChargingTimesUp:1; //bit 1
  581. unsigned char ReplaceSystemAirFilter:1; //bit 2
  582. unsigned char ReachChademoMaxPluggingTimes:1; //bit 3
  583. unsigned char ReachCcsMaxPluggingTimes:1; //bit 4
  584. unsigned char ReachGbMaxPluggingTimes:1; //bit 5
  585. unsigned char ReachAcMaxPluggingTimes:1; //bit 6
  586. unsigned char CsuFimrwareUpdateFail:1; //bit 7
  587. //InfoVal[1]
  588. unsigned char ChademoModuleFimrwareUpdateFail:1; //bit 0
  589. unsigned char CcsModuleFimrwareUpdateFail:1; //bit 1
  590. unsigned char GbModuleFimrwareUpdateFail:1; //bit 2
  591. unsigned char AuxPowerModuleFimrwareUpdateFail:1; //bit 3
  592. unsigned char RelayBoardFimrwareUpdateFail:1; //bit 4
  593. unsigned char LcmModuleFimrwareUpdateFail:1; //bit 5
  594. unsigned char BluetoothModuleFimrwareUpdateFail:1; //bit 6
  595. unsigned char WiFiModuleFimrwareUpdateFail:1; //bit 7
  596. //InfoVal[2]
  597. unsigned char Telocom4GModuleFimrwareUpdateFail:1; //bit 0
  598. unsigned char PsuFimrwareUpdateFail:1; //bit 1
  599. unsigned char RfidModuleFimrwareUpdateFail:1; //bit 2
  600. unsigned char ConfiguredByUsbFlashDrive:1; //bit 3
  601. unsigned char ConfiguredByBackend:1; //bit 4
  602. unsigned char ConfiguredByWebpage:1; //bit 5
  603. unsigned char InternetDisconnectViaEthernet:1; //bit 6
  604. unsigned char InternetDisconnectViaWiFi :1; //bit 7
  605. //InfoVal[3]
  606. unsigned char InternetDisconnectVia4Gi:1; //bit 0
  607. unsigned char ApDisconnectViaWiFi:1; //bit 1
  608. unsigned char ApnDisconnectVia4Gi:1; //bit 2
  609. unsigned char :5; //bit 3~7 reserved
  610. //InfoVal[4]
  611. unsigned char ChademoEvCommFail:1; //bit 0
  612. unsigned char CcsEvCommFail:1; //bit 1
  613. unsigned char GbEvCommFail:1; //bit 2
  614. unsigned char PilotFault:1; //bit 3
  615. unsigned char ChademoBatteryMalfun:1; //bit 4
  616. unsigned char ChademoNoPermission:1; //bit 5
  617. unsigned char ChademoBatteryIncompatibility:1; //bit 6
  618. unsigned char ChademoBatteryOVP:1; //bit 7
  619. //InfoVal[5]
  620. unsigned char ChademoBatteryUVP:1; //bit 0
  621. unsigned char ChademoBatteryOTP:1; //bit 1
  622. unsigned char ChademoBatteryCurrentDiff:1; //bit 2
  623. unsigned char ChademoBatteryVoltageDiff:1; //bit 3
  624. unsigned char ChademoShiftPosition:1; //bit 4
  625. unsigned char ChademoBatteryOtherFault:1; //bit 5
  626. unsigned char ChademoChargingSystemError:1; //bit 6
  627. unsigned char ChademoEvNormalStop:1; //bit 7
  628. //InfoVal[6]
  629. unsigned char ChademoTempSensorBroken:1; //bit 0
  630. unsigned char ChademoConnectorLockFail:1; //bit 1
  631. unsigned char ChademoD1OnNoReceive:1; //bit 2
  632. unsigned char ChademoBmsKtoJTimeout:1; //bit 3
  633. unsigned char ChademoBmsChargeAllowTimeout:1; //bit 4
  634. unsigned char ChademoWaitGfdTimeout:1; //bit 5
  635. unsigned char ChademoBmsEvRelayTimeout:1; //bit 6
  636. unsigned char ChademoBmsReqCurrentTimeout:1; //bit 7
  637. //InfoVal[7]
  638. unsigned char ChademoBmsKtoJOffTimeout :1; //bit 0
  639. unsigned char ChademoBmsEvRelayOffTimeout :1; //bit 1
  640. unsigned char ChademoAdcMoreThan10V :1; //bit 2
  641. unsigned char ChademoAdcMoreThan20V :1; //bit 3
  642. unsigned char ChademoBmsChargeBeforeStop :1; //bit 4
  643. unsigned char ChademoChargerGetNormalStop :1; //bit 5
  644. unsigned char ChademoChargerGetEmergencyStop :1; //bit 6
  645. unsigned char ChademoIsolationResultFail :1; //bit 7
  646. //InfoVal[8]
  647. unsigned char ChademoMissLinkWithMotherBoard :1; //bit 0
  648. unsigned char ChademoOutputVolMoreThanLimit :1; //bit 1
  649. unsigned char ChademoReqCurrentMoreThanLimit :1; //bit 2
  650. unsigned char ChademoReCapBmsEqrCurrentExceed :1; //bit 3
  651. unsigned char ChademoChargeRemainCountDown :1; //bit 4
  652. unsigned char :3; //bit 5 ~ 7 reserved
  653. //InfoVal[9]
  654. unsigned char BackendDisconnectedViaEthernet:1; //bit 0
  655. unsigned char BackendDisconnectViaWiFi:1; //bit 1
  656. unsigned char BackendDisconnectVia4G:1; //bit 2
  657. unsigned char BackendRemoteStart:1; //bit 3
  658. unsigned char BackendRemoteStop:1; //bit 4
  659. unsigned char BackendRemoteReset:1; //bit 5
  660. unsigned char :2; //bit 6~7 reserved
  661. }bits;
  662. }InfoEvents;
  663. };
  664. struct StatusCodeData
  665. {
  666. struct FaultCodeData FaultCode;
  667. struct AlarmCodeData AlarmCode;
  668. struct InfoCodeData InfoCode;
  669. };
  670. /**************************************************************************************/
  671. /**************************PSU Share memory***************************************/
  672. /**************************************************************************************/
  673. /*Following are the information for each PSU module*/
  674. struct PsuModuleData
  675. {
  676. unsigned char AssignID;
  677. unsigned char PhysicalID;
  678. unsigned char GroupID;
  679. unsigned char Address;
  680. unsigned char FireWireIndex;
  681. unsigned char FwVersion[12];
  682. unsigned char SerialNumber[32];
  683. unsigned char StateMachine; //0: Identification, 1:Operation, 2: Alarm, 3: Failure, s4:Upgrade
  684. unsigned char OutputPowerSwitch; //0: D.D normal OFF, 1: D.D emergency OFF, 2: D.D ON
  685. unsigned short FanSpeed_1; //RPM
  686. unsigned short FanSpeed_2; //RPM
  687. unsigned short FanSpeed_3; //RPM
  688. unsigned short FanSpeed_4; //RPM
  689. unsigned short InputVoltage_Type; //0x00 = Line to Line Vol, 0x01 = Line to Neutral Vol
  690. unsigned short InputVoltageL1; //abcd=abc.d volt
  691. unsigned short InputVoltageL2; //abcd=abc.d volt
  692. unsigned short InputVoltageL3; //abcd=abc.d volt
  693. unsigned short InputCurrentL1; //abcd=abc.d amp
  694. unsigned short InputCurrentL2; //abcd=abc.d amp
  695. unsigned short InputCurrentL3; //abcd=abc.d amp
  696. unsigned short PresentOutputVoltage; //abcd=abc.d volt
  697. unsigned short PresentOutputCurrent; //abcd=abc.d amp
  698. unsigned short AvailableCurrent; //abcd=abc.d amp
  699. unsigned int AvailablePower; //Watt
  700. unsigned char CriticalTemp1; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  701. unsigned char CriticalTemp2; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  702. unsigned char CriticalTemp3; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  703. unsigned char ExletTemp; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  704. unsigned char InletTemp_1; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  705. unsigned char InletTemp_2; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  706. unsigned char InletTemp; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  707. unsigned char OutletTemp; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  708. unsigned int AlarmCode; //
  709. unsigned int FaultCode; //
  710. };
  711. /*Following are the information for each PSU Group*/
  712. struct PsuGroupData
  713. {
  714. unsigned char GroupPresentPsuQuantity;
  715. unsigned char GroupOutputPowerSwitch; //0: D.D normal OFF, 1: D.D emergency OFF, 2: D.D ON
  716. unsigned short GroupTargetOutputVoltage; //abcd=abc.d volt
  717. unsigned short GroupTargetOutputCurrent; //abcd=abc.d amp
  718. unsigned short GroupAvailableCurrent; //abcd=abc.d amp
  719. unsigned int GroupAvailablePower; //Watt
  720. unsigned short GroupPresentOutputVoltage; //abcd=abc.d volt
  721. unsigned short GroupPresentOutputCurrent; //abcd=abc.d Amps
  722. struct PsuModuleData PsuModule[MAX_PSU_QUANTITY];
  723. };
  724. /*Following is the information for system all PSU*/
  725. struct PsuData
  726. {
  727. unsigned char SystemPresentPsuQuantity;
  728. struct PsuGroupData PsuGroup[4];
  729. unsigned char GroupCount;
  730. unsigned char SelfTest_Comp; // 0 : none, other : complete
  731. };
  732. /************************************************************************************/
  733. /**************************CHAdeMO protocol Share memory*********************/
  734. /**************************************************************************************/
  735. struct CHAdeMOEvData
  736. {
  737. unsigned char SupportDynamicControl; //110.0
  738. // bit0=1:supported
  739. unsigned char SupportHighCurrent; //110.0
  740. // bit1=1:supported
  741. unsigned char MiniChargeCurrent; //100.0 0~200(A) (unit:1A)
  742. // 0x00: request for current equivalent to 1.5kW
  743. // 0x01: no request
  744. // 0x02: request of 1A and following are the same rule
  745. unsigned short MaxiBatteryVoltage; //100.5,100.4 0~600(V) (unit:1V)
  746. unsigned short MaxiChargingTime; //101.2,101.1 10(sec.)~255(min.) (Unit:sec)
  747. // Set 0xFF to 101.1 (Unit: 10sec) in case 101.2 (Unit: 1min) is used
  748. unsigned char EstimatChargingTime; //101.3 0~254(min.) (Unit:sec)
  749. // Display Only
  750. unsigned short TotalBatteryCapacity; //101.6,101.5 0.1~6553.5(kWh) (unit:0.1 kWh)
  751. unsigned char ProtocolVersion; //102.0 0~255
  752. // 0x02: CHAdeMO specification ver.1.2
  753. unsigned short TargetBatteryVoltage; //102.2,102.1 0~600(V) (unit:1V)
  754. unsigned short ChargingCurrentRequest; //102.3 0~200(A) (unit:1A)
  755. //110.2,110.1 0~1023(A) (unit:1A)
  756. unsigned char BatteryAlarm; //102.4 >0:alarm
  757. // bit0=1:Battery overvoltage
  758. // bit1=1:Battery undervoltage
  759. // bit2=1:Battery current deviation error
  760. // bit3=1:High battery temperature
  761. // bit4=1:Battery voltage deviation error
  762. unsigned char EvDetection; //102.5
  763. // bit0=0:Vehicle charging disabled, (stop charging)
  764. // bit0=1:Vehicle charging enabled,
  765. // bit1=0:¡§Parking¡¨ position
  766. // bit1=1:other position (stop charging)
  767. // bit2=0:Charging system normal
  768. // bit2=1:Charging system error (stop charging)
  769. // bit3=0:EV contactor close or during welding detection
  770. // bit3=1:EV contactor open or termination of welding detection (stop charging)
  771. // bit4=0:No stop request before charging
  772. // bit4=1:Normal stop request before charging (stop charging)
  773. unsigned char SOC; //102.6 0~100(%) (unit:%)
  774. // Display Only
  775. unsigned char Communicating; // it is true if receive EV CAN message within every 1500ms
  776. };
  777. struct CHAdeMOEvseData
  778. {
  779. unsigned char SelfTest_Comp;
  780. unsigned char version[16]; //Chademo firmware version
  781. unsigned char SupportDynamicControl; //118.0
  782. // bit0=1:supported
  783. unsigned char SupportHighCurrent; //118.0
  784. // bit1=1:supported
  785. unsigned short AvailableOutputVoltage; //108.2,108.1 0~600(V) (unit:1V)
  786. unsigned short AvailableOutputCurrent; //108.3 0~255(A) (unit:1A)
  787. //118.2,118.1 0~1023(A) (unit:1A)
  788. unsigned short ThresholdVoltage; //108.5,108.4 0~600(V) (unit:1V)
  789. unsigned char ConnectorTemperatureP; //108.6 -40~215(degC) (unit:degC) //value 0=-40 [NISSAN customized]
  790. unsigned char ConnectorTemperatureN; //108.7 -40~215(degC) (unit:degC) //value 0=-40 [NISSAN customized]
  791. unsigned char ProtocolVersion; //109.0 0~255
  792. // 0x00: CHAdeMO specification 0.9 and earlier
  793. // 0x01: CHAdeMO specification 0.9 and 0.9.1
  794. // 0x02: CHAdeMO specification 1.0.0, 1.0.1, 1.1 and 1.2
  795. unsigned short PresentOutputVoltage; //109.2,109.1 0~600(V) (unit:1V)
  796. unsigned short PresentOutputCurrent; //109.3 0~255(A) (unit:1A)
  797. //118.4,118.3 0~1023(A) (unit:1A)
  798. unsigned char EvseDetection; //109.5
  799. // bit0=0:not charging state now
  800. // bit0=1:charging state now
  801. // bit1=0:EVSE normal
  802. // bit1=1:EVSE error
  803. // bit2=0:Not Energizing state
  804. // bit2=1:Energizing state
  805. // bit3=0:No Battery incompatibility
  806. // bit3=1:Battery incompatibility
  807. // bit4=0:No Charging system error
  808. // bit4=1:Charging system error
  809. // bit5=0:No Charging stop control
  810. // bit5=1:Charging stop control
  811. unsigned short RemainChargingTime; //109.7,109.6 10(sec.)~255(min.) (Unit:sec)
  812. // Set 0xFF to 109.6 (Unit: 10sec) in case 109.7 (Unit: 1min) is used
  813. unsigned char HighPowerCondition; //118.5
  814. // bit0=0:Present charging current H¡¦118.3,H¡¦118.4¡¨ is less than or equal to rated current of a charging cable
  815. // bit0=1:Present charging current H¡¦118.3,H¡¦118.4¡¨ is exceeds to rated current of a charging cable
  816. // bit1=1:charging cable Cooling function Operating Installed
  817. // bit2=1:charging cable Current limiting function
  818. // bit3=1:charging connector Cooling function Operating
  819. // bit4=1:charging connector Current limiting function Installed
  820. // bit5=1:charging connector Over-temperature protection Installed
  821. // bit6=1:Functional safety Applied
  822. unsigned int MaxiGroupPower; // XXXXXXXX (Unit:Watt)depend on which group to be used
  823. unsigned int MaxiGroupCurrent; // XXXXXXXX (unit:1A)depend on which group to be used
  824. unsigned short ApplyOutputVoltage; // 0~600(V) (unit:1V)
  825. unsigned short ElapseChargingTime; // (Unit:sec)
  826. unsigned short ElapseEnergy; // (Unit:10xkWh)
  827. unsigned char EvboardStatus; // 0 : init
  828. };
  829. struct CHAdeMOData
  830. {
  831. struct CHAdeMOEvData ev[CHAdeMO_QUANTITY];
  832. struct CHAdeMOEvseData evse[CHAdeMO_QUANTITY];
  833. };
  834. /************************************************************************************/
  835. /**************************CCS protocol Share memory***************************/
  836. /**************************DIN70121: 201412***************************************/
  837. /**************************ISO15118_2014: 2014************************************/
  838. /**************************ISO15118_2018: 2018************************************/
  839. /************************************************************************************/
  840. typedef enum boolean { FALSE, TRUE } BOOL;
  841. enum ResponseCodeType_DIN70121 { OK_DIN70121 = 0, OK_NewSessionEstablished_DIN70121 = 1, OK_OldSessionJoined_DIN70121 = 2, OK_CertificateExpiresSoon_DIN70121 = 3,
  842. FAILED_DIN70121 = 4, FAILED_SequenceError_DIN70121 = 5, FAILED_ServiceIDInvalid_DIN70121 = 6, FAILED_UnknownSession_DIN70121 = 7,
  843. FAILED_ServiceSelectionInvalid_DIN70121 = 8, FAILED_PaymentSelectionInvalid_DIN70121 = 9, FAILED_CertificateExpired_DIN70121 = 10,
  844. FAILED_SignatureError_DIN70121 = 11, FAILED_NoCertificateAvailable_DIN70121 = 12, FAILED_CertChainError_DIN70121 = 13, FAILED_ChallengeInvalid_DIN70121 = 14,
  845. FAILED_ContractCanceled_DIN70121 = 15, FAILED_WrongChargeParameter_DIN70121 = 16, FAILED_PowerDeliveryNotApplied_DIN70121 = 17,
  846. FAILED_TariffSelectionInvalid_DIN70121 = 18, FAILED_ChargingProfileInvalid_DIN70121 = 19, FAILED_EVSEPresentVoltageToLow_DIN70121 = 20,
  847. FAILED_MeteringSignatureNotValid_DIN70121 = 21, FAILED_WrongEnergyTransferType_DIN70121 = 22};
  848. enum ResponseCodeType_ISO15118_2014 { OK_ISO15118_2014 = 0, OK_NewSessionEstablished_ISO15118_2014 = 1, OK_OldSessionJoined_ISO15118_2014 = 2, OK_CertificateExpiresSoon_ISO15118_2014 = 3,
  849. FAILED_ISO15118_2014 = 4, FAILED_SequenceError_ISO15118_2014 = 5, FAILED_ServiceIDInvalid_ISO15118_2014 = 6, FAILED_UnknownSession_ISO15118_2014 = 7,
  850. FAILED_ServiceSelectionInvalid_ISO15118_2014 = 8, FAILED_PaymentSelectionInvalid_ISO15118_2014 = 9, FAILED_CertificateExpired_ISO15118_2014 = 10,
  851. FAILED_SignatureError_ISO15118_2014 = 11, FAILED_NoCertificateAvailable_ISO15118_2014 = 12, FAILED_CertChainError_ISO15118_2014 = 13, FAILED_ChallengeInvalid_ISO15118_2014 = 14,
  852. FAILED_ContractCanceled_ISO15118_2014 = 15, FAILED_WrongChargeParameter_ISO15118_2014 = 16, FAILED_PowerDeliveryNotApplied_ISO15118_2014 = 17,
  853. FAILED_TariffSelectionInvalid_ISO15118_2014 = 18, FAILED_ChargingProfileInvalid_ISO15118_2014 = 19, FAILED_MeteringSignatureNotValid_ISO15118_2014 = 20,
  854. FAILED_NoChargeServiceSelected_ISO15118_2014 = 21, FAILED_WrongEnergyTransferMode_ISO15118_2014 = 22, FAILED_ContactorError_ISO15118_2014 = 23,
  855. FAILED_CertificateNotAllowedAtThisEVSE_ISO15118_2014 = 24, FAILED_CertificateRevoked_ISO15118_2014 = 25 };
  856. enum ResponseCodeType_ISO15118_2018 { OK_ISO15118_2018 = 0, OK_NewSessionEstablished_ISO15118_2018 = 1, OK_OldSessionJoined_ISO15118_2018 = 2, OK_CertificateExpiresSoon_ISO15118_2018 = 3,
  857. OK_IsolationValid_ISO15118_2018 = 4, OK_IsolationWarning_ISO15118_2018 = 5, WARNING_CertificateExpired_ISO15118_2018 = 6, WARNING_NoCertificateAvailable_ISO15118_2018 = 7,
  858. WARNING_CertValidationError_ISO15118_2018 = 8, WARNING_CertVerificationError_ISO15118_2018 = 9, WARNING_ContractCanceled_ISO15118_2018 = 10,
  859. FAILED_ISO15118_2018 = 11, FAILED_SequenceError_ISO15118_2018 = 12, FAILED_ServiceIDInvalid_ISO15118_2018 = 13, FAILED_UnknownSession_ISO15118_2018 = 14,
  860. FAILED_ServiceSelectionInvalid_ISO15118_2018 = 15, FAILED_SignatureError_ISO15118_2018 = 16, FAILED_IdentificationSelectionInvalid_ISO15118_2018 = 17,
  861. FAILED_ChallengeInvalid_ISO15118_2018 = 18, FAILED_WrongChargeParameter_ISO15118_2018 = 19, FAILED_IsolationFault_ISO15118_2018 = 20,
  862. FAILED_PowerDeliveryNotApplied_ISO15118_2018 = 21, FAILED_TariffSelectionInvalid_ISO15118_2018 = 22, FAILED_ChargingProfileInvalid_ISO15118_2018 = 23,
  863. FAILED_MeteringSignatureNotValid_ISO15118_2018 = 24, FAILED_NoChargeServiceSelected_ISO15118_2018 = 25, FAILED_WrongEnergyTransferMode_ISO15118_2018 = 26,
  864. FAILED_ContactorError_ISO15118_2018 = 27, FAILED_CertificateRevoked_ISO15118_2018 = 28, FAILED_CertificateNotYetValid_ISO15118_2018 = 29 };
  865. enum EVSENotificationType { None = 0, StopCharging = 1, ReNegotiation = 2};
  866. enum ServiceCategoryType { EVCharging = 0, Internet = 1, ContractCertificate = 2, OtherCustom = 3};
  867. enum PaymentOptionType { Contract = 0, ExternalPayment = 1};
  868. /*enum EVSESupportedEnergyTransferType { AC_single_phase_core = 0, AC_three_phase_core = 1, DC_core = 2, DC_extended = 3,
  869. DC_combo_core = 4, DC_dual = 5, AC_core1p_DC_extended = 6, AC_single_DC_core = 7,
  870. AC_single_phase_three_phase_core_DC_extended = 8, AC_core3p_DC_extended = 9};*/
  871. enum EnergyTransferModeType { AC_single_phase_core = 0, AC_three_phase_core = 1, DC_core = 2, DC_extended = 3,
  872. DC_combo_core = 4, DC_unique = 5};
  873. //enum identificationOptionType { Contract = 0, ExternalIdentification = 1};
  874. 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};
  875. 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};
  876. enum ProcessingType { Finished = 0, Ongoing = 1, Ongoing_WaitingForCustomerInteraction = 2};
  877. enum EVSEProcessingType_DIN70121 { Finished_DIN70121 = 0, Ongoing_DIN70121 = 1};
  878. enum EVSEProcessingType_ISO15118_2014 { Finished_ISO15118_2014 = 0, Ongoing_ISO15118_2014 = 1, Ongoing_WaitingForCustomerInteraction_ISO15118_2014=2 };
  879. enum DC_EVErrorCodeType { NO_ERROR = 0, FAILED_RESSTemperatureInhibit = 1, FAILED_EVShiftPosition = 2, FAILED_ChargerConnectorLockFault = 3,
  880. FAILED_EVRESSMalfunction = 4, FAILED_ChargingCurrentdifferential = 5, FAILED_ChargingVoltageOutOfRange = 6,
  881. Reserved_A = 7, Reserved_B = 8, Reserved_C = 9, FAILED_ChargingSystemIncompatibility = 10, NoData = 11};
  882. enum IsolationLevelType_DIN70121 { Invalid_DIN70121 = 0, Valid_DIN70121 = 1, Warning_DIN70121 = 2, Fault_DIN70121 = 3};
  883. 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};
  884. enum DC_EVSEStatusCodeType { EVSE_NotReady = 0, EVSE_Ready = 1, EVSE_Shutdown = 2, EVSE_UtilityInterruptEvent = 3,
  885. EVSE_IsolationMonitoringActive = 4, EVSE_EmergencyShutdown = 5, EVSE_Malfunction = 6,
  886. Reserved_8 = 7, Reserved_9 = 8};
  887. enum ScheduleOriginType { EV = 0, SA = 1};
  888. enum ChargeProgressType_ISO15118_2014 {start_ISO15118_2014 = 0, Stop_ISO15118_2014 = 1, Renegotiate_ISO15118_2014 = 2};
  889. enum ChargeProgressType_ISO15118_2018 {start_ISO15118_2018 = 0, Renegotiate_ISO15118_2018 = 1, Standby_ISO15118_2018 = 2, Stop_ISO15118_2018 = 3};
  890. enum evOperationType {Charge = 0, Discharge = 1, Standby = 2};
  891. enum mechanicalChargingDeviceStatusType {Home = 0, Moving = 1, EndPosition = 2};
  892. enum EV_CP_StatusType {A = 0, B = 1, C = 2, D = 3, E = 4, F = 5};
  893. enum EV_Error_Status_CodeType { No_EV_Error = 0, EV_FAILED_EmergencyEvent = 1, EV_FAILED_Breaker = 2, EV_FAILED_RESSTemperatureInhibit = 3,
  894. EV_FAILED_RESS = 4, EV_FAILED_ChargingCurrentDifferential = 5, EV_FAILED_ChargingVoltageOutOfRange = 6,
  895. Reserved_by_ISO_1 = 7, Reserved_by_ISO_2 = 8, Reserved_by_ISO_3 = 9, OEM1 = 10,
  896. OEM2 = 11, OEM3 = 12, OEM4 = 13};
  897. enum IsolationStatusType { Invalid = 0, Safe = 1, Warning = 2, Fault = 3};
  898. enum ChargingSessionType { Terminate = 0, Pause = 1};
  899. enum CostKindType { relativePricePercentage = 0, RenewableGenerationPercentage = 1, CarbonDioxideEmission = 2};
  900. struct PhysicalValueType_DIN70121 //The final physical value is determined by: Value * 10 ^ Multiplier [Unit]
  901. {
  902. int Multiplier; //range: -3..+3
  903. enum unitSymbolType_DIN70121 Unit;
  904. short Value;
  905. };
  906. struct PhysicalValueType_ISO15118_2014 //The final physical value is determined by: Value * 10 ^ Multiplier [Unit]
  907. {
  908. int Multiplier; //range: -3..+3
  909. enum unitSymbolType_ISO15118_2014 Unit;
  910. short Value;
  911. };
  912. struct PhysicalValueType_ISO15118_2018 //The final physical value is determined by: Value * 10 ^ Exponent [Unit]
  913. {
  914. int Exponent; //range: -3..+3
  915. short Value;
  916. };
  917. struct AppProtocolType
  918. {
  919. unsigned char ProtocolNamespace[100];
  920. unsigned int VersionNumberMajor;
  921. unsigned int VersionNumberMinor;
  922. unsigned char SchemaID;
  923. unsigned char Priority; //range 1..20
  924. };
  925. struct ACD_SSEnergyTransferModeType
  926. {
  927. unsigned char EVID[20];
  928. };
  929. struct EVSEStatusType
  930. {
  931. unsigned short NotificationMaxDelay; //in seconds
  932. enum EVSENotificationType EVSENotification;
  933. };
  934. struct ServiceIDListType
  935. {
  936. unsigned short ServiceID[10]; //refer to chapter 8.6.2.1 Table 192
  937. };
  938. struct PaymentOptionListType
  939. {
  940. enum PaymentOptionType PaymentOption[2];
  941. };
  942. struct ServiceTagType
  943. {
  944. unsigned short ServiceID;
  945. unsigned char ServiceName[32];//Optional Element
  946. enum ServiceCategoryType ServiceCategory;
  947. unsigned char ServiceScope[32];//Optional Element
  948. };
  949. struct ServiceType_DIN70121
  950. {
  951. struct ServiceTagType ServiceTag;
  952. BOOL FreeService;
  953. };
  954. struct ServiceType_ISO15118_2014
  955. {
  956. unsigned short ServiceID;
  957. unsigned char ServiceName[32]; //Optional
  958. enum ServiceCategoryType ServiceCategory;
  959. unsigned char ServiceScope[64]; //Optional
  960. BOOL FreeService;
  961. };
  962. /*struct ServiceType_ISO15118_2018
  963. {
  964. unsigned short ServiceID;
  965. BOOL FreeService;
  966. }; */
  967. struct SupportedEnergyTransferModeType
  968. {
  969. enum EnergyTransferModeType EnergyTransferMode[6];
  970. };
  971. struct ServiceChargeType
  972. {
  973. struct ServiceType_DIN70121 Services;
  974. //enum EVSESupportedEnergyTransferType EnergyTransferType;
  975. enum EnergyTransferModeType EnergyTransferType;
  976. };
  977. struct ChargeServiceType
  978. {
  979. struct ServiceType_ISO15118_2014 Services;
  980. struct SupportedEnergyTransferModeType SupportedEnergyTransferMode;
  981. };
  982. struct ServiceListType
  983. {
  984. struct ServiceType_ISO15118_2014 Service[8];
  985. };
  986. struct IdentificationOptionListType
  987. {
  988. enum PaymentOptionType IdentificationOption[2];
  989. };
  990. struct ParameterType
  991. {
  992. unsigned char Name[32];
  993. struct PhysicalValueType_ISO15118_2014 PhysicalValue_ISO15118_2014;
  994. struct PhysicalValueType_ISO15118_2018 PhysicalValue_ISO15118_2018;
  995. };
  996. struct ParameterSetType
  997. {
  998. short ParameterSetID;
  999. struct ParameterType Parameter[16];
  1000. };
  1001. struct ServiceParameterListType
  1002. {
  1003. struct ParameterSetType ParameterSet[255];
  1004. };
  1005. struct WPT_SDlEnergyTransferModeType
  1006. {
  1007. struct ServiceParameterListType ServiceParameterList;
  1008. };
  1009. struct SelectedServiceType
  1010. {
  1011. unsigned short ServiceID;
  1012. short ParameterSetID;
  1013. };
  1014. struct SelectedServiceListType
  1015. {
  1016. struct SelectedServiceType SelectedService[16];
  1017. };
  1018. struct CertificateChainType
  1019. {
  1020. unsigned char Id[32]; //Optional
  1021. unsigned char Certificate[800]; //check size again
  1022. unsigned char SubCertificates[4][800]; //Optional, check size again
  1023. };
  1024. struct PNC_AReqIdentificationModeType
  1025. {
  1026. unsigned char GenChallenge[16]; //DIN70121=> None, ISO15118_2014=>None, ISO15118_2018=>Optional
  1027. unsigned char Id[32]; //DIN70121=> None, ISO15118_2014=>None, ISO15118_2018=>Optional
  1028. };
  1029. struct AC_EVChargeParameterType
  1030. {
  1031. unsigned int DepartureTime; //Optional
  1032. struct PhysicalValueType_ISO15118_2014 EAmount;
  1033. struct PhysicalValueType_ISO15118_2014 EVMaxVoltage;
  1034. struct PhysicalValueType_ISO15118_2014 EVMaxCurrent;
  1035. struct PhysicalValueType_ISO15118_2014 EVMinCurrent;
  1036. };
  1037. struct DC_EVStatusType_DIN70121
  1038. {
  1039. BOOL EVReady;
  1040. BOOL EVCabinConditioning;
  1041. BOOL EVRESSConiditioning;
  1042. enum DC_EVErrorCodeType EVErrorCode;
  1043. unsigned char EVRESSSOC; /*0-100 percentage*/
  1044. };
  1045. struct DC_EVChargeParameterType_DIN70121
  1046. {
  1047. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  1048. struct PhysicalValueType_DIN70121 EVMaximumCurrentLimit;
  1049. struct PhysicalValueType_DIN70121 EVMaximumPowerLimit; //Optional
  1050. struct PhysicalValueType_DIN70121 EVMaximumVoltageLimit;
  1051. struct PhysicalValueType_DIN70121 EVEnergyCapacity; //Optional
  1052. struct PhysicalValueType_DIN70121 EVEnergyRequest; //Optional
  1053. unsigned char FullSOC;/*0-100 percentage*/ //Optional
  1054. unsigned char BulkSOC;/*0-100 percentage*/ //Optional
  1055. };
  1056. struct DC_EVStatusType_ISO15118_2014
  1057. {
  1058. BOOL EVReady;
  1059. enum DC_EVErrorCodeType EVErrorCode;
  1060. unsigned char EVRESSSOC; /*0-100 percentage*/
  1061. };
  1062. struct DC_EVChargeParameterType_ISO15118_2014
  1063. {
  1064. unsigned int DepartureTime; //Optional
  1065. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  1066. struct PhysicalValueType_ISO15118_2014 EVMaximumCurrentLimit;
  1067. struct PhysicalValueType_ISO15118_2014 EVMaximumPowerLimit; //Optional
  1068. struct PhysicalValueType_ISO15118_2014 EVMaximumVoltageLimit;
  1069. struct PhysicalValueType_ISO15118_2014 EVEnergyCapacity; //Optional
  1070. struct PhysicalValueType_ISO15118_2014 EVEnergyRequest; //Optional
  1071. unsigned char FullSOC;/*0-100 percentage*/ //Optional
  1072. unsigned char BulkSOC;/*0-100 percentage*/ //Optional
  1073. };
  1074. struct Dynamic_CPDReqControlModeType
  1075. {
  1076. unsigned int DepartureTime;
  1077. };
  1078. struct RelativeTimeIntervalType
  1079. {
  1080. unsigned int duration; //Optional
  1081. unsigned int start;
  1082. };
  1083. struct PMaxScheduleEntryType
  1084. {
  1085. struct RelativeTimeIntervalType RelativeTimeInterval;
  1086. unsigned short PMax;
  1087. };
  1088. struct PMaxScheduleType
  1089. {
  1090. unsigned short PMaxScheduleID; //no this itme in ISO15118_2014
  1091. struct PMaxScheduleEntryType PMaxScheduleEntry[1024];
  1092. };
  1093. struct CostType
  1094. {
  1095. unsigned int amount;
  1096. enum CostKindType costKind;
  1097. int amountMultiplier; //Optional , range: -3..+3
  1098. };
  1099. struct ConsumptionCostType
  1100. {
  1101. struct CostType Cost[3];
  1102. struct PhysicalValueType_ISO15118_2014 startValue;
  1103. };
  1104. struct SalesTariffEntryType
  1105. {
  1106. struct RelativeTimeIntervalType RelativeTimeInterval;
  1107. unsigned char EPriceLevel; //Optional
  1108. struct ConsumptionCostType ConsumptionCost[3]; //Optional
  1109. };
  1110. struct SalesTariffType
  1111. {
  1112. unsigned char Id[32]; //Optional
  1113. short SalesTariffID;
  1114. unsigned char SalesTariffDescription[32]; //Optional
  1115. unsigned char NumEPriceLevels; //Optional
  1116. struct SalesTariffEntryType SalesTariffEntry[1024];
  1117. };
  1118. struct SAScheduleTupleType
  1119. {
  1120. short SAScheduleTupleID;
  1121. struct PMaxScheduleType PMaxSchedule;
  1122. struct SalesTariffType SalesTariff; //Optional
  1123. };
  1124. struct ScheduleListType
  1125. {
  1126. enum ScheduleOriginType ScheduleOrigin;
  1127. struct SAScheduleTupleType ScheduleTuple[3];
  1128. };
  1129. struct Scheduled_CPDReqControlModeType
  1130. {
  1131. enum ProcessingType EVProcessing;
  1132. unsigned int DepartureTime; //Optional
  1133. unsigned short MaxSupportingPoints;
  1134. struct ScheduleListType ScheduleList; //Optional
  1135. };
  1136. struct AC_CPDReqEnergyTransferModeType
  1137. {
  1138. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  1139. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  1140. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  1141. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
  1142. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  1143. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  1144. struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
  1145. };
  1146. struct DC_CPDReqEnergyTransferModeType
  1147. {
  1148. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower; //Optional
  1149. struct PhysicalValueType_ISO15118_2018 EVMinimumChargePower; //Optional
  1150. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  1151. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  1152. struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
  1153. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  1154. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  1155. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  1156. unsigned char TargetSOC; //Optional
  1157. unsigned char BulkSOC; //Optional
  1158. };
  1159. struct BPT_AC_CPDReqEnergyTransferModeType
  1160. {
  1161. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
  1162. struct PhysicalValueType_ISO15118_2018 EVMaximumDischargePower;
  1163. struct PhysicalValueType_ISO15118_2018 EVMinimumDischargePower;
  1164. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  1165. struct PhysicalValueType_ISO15118_2018 EVMaximumDischargeCurrent;
  1166. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  1167. struct PhysicalValueType_ISO15118_2018 EVMinimumDischargeCurrent;
  1168. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  1169. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  1170. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  1171. struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
  1172. };
  1173. struct BPT_DC_CPDReqEnergyTransferModeType
  1174. {
  1175. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
  1176. struct PhysicalValueType_ISO15118_2018 EVMinimumChargePower;
  1177. struct PhysicalValueType_ISO15118_2018 EVMaximumDischargePower;
  1178. struct PhysicalValueType_ISO15118_2018 EVMinimumDischargePower;
  1179. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  1180. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  1181. struct PhysicalValueType_ISO15118_2018 EVMaximumDischargeCurrent;
  1182. struct PhysicalValueType_ISO15118_2018 EVMinimumDischargeCurrent;
  1183. struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
  1184. struct PhysicalValueType_ISO15118_2018 EVMinimumVoltage;
  1185. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest;
  1186. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest;
  1187. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest;
  1188. unsigned char TargetSOC; //Optional
  1189. unsigned char BulkSOC; //Optional
  1190. };
  1191. struct WPT_CPDReqEnergyTransferModeType
  1192. {
  1193. struct PhysicalValueType_ISO15118_2018 EVMaximumPower; //Optional
  1194. struct PhysicalValueType_ISO15118_2018 EVMinimumPower; //Optional
  1195. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  1196. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  1197. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  1198. };
  1199. struct ACD_CPDReqEnergyTransferModeType
  1200. {
  1201. //cannot be found in standard
  1202. };
  1203. struct SAScheduleListType
  1204. {
  1205. struct SAScheduleTupleType SAScheduleTuple[3];
  1206. };
  1207. struct DC_EVSEStatusType_DIN70121
  1208. {
  1209. enum IsolationLevelType_DIN70121 EVSEIsolationStatus; //Optional
  1210. enum DC_EVSEStatusCodeType EVSEStatusCode;
  1211. unsigned int NotificationMaxDelay;
  1212. enum EVSENotificationType EVSENotification;
  1213. };
  1214. struct DC_EVSEChargeParameterType_DIN70121
  1215. {
  1216. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  1217. struct PhysicalValueType_DIN70121 EVSEMaximumCurrentLimit;
  1218. struct PhysicalValueType_DIN70121 EVSEMaximumPowerLimit; //Optional
  1219. struct PhysicalValueType_DIN70121 EVSEMaximumVoltageLimit;
  1220. struct PhysicalValueType_DIN70121 EVSEMinimumCurrentLimit;
  1221. struct PhysicalValueType_DIN70121 EVSEMinimumVoltageLimit;
  1222. struct PhysicalValueType_DIN70121 EVSECurrentRegulationTolerance; //Optional
  1223. struct PhysicalValueType_DIN70121 EVSEPeakCurrentRipple;
  1224. struct PhysicalValueType_DIN70121 EVSEEnergyToBeDelivered; //Optional
  1225. };
  1226. struct AC_EVSEStatusType
  1227. {
  1228. BOOL RCD;
  1229. unsigned short NotificationMaxDelay;
  1230. enum EVSENotificationType EVSENotification; //need to be confirmed
  1231. };
  1232. struct AC_EVSEChargeParameterType
  1233. {
  1234. struct AC_EVSEStatusType AC_EVSEStatus;
  1235. struct PhysicalValueType_ISO15118_2014 EVSENominalVoltage;
  1236. struct PhysicalValueType_ISO15118_2014 EVSEMaxCurrent;
  1237. };
  1238. struct DC_EVSEStatusType_ISO15118_2014
  1239. {
  1240. unsigned short NotificationMaxDelay;
  1241. enum EVSENotificationType EVSENotification;
  1242. enum IsolationLevelType_ISO15118_2014 EVSEIsolationStatus; //Optional
  1243. enum DC_EVSEStatusCodeType DC_EVSEStatusCode;
  1244. };
  1245. struct DC_EVSEChargeParameterType_ISO15118_2014
  1246. {
  1247. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  1248. struct PhysicalValueType_ISO15118_2014 EVSEMaximumCurrentLimit;
  1249. struct PhysicalValueType_ISO15118_2014 EVSEMaximumPowerLimit;
  1250. struct PhysicalValueType_ISO15118_2014 EVSEMaximumVoltageLimit;
  1251. struct PhysicalValueType_ISO15118_2014 EVSEMinimumCurrentLimit;
  1252. struct PhysicalValueType_ISO15118_2014 EVSEMinimumVoltageLimit;
  1253. struct PhysicalValueType_ISO15118_2014 EVSECurrentRegulationTolerance; //Optional
  1254. struct PhysicalValueType_ISO15118_2014 EVSEPeakCurrentRipple;
  1255. struct PhysicalValueType_ISO15118_2014 EVSEEnergyToBeDelivered; //Optional
  1256. };
  1257. struct Scheduled_CPDResControlModeType
  1258. {
  1259. struct ScheduleListType ScheduleList;
  1260. };
  1261. struct AC_CPDResEnergyTransferModeType
  1262. {
  1263. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent[3];
  1264. struct PhysicalValueType_ISO15118_2018 EVSENominalVoltage;
  1265. struct PhysicalValueType_ISO15118_2018 EVSENominalFrequency;
  1266. };
  1267. struct DC_CPDResEnergyTransferModeType
  1268. {
  1269. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower;
  1270. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent;
  1271. struct PhysicalValueType_ISO15118_2018 EVSEMinimumChargeCurrent;
  1272. struct PhysicalValueType_ISO15118_2018 EVSEMaximumVoltage;
  1273. struct PhysicalValueType_ISO15118_2018 EVSEMinimumVoltage;
  1274. };
  1275. struct BPT_AC_CPDResEnergyTransferModeType
  1276. {
  1277. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent[3];
  1278. struct PhysicalValueType_ISO15118_2018 EVSEMaximumDischargeCurrent[3];
  1279. struct PhysicalValueType_ISO15118_2018 EVSENominalVoltage;
  1280. struct PhysicalValueType_ISO15118_2018 EVSENominalFrequency;
  1281. };
  1282. struct BPT_DC_CPDResEnergyTransferModeType
  1283. {
  1284. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower;
  1285. struct PhysicalValueType_ISO15118_2018 EVSEMaximumDischargePower;
  1286. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent;
  1287. struct PhysicalValueType_ISO15118_2018 EVSEMaximumDischargeCurrent;
  1288. struct PhysicalValueType_ISO15118_2018 EVSEMinimumChargeCurrent;
  1289. struct PhysicalValueType_ISO15118_2018 EVSEMinimumDischargeCurrent;
  1290. struct PhysicalValueType_ISO15118_2018 EVSEMaximumVoltage;
  1291. struct PhysicalValueType_ISO15118_2018 EVSEMinimumVoltage;
  1292. };
  1293. struct WPT_CPDResEnergyTransferModeType
  1294. {
  1295. struct PhysicalValueType_ISO15118_2018 EVSEMaximumPower;
  1296. struct PhysicalValueType_ISO15118_2018 EVSEMinimumPower;
  1297. };
  1298. struct ACD_CPDResEnergyTransferModeType
  1299. {
  1300. //not found in ISO15118_2018
  1301. };
  1302. struct ProfileEntryType_DIN70121
  1303. {
  1304. unsigned int ChargingProfileEntryStart;
  1305. short ChargingProfileEntryMaxPower;
  1306. };
  1307. struct ChargingProfileType_DIN70121
  1308. {
  1309. short SAScheduleTupleID;
  1310. struct ProfileEntryType_DIN70121 ProfileEntry[24];
  1311. };
  1312. struct DC_EVPowerDeliveryParameterType_DIN70121
  1313. {
  1314. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  1315. BOOL BulkChargingComplete; //Optional
  1316. BOOL ChargingComplete;
  1317. };
  1318. struct ProfileEntryType_ISO15118_2014
  1319. {
  1320. unsigned int ChargingProfileEntryStart;
  1321. struct PhysicalValueType_ISO15118_2018 ChargingProfileEntryMaxPower;
  1322. unsigned char ChargingProfileEntryMaxNumberOfPhasesInUse; //Optional
  1323. };
  1324. struct ChargingProfileType_ISO15118_2014
  1325. {
  1326. struct ProfileEntryType_ISO15118_2014 ProfileEntry[24];
  1327. };
  1328. struct DC_EVPowerDeliveryParameterType_ISO15118_2014
  1329. {
  1330. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  1331. BOOL BulkChargingComplete; //Optional
  1332. BOOL ChargingComplete;
  1333. };
  1334. struct TimeInterval
  1335. {
  1336. unsigned int start;
  1337. unsigned int duration; //Optional
  1338. };
  1339. struct PowerScheduleEntryType
  1340. {
  1341. struct TimeInterval TimeInterval;
  1342. struct PhysicalValueType_ISO15118_2018 Power[3];
  1343. };
  1344. struct EVPowerProfileType
  1345. {
  1346. struct PowerScheduleEntryType EVPowerProfileEntry[2048];
  1347. };
  1348. struct Scheduled_PDReqControlModeType
  1349. {
  1350. unsigned char ScheduleTupleID;
  1351. struct EVPowerProfileType EVPowerProfile;
  1352. };
  1353. struct BPT_Scheduled_PDReqControlModeType
  1354. {
  1355. unsigned char ScheduleTupleID;
  1356. struct EVPowerProfileType EVPowerProfile; //Optional
  1357. enum evOperationType EVOperation;
  1358. };
  1359. struct ListOfRootCertificateIDsType
  1360. {
  1361. unsigned char RootCertificateID[20][40];
  1362. };
  1363. struct ContractSignatureEncryptedPrivateKeyType
  1364. {
  1365. unsigned char Id[32];
  1366. };
  1367. struct DiffieHellmanPublickeyType
  1368. {
  1369. unsigned char Id[32];
  1370. };
  1371. struct ContractCertificateEncryptedPrivateKeyType
  1372. {
  1373. unsigned char Id[32];
  1374. };
  1375. struct EVTechnicalStatusType
  1376. {
  1377. BOOL EV_Status_ReadyToCharge;
  1378. BOOL EV_Status_ImmobilizationRequest; //Optional
  1379. BOOL EV_Status_Immobilized;
  1380. struct PhysicalValueType_ISO15118_2018 EV_Status_WLAN_Strength;
  1381. enum EV_CP_StatusType EV_CP_Status;
  1382. unsigned char EV_Status_RESSSOC; //0~100%
  1383. enum EV_Error_Status_CodeType EV_Error_Status_Code;
  1384. BOOL EVSE_Timeout;
  1385. };
  1386. struct MeterInfoType_ISO15118_2014
  1387. {
  1388. unsigned char MeterID[32];
  1389. unsigned long MeterReading; //Optional
  1390. unsigned char SigMeterReading[64]; //Optional
  1391. short MeterStatus; //Optional
  1392. short TMeter; //Optional
  1393. };
  1394. struct Scheduled_MRReqControlModeType
  1395. {
  1396. unsigned char ScheduleTupleID;
  1397. };
  1398. struct MeterInfoType_ISO15118_2018
  1399. {
  1400. unsigned char MeterID[32];
  1401. unsigned long MeterReadingWhCharged; //Optional
  1402. unsigned long MeterReadingWhDischarged; //Optional
  1403. unsigned long MeterReadingVARhLeading; //Optional
  1404. unsigned long MeterReadingVARhLagging; //Optional
  1405. unsigned char SignatureMeterReading[64]; //Optional
  1406. short MeterStatus; //Optional
  1407. short TimeStampMeter; //Optional
  1408. BOOL ReceiptRequired; //Optional
  1409. };
  1410. struct PnC_CLReqIdentificationModeType
  1411. {
  1412. BOOL MeteringReceiptRequested;
  1413. };
  1414. struct Dynamic_CSReqControlModeType
  1415. {
  1416. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest;
  1417. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest;
  1418. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest;
  1419. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
  1420. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  1421. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  1422. };
  1423. struct Scheduled_CSReqControlModeType
  1424. {
  1425. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  1426. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  1427. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  1428. BOOL Standby;
  1429. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower; //Optional
  1430. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent; //Optional
  1431. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent; //Optional
  1432. };
  1433. struct DisplayParametersType
  1434. {
  1435. unsigned short CurrentRange;
  1436. unsigned char CurrentSOC; //0~100%
  1437. unsigned char MinimumSOC; //0~100%
  1438. struct PhysicalValueType_ISO15118_2018 RemainingTimeToMaximumSOC;
  1439. struct PhysicalValueType_ISO15118_2018 RemainingTimeToTargetSOC;
  1440. struct PhysicalValueType_ISO15118_2018 RemainingTimeToBulkSOC;
  1441. struct PhysicalValueType_ISO15118_2018 RemainingTimeToMinimumSOC;
  1442. BOOL ChargingComplete;
  1443. BOOL BulkChargingComplete;
  1444. BOOL InletHot;
  1445. };
  1446. struct PnC_CLResIdentificationModeType
  1447. {
  1448. struct MeterInfoType_ISO15118_2018 MeterInfo;
  1449. };
  1450. struct Dynamic_CSResControlModeType
  1451. {
  1452. struct PhysicalValueType_ISO15118_2018 EVSETargetActivePower;
  1453. };
  1454. struct Scheduled_CDResControlModeType
  1455. {
  1456. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower; //Optional
  1457. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent; //Optional
  1458. struct PhysicalValueType_ISO15118_2018 EVSEMaximumVoltage; //Optional
  1459. };
  1460. struct LFA_EVFinePositioningSetupParametersType
  1461. {
  1462. unsigned char NumberOfSensors;
  1463. //NOT complete yet, to be continue.....
  1464. };
  1465. /****SupportedAppProtocolRequest****/
  1466. struct SupportedAppProtocolRequest_DIN70121
  1467. {
  1468. struct AppProtocolType AppProtocol[20];
  1469. };
  1470. struct SupportedAppProtocolRequest_ISO15118_2014
  1471. {
  1472. struct AppProtocolType AppProtocol[20];
  1473. };
  1474. struct SupportedAppProtocolRequest_ISO15118_2018
  1475. {
  1476. struct AppProtocolType AppProtocol[20];
  1477. };
  1478. /****SupportedAppProtocolResponse****/
  1479. struct SupportedAppProtocolResponse_DIN70121
  1480. {
  1481. enum ResponseCodeType_DIN70121 ResponseCode;
  1482. unsigned char SchemaID; //Optional
  1483. };
  1484. struct SupportedAppProtocolResponse_ISO15118_2014
  1485. {
  1486. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  1487. unsigned char SchemaID; //Optional
  1488. };
  1489. struct SupportedAppProtocolResponse_ISO15118_2018
  1490. {
  1491. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  1492. unsigned char SchemaID; //Optional
  1493. };
  1494. /****SessionSetupRequest****/
  1495. struct SessionSetupRequest_DIN70121
  1496. {
  1497. unsigned char EVCCID[8]; //the MAC address of the EVCC in Hex
  1498. };
  1499. struct SessionSetupRequest_ISO15118_2014
  1500. {
  1501. unsigned char EVCCID[8]; //the MAC address of the EVCC in Hex
  1502. };
  1503. struct SessionSetupRequest_ISO15118_2018
  1504. {
  1505. unsigned char EVCCID[8]; //the MAC address of the EVCC in Hex
  1506. struct ACD_SSEnergyTransferModeType ACD_SSEnergyTransferMode; //For ACD mandatory, optional for rest
  1507. };
  1508. /****SessionSetupResponse****/
  1509. struct SessionSetupResponse_DIN70121
  1510. {
  1511. enum ResponseCodeType_DIN70121 ResponseCode;
  1512. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  1513. unsigned int EVSETimeStamp; //EPOCH format, Optional
  1514. };
  1515. struct SessionSetupResponse_ISO15118_2014
  1516. {
  1517. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  1518. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  1519. unsigned int EVSETimeStamp; //EPOCH format, Optional
  1520. };
  1521. struct SessionSetupResponse_ISO15118_2018
  1522. {
  1523. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  1524. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  1525. struct EVSEStatusType EVSEStatus; //Optional
  1526. };
  1527. /****ServiceDiscoveryRequest****/
  1528. struct ServiceDiscoveryRequest_DIN70121
  1529. {
  1530. unsigned char ServiceScope[32]; //Optional
  1531. enum ServiceCategoryType ServiceCategory; //Optional
  1532. };
  1533. struct ServiceDiscoveryRequest_ISO15118_2014
  1534. {
  1535. unsigned char ServiceScope[32]; //Optional
  1536. enum ServiceCategoryType ServiceCategory; //Optional
  1537. };
  1538. struct ServiceDiscoveryRequest_ISO15118_2018
  1539. {
  1540. struct ServiceIDListType SupportedServiceIDs; //Optional
  1541. };
  1542. /****ServiceDiscoveryResponse****/
  1543. struct ServiceDiscoveryResponse_DIN70121
  1544. {
  1545. enum ResponseCodeType_DIN70121 ResponseCode;
  1546. struct PaymentOptionListType PaymentOptions;
  1547. struct ServiceChargeType ChargeService_DIN70121;
  1548. };
  1549. struct ServiceDiscoveryResponse_ISO15118_2014
  1550. {
  1551. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  1552. struct PaymentOptionListType PaymentOptions;
  1553. struct ChargeServiceType ChargeService;
  1554. struct ServiceListType ServiceList; //Optional
  1555. };
  1556. struct ServiceDiscoveryResponse_ISO15118_2018
  1557. {
  1558. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  1559. struct EVSEStatusType EVSEStatus; //Optional
  1560. struct IdentificationOptionListType IdentificationOptionList;
  1561. struct ServiceListType EnergyTransferServiceList;
  1562. struct ServiceListType VASList; //Optional
  1563. };
  1564. /****ServiceDetailRequest****/
  1565. //Only in ISO15118_2014 and ISO15118_2018
  1566. struct ServiceDetailRequest_ISO15118_2014
  1567. {
  1568. unsigned short ServiceID;
  1569. };
  1570. struct ServiceDetailRequest_ISO15118_2018
  1571. {
  1572. unsigned short ServiceID;
  1573. struct WPT_SDlEnergyTransferModeType WPT_SDlEnergyTransferMode;
  1574. };
  1575. /****ServiceDetailResponse****/
  1576. struct ServiceDetailResponse_ISO15118_2014
  1577. {
  1578. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  1579. unsigned short ServiceID;
  1580. struct ServiceParameterListType ServiceParameterList;
  1581. };
  1582. struct ServiceDetailResponse_ISO15118_2018
  1583. {
  1584. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  1585. unsigned short ServiceID;
  1586. struct ServiceParameterListType ServiceParameterList;
  1587. struct EVSEStatusType EVSEStatus; //Optional
  1588. };
  1589. /****ServiceAndPaymentSelectionRequest / ServiceSelectionRequest****/
  1590. struct ServiceAndPaymentSelectionRequest_DIN70121
  1591. {
  1592. enum PaymentOptionType SelectedPaymentOption;
  1593. struct SelectedServiceListType SelectedServiceList;
  1594. };
  1595. struct ServiceAndPaymentSelectionRequest_ISO15118_2014
  1596. {
  1597. enum PaymentOptionType SelectedPaymentOption;
  1598. struct SelectedServiceListType SelectedServiceList;
  1599. };
  1600. struct ServiceSelectionRequest_ISO15118_2018
  1601. {
  1602. enum PaymentOptionType SelectedPaymentOption;
  1603. struct SelectedServiceType SelectedEnergyTransferService;
  1604. struct SelectedServiceListType SelectedVASList;
  1605. enum ProcessingType EVProcessing;
  1606. };
  1607. /****ServiceAndPaymentSelectionResponse / ServiceSelectionResponse****/
  1608. struct ServiceAndPaymentSelectionResponse_DIN70121
  1609. {
  1610. enum ResponseCodeType_DIN70121 ResponseCode;
  1611. };
  1612. struct ServiceAndPaymentSelectionResponse_ISO15118_2014
  1613. {
  1614. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  1615. };
  1616. struct ServiceSelectionResponse_ISO15118_2018
  1617. {
  1618. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  1619. struct EVSEStatusType EVSEStatus; //Optional
  1620. };
  1621. /****PaymentDetailsRequest / IdentificationDetailsRequest****/
  1622. struct PaymentDetailsRequest_ISO15118_2014
  1623. {
  1624. unsigned char eMAID[16];
  1625. struct CertificateChainType ContractSignatureCertChain;
  1626. };
  1627. struct IdentificationDetailsRequest_ISO15118_2018
  1628. {
  1629. struct CertificateChainType ContractSignatureCertChain;
  1630. };
  1631. /****PaymentDetailsResponse / IdentificationDetailsResponse ****/
  1632. struct PaymentDetailsResponse_ISO15118_2014
  1633. {
  1634. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  1635. unsigned char GenChallenge[16];
  1636. long EVSETimeStamp;
  1637. };
  1638. struct IdentificationDetailsResponse_ISO15118_2018
  1639. {
  1640. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  1641. struct EVSEStatusType EVSEStatus; //Optional
  1642. unsigned char GenChallenge[16];
  1643. enum ProcessingType EVSEProcessing;
  1644. };
  1645. /****ContractAuthenticationRequest / AuthorizationRequest****/
  1646. struct ContractAuthenticationRequest_DIN70121
  1647. {
  1648. //None
  1649. };
  1650. struct AuthorizationRequest_ISO15118_2014
  1651. {
  1652. unsigned char GenChallenge[16]; //Optional
  1653. unsigned char Id[32]; //Optional
  1654. };
  1655. struct AuthorizationRequest_ISO15118_2018
  1656. {
  1657. struct PNC_AReqIdentificationModeType PNC_AReqIdentificationMode; //Optional
  1658. };
  1659. /****ContractAuthenticationResponse / AuthorizationResponse****/
  1660. struct ContractAuthenticationResponse_DIN70121
  1661. {
  1662. enum ResponseCodeType_DIN70121 ResponseCode;
  1663. enum EVSEProcessingType_DIN70121 EVSEProcessing;
  1664. };
  1665. struct AuthorizationResponse_ISO15118_2014
  1666. {
  1667. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  1668. enum EVSEProcessingType_ISO15118_2014 EVSEProcessing;
  1669. };
  1670. struct AuthorizationResponse_ISO15118_2018
  1671. {
  1672. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  1673. enum ProcessingType EVSEProcessing;
  1674. struct EVSEStatusType EVSEStatus; //Optional
  1675. };
  1676. /****ChargeParameterDiscoveryRequest****/
  1677. struct ChargeParameterDiscoveryRequest_DIN70121
  1678. {
  1679. enum EnergyTransferModeType EVRequestedEnergyTransferType;
  1680. struct DC_EVChargeParameterType_DIN70121 DC_EVChargeParameter;
  1681. };
  1682. struct ChargeParameterDiscoveryRequest_ISO15118_2014
  1683. {
  1684. unsigned short MaxEntriesSAScheduleTuple; //Optional
  1685. enum EnergyTransferModeType RequestedEnergyTransferMode;
  1686. struct AC_EVChargeParameterType AC_EVChargeParameter;
  1687. struct DC_EVChargeParameterType_ISO15118_2014 DC_EVChargeParameter;
  1688. };
  1689. struct ChargeParameterDiscoveryRequest_ISO15118_2018
  1690. {
  1691. struct Dynamic_CPDReqControlModeType Dynamic_CPDReqControlMode;
  1692. struct Scheduled_CPDReqControlModeType Scheduled_CPDReqControlMode;
  1693. struct AC_CPDReqEnergyTransferModeType AC_CPDReqEnergyTransferMode;
  1694. struct DC_CPDReqEnergyTransferModeType DC_CPDReqEnergyTransferMode;
  1695. struct BPT_AC_CPDReqEnergyTransferModeType BPT_AC_CPDReqEnergyTransferMode;
  1696. struct BPT_DC_CPDReqEnergyTransferModeType BPT_DC_CPDReqEnergyTransferMode;
  1697. struct WPT_CPDReqEnergyTransferModeType WPT_CPDReqEnergyTransferMode;
  1698. struct ACD_CPDReqEnergyTransferModeType ACD_CPDReqEnergyTransferMode;
  1699. };
  1700. /****ChargeParameterDiscoveryResponse****/
  1701. struct ChargeParameterDiscoveryResponse_DIN70121
  1702. {
  1703. enum ResponseCodeType_DIN70121 ResponseCode;
  1704. enum EVSEProcessingType_DIN70121 EVSEProcessing;
  1705. struct SAScheduleListType SAScheduleList;
  1706. struct DC_EVSEChargeParameterType_DIN70121 DC_EVSEChargeParameter;
  1707. };
  1708. struct ChargeParameterDiscoveryResponse_ISO15118_2014
  1709. {
  1710. enum EVSEProcessingType_ISO15118_2014 EVSEProcessing;
  1711. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  1712. struct SAScheduleListType SAScheduleList;
  1713. struct AC_EVSEChargeParameterType AC_EVSEChargeParameter;
  1714. struct DC_EVSEChargeParameterType_ISO15118_2014 DC_EVSEChargeParameter;
  1715. };
  1716. struct ChargeParameterDiscoveryResponse_ISO15118_2018
  1717. {
  1718. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  1719. struct EVSEStatusType EVSEStatus; //Optional
  1720. enum ProcessingType EVSEProcessing;
  1721. struct Scheduled_CPDResControlModeType Scheduled_CPDResControlMode; //Optional
  1722. struct AC_CPDResEnergyTransferModeType AC_CPDResEnergyTransferMode;
  1723. struct DC_CPDResEnergyTransferModeType DC_CPDResEnergyTransferMode;
  1724. struct BPT_AC_CPDResEnergyTransferModeType BPT_AC_CPDResEnergyTransferMode;
  1725. struct BPT_DC_CPDResEnergyTransferModeType BPT_DC_CPDResEnergyTransferMode;
  1726. struct WPT_CPDResEnergyTransferModeType WPT_CPDResEnergyTransferMode;
  1727. struct ACD_CPDResEnergyTransferModeType ACD_CPDResEnergyTransferMode;
  1728. };
  1729. /****PowerDeliveryRequest****/
  1730. struct PowerDeliveryRequest_DIN70121
  1731. {
  1732. BOOL ReadyToChargeState;
  1733. struct ChargingProfileType_DIN70121 ChargingProfile;
  1734. struct DC_EVPowerDeliveryParameterType_DIN70121 DC_EVPowerDeliveryParameter;
  1735. };
  1736. struct PowerDeliveryRequest_ISO15118_2014
  1737. {
  1738. enum ChargeProgressType_ISO15118_2014 ChargeProgress;
  1739. short SAScheduleTupleID;
  1740. struct ChargingProfileType_ISO15118_2014 ChargingProfile;
  1741. struct DC_EVPowerDeliveryParameterType_ISO15118_2014 DC_EVPowerDeliveryParameter;
  1742. };
  1743. struct PowerDeliveryRequest_ISO15118_2018
  1744. {
  1745. enum ChargeProgressType_ISO15118_2018 ChargeProgress;
  1746. struct Scheduled_PDReqControlModeType Scheduled_PDReqControlMode;
  1747. struct BPT_Scheduled_PDReqControlModeType BPT_Scheduled_PDReqControlMode;
  1748. };
  1749. /****PowerDeliveryResponse****/
  1750. struct PowerDeliveryResponse_DIN70121
  1751. {
  1752. enum ResponseCodeType_DIN70121 ResponseCode;
  1753. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  1754. };
  1755. struct PowerDeliveryResponse_ISO15118_2014
  1756. {
  1757. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  1758. struct AC_EVSEStatusType AC_EVSEStatus;
  1759. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  1760. };
  1761. struct PowerDeliveryResponse_ISO15118_2018
  1762. {
  1763. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  1764. struct EVSEStatusType EVSEStatus; //Optional
  1765. };
  1766. /****CertificateUpdateRequest****/
  1767. struct CertificateUpdateRequest_ISO15118_2014
  1768. {
  1769. unsigned char Id[32];
  1770. struct CertificateChainType ContractSignatureCertChain;
  1771. unsigned char eMAID[16];
  1772. struct ListOfRootCertificateIDsType ListOfRootCertificateIDs;
  1773. };
  1774. /****CertificateUpdateResponse****/
  1775. struct CertificateUpdateResponse_ISO15118_2014
  1776. {
  1777. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  1778. struct CertificateChainType SAProvisioningCertificateChain;
  1779. struct CertificateChainType ContractSignatureCertChain;
  1780. struct ContractSignatureEncryptedPrivateKeyType ContractSignatureEncryptedPrivateKey;
  1781. struct DiffieHellmanPublickeyType DHpublickey;
  1782. unsigned char eMAID[16];
  1783. short RetryCounter; //Optional
  1784. };
  1785. /****CertificateInstallationRequest****/
  1786. struct CertificateInstallationRequest_ISO15118_2014
  1787. {
  1788. unsigned char Id[32];
  1789. unsigned char OEMProvisioningCert[800];
  1790. struct ListOfRootCertificateIDsType ListOfRootCertificateIDs;
  1791. };
  1792. struct CertificateInstallationRequest_ISO15118_2018
  1793. {
  1794. unsigned char Id[32];
  1795. struct CertificateChainType OEMProvisioningCertChain;
  1796. struct ListOfRootCertificateIDsType ListOfRootCertificateIDs;
  1797. unsigned short MaxSupportedCerts;
  1798. };
  1799. /****CertificateInstallationResponse****/
  1800. struct CertificateInstallationResponse_ISO15118_2014
  1801. {
  1802. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  1803. struct CertificateChainType SAProvisioningCertificateChain;
  1804. struct CertificateChainType ContractSignatureCertChain;
  1805. struct ContractSignatureEncryptedPrivateKeyType ContractSignatureEncryptedPrivateKey;
  1806. struct DiffieHellmanPublickeyType DHpublickey;
  1807. unsigned char eMAID[16];
  1808. };
  1809. struct CertificateInstallationResponse_ISO15118_2018
  1810. {
  1811. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  1812. struct EVSEStatusType EVSEStatus; //Optional
  1813. struct CertificateChainType SAProvisioningCertificateChain;
  1814. struct CertificateChainType ContractCertificateChain;
  1815. struct ContractCertificateEncryptedPrivateKeyType ContractEncryptedPrivateKey;
  1816. struct DiffieHellmanPublickeyType DHpublickey;
  1817. enum ProcessingType EVSEProcessing;
  1818. unsigned short RemainingContractCertificateChains;
  1819. };
  1820. /****SystemStatusRequest****/
  1821. struct SystemStatusRequest_ISO15118_2018
  1822. {
  1823. enum mechanicalChargingDeviceStatusType EVMechanicalChargingDeviceStatus;
  1824. struct EVTechnicalStatusType EVTechnicalStatus;
  1825. unsigned char EV_OEMStatus[800]; //Optional
  1826. };
  1827. /****SystemStatusResponse****/
  1828. struct SystemStatusResponse_ISO15118_2018
  1829. {
  1830. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  1831. enum mechanicalChargingDeviceStatusType EVSEMechanicalChargingDeviceStatus;
  1832. BOOL EVSE_ReadyToCharge;
  1833. enum IsolationStatusType EVSE_IsolationStatus;
  1834. BOOL EVSE_Disabled;
  1835. BOOL EVSE_UtilityInterruptEvent;
  1836. BOOL EVSE_EmergencyShutdown;
  1837. BOOL EVSE_Malfunction;
  1838. BOOL EV_InChargePosition;
  1839. BOOL EV_AssociationStatus;
  1840. };
  1841. /****SessionStopRequest****/
  1842. struct SessionStopRequest_DIN70121
  1843. {
  1844. //No member in standard
  1845. };
  1846. struct SessionStopRequest_ISO15118_2014
  1847. {
  1848. enum ChargingSessionType ChargingSession;
  1849. };
  1850. struct SessionStopRequest_ISO15118_2018
  1851. {
  1852. enum ChargingSessionType ChargingSession;
  1853. };
  1854. /****SessionStopResponse****/
  1855. struct SessionStopResponse_DIN70121
  1856. {
  1857. enum ResponseCodeType_DIN70121 ResponseCode;
  1858. };
  1859. struct SessionStopResponse_ISO15118_2014
  1860. {
  1861. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  1862. };
  1863. struct SessionStopResponse_ISO15118_2018
  1864. {
  1865. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  1866. struct EVSEStatusType EVSEStatus; //Optional
  1867. };
  1868. /****MeteringReceiptRequest****/
  1869. struct MeteringReceiptRequest_ISO15118_2014
  1870. {
  1871. unsigned char Id[32]; //Optional
  1872. unsigned char SessionID[8];
  1873. short SAScheduleTupleID; //Optional
  1874. struct MeterInfoType_ISO15118_2014 MeterInfo;
  1875. };
  1876. struct MeteringReceiptRequest_ISO15118_2018
  1877. {
  1878. unsigned char Id[32]; //Optional
  1879. unsigned char SessionID[8];
  1880. struct Scheduled_MRReqControlModeType Schedule_MRReqControlMode;
  1881. struct MeterInfoType_ISO15118_2018 MeterInfo;
  1882. };
  1883. /****MeteringReceiptResponse****/
  1884. struct MeteringReceiptResponse_ISO15118_2014
  1885. {
  1886. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  1887. struct AC_EVSEStatusType AC_EVSEStatus;
  1888. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  1889. };
  1890. struct MeteringReceiptResponse_ISO15118_2018
  1891. {
  1892. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  1893. struct EVSEStatusType EVSEStatus; //Optional
  1894. };
  1895. /****ChargingStatusRequest (AC Only)****/
  1896. struct ChargingStatusRequest_ISO15118_2014
  1897. {
  1898. //No member in standard
  1899. };
  1900. struct ChargingStatusRequest_ISO15118_2018
  1901. {
  1902. struct PnC_CLReqIdentificationModeType PnC_CLReqIdentificationMode;
  1903. struct Dynamic_CSReqControlModeType Dynamic_CSReqControlMode;
  1904. struct Scheduled_CSReqControlModeType Scheduled_CSReqControlMode;
  1905. struct DisplayParametersType DisplayParameters;
  1906. };
  1907. /****ChargingStatusResponse (AC Only)****/
  1908. struct ChargingStatusResponse_ISO15118_2014
  1909. {
  1910. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  1911. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  1912. short SAScheduleTupleID;
  1913. struct PhysicalValueType_ISO15118_2014 EVSEMaxCurrent; //Optional
  1914. struct MeterInfoType_ISO15118_2014 MeterInfo; //Optional
  1915. BOOL ReceiptRequired; //Optional
  1916. struct AC_EVSEStatusType AC_EVSEStatus;
  1917. };
  1918. struct ChargingStatusResponse_ISO15118_2018
  1919. {
  1920. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  1921. struct EVSEStatusType EVSEStatus; //Optional
  1922. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  1923. struct PhysicalValueType_ISO15118_2018 EVSETargetFrequency; //Optional
  1924. struct PnC_CLResIdentificationModeType PnC_CLResIdentificationMode;
  1925. struct Dynamic_CSResControlModeType Dynamic_CSResControlMode;
  1926. struct Scheduled_CSReqControlModeType Scheduled_CSReqControlMode;
  1927. };
  1928. /****CableCheckRequest (DC Only)****/
  1929. struct CableCheckRequest_DIN70121
  1930. {
  1931. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  1932. };
  1933. struct CableCheckRequest_ISO15118_2014
  1934. {
  1935. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  1936. };
  1937. struct CableCheckRequest_ISO15118_2018
  1938. {
  1939. //No member in standard
  1940. };
  1941. /****CableCheckResponse (DC Only)****/
  1942. struct CableCheckResponse_DIN70121
  1943. {
  1944. enum ResponseCodeType_DIN70121 ResponseCode;
  1945. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  1946. enum EVSEProcessingType_DIN70121 EVSEProcessing;
  1947. };
  1948. struct CableCheckResponse_ISO15118_2014
  1949. {
  1950. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  1951. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  1952. enum EVSEProcessingType_ISO15118_2014 EVSEProcessing;
  1953. };
  1954. struct CableCheckResponse_ISO15118_2018
  1955. {
  1956. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  1957. struct EVSEStatusType EVSEStatus; //Optional
  1958. enum ProcessingType EVSEProcessing;
  1959. };
  1960. /****PreChargeRequest (DC Only)****/
  1961. struct PreChargeRequest_DIN70121
  1962. {
  1963. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  1964. struct PhysicalValueType_DIN70121 EVTargetVoltage;
  1965. struct PhysicalValueType_DIN70121 EVTargetCurrent;
  1966. };
  1967. struct PreChargeRequest_ISO15118_2014
  1968. {
  1969. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  1970. struct PhysicalValueType_ISO15118_2014 EVTargetVoltage;
  1971. struct PhysicalValueType_ISO15118_2014 EVTargetCurrent;
  1972. };
  1973. struct PreChargeRequest_ISO15118_2018
  1974. {
  1975. struct PhysicalValueType_ISO15118_2018 EVTargetVoltage;
  1976. struct PhysicalValueType_ISO15118_2018 EVTargetCurrent;
  1977. };
  1978. /****PreChargeResponse (DC Only)****/
  1979. struct PreChargeResponse_DIN70121
  1980. {
  1981. enum ResponseCodeType_DIN70121 ResponseCode;
  1982. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  1983. struct PhysicalValueType_DIN70121 EVSEPresentVoltage;
  1984. };
  1985. struct PreChargeResponse_ISO15118_2014
  1986. {
  1987. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  1988. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  1989. struct PhysicalValueType_ISO15118_2014 EVSEPresentVoltage;
  1990. };
  1991. struct PreChargeResponse_ISO15118_2018
  1992. {
  1993. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  1994. struct EVSEStatusType EVSEStatus; //Optional
  1995. struct PhysicalValueType_ISO15118_2018 EVSEPresentVoltage;
  1996. };
  1997. /****CurrentDemandRequest (DC Only)****/
  1998. struct CurrentDemandRequest_DIN70121
  1999. {
  2000. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  2001. struct PhysicalValueType_DIN70121 EVTargetCurrent;
  2002. struct PhysicalValueType_DIN70121 EVMaximumVoltageLimit; //Optional
  2003. struct PhysicalValueType_DIN70121 EVMaximumCurrentLimit; //Optional
  2004. struct PhysicalValueType_DIN70121 EVMaximumPowerLimit; //Optional
  2005. BOOL BulkChargingComplete; //Optional
  2006. BOOL ChargingComplete;
  2007. struct PhysicalValueType_DIN70121 RemainingTimeToFullSoC; //Optional
  2008. struct PhysicalValueType_DIN70121 RemainingTimeToBulkSoC; //Optional
  2009. struct PhysicalValueType_DIN70121 EVTargetVoltage;
  2010. };
  2011. struct CurrentDemandRequest_ISO15118_2014
  2012. {
  2013. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  2014. struct PhysicalValueType_ISO15118_2014 EVTargetCurrent;
  2015. struct PhysicalValueType_ISO15118_2014 EVMaximumVoltageLimit; //Optional
  2016. struct PhysicalValueType_ISO15118_2014 EVMaximumCurrentLimit; //Optional
  2017. struct PhysicalValueType_ISO15118_2014 EVMaximumPowerLimit; //Optional
  2018. BOOL BulkChargingComplete; //Optional
  2019. BOOL ChargingComplete;
  2020. struct PhysicalValueType_ISO15118_2014 RemainingTimeToFullSoC; //Optional
  2021. struct PhysicalValueType_ISO15118_2014 RemainingTimeToBulkSoC; //Optional
  2022. struct PhysicalValueType_ISO15118_2014 EVTargetVoltage;
  2023. };
  2024. struct CurrentDemandRequest_ISO15118_2018
  2025. {
  2026. struct DisplayParametersType DisplayParameters; //Optional
  2027. struct PnC_CLReqIdentificationModeType PnC_CLReqIdentificationMode;
  2028. struct Dynamic_CSReqControlModeType Dynamic_CDReqControlMode;
  2029. struct Scheduled_CSReqControlModeType Scheduled_CDReqControlMode;
  2030. };
  2031. /****CurrentDemandResponse (DC Only)****/
  2032. struct CurrentDemandResponse_DIN70121
  2033. {
  2034. enum ResponseCodeType_DIN70121 ResponseCode;
  2035. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  2036. struct PhysicalValueType_DIN70121 EVSEPresentVoltage;
  2037. struct PhysicalValueType_DIN70121 EVSEPresentCurrent;
  2038. BOOL EVSECurrentLimitAchieved;
  2039. BOOL EVSEVoltageLimitAchieved;
  2040. BOOL EVSEPowerLimitAchieved;
  2041. struct PhysicalValueType_DIN70121 EVSEMaximumVoltageLimit; //Optional
  2042. struct PhysicalValueType_DIN70121 EVSEMaximumCurrentLimit; //Optional
  2043. struct PhysicalValueType_DIN70121 EVSEMaximumPowerLimit; //Optional
  2044. };
  2045. struct CurrentDemandResponse_ISO15118_2014
  2046. {
  2047. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2048. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  2049. struct PhysicalValueType_ISO15118_2014 EVSEPresentVoltage;
  2050. struct PhysicalValueType_ISO15118_2014 EVSEPresentCurrent;
  2051. BOOL EVSECurrentLimitAchieved;
  2052. BOOL EVSEVoltageLimitAchieved;
  2053. BOOL EVSEPowerLimitAchieved;
  2054. struct PhysicalValueType_ISO15118_2014 EVSEMaximumVoltageLimit; //Optional
  2055. struct PhysicalValueType_ISO15118_2014 EVSEMaximumCurrentLimit; //Optional
  2056. struct PhysicalValueType_ISO15118_2014 EVSEMaximumPowerLimit; //Optional
  2057. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  2058. short SAScheduleTupleID;
  2059. struct MeterInfoType_ISO15118_2014 MeterInfo; //Optional
  2060. BOOL ReceiptRequired; //Optional
  2061. };
  2062. struct CurrentDemandResponse_ISO15118_2018
  2063. {
  2064. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2065. struct EVSEStatusType EVSEStatus; //Optional
  2066. struct PhysicalValueType_ISO15118_2018 EVSEPresentVoltage;
  2067. struct PhysicalValueType_ISO15118_2018 EVSEPresentCurrent;
  2068. BOOL EVSECurrentLimitAchieved;
  2069. BOOL EVSEVoltageLimitAchieved;
  2070. BOOL EVSEPowerLimitAchieved;
  2071. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeVoltage; //Optional
  2072. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent; //Optional
  2073. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower; //Optional
  2074. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  2075. struct PnC_CLResIdentificationModeType PnC_CLResIdentificationMode;
  2076. struct Scheduled_CDResControlModeType Scheduled_CDResControlMode;
  2077. };
  2078. /****WeldingDetectionRequest (DC Only)*****/
  2079. struct WeldingDetectionRequest_DIN70121
  2080. {
  2081. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  2082. };
  2083. struct WeldingDetectionRequest_ISO15118_2014
  2084. {
  2085. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  2086. };
  2087. struct WeldingDetectionRequest_ISO15118_2018
  2088. {
  2089. //No member in Standard
  2090. };
  2091. /****WeldingDetectionResponse (DC Only)****/
  2092. struct WeldingDetectionResponse_DIN70121
  2093. {
  2094. enum ResponseCodeType_DIN70121 ResponseCode;
  2095. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  2096. struct PhysicalValueType_DIN70121 EVSEPresentVoltage;
  2097. };
  2098. struct WeldingDetectionResponse_ISO15118_2014
  2099. {
  2100. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2101. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  2102. struct PhysicalValueType_ISO15118_2014 EVSEPresentVoltage;
  2103. };
  2104. struct WeldingDetectionResponse_ISO15118_2018
  2105. {
  2106. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2107. struct EVSEStatusType EVSEStatus; //Optional
  2108. struct PhysicalValueType_ISO15118_2018 EVSEPresentVoltage;
  2109. };
  2110. /****FinePositioningSetupRequest (WPT Only)****/
  2111. struct FinePositioningSetupRequest_ISO15118_2018
  2112. {
  2113. struct LFA_EVFinePositioningSetupParametersType LFA_EVFinePositioningSetupParameters; //Optional
  2114. };
  2115. /****FinePositioningSetupResponse (WPT Only)****/
  2116. struct FinePositioningSetupResponse_ISO15118_2018
  2117. {
  2118. //NOT complete yet, to be continue.....
  2119. };
  2120. struct V2GMessageType_DIN70121
  2121. {
  2122. unsigned char PresentMsgFlowStatus;
  2123. /* 0: Idle(wait B2 state), 1: CM_SLAC_PARM.REQ, 2: CM_SLAC_PARM.CNF, 3: CM_START_ATTEN_CHAR.IND
  2124. 4: CM_MNBC_SOUND.IND, 5: CM_ATTEN_CHAR.IND, 6: CM_ATTEN_CHAR.RSP, 7: CM_VALIDATE.REQ
  2125. 8: CM_VALIDATE.CNF, 9: CM_SLAC_MATCH.REQ, 10: CM_SLAC_MATCH.CNF, 11: CM_AMP_MAP.REQ
  2126. 12: CM_AMP_MAP.CNF, 13: SLACC/SDP/TCP connection,
  2127. 16: SupportedAppProtocolRequest, 17: SupportedAppProtocolResponse, 18: SessionSetupRequest
  2128. 19: SessionSetupResponse, 20: ServiceDiscoveryRequest, 21: ServiceDiscoveryResponse
  2129. 22: ServiceDetailRequest, 23: ServiceDetailResponse
  2130. 24: ServiceAndPaymentSelectionRequest/ServiceSelectionRequest, 25: ServiceAndPaymentSelectionResponse/ServiceSelectionResponse
  2131. 26: PaymentDetailsRequest/IdentificationDetailsRequest;, 27: PaymentDetailsResponse/IdentificationDetailsResponse,
  2132. 28: AuthorizationRequest, 29: AuthorizationResponse,
  2133. 30: CertificateUpdateRequest, 31: CertificateUpdateResponse, 32:CertificateInstallationRequest, 33: CertificateInstallationResponse
  2134. 34: ChargeParameterDiscoveryRequest, 35: ChargeParameterDiscoveryResponse
  2135. 36: CableCheckRequest, 37: CableCheckResponse, 38: PreChargeRequest, 39: PreChargeResponse
  2136. 40: PowerDeliveryRequest start, 41: PowerDeliveryResponse start, 42: ChargingStatusRequest, 43: ChargingStatusResponse
  2137. 44: CurrentDemandRequest, 45: CurrentDemandResponse, 46: MeteringReceiptRequest, 47: MeteringReceiptResponse
  2138. 48: PowerDeliveryRequest end, 49: PowerDeliveryRequest end, 50: WeldingDetectionRequest, 51: WeldingDetectionResponse,
  2139. 52: SessionStopRequest, 53: SessionStopResponse
  2140. 253: Performance Timeout, 254: Sequence Timeout, 255: Fault
  2141. */
  2142. struct SupportedAppProtocolRequest_DIN70121 SupportedAppProtocolRequest;
  2143. struct SupportedAppProtocolResponse_DIN70121 SupportedAppProtocolResponse;
  2144. struct SessionSetupRequest_DIN70121 SessionSetupRequest;
  2145. struct SessionSetupResponse_DIN70121 SessionSetupResponse;
  2146. struct ServiceDiscoveryRequest_DIN70121 ServiceDiscoveryRequest;
  2147. struct ServiceDiscoveryResponse_DIN70121 ServiceDiscoveryResponse;
  2148. struct ServiceAndPaymentSelectionRequest_DIN70121 ServiceAndPaymentSelectionRequest;
  2149. struct ServiceAndPaymentSelectionResponse_DIN70121 ServiceAndPaymentSelectionResponse;
  2150. struct ContractAuthenticationRequest_DIN70121 ContractAuthenticationRequest;
  2151. struct ContractAuthenticationResponse_DIN70121 ContractAuthenticationResponse;
  2152. struct ChargeParameterDiscoveryRequest_DIN70121 ChargeParameterDiscoveryRequest;
  2153. struct ChargeParameterDiscoveryResponse_DIN70121 ChargeParameterDiscoveryResponse;
  2154. struct CableCheckRequest_DIN70121 CableCheckRequest;
  2155. struct CableCheckResponse_DIN70121 CableCheckResponse;
  2156. struct PreChargeRequest_DIN70121 PreChargeRequest;
  2157. struct PreChargeResponse_DIN70121 PreChargeResponse;
  2158. struct PowerDeliveryRequest_DIN70121 PowerDeliveryRequest;
  2159. struct PowerDeliveryResponse_DIN70121 PowerDeliveryResponse;
  2160. struct CurrentDemandRequest_DIN70121 CurrentDemandRequest;
  2161. struct CurrentDemandResponse_DIN70121 CurrentDemandResponse;
  2162. struct WeldingDetectionRequest_DIN70121 WeldingDetectionRequest;
  2163. struct WeldingDetectionResponse_DIN70121 WeldingDetectionResponse;
  2164. struct SessionStopRequest_DIN70121 SessionStopRequest;
  2165. struct SessionStopResponse_DIN70121 SessionStopResponse;
  2166. };
  2167. struct V2GMessageType_ISO15118_2014
  2168. {
  2169. unsigned char PresentMsgFlowStatus;
  2170. /* 0: Idle(wait B2 state), 1: CM_SLAC_PARM.REQ, 2: CM_SLAC_PARM.CNF, 3: CM_START_ATTEN_CHAR.IND
  2171. 4: CM_MNBC_SOUND.IND, 5: CM_ATTEN_CHAR.IND, 6: CM_ATTEN_CHAR.RSP, 7: CM_VALIDATE.REQ
  2172. 8: CM_VALIDATE.CNF, 9: CM_SLAC_MATCH.REQ, 10: CM_SLAC_MATCH.CNF, 11: CM_AMP_MAP.REQ
  2173. 12: CM_AMP_MAP.CNF, 13: SLACC/SDP/TCP connection,
  2174. 16: SupportedAppProtocolRequest, 17: SupportedAppProtocolResponse, 18: SessionSetupRequest
  2175. 19: SessionSetupResponse, 20: ServiceDiscoveryRequest, 21: ServiceDiscoveryResponse
  2176. 22: ServiceDetailRequest, 23: ServiceDetailResponse
  2177. 24: ServiceAndPaymentSelectionRequest/ServiceSelectionRequest, 25: ServiceAndPaymentSelectionResponse/ServiceSelectionResponse
  2178. 26: PaymentDetailsRequest/IdentificationDetailsRequest;, 27: PaymentDetailsResponse/IdentificationDetailsResponse,
  2179. 28: AuthorizationRequest, 29: AuthorizationResponse,
  2180. 30: CertificateUpdateRequest, 31: CertificateUpdateResponse, 32:CertificateInstallationRequest, 33: CertificateInstallationResponse
  2181. 34: ChargeParameterDiscoveryRequest, 35: ChargeParameterDiscoveryResponse
  2182. 36: CableCheckRequest, 37: CableCheckResponse, 38: PreChargeRequest, 39: PreChargeResponse
  2183. 40: PowerDeliveryRequest start, 41: PowerDeliveryResponse start, 42: ChargingStatusRequest, 43: ChargingStatusResponse
  2184. 44: CurrentDemandRequest, 45: CurrentDemandResponse, 46: MeteringReceiptRequest, 47: MeteringReceiptResponse
  2185. 48: PowerDeliveryRequest end, 49: PowerDeliveryRequest end, 50: WeldingDetectionRequest, 51: WeldingDetectionResponse,
  2186. 52: SessionStopRequest, 53: SessionStopResponse
  2187. 253: Performance Timeout, 254: Sequence Timeout, 255: Fault
  2188. */
  2189. struct SupportedAppProtocolRequest_ISO15118_2014 SupportedAppProtocolRequest;
  2190. struct SupportedAppProtocolResponse_ISO15118_2014 SupportedAppProtocolResponse;
  2191. struct SessionSetupRequest_ISO15118_2014 SessionSetupRequest;
  2192. struct SessionSetupResponse_ISO15118_2014 SessionSetupResponse;
  2193. struct ServiceDiscoveryRequest_ISO15118_2014 ServiceDiscoveryRequest;
  2194. struct ServiceDiscoveryResponse_ISO15118_2014 ServiceDiscoveryResponse;
  2195. struct ServiceDetailRequest_ISO15118_2014 ServiceDetailRequest;
  2196. struct ServiceDetailResponse_ISO15118_2014 ServiceDetailResponse;
  2197. struct ServiceAndPaymentSelectionRequest_ISO15118_2014 ServiceAndPaymentSelectionRequest;
  2198. struct ServiceAndPaymentSelectionResponse_ISO15118_2014 ServiceAndPaymentSelectionResponse;
  2199. struct PaymentDetailsRequest_ISO15118_2014 PaymentDetailsRequest;
  2200. struct PaymentDetailsResponse_ISO15118_2014 PaymentDetailsResponse;
  2201. struct AuthorizationRequest_ISO15118_2014 AuthorizationRequest;
  2202. struct AuthorizationResponse_ISO15118_2014 AuthorizationResponse;
  2203. struct CertificateUpdateRequest_ISO15118_2014 CertificateUpdateRequest;
  2204. struct CertificateUpdateResponse_ISO15118_2014 CertificateUpdateResponse;
  2205. struct CertificateInstallationRequest_ISO15118_2014 CertificateInstallationRequest;
  2206. struct CertificateInstallationResponse_ISO15118_2014 CertificateInstallationResponse;
  2207. struct ChargeParameterDiscoveryRequest_ISO15118_2014 ChargeParameterDiscoveryRequest;
  2208. struct ChargeParameterDiscoveryResponse_ISO15118_2014 ChargeParameterDiscoveryResponse;
  2209. struct CableCheckRequest_ISO15118_2014 CableCheckRequest;
  2210. struct CableCheckResponse_ISO15118_2014 CableCheckResponse;
  2211. struct PreChargeRequest_ISO15118_2014 PreChargeRequest;
  2212. struct PreChargeResponse_ISO15118_2014 PreChargeResponse;
  2213. struct PowerDeliveryRequest_ISO15118_2014 PowerDeliveryRequest;
  2214. struct PowerDeliveryResponse_ISO15118_2014 PowerDeliveryResponse;
  2215. struct ChargingStatusRequest_ISO15118_2014 ChargingStatusRequest;
  2216. struct ChargingStatusResponse_ISO15118_2014 ChargingStatusResponse;
  2217. struct CurrentDemandRequest_ISO15118_2014 CurrentDemandRequest;
  2218. struct CurrentDemandResponse_ISO15118_2014 CurrentDemandResponse;
  2219. struct MeteringReceiptRequest_ISO15118_2014 MeteringReceiptRequest;
  2220. struct MeteringReceiptResponse_ISO15118_2014 MeteringReceiptResponse;
  2221. struct WeldingDetectionRequest_ISO15118_2014 WeldingDetectionRequest;
  2222. struct WeldingDetectionResponse_ISO15118_2014 WeldingDetectionResponse;
  2223. struct SessionStopRequest_ISO15118_2014 SessionStopRequest;
  2224. struct SessionStopResponse_ISO15118_2014 SessionStopResponse;
  2225. };
  2226. struct V2GMessageType_ISO15118_2018
  2227. {
  2228. unsigned char PresentMsgFlowStatus;
  2229. /* 0: Idle(wait B2 state), 1: CM_SLAC_PARM.REQ, 2: CM_SLAC_PARM.CNF, 3: CM_START_ATTEN_CHAR.IND
  2230. 4: CM_MNBC_SOUND.IND, 5: CM_ATTEN_CHAR.IND, 6: CM_ATTEN_CHAR.RSP, 7: CM_VALIDATE.REQ
  2231. 8: CM_VALIDATE.CNF, 9: CM_SLAC_MATCH.REQ, 10: CM_SLAC_MATCH.CNF, 11: CM_AMP_MAP.REQ
  2232. 12: CM_AMP_MAP.CNF, 13: SLACC/SDP/TCP connection,
  2233. 16: SupportedAppProtocolRequest, 17: SupportedAppProtocolResponse, 18: SessionSetupRequest
  2234. 19: SessionSetupResponse, 20: ServiceDiscoveryRequest, 21: ServiceDiscoveryResponse
  2235. 22: ServiceDetailRequest, 23: ServiceDetailResponse
  2236. 24: ServiceAndPaymentSelectionRequest/ServiceSelectionRequest, 25: ServiceAndPaymentSelectionResponse/ServiceSelectionResponse
  2237. 26: PaymentDetailsRequest/IdentificationDetailsRequest;, 27: PaymentDetailsResponse/IdentificationDetailsResponse,
  2238. 28: AuthorizationRequest, 29: AuthorizationResponse,
  2239. 30: CertificateUpdateRequest, 31: CertificateUpdateResponse, 32:CertificateInstallationRequest, 33: CertificateInstallationResponse
  2240. 34: ChargeParameterDiscoveryRequest, 35: ChargeParameterDiscoveryResponse
  2241. 36: CableCheckRequest, 37: CableCheckResponse, 38: PreChargeRequest, 39: PreChargeResponse
  2242. 40: PowerDeliveryRequest start, 41: PowerDeliveryResponse start, 42: ChargingStatusRequest, 43: ChargingStatusResponse
  2243. 44: CurrentDemandRequest, 45: CurrentDemandResponse, 46: MeteringReceiptRequest, 47: MeteringReceiptResponse
  2244. 48: PowerDeliveryRequest end, 49: PowerDeliveryRequest end, 50: WeldingDetectionRequest, 51: WeldingDetectionResponse,
  2245. 52: SessionStopRequest, 53: SessionStopResponse
  2246. 253: Performance Timeout, 254: Sequence Timeout, 255: Fault
  2247. */
  2248. struct SupportedAppProtocolRequest_ISO15118_2018 SupportedAppProtocolRequest;
  2249. struct SupportedAppProtocolResponse_ISO15118_2018 SupportedAppProtocolResponse;
  2250. struct SessionSetupRequest_ISO15118_2018 SessionSetupRequest;
  2251. struct SessionSetupResponse_ISO15118_2018 SessionSetupResponse;
  2252. struct ServiceDiscoveryRequest_ISO15118_2018 ServiceDiscoveryRequest;
  2253. struct ServiceDiscoveryResponse_ISO15118_2018 ServiceDiscoveryResponse;
  2254. struct ServiceDetailRequest_ISO15118_2018 ServiceDetailRequest;
  2255. struct ServiceDetailResponse_ISO15118_2018 ServiceDetailResponse;
  2256. struct ServiceSelectionRequest_ISO15118_2018 ServiceSelectionRequest;
  2257. struct ServiceSelectionResponse_ISO15118_2018 ServiceSelectionResponse;
  2258. struct IdentificationDetailsRequest_ISO15118_2018 IdentificationDetailsRequest;
  2259. struct IdentificationDetailsResponse_ISO15118_2018 IdentificationDetailsResponse;
  2260. struct AuthorizationRequest_ISO15118_2018 AuthorizationRequest;
  2261. struct AuthorizationResponse_ISO15118_2018 AuthorizationResponse;
  2262. struct CertificateInstallationRequest_ISO15118_2018 CertificateInstallationRequest;
  2263. struct CertificateInstallationResponse_ISO15118_2018 CertificateInstallationResponse;
  2264. struct ChargeParameterDiscoveryRequest_ISO15118_2018 ChargeParameterDiscoveryRequest;
  2265. struct ChargeParameterDiscoveryResponse_ISO15118_2018 ChargeParameterDiscoveryResponse;
  2266. struct CableCheckRequest_ISO15118_2018 CableCheckRequest;
  2267. struct CableCheckResponse_ISO15118_2018 CableCheckResponse;
  2268. struct PreChargeRequest_ISO15118_2018 PreChargeRequest;
  2269. struct PreChargeResponse_ISO15118_2018 PreChargeResponse;
  2270. struct PowerDeliveryRequest_ISO15118_2018 PowerDeliveryRequest;
  2271. struct PowerDeliveryResponse_ISO15118_2018 PowerDeliveryResponse;
  2272. struct ChargingStatusRequest_ISO15118_2018 ChargingStatusRequest;
  2273. struct ChargingStatusResponse_ISO15118_2018 ChargingStatusResponse;
  2274. struct CurrentDemandRequest_ISO15118_2018 CurrentDemandRequest;
  2275. struct CurrentDemandResponse_ISO15118_2018 CurrentDemandResponse;
  2276. struct MeteringReceiptRequest_ISO15118_2018 MeteringReceiptRequest;
  2277. struct MeteringReceiptResponse_ISO15118_2018 MeteringReceiptResponse;
  2278. struct WeldingDetectionRequest_ISO15118_2018 WeldingDetectionRequest;
  2279. struct WeldingDetectionResponse_ISO15118_2018 WeldingDetectionResponse;
  2280. struct SessionStopRequest_ISO15118_2018 SessionStopRequest;
  2281. struct SessionStopResponse_ISO15118_2018 SessionStopResponse;
  2282. };
  2283. struct CcsData
  2284. {
  2285. unsigned char CommProtocol; // 1: V2GMessage_DIN70121, 2:V2GMessage_ISO15118_2014, 3:V2GMessage_ISO15118_2018
  2286. struct V2GMessageType_DIN70121 V2GMessage_DIN70121[CCS_QUANTITY];
  2287. struct V2GMessageType_ISO15118_2014 V2GMessage_ISO15118_2014[CCS_QUANTITY];
  2288. struct V2GMessageType_ISO15118_2018 V2GMessage_ISO15118_2018[CCS_QUANTITY];
  2289. };
  2290. /**************************************************************************************/
  2291. /***************STM32F407 Communication Share memory**************************/
  2292. /**************************************************************************************/
  2293. struct PrimaryMcuData
  2294. {
  2295. unsigned char SelfTest_Comp;
  2296. unsigned char version[16]; //STM32F407 firmware version
  2297. unsigned int InputVoltage; //value comes from external meter
  2298. unsigned int InputCurrent; //value comes from external meter
  2299. union
  2300. {
  2301. unsigned char OutputDrvValue[1];
  2302. struct
  2303. {
  2304. //OutputDrvValue[0]
  2305. unsigned char AcContactorDrv:1; //bit 0, H: ON, L:OFF
  2306. unsigned char Button1LedDrv:1; //bit 1, H: ON, L:OFF
  2307. unsigned char Button2LedDrv:1; //bit 2, H: ON, L:OFF
  2308. unsigned char SystemLed1Drv:1; //bit 3, H: ON, L:OFF
  2309. unsigned char SystemLed2Drv:1; //bit 4, H: ON, L:OFF
  2310. unsigned char SystemLed3Drv:1; //bit 5, H: ON, L:OFF
  2311. unsigned char SystemLed4Drv:1; //bit 6, H: ON, L:OFF
  2312. unsigned char:1; //bit 7 reserved
  2313. }bits;
  2314. }OutputDrv;
  2315. union
  2316. {
  2317. unsigned char InputDetValue[2];
  2318. struct
  2319. {
  2320. //InputDetValue[0]
  2321. unsigned char AcContactorDetec:1; //bit 0, H: ON, L:OFF
  2322. unsigned char AcMainBreakerDetec:1; //bit 1, H: ON, L:OFF
  2323. unsigned char SpdDetec:1; //bit 2, H: ON, L:OFF
  2324. unsigned char DoorOpen:1; //bit 3, H: Open, L:Close
  2325. unsigned char Gfd1:1; //bit 4, H: Trigger, L:Normal
  2326. unsigned char Gfd2:1; //bit 5, H: Trigger, L:Normal
  2327. unsigned char Button1:1; //bit 6 , H: Push, L:Release
  2328. unsigned char Button2:1; //bit 7, H: Push, L:Release
  2329. //InputDetValue[1]
  2330. unsigned char EmergencyButton:1; //bit 0, H: Push, L:Release
  2331. unsigned char :7; //bit 1~7, Reserved
  2332. }bits;
  2333. }InputDet;
  2334. };
  2335. /**************************************************************************************/
  2336. /*************Fan power module Communication Share memory******************/
  2337. /**************************************************************************************/
  2338. struct FanModuleData
  2339. {
  2340. unsigned char version[16]; //fan power module firmware version
  2341. unsigned short PresentFan1Speed; //RPM
  2342. unsigned short PresentFan2Speed; //RPM
  2343. unsigned short PresentFan3Speed; //RPM
  2344. unsigned short PresentFan4Speed; //RPM
  2345. unsigned short SetFan1Speed; //RPM
  2346. unsigned short SetFan2Speed; //RPM
  2347. unsigned short SetFan3Speed; //RPM
  2348. unsigned short SetFan4Speed; //RPM
  2349. unsigned char DiffOfAirPressure; //pa
  2350. unsigned char UpdateFW; //1:do update
  2351. };
  2352. /**************************************************************************************/
  2353. /***********Relay control module Communication Share memory******************/
  2354. /**************************************************************************************/
  2355. struct RelayModuleData
  2356. {
  2357. unsigned char version[16]; //fan power module firmware version
  2358. unsigned short InputL1Volt; //XXXXX.x volt
  2359. unsigned short InputL2Volt; //XXXXX.x volt
  2360. unsigned short InputL3Volt; //XXXXX.x volt
  2361. unsigned short Gun1FuseOutputVolt; //XXXXX.x volt
  2362. unsigned short Gun2FuseOutputVolt; //XXXXX.x volt
  2363. unsigned short Gun1RelayOutputVolt; //XXXXX.x volt
  2364. unsigned short Gun2RelayOutputVolt; //XXXXX.x volt
  2365. unsigned short Gun1OutputCurrent; //XXXXX.x amp
  2366. unsigned short Gun2OutputCurrent; //XXXXX.x amp
  2367. unsigned char UpdateFW; //1:do update
  2368. };
  2369. /**************************************************************************************/
  2370. /************************OCPP Share memory***************************************/
  2371. /**************************************************************************************/
  2372. struct StructIdTagInfo
  2373. {
  2374. unsigned char ExpiryDate[28];
  2375. unsigned char ParentIdTag[20];
  2376. unsigned char Status[16]; //Accepted, Blocked, Expired, Invalid, ConcurrentTx
  2377. };
  2378. struct StructLocalAuthorizationList
  2379. {
  2380. unsigned char IdTag[20];
  2381. struct StructIdTagInfo IdTagInfo;
  2382. };
  2383. struct StructSampledValue
  2384. {
  2385. unsigned char Value[128];
  2386. unsigned char Context[20];//Interruption.Begin, Interruption.End, Sample.Clock, Sample.Periodic, Transaction.Begin, Transaction.End, Trigger, Other
  2387. unsigned char Format[12];//Raw,SignedData
  2388. unsigned char Measurand[32];/* "Energy.Active.Export.Register",
  2389. "Energy.Active.Import.Register",
  2390. "Energy.Reactive.Export.Register",
  2391. "Energy.Reactive.Import.Register",
  2392. "Energy.Active.Export.Interval",
  2393. "Energy.Active.Import.Interval",
  2394. "Energy.Reactive.Export.Interval",
  2395. "Energy.Reactive.Import.Interval",
  2396. "Power.Active.Export",
  2397. "Power.Active.Import",
  2398. "Power.Offered",
  2399. "Power.Reactive.Export",
  2400. "Power.Reactive.Import",
  2401. "Power.Factor",
  2402. "Current.Import",
  2403. "Current.Export",
  2404. "Current.Offered",
  2405. "Voltage",
  2406. "Frequency",
  2407. "Temperature",
  2408. "SoC",
  2409. "RPM"
  2410. */
  2411. unsigned char Phase[8]; /* "L1",
  2412. "L2",
  2413. "L3",
  2414. "N",
  2415. "L1-N",
  2416. "L2-N",
  2417. "L3-N",
  2418. "L1-L2",
  2419. "L2-L3",
  2420. "L3-L1"
  2421. */
  2422. unsigned char Location[8]; //Cable,EV,Inlet,Outlet,Body
  2423. unsigned char Unit[12]; /* "Wh",
  2424. "kWh",
  2425. "varh",
  2426. "kvarh",
  2427. "W",
  2428. "kW",
  2429. "VA",
  2430. "kVA",
  2431. "var",
  2432. "kvar",
  2433. "A",
  2434. "V",
  2435. "K",
  2436. "Celcius",
  2437. "Fahrenheit",
  2438. "Percent"
  2439. */
  2440. };
  2441. struct StructMeterValue
  2442. {
  2443. unsigned char TimeStamp[28];
  2444. struct StructSampledValue *SampledValue;
  2445. };
  2446. struct StructConfigurationKeyItems
  2447. {
  2448. unsigned char Item[50];
  2449. };
  2450. struct StructConfigurationKey
  2451. {
  2452. unsigned char Key[50];
  2453. unsigned char ReadOnly[8]; //boolean
  2454. unsigned char Value[500];
  2455. };
  2456. struct StructChargingSchedulePeriod
  2457. {
  2458. int StartPeriod;
  2459. float Limit;//0.1;
  2460. int NumberPhases;
  2461. };
  2462. struct StructChargingSchedule
  2463. {
  2464. int Duration;
  2465. unsigned char StartSchedule[28];
  2466. unsigned char ChargingRateUnit[4]; //A, W
  2467. struct StructChargingSchedulePeriod *ChargingSchedulePeriod;
  2468. float MinChargingRate; //0.1;
  2469. };
  2470. struct StructChargingProfile
  2471. {
  2472. int ChargingProfileId;
  2473. int TransactionId;
  2474. int StackLevel;
  2475. unsigned char ChargingProfilePurpose[24]; //ChargePointMaxProfile, TxDefaultProfile, TxProfile
  2476. unsigned char ChargingProfileKind[12]; //Absolute, Recurring, Relative
  2477. unsigned char RecurrencyKind[8]; //Daily, Weekly
  2478. unsigned char ValidFrom[28];
  2479. unsigned char ValidTo[28];
  2480. struct StructChargingSchedule ChargingSchedule;
  2481. };
  2482. struct StructBootNotification
  2483. {
  2484. unsigned char CpVendor[20]; //chargePointVendor //mandatory
  2485. unsigned char CpModel[20]; //chargePointModel //mandatory
  2486. unsigned char CpSN[25]; //chargePointSerialNumber
  2487. unsigned char CbSN[25]; //chargeBoxSerialNumber
  2488. unsigned char CpFwVersion[50]; //firmwareVersion
  2489. unsigned char CpIccid[20]; //iccid
  2490. unsigned char CpImsi[20]; //imsi
  2491. unsigned char CpMeterType[25]; //meterType
  2492. unsigned char CpMeterSerialNumber[25]; //meterSerialNumber
  2493. unsigned char ResponseStatus[16]; //Accepted, Pending, Rejected
  2494. unsigned char ResponseCurrentTime[28]; //currentTime //mandatory
  2495. int ResponseHeartbeatInterval; //interval //mandatory
  2496. };
  2497. struct StructHeartbeat
  2498. {
  2499. unsigned char ResponseCurrentTime[28];
  2500. };
  2501. struct StructAuthorize
  2502. {
  2503. unsigned char IdTag[20];
  2504. struct StructIdTagInfo ResponseIdTagInfo;
  2505. };
  2506. struct StructStartTransaction
  2507. {
  2508. int ConnectorId;
  2509. unsigned char IdTag[20];
  2510. int MeterStart;
  2511. int ReservationId;
  2512. unsigned char Timestamp[28];
  2513. struct StructIdTagInfo ResponseIdTagInfo;
  2514. int ResponseTransactionId;
  2515. };
  2516. struct StructStopTransaction
  2517. {
  2518. unsigned char IdTag[20];
  2519. int MeterStop;
  2520. unsigned char Timestamp[28];
  2521. int TransactionId;
  2522. unsigned char StopReason; /* "EmergencyStop",
  2523. "EVDisconnected",
  2524. "HardReset",
  2525. "Local",
  2526. "Other",
  2527. "PowerLoss",
  2528. "Reboot",
  2529. "Remote",
  2530. "SoftReset",
  2531. "UnlockCommand",
  2532. "DeAuthorized"
  2533. */
  2534. struct StructMeterValue *TransactionData;
  2535. struct StructIdTagInfo ResponseIdTagInfo;
  2536. };
  2537. struct StructStatusNotification
  2538. {
  2539. int ConnectorId;
  2540. unsigned char ErrorCode; /* "ConnectorLockFailure",
  2541. "EVCommunicationError",
  2542. "GroundFailure",
  2543. "HighTemperature",
  2544. "InternalError",
  2545. "LocalListConflict",
  2546. "NoError",
  2547. "OtherError",
  2548. "OverCurrentFailure",
  2549. "PowerMeterFailure",
  2550. "PowerSwitchFailure",
  2551. "ReaderFailure",
  2552. "ResetFailure",
  2553. "UnderVoltage",
  2554. "OverVoltage",
  2555. "WeakSignal"
  2556. */
  2557. unsigned char Info[50];
  2558. unsigned char Status; /* "Available",
  2559. "Preparing",
  2560. "Charging",
  2561. "SuspendedEVSE",
  2562. "SuspendedEV",
  2563. "Finishing",
  2564. "Reserved",
  2565. "Unavailable",
  2566. "Faulted"
  2567. */
  2568. unsigned char Timestamp[28];
  2569. unsigned char VendorId[256];
  2570. unsigned char VendorErrorCode[50];
  2571. };
  2572. struct StructCancelReservation
  2573. {
  2574. int ReservationId;
  2575. unsigned char ResponseStatus[16]; //Accepted, Rejected
  2576. };
  2577. struct StructChangeAvailability
  2578. {
  2579. int ConnectorId;
  2580. unsigned char Type[16]; //Inoperative, Operative
  2581. unsigned char ResponseStatus[16]; //Accepted, Rejected, Scheduled
  2582. };
  2583. struct StructChangeConfiguration
  2584. {
  2585. unsigned char Key[50];
  2586. unsigned char Value[500];
  2587. unsigned char ResponseStatus[16]; //Accepted, Rejected, RebootRequired, NotSupported
  2588. };
  2589. struct StructClearCache
  2590. {
  2591. unsigned char ResponseStatus[16]; //Accepted, Rejected
  2592. };
  2593. struct StructClearChargingProfile
  2594. {
  2595. int Id;
  2596. int ConnectorId;
  2597. unsigned char ChargingProfilePurpose[24]; //ChargePointMaxProfile, TxDefaultProfile, TxProfile
  2598. int StackLevel;
  2599. unsigned char ResponseStatus[16]; //Accepted, Unknown
  2600. };
  2601. struct StructDataTransfer
  2602. {
  2603. unsigned char VendorId[256];
  2604. unsigned char MessageId[52];
  2605. unsigned char Data[512];
  2606. unsigned char ResponseStatus[18]; //Accepted, Rejected,UnknownMessageId,UnknownVendorId
  2607. unsigned char ResponseData[256];
  2608. };
  2609. struct StructDiagnosticsStatusNotification
  2610. {
  2611. unsigned char Status[16]; //Idle,Uploaded,UploadFailed,Uploading
  2612. };
  2613. struct StructFirmwareStatusNotification
  2614. {
  2615. unsigned char Status[20]; //Downloaded,DownloadFailed,Downloading,Idle,InstallationFailed,Installing,Installed
  2616. };
  2617. struct StructGetCompositeSchedule
  2618. {
  2619. int ConnectorId;
  2620. int Duration;
  2621. unsigned char ChargingRateUnit[4]; //A,W
  2622. unsigned char ResponseStatus[12]; //Accepted,Rejected
  2623. int ResponseConnectorId;
  2624. unsigned char ResponseScheduleStart[28];
  2625. struct StructChargingSchedule ResponseChargingSchedule;
  2626. };
  2627. struct StructGetConfiguration
  2628. {
  2629. struct StructConfigurationKeyItems *Key;
  2630. struct StructConfigurationKey *ResponseConfigurationKey;
  2631. struct StructConfigurationKeyItems *ResponseUnknownKey;
  2632. };
  2633. struct StructGetDiagnostics
  2634. {
  2635. unsigned char Location[256];
  2636. int Retries;
  2637. int RetryInterval;
  2638. unsigned char StartTime[28];
  2639. unsigned char StopTime[28];
  2640. unsigned char ResponseFileName[256];
  2641. };
  2642. struct StructGetLocalListVersion
  2643. {
  2644. int ResponseListVersion;
  2645. };
  2646. struct StructMeterValues
  2647. {
  2648. int ConnectorId;
  2649. int TransactionId;
  2650. struct StructMeterValue *MeterValue;
  2651. };
  2652. struct StructRemoteStartTransaction
  2653. {
  2654. int ConnectorId;
  2655. unsigned char IdTag[20];
  2656. struct StructChargingProfile ChargingProfile;
  2657. unsigned char ResponseStatus[10]; //Accepted, Rejected
  2658. };
  2659. struct StructRemoteStopTransaction
  2660. {
  2661. int TransactionId;
  2662. unsigned char ResponseStatus[10]; //Accepted, Rejected
  2663. };
  2664. struct StructReserveNow
  2665. {
  2666. int ConnectorId;
  2667. unsigned char ExpiryDate[28];
  2668. unsigned char IdTag[20];
  2669. unsigned char ParentIdTag[20];
  2670. int ReservationId;
  2671. unsigned char ResponseStatus[12]; //Accepted, Faulted, Occupied, Rejected, Unavailable
  2672. };
  2673. struct StructReset
  2674. {
  2675. unsigned char Type[8]; //Hard, Soft
  2676. unsigned char ResponseStatus[10]; //Accepted, Rejected
  2677. };
  2678. struct StructSendLocalList
  2679. {
  2680. int ListVersion;
  2681. unsigned char UpdateType[16]; //Differential, Full
  2682. struct StructLocalAuthorizationList *LocalAuthorizationList;
  2683. unsigned char ResponseStatus[16]; //Accepted, Failed, NotSupported, VersionMismatch
  2684. };
  2685. struct StructSetChargingProfile
  2686. {
  2687. int ConnectorId;
  2688. struct StructChargingProfile ChargingProfile;
  2689. unsigned char ResponseStatus[16]; //Accepted, Rejected, NotSupported
  2690. };
  2691. struct StructTriggerMessage
  2692. {
  2693. unsigned char RequestedMessage[32]; /*
  2694. "BootNotification",
  2695. "DiagnosticsStatusNotification",
  2696. "FirmwareStatusNotification",
  2697. "Heartbeat",
  2698. "MeterValues",
  2699. "StatusNotification"
  2700. */
  2701. int ConnectorId;
  2702. unsigned char ResponseStatus[16]; //Accepted, Rejected, NotImplemented
  2703. };
  2704. struct StructUnlockConnector
  2705. {
  2706. int ConnectorId;
  2707. unsigned char ResponseStatus[16]; //Unlocked, UnlockFailed, NotSupported
  2708. };
  2709. struct StructUpdateFirmware
  2710. {
  2711. unsigned char Location[256];
  2712. int Retries;
  2713. unsigned char RetrieveDate[28];
  2714. int RetryInterval;
  2715. };
  2716. struct OCPP16ConfigurationItem
  2717. {
  2718. unsigned char ItemName[64];
  2719. unsigned char ItemAccessibility;//0:RO, 1:RW
  2720. unsigned char ItemData[128];
  2721. };
  2722. struct OCPP16ConfigurationTable
  2723. {
  2724. //please refer to OCPP 1.6 chapter 9
  2725. struct OCPP16ConfigurationItem CoreProfile[28];
  2726. struct OCPP16ConfigurationItem LocalAuthListManagementProfile[3];
  2727. struct OCPP16ConfigurationItem ReservationProfile[1];
  2728. struct OCPP16ConfigurationItem SmartChargingProfile[5];
  2729. };
  2730. struct OCPP16Data
  2731. {
  2732. unsigned char OcppServerURL[512]; //http: non-secure OCPP 1.5-S, https: secure OCPP 1.5-S, ws: non-secure OCPP 1.6-J, wss: secure OCPP 1.6-J"
  2733. unsigned char ChargeBoxId[128];
  2734. unsigned char OcppConnStatus; //0: disconnected, 1: connected
  2735. union
  2736. {
  2737. //Operations Initiated by Charge Point
  2738. unsigned char CpMsgValue[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY];
  2739. struct
  2740. {
  2741. //CpMsgValue[0]
  2742. unsigned char DataTransferReq:1; //bit 0,
  2743. unsigned char DataTransferConf:1; //bit 1,
  2744. unsigned char StartTransactionReq:1; //bit 2,
  2745. unsigned char StartTransactionConf:1; //bit 3,
  2746. unsigned char StopTransactionReq:1; //bit 4,
  2747. unsigned char StopTransactionConf:1; //bit 5,
  2748. unsigned char :2; //bit 6,7 , reserved
  2749. } bits[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY];
  2750. }CpMsg;
  2751. union
  2752. {
  2753. //Operations Initiated by Sequence Point
  2754. unsigned char SpMsgValue[1];
  2755. struct
  2756. {
  2757. //SpMsgValue[0]
  2758. unsigned char BootNotificationReq :1; //bit 0,
  2759. unsigned char BootNotificationConf :1; //bit 1,
  2760. unsigned char AuthorizeReq :1; //bit 2,
  2761. unsigned char AuthorizeConf :1; //bit 3,
  2762. unsigned char DiagnosticsStatusNotificationReq :1; //bit 4,
  2763. unsigned char DiagnosticsStatusNotificationConf :1; //bit 5,
  2764. unsigned char FirmwareStatusNotificationReq :1; //bit 6,
  2765. unsigned char FirmwareStatusNotificationConf :1; //bit 7,
  2766. } bits;
  2767. } SpMsg;
  2768. union
  2769. {
  2770. //Operations Initiated by Central System
  2771. unsigned char CsMsgValue[3 * (CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY)];
  2772. struct
  2773. {
  2774. //CsMsgValue[0]
  2775. unsigned char CancelReservationReq :1; //bit 0,
  2776. unsigned char CancelReservationConf :1; //bit 1,
  2777. unsigned char ChangeAvailabilityReq :1; //bit 2,
  2778. unsigned char ChangeAvailabilityConf :1; //bit 3,
  2779. unsigned char ReserveNowReq :1; //bit 4,
  2780. unsigned char ReserveNowConf :1; //bit 5,
  2781. unsigned char SetChargingProfileReq :1; //bit 6,
  2782. unsigned char SetChargingProfileConf :1; //bit 7,
  2783. //CsMsgValue[1]
  2784. unsigned char TriggerMessageReq :1; //bit 0,
  2785. unsigned char TriggerMessageConf :1; //bit 1,
  2786. unsigned char UnlockConnectorReq :1; //bit 2,
  2787. unsigned char UnlockConnectorConf :1; //bit 3,
  2788. unsigned char RemoteStartTransactionReq :1; //bit 4,
  2789. unsigned char RemoteStartTransactionConf :1; //bit 5,
  2790. unsigned char RemoteStopTransactionReq :1; //bit 6,
  2791. unsigned char RemoteStopTransactionConf :1; //bit 7,
  2792. //CsMsgValue[2]
  2793. unsigned char ClearChargingProfileReq :1; //bit 0,
  2794. unsigned char ClearChargingProfileConf :1; //bit 1,
  2795. unsigned char DataTransferReq :1; //bit 2,
  2796. unsigned char DataTransferConf :1; //bit 3,
  2797. unsigned char GetCompositeScheduleReq :1; //bit 4,
  2798. unsigned char GetCompositeScheduleConf :1; //bit 5,
  2799. unsigned char :2; //bit 6,7
  2800. } bits[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY];
  2801. }CsMsg;
  2802. union
  2803. {
  2804. //Operations Initiated by Main System
  2805. unsigned char MsMsgValue[2];
  2806. struct
  2807. {
  2808. //CsMsgValue[0]
  2809. unsigned char ChangeConfigurationReq :1; //bit 0,
  2810. unsigned char ChangeConfigurationConf :1; //bit 1,
  2811. unsigned char ClearCacheReq :1; //bit 2,
  2812. unsigned char ClearCacheConf :1; //bit 3,
  2813. unsigned char GetConfigurationReq :1; //bit 4,
  2814. unsigned char GetConfigurationConf :1; //bit 5,
  2815. unsigned char UpdateFirmwareReq :1; //bit 6,
  2816. unsigned char UpdateFirmwareConf :1; //bit 7,
  2817. //CsMsgValue[1]
  2818. unsigned char GetDiagnosticsReq :1; //bit 0,
  2819. unsigned char GetDiagnosticsConf :1; //bit 1,
  2820. unsigned char GetLocalListVersionReq :1; //bit 2,
  2821. unsigned char GetLocalListVersionConf :1; //bit 3,
  2822. unsigned char ResetReq :1; //bit 4,
  2823. unsigned char ResetConf :1; //bit 5,
  2824. unsigned char SendLocalListReq :1; //bit 6,
  2825. unsigned char SendLocalListConf :1; //bit 7,
  2826. } bits;
  2827. } MsMsg;
  2828. struct StructBootNotification BootNotification;
  2829. struct StructHeartbeat Heartbeat;
  2830. struct StructAuthorize Authorize;
  2831. struct StructStartTransaction StartTransaction[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY];
  2832. struct StructStopTransaction StopTransaction[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY];
  2833. struct StructStatusNotification StatusNotification[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY];
  2834. struct StructCancelReservation CancelReservation[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY];
  2835. struct StructChangeAvailability ChangeAvailability[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY];
  2836. struct StructChangeConfiguration ChangeConfiguration;
  2837. struct StructClearCache ClearCache;
  2838. struct StructClearChargingProfile ClearChargingProfile[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY];
  2839. struct StructDataTransfer DataTransfer[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY];
  2840. struct StructDiagnosticsStatusNotification DiagnosticsStatusNotification;
  2841. struct StructFirmwareStatusNotification FirmwareStatusNotification;
  2842. struct StructGetCompositeSchedule GetCompositeSchedule[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY];
  2843. struct StructGetConfiguration GetConfiguration;
  2844. struct StructGetDiagnostics GetDiagnostics;
  2845. struct StructGetLocalListVersion GetLocalListVersion;
  2846. struct StructMeterValues MeterValues[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY];
  2847. struct StructRemoteStartTransaction RemoteStartTransaction[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY];
  2848. struct StructRemoteStopTransaction RemoteStopTransaction[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY];
  2849. struct StructReserveNow ReserveNow[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY];
  2850. struct StructReset Reset;
  2851. struct StructSendLocalList SendLocalList;
  2852. struct StructSetChargingProfile SetChargingProfile[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY];
  2853. struct StructTriggerMessage TriggerMessage[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY];
  2854. struct StructUnlockConnector UnlockConnector[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY];
  2855. struct StructUpdateFirmware UpdateFirmware;
  2856. struct OCPP16ConfigurationTable ConfigurationTable;
  2857. struct StructChargingProfile CHAdeMOChargingProfile[CHAdeMO_QUANTITY];
  2858. struct StructChargingProfile CcsChargingProfile[CCS_QUANTITY];
  2859. };
  2860. #endif // DEFINE_H_