define.h 167 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933
  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 0x03000000-0x05FFFFFF 48 MB
  23. Secondary root file system 0x06000000-0x08FFFFFF 48 MB
  24. Primary user configuration 0x09000000-0x095FFFFF 6 MB
  25. Secondary user configuration 0x09600000-0x09BFFFFF 6 MB
  26. Factory default configuration 0x09C00000-0x0A1FFFFF 6 MB
  27. Storage 0x0A200000-0x7FFFFFFF 1886 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. #ifdef AWRegular
  37. #define MAX_PSU_QUANTITY 62
  38. #define CHAdeMO_QUANTITY 1
  39. #define CCS_QUANTITY 1
  40. #define GB_QUANTITY 0
  41. #define AC_QUANTITY 1
  42. #define PSU_QUANTITY 2
  43. #define ONE_CONNECTOR_USE 0
  44. #elif BYTONGB
  45. #define MAX_PSU_QUANTITY 62
  46. #define CHAdeMO_QUANTITY 1
  47. #define CCS_QUANTITY 1
  48. #define GB_QUANTITY 0
  49. #define AC_QUANTITY 1
  50. #define PSU_QUANTITY 2
  51. #define ONE_CONNECTOR_USE 0
  52. #elif DW30
  53. #define MAX_PSU_QUANTITY 62
  54. #define CHAdeMO_QUANTITY 1
  55. #define CCS_QUANTITY 1
  56. #define GB_QUANTITY 0
  57. #define AC_QUANTITY 0
  58. #define PSU_QUANTITY 2
  59. #define ONE_CONNECTOR_USE 1
  60. #elif DM30
  61. #define MAX_PSU_QUANTITY 62
  62. #define CHAdeMO_QUANTITY 0
  63. #define CCS_QUANTITY 1
  64. #define GB_QUANTITY 0
  65. #define AC_QUANTITY 0
  66. #define PSU_QUANTITY 2
  67. #define ONE_CONNECTOR_USE 0
  68. #elif DS60120
  69. #define MAX_PSU_QUANTITY 62
  70. #define CHAdeMO_QUANTITY 1
  71. #define CCS_QUANTITY 1
  72. #define GB_QUANTITY 0
  73. #define AC_QUANTITY 0
  74. #define PSU_QUANTITY 2
  75. #define ONE_CONNECTOR_USE 0
  76. #elif DS60210
  77. #define MAX_PSU_QUANTITY 62
  78. #define CHAdeMO_QUANTITY 1
  79. #define CCS_QUANTITY 1
  80. #define GB_QUANTITY 0
  81. #define AC_QUANTITY 0
  82. #define PSU_QUANTITY 2
  83. #define ONE_CONNECTOR_USE 0
  84. #elif PlugIt360
  85. #define MAX_PSU_QUANTITY 62
  86. #define CHAdeMO_QUANTITY 0
  87. #define CCS_QUANTITY 1
  88. #define GB_QUANTITY 0
  89. #define AC_QUANTITY 0
  90. #define PSU_QUANTITY 2
  91. #define ONE_CONNECTOR_USE 0
  92. #else
  93. #define MAX_PSU_QUANTITY 62
  94. #define CHAdeMO_QUANTITY 1
  95. #define CCS_QUANTITY 1
  96. #define GB_QUANTITY 0
  97. #define AC_QUANTITY 1
  98. #define PSU_QUANTITY 2
  99. #define ONE_CONNECTOR_USE 0
  100. #endif
  101. /*SystemLog message*/
  102. #define SystemLogMessage //for debug info save to log file
  103. #define ConsloePrintLog //for debug info print to console
  104. /**************************************************************************************/
  105. /*****************************share memory key information*****************************/
  106. /**************************************************************************************/
  107. #define ShmSysConfigAndInfoKey 1001
  108. #define ShmPsuKey 1002
  109. #define ShmCHAdeMOCommKey 1003
  110. #define ShmCcsCommKey 1004
  111. #define ShmStatusCodeKey 1005
  112. #define ShmPrimaryMcuKey 1006
  113. #define ShmFanBdKey 1007
  114. #define ShmRelayBdKey 1008
  115. #define ShmOcppModuleKey 1009
  116. #define ShmGBTCommKey 1010
  117. #define ShmLedBdKey 1011
  118. /**************************************************************************************/
  119. /****************** Share memory configuration value constant define ******************/
  120. /**************************************************************************************/
  121. enum SYSTEM_STATUS
  122. {
  123. SYS_MODE_BOOTING = 0,
  124. SYS_MODE_IDLE = 1,
  125. SYS_MODE_AUTHORIZING = 2,
  126. SYS_MODE_MODE_REASSIGN_CHECK = 3,
  127. SYS_MODE_REASSIGN = 4,
  128. SYS_MODE_PREPARING = 5,
  129. SYS_MODE_PREPARE_FOR_EV = 6,
  130. SYS_MODE_PREPARE_FOR_EVSE = 7,
  131. SYS_MODE_CHARGING = 8,
  132. SYS_MODE_TERMINATING = 9,
  133. SYS_MODE_COMPLETE = 10,
  134. SYS_MODE_ALARM = 11,
  135. SYS_MODE_FAULT = 12,
  136. SYS_MODE_RESERVATION = 13,
  137. SYS_MODE_BOOKING = 14,
  138. SYS_MODE_MAINTAIN = 15,
  139. SYS_MODE_DEBUG = 16,
  140. SYS_MODE_CCS_PRECHARGE_STEP0 = 17,
  141. SYS_MODE_CCS_PRECHARGE_STEP1 = 18,
  142. SYS_MODE_UPDATE = 19
  143. };
  144. enum AUTHORIZATION_MODE
  145. {
  146. AUTH_MODE_ENABLE = 0,
  147. AUTH_MODE_DISABLE = 1
  148. };
  149. enum LCD_LANGUAGE
  150. {
  151. LCD_LANG_ENGLISH = 0,
  152. LCD_LANG_CHT = 1,
  153. LCD_LANG_CHS = 2,
  154. LCD_LANG_JAPANESE = 3,
  155. LCD_LANG_FRENCH = 4,
  156. LCD_LANG_ITALIAN = 5,
  157. LCD_LANG_SPANISH = 6,
  158. LCD_LANG_GERMAN = 7,
  159. LCD_LANG_DUTCH = 8,
  160. LCD_LANG_NORWEGIAN = 9,
  161. LCD_LANG_FINNISH = 10,
  162. LCD_LANG_SWEDISH = 11,
  163. LCD_LANG_SLOVENIAN = 12,
  164. LCD_LANG_THAI = 13,
  165. };
  166. enum RFID_ENDIAN
  167. {
  168. RFID_ENDIAN_LITTLE = 0,
  169. RFID_ENDIAN_BIG = 1
  170. };
  171. enum PHASE_LOSS_POLICY
  172. {
  173. LOSS_POLICY_CHARGING = 0,
  174. LOSS_POLICY_STOP = 1
  175. };
  176. enum CCS_AUTHPRIZATION_MODE
  177. {
  178. CCS_AUTH_MODE_EIM = 0,
  179. CCS_AUTH_MODE_MIXED = 1
  180. };
  181. enum OFF_LINE_POLICY
  182. {
  183. OFF_POLICY_LOCALLIST = 0,
  184. OFF_POLICY_PH_RFID = 1,
  185. OFF_POLICY_FREE = 2,
  186. OFF_POLICY_NOCHARGE = 3
  187. };
  188. /*Configuration enum*/
  189. enum CoreProfile {
  190. AllowOfflineTxForUnknownId=0,
  191. AuthorizationCacheEnabled,
  192. AuthorizeRemoteTxRequests,
  193. BlinkRepeat,
  194. ClockAlignedDataInterval,
  195. ConnectionTimeOut,
  196. GetConfigurationMaxKeys,
  197. HeartbeatInterval,
  198. LightIntensity,
  199. LocalAuthorizeOffline,
  200. LocalPreAuthorize,
  201. MaxEnergyOnInvalidId,
  202. MeterValuesAlignedData,
  203. MeterValuesAlignedDataMaxLength,
  204. MeterValuesSampledData,
  205. MeterValuesSampledDataMaxLength,
  206. MeterValueSampleInterval,
  207. MinimumStatusDuration,
  208. NumberOfConnectors,
  209. ResetRetries,
  210. ConnectorPhaseRotation,
  211. ConnectorPhaseRotationMaxLength,
  212. StopTransactionOnEVSideDisconnect,
  213. StopTransactionOnInvalidId,
  214. StopTxnAlignedData,
  215. StopTxnAlignedDataMaxLength,
  216. StopTxnSampledData,
  217. StopTxnSampledDataMaxLength,
  218. SupportedFeatureProfiles,
  219. SupportedFeatureProfilesMaxLength,
  220. TransactionMessageAttempts,
  221. TransactionMessageRetryInterval,
  222. UnlockConnectorOnEVSideDisconnect,
  223. WebSocketPingInterval,
  224. _CoreProfile_CNT
  225. };
  226. /**************************************************************************************/
  227. /****structure SysConfigData => shall store the data to NAND flash****************/
  228. /****structure SysInfoData => shall NOT store the data to NAND flash***************/
  229. /****according to System Configuration and Information Table.xlsx Rev.0.2 *******/
  230. /**************************************************************************************/
  231. struct NoneUse
  232. {
  233. unsigned char unknown; // None use struct
  234. };
  235. struct EthConfigData
  236. {
  237. unsigned char EthDhcpClient; //0: enable,1: disable
  238. unsigned char EthMacAddress[18]; //default: Null
  239. unsigned char EthIpAddress[16]; //Eth0 default:192.168.0.10 ,Eth1 default:192.168.1.10
  240. unsigned char EthSubmaskAddress[16]; //Eth0 default:255.255.255.0 ,Eth1 default:255.255.255.0
  241. unsigned char EthGatewayAddress[16]; //Eth0 default:192.168.0.254 ,Eth1 default:192.168.1.254
  242. };
  243. struct WifiConfigData
  244. {
  245. unsigned char WifiMode; //0: disable, 1: Infrastructure client, 2: Infrastructure server, 3: Ad-Hoc
  246. unsigned char WifiSsid[256]; //default: Null
  247. unsigned char WifiPassword[256]; //default: Null
  248. int WifiRssi; //dbm
  249. unsigned char WifiDhcpServer; //0: enable, 1: disable
  250. unsigned char WifiDhcpClient; //0: enable, 1: disable
  251. unsigned char WifiMacAddress[18]; //default: Null
  252. unsigned char WifiIpAddress[16]; //default:192.168.2.10
  253. unsigned char WifiSubmaskAddress[16]; //default:255.255.255.0
  254. unsigned char WifiGatewayAddress[16]; //default:192.168.2.254
  255. unsigned char WifiNetworkConn; //0: disconnected, 1: connected
  256. };
  257. struct TeleConfigData
  258. {
  259. unsigned char TelcomModelName[64]; //default: Null
  260. unsigned char TelcomSoftwareVer[64]; //default: Null
  261. unsigned char TelcomApn[256]; //default: Null
  262. int TelcomRssi; //dbm
  263. unsigned char TelcomChapPapId[256]; //default: Null
  264. unsigned char TelcomChapPapPwd[256]; //default: Null
  265. unsigned char TelcomModemImei[16]; //default: Null
  266. unsigned char TelcomSimImsi[16]; //default: Null
  267. unsigned char TelcomSimIccid[22]; //default: Null
  268. unsigned char TelcomSimStatus; //0: no SIM card is found, 1: valid SIM card, 2: invalid SIM card
  269. unsigned char TelcomModemMode; //0: No services, 1: CDMA, 2: GSM/GPRS, 3: WCDMA, 4: GSM/WCDMA, 5: TD_SCDMA mode, 6: Unknow
  270. unsigned char TelcomIpAddress[16]; //default: Null
  271. unsigned char TelcomNetworkConn; //0: disconnected, 1: connected
  272. };
  273. struct BtConfigData
  274. {
  275. unsigned char LoginCentralID[64]; //default: Null
  276. unsigned char isLogin; //0: Central device non-login 1: Central device login
  277. unsigned char isRequestStart; //0: no action 1: request start charging
  278. unsigned char isRequestStop; //0: no action 1: request stop charging
  279. };
  280. struct BillingConfigData
  281. {
  282. unsigned char isBilling; //0:not for business 1:for business
  283. unsigned char Currency; //
  284. float Fee[24]; //fee for 24 hours
  285. float Cur_fee; // display current fee
  286. };
  287. struct SysConfigData
  288. {
  289. /**************System***************/
  290. unsigned char CsuBootLoadFwRev[32]; //CSU board bootloader firmware version
  291. unsigned char ModelName[64]; //charger model name
  292. unsigned char AcModelName[64]; //for third gun (DC + AC)
  293. unsigned char SerialNumber[64]; //charger system serial number
  294. unsigned char SystemId[128]; //charger system ID
  295. unsigned char SystemDateTime[32]; //charger system date and time
  296. unsigned char AcPhaseCount; //AC EVSE power phase quantity, 1: One phase 3: Three phase
  297. unsigned char AuthorisationMode; //0: enable, 1: disable
  298. unsigned char DefaultLanguage; //
  299. unsigned char RfidCardNumEndian; //0: little endian, 1: big endian
  300. unsigned short AcPlugInTimes; //0~65535
  301. unsigned short GbPlugInTimes; //0~65535
  302. unsigned short Ccs1PlugInTime; //0~65535
  303. unsigned short Ccs2PlugInTimes; //0~65535
  304. unsigned short ChademoPlugInTimes; //0~65535
  305. unsigned char PsuAcInputType; //0: 220, 1: 277
  306. unsigned short RatingCurrent; //0: Depend on Model name, 1 ~ rating value amp
  307. unsigned short AcRatingCurrent; //for third gun; 0: Depend on Model name, 1 ~ rating value amp
  308. unsigned char isAPP; //for AuthorisationMode=0; 0:false, 1:true
  309. unsigned char isQRCode; //for AuthorisationMode=0; 0:false, 1:true
  310. unsigned char isRFID; //for AuthorisationMode=0; 0:false, 1:true
  311. unsigned char QRCodeMadeMode; //for isQRCode=1 ; 0: default 1:customized
  312. unsigned char QRCodeContent[128]; //for QRCodeMadeMode=1
  313. unsigned char TotalConnectorCount; //Connector count
  314. unsigned char AcConnectorCount; // For DC type
  315. unsigned char SwitchDebugFlag; // Console Debug
  316. unsigned char AlwaysGfdFlag;
  317. /**************Charging***************/
  318. unsigned short MaxChargingEnergy; //0: no limit, 1 ~ 65535 kWh
  319. unsigned short MaxChargingPower; //0: rating value, 1 ~ RATING_POWER kW
  320. unsigned short MaxChargingCurrent; //0: rating value, 1 ~ RATING_CURRENT amp
  321. unsigned short AcMaxChargingCurrent; //for third gun; 0: rating value, 1 ~ RATING_CURRENT amp
  322. unsigned short MaxChargingDuration; //0: no limit, 1 ~ 65535 minutes
  323. unsigned char PhaseLossPolicy; //0: charging, 1: stop charging
  324. unsigned char LocalWhiteCard[10][32]; //Max. card quantity is 10
  325. unsigned char UserId[32]; //the user use this ID to trigger charging event, it can be RFID card number, OCPP IdTag, etc.
  326. struct BillingConfigData BillingData;
  327. /**************Network***************/
  328. unsigned char FtpServer[256]; //the ftp server for Phihong server to do data transimission
  329. struct EthConfigData Eth0Interface;
  330. struct EthConfigData Eth1Interface;
  331. struct WifiConfigData AthInterface;
  332. struct TeleConfigData TelecomInterface;
  333. struct BtConfigData Bluetooth;
  334. /**************Backend***************/
  335. unsigned int BackendConnTimeout; //default : 300s
  336. unsigned char OfflinePolicy; //0: local list, 1: Phihong RFID tag, 2: free charging, 3: no charging
  337. unsigned short OfflineMaxChargeEnergy; //0: same as MaxChargingEnergy, 1 ~ 65535 kWh
  338. unsigned short OfflineMaxChargeDuration; //0: same as MaxChargeDuration, 1 ~ 65535 minutes
  339. 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"
  340. unsigned char ChargeBoxId[128];
  341. unsigned char chargePointVendor[20]; //the Vendor of the ChargePoint
  342. unsigned int Checksum; //4 bytes checksum
  343. };
  344. struct ChargingInfoData
  345. {
  346. unsigned char Index;
  347. unsigned char slotsIndex;
  348. unsigned char Type; // 0 : Chademo, 1 : CCS, 2: GB
  349. unsigned char type_index;
  350. unsigned char Evboard_id; // for EV board
  351. unsigned char StopChargeFlag; // for EV board
  352. unsigned char SystemStatus; //0: Booting, 1: idle, 2: authorizing, 3: preparing, 4: charging, 5: terminating, 6: alarm, 7: fault
  353. unsigned char PreviousSystemStatus; // 0: Booting, 1: idle, 2: authorizing, 3: preparing, 4: charging, 5: terminating, 6: alarm, 7: fault
  354. int ReservationId;
  355. unsigned char IsAvailable;
  356. float MaximumChargingVoltage; //0~6553.5 volt
  357. float AvailableChargingCurrent; //0~6553.5 amp
  358. float AvailableChargingPower; //0~6553.5 kW
  359. float DividChargingCurrent; //0~6553.5 amp
  360. float DeratingChargingCurrent; //0~6553.5 amp
  361. float DeratingChargingPower; //0~6553.5 kW
  362. float FuseChargingVoltage; //0~6553.5 volt
  363. float FireChargingVoltage; //0~6553.5 volt
  364. float PresentChargingVoltage; //0~6553.5 volt
  365. float PresentChargingCurrent; //0~6553.5 amp
  366. float PresentChargingPower; //0~6553.5 kW
  367. float PresentChargedEnergy; //0~6553.5 kWh
  368. int PresentChargedDuration; // second
  369. int RemainChargingDuration; // second
  370. float EvBatteryMaxVoltage; // 0~6553.5 volt
  371. float EvBatterytargetVoltage; // 0~6553.5 volt
  372. float EvBatterytargetCurrent; //102.3 0~200(A) (unit:1A)
  373. int EvBatterySoc; // 0~100%
  374. unsigned char ConnectorPlugIn; //0: unplug, 1: Plug-in
  375. unsigned char GunLocked; //0: unlocked 1: locked
  376. float PilotVoltage;
  377. 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
  378. unsigned char PilotDuty; // 0~100%
  379. unsigned char StartUserId[32]; // This ID is trigger start charging event user by RFID、back-end、BLE.
  380. unsigned char StartDateTime[32]; // Charging cycle start date time
  381. unsigned char StopDateTime[32]; // Charging cycle stop date time
  382. unsigned char StartMethod;
  383. float ChargingFee;
  384. // Connector Temp
  385. unsigned char ConnectorTemp; //0x00: -60¢XC ~ 0xFE: 194
  386. // Charging Status
  387. unsigned char GroundFaultStatus; // for GFD result => 0x00 : None, 0x01 : Can Start Charging, 0x02 : Stop Charging
  388. unsigned short RealRatingPower;
  389. unsigned char RelayWeldingCheck; // 0 : No Comp., 1 : Comp.
  390. unsigned char PrechargeStatus; // for ccs precharge => 0x00 : None defined, 0x01 : Accepted
  391. float PowerConsumption; // This contains the meter value (Power Consumption) kWh
  392. unsigned char RelayK1K2Status; // 0x00 : open, 0x01 : close
  393. unsigned char RelayKPK2Status; // 0x00 : open, 0x01 : close
  394. unsigned char TimeoutFlag; // 0 : none,
  395. struct timeval TimeoutTimer;
  396. unsigned char MaxChargeEnable;
  397. unsigned char IsReadyToCharging;
  398. unsigned char CcsAuthentication; // 0:EIM, 1:EIM & PnC mixed
  399. unsigned char AcCcsChargingMode; // 0:BC (PWM) only, 1:BC & PLC mixed
  400. unsigned short SampleChargingCur[2];
  401. /**************Alston for AC***************/
  402. unsigned char SelfTest_Comp;
  403. unsigned char version[16];
  404. unsigned char IsModeChagned;
  405. unsigned char IsCharging;
  406. unsigned char IsErrorOccur;
  407. float RealMaxVoltage;
  408. float RealMaxCurrent;
  409. float RealMaxPower;
  410. unsigned char ConnectorWarningCode[7];
  411. unsigned char ConnectorAlarmCode[7];
  412. unsigned char EvConnAlarmCode[7];
  413. float ChargingProfileCurrent; //0~6553.5 amp
  414. float ChargingProfilePower; //0~6553.5 kW
  415. };
  416. struct SysInfoData
  417. {
  418. /**************System***************/
  419. unsigned char BootingStatus; // 0 : booting, 1 : Initializing Complete.
  420. unsigned char AuthorizeFlag; // 0 : None, 1 : Authorizing
  421. unsigned char FactoryConfiguration; //0: normal, 1: trigger, charger will return the configuration to factory default if trigger
  422. float InputVoltageR; //0~655.35 volt
  423. float InputVoltageS; //0~655.35 volt
  424. float InputVoltageT; //0~655.35 volt
  425. unsigned int SystemFanRotaSpeed; //0 ~ 65535 RPM
  426. unsigned int PsuFanRotaSpeed; //0 ~ 65535 RPM
  427. unsigned char AuxPower5V; //0 ~ 255 volt
  428. unsigned char AuxPower12V; //0 ~ 255 volt
  429. unsigned char AuxPower24V; //0 ~ 255 volt
  430. unsigned char AuxPower48V; //0 ~ 255 volt
  431. unsigned char CsuHwRev[32]; //CSU board hardware version
  432. unsigned char CsuBootLoadFwRev[32]; //CSU board bootloader firmware version
  433. unsigned char CsuKernelFwRev[32];//CSU board OS kernel firmware version
  434. unsigned char CsuRootFsFwRev[32];//CSU board root file system firmware version
  435. unsigned char CsuPrimFwRev[32]; //CSU board root file system firmware version
  436. unsigned char LcmHwRev[32]; //LCM module hardware version
  437. unsigned char LcmFwRev[32]; //LCM module firmware version
  438. unsigned char PsuHwRev[32]; //PSU hardware version
  439. unsigned char PsuPrimFwRev[32]; //PSU primary firmware version
  440. unsigned char PsuSecFwRev[32]; //PSU secondary firmware version
  441. unsigned char AuxPwrHwRev[32]; //Aux. power module hardware version
  442. unsigned char AuxPwrFwRev[32]; //Aux. power module firmware version
  443. unsigned char FanModuleHwRev[32]; //Fan module hardware version
  444. unsigned char FanModuleFwRev[32]; //Fan module firmware version
  445. unsigned char RelayModuleHwRev[32]; //Relay control module hardware version
  446. unsigned char RelayModuleFwRev[32]; //Relay control module firmware version
  447. unsigned char TelcomModemFwRev[32]; //the 3G/4G modem firmware version
  448. unsigned char LedModuleFwRev[32]; //LED control module firmware version
  449. unsigned char Connector1FwRev[32]; //Connector1 module firmware version
  450. unsigned char Connector2FwRev[32]; //Connector2 module firmware version
  451. int SystemAmbientTemp; // -40 ~ 215 degree C
  452. int SystemCriticalTemp; // -40 ~ 215 degree C
  453. int CcsConnectorTemp; // -40 ~ 215 degree C
  454. int PsuAmbientTemp; // -40 ~ 215 degree C
  455. /**************Charging***************/
  456. struct ChargingInfoData ChademoChargingData[CHAdeMO_QUANTITY];
  457. struct ChargingInfoData CcsChargingData[CCS_QUANTITY];
  458. struct ChargingInfoData GbChargingData[GB_QUANTITY];
  459. struct ChargingInfoData AcChargingData[AC_QUANTITY];
  460. unsigned char CurGunSelected;
  461. unsigned char CurGunSelectedByAc;
  462. /**************Network***************/
  463. unsigned char InternetConn; //0: disconnected, 1: connected
  464. /**************Backend***************/
  465. unsigned char OcppConnStatus; //0: disconnected, 1: connected
  466. char OrderCharging;
  467. /**************Alston***************/
  468. unsigned char WaitForPlugit; //0: none scan, 1: scanning
  469. unsigned char PageIndex; //0 : Initialize
  470. //1 : idle
  471. //4 : Authorizing
  472. //5 : Authorizing complete
  473. //6 : Authorizing fail
  474. //7 : Wait for Plug
  475. //8 : Pre-charge
  476. //9 : Charging
  477. unsigned char SelfTestSeq; //
  478. unsigned char ReAssignedFlag; //
  479. unsigned char CanAverageCharging;
  480. unsigned char MainChargingMode; // 0 : Max, 1 : Average
  481. unsigned char BridgeRelayStatus;
  482. unsigned char FirmwareUpdate; // 0 : none, 1 : update.
  483. unsigned char AcContactorStatus; // 0: disconnected, 1: connected
  484. unsigned char SystemTimeoutFlag; // 0 : none, 1 : self test
  485. struct timeval SystemTimeoutTimer;
  486. unsigned char SystemPage;
  487. unsigned char ConnectorPage;
  488. unsigned char IsAlternatvieConf; // 0 : normal, 1 : alternative
  489. unsigned char StartToChargingFlag; // 0 : Stop, 1 : Start for modbus
  490. unsigned char ChargerType; // 0 : IEC, 1 : UL
  491. };
  492. struct WARNING_CODE_INFO
  493. {
  494. unsigned char WarningCount;
  495. unsigned char PageIndex;
  496. unsigned char WarningCode[10][7];
  497. unsigned char Level;
  498. unsigned char ExtraErrProcess; // 0 : none, 1 : input uvp..
  499. };
  500. struct SysConfigAndInfo
  501. {
  502. struct SysConfigData SysConfig;
  503. struct SysInfoData SysInfo;
  504. struct WARNING_CODE_INFO SysWarningInfo;
  505. };
  506. char Currency[54][3]=
  507. {
  508. "AED", // - Emirati Dirham
  509. "ARS", // - Argentine Peso
  510. "AUD", // - Australian Dollar
  511. "BGN", // - Bulgarian Lev
  512. "BHD", // - Bahraini Dinar
  513. "BND", // - Bruneian Dollar
  514. "BRL", // - Brazilian Real
  515. "BWP", // - Botswana Pula
  516. "CAD", // - Canadian Dollar
  517. "CHF", // - Swiss Franc
  518. "CLP", // - Chilean Peso
  519. "CNY", // - Chinese Yuan Renminbi
  520. "COP", // - Colombian Peso
  521. "CZK", // - Czech Koruna
  522. "DKK", // - Danish Krone
  523. "EUR", // - Euro
  524. "GBP", // - British Pound
  525. "HKD", // - Hong Kong Dollar
  526. "HRK", // - Croatian Kuna
  527. "HUF", // - Hungarian Forint
  528. "IDR", // - Indonesian Rupiah
  529. "ILS", // - Israeli Shekel
  530. "INR", // - Indian Rupee
  531. "IRR", // - Iranian Rial
  532. "ISK", // - Icelandic Krona
  533. "JPY", // - Japanese Yen
  534. "KRW", // - South Korean Won
  535. "KWD", // - Kuwaiti Dinar
  536. "KZT", // - Kazakhstani Tenge
  537. "LKR", // - Sri Lankan Rupee
  538. "LYD", // - Libyan Dinar
  539. "MUR", // - Mauritian Rupee
  540. "MXN", // - Mexican Peso
  541. "MYR", // - Malaysian Ringgit
  542. "NOK", // - Norwegian Krone
  543. "NPR", // - Nepalese Rupee
  544. "NZD", // - New Zealand Dollar
  545. "OMR", // - Omani Rial
  546. "PHP", // - Philippine Peso
  547. "PKR", // - Pakistani Rupee
  548. "PLN", // - Polish Zloty
  549. "QAR", // - Qatari Riyal
  550. "RON", // - Romanian New Leu
  551. "RUB", // - Russian Ruble
  552. "SAR", // - Saudi Arabian Riyal
  553. "SEK", // - Swedish Krona
  554. "SGD", // - Singapore Dollar
  555. "THB", // - Thai Baht
  556. "TRY", // - Turkish Lira
  557. "TTD", // - Trinidadian Dollar
  558. "TWD", // - Taiwan New Dollar
  559. "USD", // - US Dollar
  560. "VEF", // - Venezuelan Bolivar
  561. "ZAR" // - South African Rand
  562. };
  563. /**************************************************************************************/
  564. /**************************Alarm Share memory**************************************/
  565. /***************************************************************************************
  566. Status Code A B C D E F
  567. 0: Issue 1: From EVSE 1: Fault (unrecoverable) 001 ~ 999 serial number
  568. e.g., hardware broken, system latch
  569. 1: Recovered 2: From EV 2: Alarm (recoverable)
  570. e.g., OTP, OVP
  571. 3: From Backend 3: Information
  572. e.g., swipe card to stop charging
  573. according to XXX.Revxx
  574. ***************************************************************************************/
  575. /**************************************************************************************/
  576. char FaultStatusCode[40][6]=
  577. {
  578. "011001", //CHAdeMO output fuse blew
  579. "011002", //CCS output fuse blew
  580. "011003", //GB output fuse blew
  581. "011004", //RCD/CCID self-test fail
  582. "011005", //AC input contactor 1 welding
  583. "011006", //AC input contactor 1 driving fault
  584. "011007", //AC input contactor 2 welding
  585. "011008", //AC input contactor 2 driving fault
  586. "011009", //AC output relay welding
  587. "011010", //AC output relay driving fault
  588. "011011", //CHAdeMO output relay welding
  589. "011012", //CHAdeMO output relay driving fault
  590. "011013", //CCS output relay welding
  591. "011014", //CCS output relay driving fault
  592. "011015", //GB output relay welding
  593. "011016", //GB output relay driving fault
  594. "011017", //AC connector temperature sensor broken
  595. "011018", //CHAdeMO connector temperature sensor broken
  596. "011019", //CCS connector temperature sensor broken
  597. "011020", //GB connector temperature sensor broken
  598. "011021", //WiFi module broken
  599. "011022", //3G/4G module broken
  600. "011023", //Aux. power module broken
  601. "011024", //Relay control module /smart box broken
  602. "011025", //CHAdeMO connector lock fail
  603. "011026", //GB connector lock fail
  604. "011027", //AC connector lock fail
  605. "011028", //CHAdeMO module broken
  606. "011029", //CCS module broken
  607. "011030", //GBT module broken
  608. "011031", //PSU module broken
  609. "011032", //RCD/CCID module broken
  610. "011033", //Maximum Output Current setup error
  611. "011034", //Shutter fault
  612. "011035", //Ble module broken
  613. "011036", //Rotary switch fault
  614. "011037", //Reserved
  615. "011038", //Reserved
  616. "011039", //Reserved
  617. "011040" //Reserved
  618. };
  619. struct FaultCodeData
  620. {
  621. unsigned char PreviousFaultVal[5];
  622. union
  623. {
  624. unsigned char FaultVal[5];
  625. struct
  626. {
  627. //FaultVal[0]
  628. unsigned char ChademoOutputFuseBlew:1; //bit 0
  629. unsigned char CcsOutputFuseBlew:1; //bit 1
  630. unsigned char GbOutputFuseBlew:1; //bit 2
  631. unsigned char RcdSelfTestFail:1; //bit 3
  632. unsigned char AcInputContactor1Welding:1; //bit 4
  633. unsigned char AcInputContactor1DrivingFault:1; //bit 5
  634. unsigned char AcInputContactor2Welding:1; //bit 6
  635. unsigned char AcInputContactor2DrivingFault:1; //bit 7
  636. //FaultVal[1]
  637. unsigned char AcOutputRelayWelding:1; //bit 0
  638. unsigned char AcOutputRelayDrivingFault:1; //bit 1
  639. unsigned char ChademoOutputRelayWelding:1; //bit 2
  640. unsigned char ChademoOutputRelayDrivingFault:1; //bit 3
  641. unsigned char CcsOutputRelayWelding:1; //bit 4
  642. unsigned char CcsOutputRelayDrivingFault:1; //bit 5
  643. unsigned char GbOutputRelayWelding:1; //bit 6
  644. unsigned char GbOutputRelayDrivingFault:1; //bit 7
  645. //FaultVal[2]
  646. unsigned char AcConnectorTempSensorBroken:1; //bit 0
  647. unsigned char ChademoConnectorTempSensorBroken:1; //bit 1
  648. unsigned char CcsConnectorTempSensorBroken:1; //bit 2
  649. unsigned char GbConnectorTempSensorBroken:1; //bit 3
  650. unsigned char WiFiModuleBroken:1; //bit 4
  651. unsigned char Telecom4GModuleBroken:1; //bit 5
  652. unsigned char AuxPowerModuleBroken:1; //bit 6
  653. unsigned char RelayControlModuleBroken :1; //bit 7
  654. //FaultVal[3]
  655. unsigned char ChademoConnectorLockFail:1; //bit 0
  656. unsigned char GbConnectorLockFail:1; //bit 1
  657. unsigned char AcConnectorLockFail:1; //bit 2
  658. unsigned char ChademoModuleBroken:1; //bit 3
  659. unsigned char CcsModuleBroken:1; //bit 4
  660. unsigned char GbModuleBroken:1; //bit 5
  661. unsigned char PsuModuleBroken:1; //bit 6
  662. unsigned char RcdCcidModuleBroken:1; //bit 7
  663. //FaultVal[4]
  664. unsigned char MaximumOutputCurrentSetupError:1; //bit 0
  665. unsigned char ShutterFault:1; //bit 1
  666. unsigned char BleModuleBroken:1; //bit 2
  667. unsigned char RotarySwitchFault:1; //bit 3
  668. unsigned char :4; //bit 4 ~ 7 reserved
  669. }bits;
  670. }FaultEvents;
  671. };
  672. char AlarmStatusCode[128][6]=
  673. {
  674. "012200", //System L1 input OVP
  675. "012201", //System L2 input OVP
  676. "012202", //System L3 input OVP
  677. "012203", //System L1 input UVP
  678. "012204", //System L2 input UVP
  679. "012205", //System L3 input UVP
  680. "012206", //PSU L1 input OVP
  681. "012207", //PSU L2 input OVP
  682. "012208", //PSU L3 input OVP
  683. "012209", //PSU L1 input UVP
  684. "012210", //PSU L2 input UVP
  685. "012211", //PSU L3 input UVP
  686. "012212", //System L1 input drop
  687. "012213", //System L2 input drop
  688. "012214", //System L3 input drop
  689. "012215", //System AC output OVP
  690. "012216", //System AC output OCP
  691. "012217", //System CHAdeMO output OVP
  692. "012218", //System CHAdeMO output OCP
  693. "012219", //System CCS output OVP
  694. "012220", //System CCS output OCP
  695. "012221", //System GB output OVP
  696. "012222", //System GB output OCP
  697. "012223", //System ambient/inlet OTP
  698. "012224", //System critical point OTP
  699. "012225", //PSU ambient/inlet OTP
  700. "012226", //PSU critical point OTP
  701. "012227", //Aux. power module OTP
  702. "012228", //Relay board/smart box OTP
  703. "012229", //CHAdeMO connector OTP
  704. "012230", //CCS connector OTP
  705. "012231", //GB connector OTP
  706. "012232", //AC connector OTP
  707. "012233", //RCD/CCID trip
  708. "012234", //CHAdeMO GFD trip
  709. "012235", //CCS GFD trip
  710. "012236", //GB GFD trip
  711. "012237", //SPD trip
  712. "012238", //Main power breaker trip
  713. "012239", //Aux. power breaker trip
  714. "012240", //PSU communication fail
  715. "012241", //WiFi module communication fail
  716. "012242", //3G/4G module communication fail
  717. "012243", //RFID module communication fail
  718. "012244", //Bluetooth module communication fail
  719. "012245", //LCM module communication fail
  720. "012246", //Aux. power module communication fail
  721. "012247", //Relay control boaed/smart box communication fail
  722. "012248", //CCS module communication fail
  723. "012249", //CHAdeMO module communication fail
  724. "012250", //GBT module communication fail
  725. "012251", //Emergency stop
  726. "012252", //Door open
  727. "012253", //System fan decay
  728. "012254", //Fail to create share memory
  729. "012255", //CSU initialization failed
  730. "012256", //AC Ground Fault
  731. "012257", //MCU self-test Fault
  732. "012258", //Relay self-test Fault
  733. "012259", //CHAdeMO groundfault detection timeout (GFD)
  734. "012260", //CCS groundfault detection timeout (GFD)
  735. "012261", //GB groundfault detection timeout (GFD)
  736. "012262", //Circuit Short
  737. "012263", // PSU Duplicate ID
  738. "012264", // PSU Output Short Circuit
  739. "012265", // PSU Discharge Abnormal
  740. "012266", // PSU Dc Side ShutDown
  741. "012267", // PSU Failure Alarm
  742. "012268", // PSU Protection Alarm
  743. "012269", // PSU FanFailure Alarm
  744. "012270", // PSU Input UVP
  745. "012271", // PSU Input OVP
  746. "012272", // PSU WalkIn State
  747. "012273", // PSU Power Limited State
  748. "012274", // PSU Id Repeat
  749. "012275", // PSU Severe Uneven Current
  750. "012276", // PSU Three Phase Input Inadequate
  751. "012277", // PSU Three Phase Onput Imbalance
  752. "012278", // PSU Ffc Side ShutDown
  753. "012279", // NO PSU Resource
  754. "012280", // Self test Failed due to communication of Relayboard failure
  755. "012281", // Self test Failed due to communication of Fanboard failure
  756. "012282", // Self test Failed due to communication of Primary failure
  757. "012283", // Self test Failed due to communication of Chademoboard failure
  758. "012284", // Self test Failed due to communication of CCSboard failure
  759. "012285", // Self test Failed due to AC Contact failure
  760. "012286", // Self test Failed due to communication of PSU failure
  761. "012287", // Self test Failed due to Model name is none match
  762. "012288", // CCS output UVP
  763. "012289", // Chademo output UVP
  764. "012290", // GBT output UVP
  765. "012291", // Self test Failed due to communication of GBTboard failure
  766. "012292", // Self test Failed due to communication of AC failure
  767. "012293", // Reserved
  768. "012294", // Ac input OVP
  769. "012295", // Ac input UVP
  770. "012296", // CHAdeMO groundfault detection - warning
  771. "012297", // CCS groundfault detection - warning
  772. "012298", // GB groundfault detection - warning
  773. };
  774. struct AlarmCodeData
  775. {
  776. unsigned char PreviousAlarmVal[13];
  777. union
  778. {
  779. unsigned char AlarmVal[13];
  780. struct
  781. {
  782. //AlarmVal[0]
  783. unsigned char SystemL1InputOVP:1; //bit 0
  784. unsigned char SystemL2InputOVP:1; //bit 1
  785. unsigned char SystemL3InputOVP:1; //bit 2
  786. unsigned char SystemL1InputUVP:1; //bit 3
  787. unsigned char SystemL2InputUVP:1; //bit 4
  788. unsigned char SystemL3InputUVP:1; //bit 5
  789. unsigned char PsuL1InputOVP:1; //bit 6
  790. unsigned char PsuL2InputOVP:1; //bit 7
  791. //AlarmVal[1]
  792. unsigned char PsuL3InputOVP:1; //bit 0
  793. unsigned char PsuL1InputUVP:1; //bit 1
  794. unsigned char PsuL2InputUVP:1; //bit 2
  795. unsigned char PsuL3InputUVP :1; //bit 3
  796. unsigned char SystemL1InputDrop:1; //bit 4
  797. unsigned char SystemL2InputDrop:1; //bit 5
  798. unsigned char SystemL3InputDrop:1; //bit 6
  799. unsigned char SystemAcOutputOVP:1; //bit 7
  800. //AlarmVal[2]
  801. unsigned char SystemAcOutputOCP:1; //bit 0
  802. unsigned char SystemChademoOutputOVP:1; //bit 1
  803. unsigned char SystemChademoOutputOCP:1; //bit 2
  804. unsigned char SystemCcsOutputOVP:1; //bit 3
  805. unsigned char SystemCcsOutputOCP:1; //bit 4
  806. unsigned char SystemGbOutputOVP:1; //bit 5
  807. unsigned char SystemGbOutputOCP:1; //bit 6
  808. unsigned char SystemAmbientOTP :1; //bit 7
  809. //AlarmVal[3]
  810. unsigned char SystemCriticalPointOTP:1; //bit 0
  811. unsigned char PsuAmbientOTP:1; //bit 1
  812. unsigned char PsuCriticalPointOTP:1; //bit 2
  813. unsigned char AuxPowerModuleOTP:1; //bit 3
  814. unsigned char RelayBoardOTP:1; //bit 4
  815. unsigned char ChademoConnectorOTP:1; //bit 5
  816. unsigned char CcsConnectorOTP:1; //bit 6
  817. unsigned char GbConnectorOTP:1; //bit 7
  818. //AlarmVal[4]
  819. unsigned char AcConnectorOTP:1; //bit 0
  820. unsigned char RcdTrip:1; //bit 1
  821. unsigned char ChademoGfdTrip:1; //bit 2
  822. unsigned char CcsGfdTrip:1; //bit 3
  823. unsigned char GbGfdTrip:1; //bit 4
  824. unsigned char SpdTrip:1; //bit 5
  825. unsigned char MainPowerBreakerTrip:1; //bit 6
  826. unsigned char AuxPowerBreakerTrip:1; //bit 7
  827. //AlarmVal[5]
  828. unsigned char PsuCommunicationFail:1; //bit 0
  829. unsigned char WiFiModuleCommFail:1; //bit 1
  830. unsigned char Telecom4GModuleCommFail:1; //bit 2
  831. unsigned char RfidModuleCommFail:1; //bit 3
  832. unsigned char BluetoothModuleCommFail:1; //bit 4
  833. unsigned char LcmModuleCommFail:1; //bit 5
  834. unsigned char AuxPowerModuleCommFail:1; //bit 6
  835. unsigned char RelayBoardCommFail:1; //bit 7
  836. //AlarmVal[6]
  837. unsigned char CcsModuleCommFail:1; //bit 0
  838. unsigned char ChademoModuleCommFail:1; //bit 1
  839. unsigned char GbModuleCommFail:1; //bit 2
  840. unsigned char EmergencyStopTrip:1; //bit 3
  841. unsigned char DoorOpen:1; //bit 4
  842. unsigned char SystemFanDecay:1; //bit 5
  843. unsigned char FailToCreateShareMemory:1; //bit 6
  844. unsigned char CsuInitFailed:1; //bit 7
  845. //AlarmVal[7]
  846. unsigned char AcGroundfaultFail:1; //bit 0
  847. unsigned char McuSelftestFail:1; //bit 1
  848. unsigned char RelaySelftestFail:1; //bit 2
  849. unsigned char ChademoGroundfaultTimeout:1; //bit 3
  850. unsigned char CcsGroundfaultTimeout:1; //bit 4
  851. unsigned char GbGroundfaultTimeout:1; //bit 5
  852. unsigned char CircuitShort:1; //bit 6
  853. unsigned char PsuDuplicateID:1; //bit 7
  854. //AlarmVal[8]
  855. unsigned char PsuOutputShortCircuit :1; //bit 0
  856. unsigned char PsuDischargeAbnormal :1; //bit 1
  857. unsigned char PsuDcSideShutDown :1; //bit 2
  858. unsigned char PsuFailureAlarm :1; //bit 3
  859. unsigned char PsuProtectionAlarm :1; //bit 4
  860. unsigned char PsuFanFailureAlarm :1; //bit 5
  861. unsigned char PsuInputUVP:1; //bit 6
  862. unsigned char PsuInputOVP:1; //bit 7
  863. //AlarmVal[9]
  864. unsigned char PsuWalkInState :1; //bit 0
  865. unsigned char PsuPowerLimitedState :1; //bit 1
  866. unsigned char PsuIdRepeat :1; //bit 2
  867. unsigned char PsuSevereUnevenCurrent :1; //bit 3
  868. unsigned char PsuThreePhaseInputInadequate :1; //bit 4
  869. unsigned char PsuThreePhaseOnputImbalance :1; //bit 5
  870. unsigned char PsuFfcSideShutDown :1; //bit 6
  871. unsigned char PsuNoResource:1; //bit 7
  872. //AlarmVal[10]
  873. unsigned char RelayboardStestFail :1; //bit 0
  874. unsigned char FanboardStestFail :1; //bit 1
  875. unsigned char PrimaryStestFail :1; //bit 2
  876. unsigned char ChademoboardStestFail :1; //bit 3
  877. unsigned char CCSboardStestFail :1; //bit 4
  878. unsigned char AcContactStestFail :1; //bit 5
  879. unsigned char PsuModuleStestFail :1; //bit 6
  880. unsigned char ModelNameNoneMatchStestFail:1; //bit 7
  881. //AlarmVal[11]
  882. unsigned char CcsOutputUVPFail :1; //bit 0
  883. unsigned char ChademoOutputUVPFail :1; //bit 1
  884. unsigned char GbtOutputUVPFail :1; //bit 2
  885. unsigned char GbtboardStestFail :1; //bit 3
  886. unsigned char AcConnectorStestFail:1; //bit 4
  887. unsigned char :1; //bit 5
  888. unsigned char AcSystemInputOVP:1; //bit 6
  889. unsigned char AcSystemInputUVP:1; //bit 7
  890. //AlarmVal[12]
  891. unsigned char ChademoGroundWarning :1; //bit 0
  892. unsigned char CcsGroundfaultWarning :1; //bit 1
  893. unsigned char GbGroundfaultWarning :1; //bit 2
  894. unsigned char :5; //bit 3 ~ 7
  895. }bits;
  896. }AlarmEvents;
  897. };
  898. char InfoStatusCode[384][6]=
  899. {
  900. //Information comes from EVSE
  901. "013600", //Normal stop charging by user
  902. "013601", //Charging Time's up
  903. "013602", //Replace system air filter
  904. "013603", //Reach to CHAdeMO max. plugging times.
  905. "013604", //Reach to CCS max. plugging times.
  906. "013605", //Reach to GB max. plugging times.
  907. "013606", //Reach to AC max. plugging times.
  908. "013607", //CSU fimrware update fail
  909. "013608", //CHAdeMO Module fimrware update fail
  910. "013609", //CCS Module fimrware update fail
  911. "013610", //GB Module fimrware update fail
  912. "013611", //Aux. power module fimrware update fail
  913. "013612", //Relay control module fimrware update fail
  914. "013613", //LCM module fimrware update fail
  915. "013614", //Bluetooth module fimrware update fail
  916. "013615", //WiFi module fimrware update fail
  917. "013616", //3G/4G module fimrware update fail
  918. "013617", //SMR fimrware update fail
  919. "013618", //RFID module fimrware update fail
  920. "013619", //configured by USB flash drive
  921. "013620", //configured by backend
  922. "013621", //configured by webpage
  923. "013622", //disconnected from Internet through Ethernet
  924. "013623", //disconnected from Internet through WiFi
  925. "013624", //disconnected from Internet through 3G/4G
  926. "013625", //disconnected from AP through WiFi
  927. "013626", //disconnected from APN through 3G/4G
  928. "013627", //Reserved
  929. "013628", //Reserved
  930. "013629", //Reserved
  931. "013630", //Reserved
  932. "013631", //Reserved
  933. //Information comes from EV
  934. "023700", //CHAdeMO EV communication Fail
  935. "023701", //CCS EV communication Fail
  936. "023702", //GB EV communication Fail
  937. "023703", //AC: pilot fault
  938. "023704", //CHAdeMO: battery malfunction
  939. "023705", //CHAdeMO: no charging permission
  940. "023706", //CHAdeMO: battery incompatibility
  941. "023707", //CHAdeMO: battery OVP
  942. "023708", //CHAdeMO: battery UVP
  943. "023709", //CHAdeMO: battery OTP
  944. "023710", //CHAdeMO: battery current difference
  945. "023711", //CHAdeMO: battery voltage difference
  946. "023712", //CHAdeMO: shift position
  947. "023713", //CHAdeMO: battery other fault
  948. "023714", //CHAdeMO: charging system error
  949. "023715", //CHAdeMO: EV normal stop
  950. "023716", //CHAdeMO: connector temperature sensor broken
  951. "023717", //CHAdeMO: connector lock fail
  952. "023718", //CHAdeMO: D1 ON No Receive
  953. "023719", //CHAdeMO: BMS K to J Timeout
  954. "023720", //CHAdeMO: BMS Charge Allow Timeout
  955. "023721", //CHAdeMO: Wait GroundFault Timeout
  956. "023722", //CHAdeMO: BMS EV Relay Timeout
  957. "023723", //CHAdeMO: BMS Request Current Timeout
  958. "023724", //CHAdeMO: BMS K to J OFF Timeout
  959. "023725", //CHAdeMO: BMS EV Relay OFF Timeout
  960. "023726", //CHAdeMO: ADC More Than 10V
  961. "023727", //CHAdeMO: ADC More Than 20V
  962. "023728", //CHAdeMO: BMS Charge Before Stop
  963. "023729", //CHAdeMO: Charger Get Normal Stop
  964. "023730", //CHAdeMO: Charger Get Emergency Stop
  965. "023731", //CHAdeMO: Isolation Result Fail
  966. "023732", //CHAdeMO: Miss Link With MotherBoard
  967. "023733", //CHAdeMO: Output Voltage More Than Limit
  968. "023734", //CHAdeMO: Request Current More Than Limit
  969. "023735", //CHAdeMO: Re Cap BMS Eqr Current Exceed
  970. "023736", //CHAdeMO: Charge Remain Count Down
  971. "023737", //CCS:CCS_EVCC_EVErrorCode_FAILED_RESSTemperatureInhibit
  972. "023738", //CCS:CCS_EVCC_EVErrorCode_FAILED_EVShiftPosition
  973. "023739", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargerConnectorLockFault
  974. "023740", //CCS:CCS_EVCC_EVErrorCode_FAILED_EVRESSMalfunction
  975. "023741", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargingCurrentdifferential
  976. "023742", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargingVoltageOutOfRange
  977. "023743", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargingSystemIncompatibility
  978. "023744", //CCS:CCS_EVCC_EVErrorCode_FAILED_EmergencyEvent
  979. "023745", //CCS:CCS_EVCC_EVErrorCode_FAILED_Breaker
  980. "023746", //CCS:CCS_EVCC_EVErrorCode_FAILED_NoData
  981. "023747", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_DIN_A
  982. "023748", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_DIN_B
  983. "023749", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_DIN_C
  984. "023750", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_ISO_1
  985. "023751", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_ISO_2
  986. "023752", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_ISO_3
  987. "023753", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_1
  988. "023754", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_2
  989. "023755", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_3
  990. "023756", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_4
  991. "023757", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_5
  992. "023758", //CCS:CCS_SECC_ResponseCode_FAILED_SequenceError
  993. "023759", //CCS:CCS_SECC_ResponseCode_FAILED_SignatureError
  994. "023760", //CCS:CCS_SECC_ResponseCode_FAILED_UnknownSession
  995. "023761", //CCS:CCS_SECC_ResponseCode_FAILED_ServiceIDInvalid
  996. "023762", //CCS:CCS_SECC_ResponseCode_FAILED_Payment SelectionInvalid
  997. "023763", //CCS:CCS_SECC_ResponseCode_FAILED_IdentificationSelectionInvalid
  998. "023764", //CCS:CCS_SECC_ResponseCode_FAILED_ServiceSelectionInvalid
  999. "023765", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateExpired
  1000. "023766", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateNotYetValid
  1001. "023767", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateRevoked
  1002. "023768", //CCS:CCS_SECC_ResponseCode_FAILED_NoCertificateAvailable
  1003. "023769", //CCS:CCS_SECC_ResponseCode_FAILED_CertChainError
  1004. "023770", //CCS:CCS_SECC_ResponseCode_FAILED_CertValidationError
  1005. "023771", //CCS:CCS_SECC_ResponseCode_FAILED_CertVerificationError
  1006. "023772", //CCS:CCS_SECC_ResponseCode_FAILED_ContractCanceled
  1007. "023773", //CCS:CCS_SECC_ResponseCode_FAILED_ChallengeInvalid
  1008. "023774", //CCS:CCS_SECC_ResponseCode_FAILED_WrongEnergyTransferMode
  1009. "023775", //CCS:CCS_SECC_ResponseCode_FAILED_WrongChargeParameter
  1010. "023776", //CCS:CCS_SECC_ResponseCode_FAILED_ChargingProfileInvalid
  1011. "023777", //CCS:CCS_SECC_ResponseCode_FAILED_TariffSelectionInvalid
  1012. "023778", //CCS:CCS_SECC_ResponseCode_FAILED_EVSEPresentVoltageToLow
  1013. "023779", //CCS:CCS_SECC_ResponseCode_FAILED_PowerDeliveryNotApplied
  1014. "023780", //CCS:CCS_SECC_ResponseCode_FAILED_MeteringSignatureNotValid
  1015. "023781", //CCS:CCS_SECC_ResponseCode_FAILED_NoChargeServiceSelected
  1016. "023782", //CCS:CCS_SECC_ResponseCode_FAILED_ContactorError
  1017. "023783", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateNotAllowedAtThisEVSE
  1018. "023784", //CCS:CCS_SECC_ResponseCode_FAILED_GAChargeStop
  1019. "023785", //CCS:CCS_SECC_ResponseCode_FAILED_AlignmentError
  1020. "023786", //CCS:CCS_SECC_ResponseCode_FAILED_ACDError
  1021. "023787", //CCS:CCS_SECC_ResponseCode_FAILED_AssociationError
  1022. "023788", //CCS:CCS_SECC_ResponseCode_FAILED_EVSEChargeAbort
  1023. "023789", //CCS:CCS_SECC_ResponseCode_FAILED_NoSupportedApp-Protocol-Protocol
  1024. "023790", //CCS:CCS_SECC_ResponseCode_FAILED_ContractNotAccepted
  1025. "023791", //CCS:CCS_SECC_ResponseCode_FAILED_MOUnknown
  1026. "023792", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_Prov_CertificateRevoke
  1027. "023793", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_SubCA1_CertificateRevoked
  1028. "023794", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_SubCA2_CertificateRevoked
  1029. "023795", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_RootCA_CertificateRevoked
  1030. "023796", //CCS:CCS_SECC_ResponseCode_FAILED_MO_Prov_CertificateRevoked
  1031. "023797", //CCS:CCS_SECC_ResponseCode_FAILED_MO_SubCA1_CertificateRevoked
  1032. "023798", //CCS:CCS_SECC_ResponseCode_FAILED_MO_SubCA2_CertificateRevoked
  1033. "023799", //CCS:CCS_SECC_ResponseCode_FAILED_MO_RootCA_CertificateRevoked
  1034. "023800", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_Prov_CertificateRevoked
  1035. "023801", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_SubCA1_CertificateRevoked
  1036. "023802", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_SubCA2_CertificateRevoked
  1037. "023803", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_RootCA_CertificateRevoked
  1038. "023804", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_1
  1039. "023805", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_2
  1040. "023806", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_3
  1041. "023807", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_4
  1042. "023808", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_5
  1043. "023809", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_SLAC_init
  1044. "023810", //CCS:CCS_SECC_TIMEOUT_SLAC_TP_match_response
  1045. "023811", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_match_sequence
  1046. "023812", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_match_MNBC
  1047. "023813", //CCS:CCS_SECC_TIMEOUT_SLAC_TP_EVSE_avg_atten_calc
  1048. "023814", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_match_response
  1049. "023815", //CCS:CCS_SECC_TIMEOUT_SLAC_TP_EVSE_match_session
  1050. "023816", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_assoc_session
  1051. "023817", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_vald_toggle
  1052. "023818", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_1
  1053. "023819", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_2
  1054. "023820", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_3
  1055. "023821", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_4
  1056. "023822", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_5
  1057. "023823", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_UDP_TT_match_join
  1058. "023824", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_TCP_TT_match_join
  1059. "023825", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_TP_amp_map_exchange
  1060. "023826", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_TP_link_ready_notification
  1061. "023827", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_1
  1062. "023828", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_2
  1063. "023829", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_3
  1064. "023830", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_4
  1065. "023831", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_5
  1066. "023832", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_SupportedAppProtocolRes
  1067. "023833", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_SessionSetupRes
  1068. "023834", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ServiceDiscoveryRes
  1069. "023835", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ServicePaymentSelectionRes
  1070. "023836", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ContractAuthenticationRes
  1071. "023837", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ChargeParameterDiscoveryRes
  1072. "023838", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_PowerDeliveryRes
  1073. "023839", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_CableCheckRes
  1074. "023840", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_PreChargeRes
  1075. "023841", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_CurrentDemandRes
  1076. "023842", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_WeldingDetectionRes
  1077. "023843", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_SessionStopRes
  1078. "023844", //CCS:CCS_SECC_TIMEOUT_V2G_Sequence_Time
  1079. "023845", //CCS:CCS_SECC_TIMEOUT_V2G_ReadyToCharge_Performance_Time
  1080. "023846", //CCS:CCS_SECC_TIMEOUT_V2G_CommunicationSetup_Performance_Time
  1081. "023847", //CCS:CCS_SECC_TIMEOUT_V2G_CableCheck_Performance_Time
  1082. "023848", //CCS:CCS_SECC_TIMEOUT_V2G_CPState_Detection_Time
  1083. "023849", //CCS:CCS_SECC_TIMEOUT_V2G_CPOscillator_Retain_Time
  1084. "023850", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_1
  1085. "023851", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_2
  1086. "023852", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_3
  1087. "023853", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_4
  1088. "023854", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_5
  1089. "023855", //CCS:CCS_CAN_TIMEOUT_TP_GET_EV_TARGET_INFO
  1090. "023856", //CCS:CCS_CAN_TIMEOUT_TT_GET_EV_TARGET_INFO
  1091. "023857", //CCS:CCS_CAN_TIMEOUT_TP_GET_EV_BATTERY_INFO
  1092. "023858", //CCS:CCS_CAN_TIMEOUT_TT_GET_EV_BATTERY_INFO
  1093. "023859", //CCS:CCS_CAN_TIMEOUT_TP_EV_STOP_EVENT
  1094. "023860", //CCS:CCS_CAN_TIMEOUT_TT_EV_STOP_EVENT
  1095. "023861", //CCS:CCS_CAN_TIMEOUT_TP_EVSE_STOP_EVENT
  1096. "023862", //CCS:CCS_CAN_TIMEOUT_TT_EVSE_STOP_EVENT
  1097. "023863", //CCS:CCS_CAN_TIMEOUT_TP_GET_MISC_INFO
  1098. "023864", //CCS:CCS_CAN_TIMEOUT_TT_GET_MISC_INFO
  1099. "023865", //CCS:CCS_CAN_TIMEOUT_TP_DOWNLOAD_REQUEST
  1100. "023866", //CCS:CCS_CAN_TIMEOUT_TT_DOWNLOAD_REQUEST
  1101. "023867", //CCS:CCS_CAN_TIMEOUT_TP_START_BLOCK_TRANSFER
  1102. "023868", //CCS:CCS_CAN_TIMEOUT_TT_START_BLOCK_TRANSFER
  1103. "023869", //CCS:CCS_CAN_TIMEOUT_TP_DATA_TRANSFER
  1104. "023870", //CCS:CCS_CAN_TIMEOUT_TT_DATA_TRANSFER
  1105. "023871", //CCS:CCS_CAN_TIMEOUT_TP_DOWNLOAD_FINISH
  1106. "023872", //CCS:CCS_CAN_TIMEOUT_TT_DOWNLOAD_FINISH
  1107. "023873", //CCS:CCS_CAN_TIMEOUT_TP_ISOLATION_STATUS
  1108. "023874", //CCS:CCS_CAN_TIMEOUT_TT_ISOLATION_STATUS
  1109. "023875", //CCS:CCS_CAN_TIMEOUT_TP_CONNECTOR_INFO
  1110. "023876", //CCS:CCS_CAN_TIMEOUT_TT_CONNECTOR_INFO
  1111. "023877", //CCS:CCS_CAN_TIMEOUT_TT_RTC_INFO
  1112. "023878", //CCS:CCS_CAN_TIMEOUT_TP_RTC_INFO
  1113. "023879", //CCS:CCS_CAN_TIMEOUT_TP_EVSE_PRECHARGE_INFO
  1114. "023880", //CCS:CCS_CAN_TIMEOUT_TT_EVSE_PRECHARGE_INFO
  1115. "023881", //CCS:CCS_CAN_TIMEOUT_MSG_Sequence
  1116. "023882", //CCS:CCS_CAN_MSG_Unrecognized_CMD_ID
  1117. "023883", //CCS:CCS_SECC_DIN_Msg_Decode_Error
  1118. "023884", //CCS:CCS_SECC_DIN_Msg_Encode_Error
  1119. "023885", //CCS:CCS_SECC_ISO1_Msg_Decode_Error
  1120. "023886", //CCS:CCS_SECC_ISO1_Msg_Encode_Error
  1121. "023887", //CCS:CCS_SECC_ISO2_Msg_Decode_Error
  1122. "023888", //CCS:CCS_SECC_ISO2_Msg_Encode_Error
  1123. "023889", //CCS:CCS_SECC_CP_STATUS_Error
  1124. "023890", //CCS:CCS_SECC_Unexpected_60V_Before_Charing_Error
  1125. "023891", //Reserved
  1126. "023892", //Reserved
  1127. "023893", //Reserved
  1128. "023894", //Reserved
  1129. "023895", //Reserved
  1130. "023896", //Reserved
  1131. "023897", //Reserved
  1132. "023898", //Reserved
  1133. "023899", //Reserved
  1134. "023900", //GBT: ERROR_CODE_GBT_LOS_CC1
  1135. "023901", //GBT: ERROR_CODE_GBT_CONNECTOR_LOCK_FAIL
  1136. "023902", //GBT: ERROR_CODE_GBT_BATTERY_INCOMPATIBLE
  1137. "023903", //GBT: ERROR_CODE_GBT_BMS_BROAA_TIMEOUT
  1138. "023904", //GBT: ERROR_CODE_GBT_CSU_PRECHARGE_TIMEOUT
  1139. "023905", //GBT: ERROR_CODE_GBT_BMS_PRESENT_VOLTAGE_FAULT
  1140. "023906", //GBT: ERROR_CODE_GBT_BMS_VOLTAGE_OVER_RANGE
  1141. "023907", //GBT: ERROR_CODE_GBT_BSM_CHARGE_ALLOW_00_10MIN_COUUNTDONE
  1142. "023908", //GBT: ERROR_CODE_GBT_WAIT_GROUNDFAULT_TIMEOUT
  1143. "023909", //GBT: ERROR_CODE_GBT_ADC_MORE_THAN_10V
  1144. "023910", //GBT: ERROR_CODE_GBT_ADC_MORE_THAN_60V
  1145. "023911", //GBT: ERROR_CODE_GBT_CHARGER_GET_NORMAL_STOP_CMD
  1146. "023912", //GBT: ERROR_CODE_GBT_CHARGER_GET_EMERGENCY_STOP_CMD
  1147. "023913", //GBT: ERROR_CODE_GBT_ISOLATION_RESULT_FAIL
  1148. "023914", //GBT: ERROR_CODE_GBT_MOTHER_BOARD_MISS_LINK
  1149. "023915", //GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_LIMIT
  1150. "023916", //GBT: ERROR_CODE_GBT_REQ_CURRENT_MORE_THAN_LIMIT
  1151. "023917", //GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_10_PERCENT
  1152. "023918", //GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_DIFF_BCS_5_PERCENT
  1153. "023919", //GBT: ERROR_CODE_GBT_STOP_ADC_MORE_THAN_10V
  1154. "023920", // Reserved
  1155. "023921", // Reserved
  1156. "023922", // Reserved
  1157. "023923", // Reserved
  1158. "023924", // Reserved
  1159. "023925", // Reserved
  1160. "023926", // Reserved
  1161. "023927", // Reserved
  1162. "023928", // Reserved
  1163. "023929", // Reserved
  1164. "023930", //GBT: ERROR_CODE_CEM_BHM_TIMEOUT
  1165. "023931", //GBT: ERROR_CODE_CEM_BRM_TIMEOUT
  1166. "023932", //GBT: ERROR_CODE_CEM_BCP_TIMEOUT
  1167. "023933", //GBT: ERROR_CODE_CEM_BRO_TIMEOUT
  1168. "023934", //GBT: ERROR_CODE_CEM_BCL_TIMEOUT
  1169. "023935", //GBT: ERROR_CODE_CEM_BCS_TIMEOUT
  1170. "023936", //GBT: ERROR_CODE_CEM_BSM_TIMEOUT
  1171. "023937", //GBT: ERROR_CODE_CEM_BST_TIMEOUT
  1172. "023938", //GBT: ERROR_CODE_CEM_BSD_TIMEOUT
  1173. "023939", //GBT: ERROR_CODE_CEM_BEM_OTHER_TIMEOUT
  1174. "023940", //GBT: ERROR_CODE_BEM_CRM_TIMEOUT
  1175. "023941", //GBT: ERROR_CODE_BEM_CRMAA_TIMEOUT
  1176. "023942", //GBT: ERROR_CODE_BEM_CTS_CML_TIMEOUT
  1177. "023943", //GBT: ERROR_CODE_BEM_CRO_TIMEOUT
  1178. "023944", //GBT: ERROR_CODE_BEM_CCS_TIMEOUT
  1179. "023945", //GBT: ERROR_CODE_BEM_CST_TIMEOUT
  1180. "023946", //GBT: ERROR_CODE_BEM_CSD_TIMEOUT
  1181. "023947", //GBT: ERROR_CODE_BEM_BEM_OTHER_TIMEOUT
  1182. "023948", // Reserved
  1183. "023949", // Reserved
  1184. "023950", //GBT: ERROR_CODE_BST_SOC_GOAL
  1185. "023951", //GBT: ERROR_CODE_BST_TOTAL_VOLTAGE_GOAL
  1186. "023952", //GBT: ERROR_CODE_BST_CELL_VOLTAGE_GOAL
  1187. "023953", //GBT: ERROR_CODE_BST_GET_CST
  1188. "023954", //GBT: ERROR_CODE_BST_ISOLATION
  1189. "023955", //GBT: ERROR_CODE_BST_OUTPUT_CONNECTOR_OTP
  1190. "023956", //GBT: ERROR_CODE_BST_COMPONENT
  1191. "023957", //GBT: ERROR_CODE_BST_CHARGE_CONNECTOR
  1192. "023958", //GBT: ERROR_CODE_BST_OTP
  1193. "023959", //GBT: ERROR_CODE_BST_OTHER
  1194. "023960", //GBT: ERROR_CODE_BST_HIGH_V
  1195. "023961", //GBT: ERROR_CODE_BST_CC2
  1196. "023962", //GBT: ERROR_CODE_BST_CURRENT
  1197. "023963", //GBT: ERROR_CODE_BST_VOLTAGE
  1198. "023964", //GBT: ERROR_CODE_GET_BST_NO_REASON
  1199. "023965", // Reserved
  1200. "023966", // Reserved
  1201. "023967", // Reserved
  1202. "023968", // Reserved
  1203. "023969", // Reserved
  1204. "023970", //GBT: ERROR_CODE_BSM_CELL_OVER_VOLTAGE
  1205. "023971", //GBT: ERROR_CODE_BSM_CELL_UNDER_VOLTAGE
  1206. "023972", //GBT: ERROR_CODE_BSM_OVER_SOC
  1207. "023973", //GBT: ERROR_CODE_BSM_UNDER_SOC
  1208. "023974", //GBT: ERROR_CODE_BSM_CURRENT
  1209. "023975", //GBT: ERROR_CODE_BSM_TEMPERATURE
  1210. "023976", //GBT: ERROR_CODE_BSM_ISOLATE
  1211. "023977", //GBT: ERROR_CODE_BSM_OUTPUT_CONNECTOR
  1212. "023978", // Reserved
  1213. "023979", // Reserved
  1214. "033900", //disconnected from backend through Ethernet
  1215. "033901", //disconnected from backend through WiFi
  1216. "033902", //disconnected from backend through 3G/4G
  1217. "033903", //Remote start charging by backend
  1218. "033904", //Remote stop charging by backend
  1219. "033905", //Remote reset by backend
  1220. "033906", //Reserved
  1221. "033907", //Reserved
  1222. };
  1223. struct InfoCodeData
  1224. {
  1225. unsigned char PreviousInfoVal[40];
  1226. union
  1227. {
  1228. unsigned char InfoVal[40];
  1229. struct
  1230. {
  1231. //InfoVal[0]
  1232. unsigned char NormalStopChargingByUser:1; //bit 0
  1233. unsigned char ChargingTimesUp:1; //bit 1
  1234. unsigned char ReplaceSystemAirFilter:1; //bit 2
  1235. unsigned char ReachChademoMaxPluggingTimes:1; //bit 3
  1236. unsigned char ReachCcsMaxPluggingTimes:1; //bit 4
  1237. unsigned char ReachGbMaxPluggingTimes:1; //bit 5
  1238. unsigned char ReachAcMaxPluggingTimes:1; //bit 6
  1239. unsigned char CsuFimrwareUpdateFail:1; //bit 7
  1240. //InfoVal[1]
  1241. unsigned char ChademoModuleFimrwareUpdateFail:1; //bit 0
  1242. unsigned char CcsModuleFimrwareUpdateFail:1; //bit 1
  1243. unsigned char GbModuleFimrwareUpdateFail:1; //bit 2
  1244. unsigned char AuxPowerModuleFimrwareUpdateFail:1; //bit 3
  1245. unsigned char RelayBoardFimrwareUpdateFail:1; //bit 4
  1246. unsigned char LcmModuleFimrwareUpdateFail:1; //bit 5
  1247. unsigned char BluetoothModuleFimrwareUpdateFail:1; //bit 6
  1248. unsigned char WiFiModuleFimrwareUpdateFail:1; //bit 7
  1249. //InfoVal[2]
  1250. unsigned char Telocom4GModuleFimrwareUpdateFail:1; //bit 0
  1251. unsigned char PsuFimrwareUpdateFail:1; //bit 1
  1252. unsigned char RfidModuleFimrwareUpdateFail:1; //bit 2
  1253. unsigned char ConfiguredByUsbFlashDrive:1; //bit 3
  1254. unsigned char ConfiguredByBackend:1; //bit 4
  1255. unsigned char ConfiguredByWebpage:1; //bit 5
  1256. unsigned char InternetDisconnectViaEthernet:1; //bit 6
  1257. unsigned char InternetDisconnectViaWiFi :1; //bit 7
  1258. //InfoVal[3]
  1259. unsigned char InternetDisconnectVia4Gi:1; //bit 0
  1260. unsigned char ApDisconnectViaWiFi:1; //bit 1
  1261. unsigned char ApnDisconnectVia4Gi:1; //bit 2
  1262. unsigned char :5; //bit 3~7 reserved
  1263. //InfoVal[4]
  1264. unsigned char ChademoEvCommFail:1; //bit 0
  1265. unsigned char CcsEvCommFail:1; //bit 1
  1266. unsigned char GbEvCommFail:1; //bit 2
  1267. unsigned char PilotFault:1; //bit 3
  1268. unsigned char ChademoBatteryMalfun:1; //bit 4
  1269. unsigned char ChademoNoPermission:1; //bit 5
  1270. unsigned char ChademoBatteryIncompatibility:1; //bit 6
  1271. unsigned char ChademoBatteryOVP:1; //bit 7
  1272. //InfoVal[5]
  1273. unsigned char ChademoBatteryUVP:1; //bit 0
  1274. unsigned char ChademoBatteryOTP:1; //bit 1
  1275. unsigned char ChademoBatteryCurrentDiff:1; //bit 2
  1276. unsigned char ChademoBatteryVoltageDiff:1; //bit 3
  1277. unsigned char ChademoShiftPosition:1; //bit 4
  1278. unsigned char ChademoBatteryOtherFault:1; //bit 5
  1279. unsigned char ChademoChargingSystemError:1; //bit 6
  1280. unsigned char ChademoEvNormalStop:1; //bit 7
  1281. //InfoVal[6]
  1282. unsigned char ChademoTempSensorBroken:1; //bit 0
  1283. unsigned char ChademoConnectorLockFail:1; //bit 1
  1284. unsigned char ChademoD1OnNoReceive:1; //bit 2
  1285. unsigned char ChademoBmsKtoJTimeout:1; //bit 3
  1286. unsigned char ChademoBmsChargeAllowTimeout:1; //bit 4
  1287. unsigned char ChademoWaitGfdTimeout:1; //bit 5
  1288. unsigned char ChademoBmsEvRelayTimeout:1; //bit 6
  1289. unsigned char ChademoBmsReqCurrentTimeout:1; //bit 7
  1290. //InfoVal[7]
  1291. unsigned char ChademoBmsKtoJOffTimeout :1; //bit 0
  1292. unsigned char ChademoBmsEvRelayOffTimeout :1; //bit 1
  1293. unsigned char ChademoAdcMoreThan10V :1; //bit 2
  1294. unsigned char ChademoAdcMoreThan20V :1; //bit 3
  1295. unsigned char ChademoBmsChargeBeforeStop :1; //bit 4
  1296. unsigned char ChademoChargerGetNormalStop :1; //bit 5
  1297. unsigned char ChademoChargerGetEmergencyStop :1; //bit 6
  1298. unsigned char ChademoIsolationResultFail :1; //bit 7
  1299. //InfoVal[8]
  1300. unsigned char ChademoMissLinkWithMotherBoard :1; //bit 0
  1301. unsigned char ChademoOutputVolMoreThanLimit :1; //bit 1
  1302. unsigned char ChademoReqCurrentMoreThanLimit :1; //bit 2
  1303. unsigned char ChademoReCapBmsEqrCurrentExceed :1; //bit 3
  1304. unsigned char ChademoChargeRemainCountDown :1; //bit 4
  1305. unsigned char CcsRESTemperatureInhibit:1; //bit 5
  1306. unsigned char CcsEVShiftPosition:1; //bit 6
  1307. unsigned char CcsChargerConnectorLockFault:1; //bit 7
  1308. //InfoVal[9]
  1309. unsigned char CcsEVRESSMalfunction:1; //bit 0
  1310. unsigned char CcsChargingCurrentdifferential:1; //bit 1
  1311. unsigned char CcsChargingVoltageOutOfRange:1; //bit 2
  1312. unsigned char CcsChargingSystemIncompatibility:1; //bit 3
  1313. unsigned char CcsEmergencyEvent:1; //bit 4
  1314. unsigned char CcsBreaker:1; //bit 5
  1315. unsigned char CcsNoData:1; //bit 6
  1316. unsigned char Ccsreserved_by_DIN_A:1; //bit 7
  1317. //InfoVal[10]
  1318. unsigned char Ccsreserved_by_DIN_B:1; //bit 0
  1319. unsigned char Ccsreserved_by_DIN_C:1; //bit 1
  1320. unsigned char Ccsreserved_by_ISO_1:1; //bit 2
  1321. unsigned char Ccsreserved_by_ISO_2:1; //bit 3
  1322. unsigned char Ccsreserved_by_ISO_3:1; //bit 4
  1323. unsigned char Ccsreserved_by_OEM_1:1; //bit 5
  1324. unsigned char Ccsreserved_by_OEM_2:1; //bit 6
  1325. unsigned char Ccsreserved_by_OEM_3:1; //bit 7
  1326. //InfoVal[11]
  1327. unsigned char Ccsreserved_by_OEM_4:1; //bit 0
  1328. unsigned char Ccsreserved_by_OEM_5:1; //bit 1
  1329. unsigned char CcsSequenceError:1; //bit 2
  1330. unsigned char CcsSignatureError:1; //bit 3
  1331. unsigned char CcsUnknownSession:1; //bit 4
  1332. unsigned char CcsServiceIDInvalid:1; //bit 5
  1333. unsigned char CcsPaymentSelectionInvalid:1; //bit 6
  1334. unsigned char CcsIdentificationSelectionInvalid:1; //bit 7
  1335. //InfoVal[12]
  1336. unsigned char CcsServiceSelectionInvalid:1; //bit 0
  1337. unsigned char CcsCertificateExpired:1; //bit 1
  1338. unsigned char CcsCertificateNotYetValid:1; //bit 2
  1339. unsigned char CcsCertificateRevoked:1; //bit 3
  1340. unsigned char CcsNoCertificateAvailable:1; //bit 4
  1341. unsigned char CcsCertChainError:1; //bit 5
  1342. unsigned char CcsCertValidationError:1; //bit 6
  1343. unsigned char CcsCertVerificationError:1; //bit 7
  1344. //InfoVal[13]
  1345. unsigned char CcsContractCanceled:1; //bit 0
  1346. unsigned char CcsChallengeInvalid:1; //bit 1
  1347. unsigned char CcsWrongEnergyTransferMode:1; //bit 2
  1348. unsigned char CcsWrongChargeParameter:1; //bit 3
  1349. unsigned char CcsChargingProfileInvalid:1; //bit 4
  1350. unsigned char CcsTariffSelectionInvalid:1; //bit 5
  1351. unsigned char CcsEVSEPresentVoltageToLow:1; //bit 6
  1352. unsigned char CcsPowerDeliveryNotApplied:1; //bit 7
  1353. //InfoVal[14]
  1354. unsigned char CcsMeteringSignatureNotValid:1; //bit 0
  1355. unsigned char CcsNoChargeServiceSelected:1; //bit 1
  1356. unsigned char CcsContactorError:1; //bit 2
  1357. unsigned char CcsCertificateNotAllowedAtThisEVSE:1; //bit 3
  1358. unsigned char CcsGAChargeStop:1; //bit 4
  1359. unsigned char CcsAlignmentError:1; //bit 5
  1360. unsigned char CcsACDError:1; //bit 6
  1361. unsigned char CcsAssociationError:1; //bit 7
  1362. //InfoVal[15]
  1363. unsigned char CcsEVSEChargeAbort:1; //bit 0
  1364. unsigned char CcsNoSupportedAppProtocol:1; //bit 1
  1365. unsigned char CcsContractNotAccepted:1; //bit 2
  1366. unsigned char CcsMOUnknown:1; //bit 3
  1367. unsigned char CcsOEM_Prov_CertificateRevoke:1; //bit 4
  1368. unsigned char CcsOEM_SubCA1_CertificateRevoked:1; //bit 5
  1369. unsigned char CcsOEM_SubCA2_CertificateRevoked:1; //bit 6
  1370. unsigned char CcsOEM_RootCA_CertificateRevoked:1; //bit 7
  1371. //InfoVal[16]
  1372. unsigned char CcsMO_Prov_CertificateRevoked:1; //bit 0
  1373. unsigned char CcsMO_SubCA1_CertificateRevoked:1; //bit 1
  1374. unsigned char CcsMO_SubCA2_CertificateRevoked:1; //bit 2
  1375. unsigned char CcsMO_RootCA_CertificateRevoked:1; //bit 3
  1376. unsigned char CcsCPS_Prov_CertificateRevoked:1; //bit 4
  1377. unsigned char CcsCPS_SubCA1_CertificateRevoked:1; //bit 5
  1378. unsigned char CcsCPS_SubCA2_CertificateRevoked:1; //bit 6
  1379. unsigned char CcsCPS_RootCA_CertificateRevoked:1; //bit 7
  1380. //InfoVal[17]
  1381. unsigned char :5; //bit 0~4 reserved
  1382. unsigned char CcsTT_EVSE_SLAC_init:1; //bit 5
  1383. unsigned char CcsTP_match_response:1; //bit 6
  1384. unsigned char CcsTT_match_sequence:1; //bit 7
  1385. //InfoVal[18]
  1386. unsigned char CcsTT_EVSE_match_MNBC:1; //bit 0
  1387. unsigned char CcsTP_EVSE_avg_atten_calc:1; //bit 1
  1388. unsigned char CcsTT_match_response:1; //bit 2
  1389. unsigned char CcsTP_EVSE_match_session:1; //bit 3
  1390. unsigned char CcsTT_EVSE_assoc_session:1; //bit 4
  1391. unsigned char CcsTT_EVSE_vald_toggle:1; //bit 5
  1392. unsigned char :2; //bit 6~7 reserved
  1393. //InfoVal[19]
  1394. unsigned char :3; //bit 0~2 reserved
  1395. unsigned char CcsUDP_TT_match_join:1; //bit 3
  1396. unsigned char CcsTCP_TT_match_join:1; //bit 4
  1397. unsigned char CcsTP_amp_map_exchange:1; //bit 5
  1398. unsigned char CcsTP_link_ready_notification:1; //bit 6
  1399. unsigned char :1; //bit 7 resetved
  1400. //InfoVal[20]
  1401. unsigned char :4; //bit 0~3 reserved
  1402. unsigned char CcsSupportedAppProtocolRes:1; //bit 4
  1403. unsigned char CcsSessionSetupRes:1; //bit 5
  1404. unsigned char CcsServiceDiscoveryRes:1; //bit 6
  1405. unsigned char CcsServicePaymentSelectionRes:1; //bit 7
  1406. //InfoVal[21]
  1407. unsigned char CcsContractAuthenticationRes:1; //bit 0
  1408. unsigned char CcsChargeParameterDiscoveryRes:1; //bit 1
  1409. unsigned char CcsPowerDeliveryRes:1; //bit 2
  1410. unsigned char CcsCableCheckRes:1; //bit 3
  1411. unsigned char CcsPreChargeRes:1; //bit 4
  1412. unsigned char CcsCurrentDemandRes:1; //bit 5
  1413. unsigned char CcsWeldingDetectionRes:1; //bit 6
  1414. unsigned char CcsSessionStopRes:1; //bit 7
  1415. //InfoVal[22]
  1416. unsigned char CcsSequence_Time:1; //bit 0
  1417. unsigned char CcsReadyToCharge_Performance_Time:1; //bit 1
  1418. unsigned char CcsCommunicationSetup_Performance_Time:1; //bit 2
  1419. unsigned char CcsCableCheck_Performance_Time:1; //bit 3
  1420. unsigned char CcsCPState_Detection_Time:1; //bit 4
  1421. unsigned char CcsCPOscillator_Retain_Time:1; //bit 5
  1422. unsigned char :2; //bit 6~7 reserved
  1423. //InfoVal[23]
  1424. unsigned char :3; //bit 0~2 reserved
  1425. unsigned char CcsTP_GET_EV_TARGET_INFO:1; //bit 3
  1426. unsigned char CcsTT_GET_EV_TARGET_INFO:1; //bit 4
  1427. unsigned char CcsTP_GET_EV_BATTERY_INFO:1; //bit 5
  1428. unsigned char CcsTT_GET_EV_BATTERY_INFO:1; //bit 6
  1429. unsigned char CcsTP_EV_STOP_EVENT:1; //bit 7
  1430. //InfoVal[24]
  1431. unsigned char CcsTT_EV_STOP_EVENT:1; //bit 0
  1432. unsigned char CcsTP_EVSE_STOP_EVENT:1; //bit 1
  1433. unsigned char CcsTT_EVSE_STOP_EVENT:1; //bit 2
  1434. unsigned char CcsTP_GET_MISC_INFO:1; //bit 3
  1435. unsigned char CcsTT_GET_MISC_INFO:1; //bit 4
  1436. unsigned char CcsTP_DOWNLOAD_REQUEST:1; //bit 5
  1437. unsigned char CcsTT_DOWNLOAD_REQUEST:1; //bit 6
  1438. unsigned char CcsTP_START_BLOCK_TRANSFER:1; //bit 7
  1439. //InfoVal[25]
  1440. unsigned char CcsTT_START_BLOCK_TRANSFER:1; //bit 0
  1441. unsigned char CcsTP_DATA_TRANSFER:1; //bit 1
  1442. unsigned char CcsTT_DATA_TRANSFER:1; //bit 2
  1443. unsigned char CcsTP_DOWNLOAD_FINISH:1; //bit 3
  1444. unsigned char CcsTT_DOWNLOAD_FINISH:1; //bit 4
  1445. unsigned char CcsTP_ISOLATION_STATUS:1; //bit 5
  1446. unsigned char CcsTT_ISOLATION_STATUS:1; //bit 6
  1447. unsigned char CcsTP_CONNECTOR_INFO:1; //bit 7
  1448. //InfoVal[26]
  1449. unsigned char CcsTT_CONNECTOR_INFO:1; //bit 0
  1450. unsigned char CcsTT_RTC_INFO:1; //bit 1
  1451. unsigned char CcsTP_RTC_INFO:1; //bit 2
  1452. unsigned char CcsTP_EVSE_PRECHARGE_INFO:1; //bit 3
  1453. unsigned char CcsTT_EVSE_PRECHARGE_INFO:1; //bit 4
  1454. unsigned char CcsMSG_Sequence:1; //bit 5
  1455. unsigned char CcsCAN_MSG_Unrecognized_CMD_ID:1; //bit 6
  1456. unsigned char CcsDIN_Msg_Decode_Error:1; //bit 7
  1457. //InfoVal[27]
  1458. unsigned char CcsDIN_Msg_Encode_Error:1; //bit 0
  1459. unsigned char CcsISO1_Msg_Decode_Error:1; //bit 1
  1460. unsigned char CcsISO1_Msg_Encode_Error:1; //bit 2
  1461. unsigned char CcsISO2_Msg_Decode_Error:1; //bit 3
  1462. unsigned char CcsISO2_Msg_Encode_Error:1; //bit 4
  1463. unsigned char CcsCpStatus_Error:1; //bit 5
  1464. unsigned char CcsUnexpectVolBeforeCharing_Error:1; //bit 6
  1465. unsigned char :1; //bit 7 reserved
  1466. //InfoVal[28]
  1467. unsigned char :8; //bit 0~8 reserved
  1468. //InfoVal[29]
  1469. unsigned char ERROR_CODE_GBT_LOS_CC1 :1; //bit 0
  1470. unsigned char ERROR_CODE_GBT_CONNECTOR_LOCK_FAIL :1; //bit 1
  1471. unsigned char ERROR_CODE_GBT_BATTERY_INCOMPATIBLE :1; //bit 2
  1472. unsigned char ERROR_CODE_GBT_BMS_BROAA_TIMEOUT :1; //bit 3
  1473. unsigned char ERROR_CODE_GBT_CSU_PRECHARGE_TIMEOUT :1; //bit 4
  1474. unsigned char ERROR_CODE_GBT_BMS_PRESENT_VOLTAGE_FAULT :1; //bit 5
  1475. unsigned char ERROR_CODE_GBT_BMS_VOLTAGE_OVER_RANGE :1; //bit 6
  1476. unsigned char ERROR_CODE_GBT_BSM_CHARGE_ALLOW_00_10MIN_COUUNTDONE :1; //bit 7
  1477. //InfoVal[30]
  1478. unsigned char ERROR_CODE_GBT_WAIT_GROUNDFAULT_TIMEOUT :1; //bit 0
  1479. unsigned char ERROR_CODE_GBT_ADC_MORE_THAN_10V :1; //bit 1
  1480. unsigned char ERROR_CODE_GBT_ADC_MORE_THAN_60V :1; //bit 2
  1481. unsigned char ERROR_CODE_GBT_CHARGER_GET_NORMAL_STOP_CMD :1; //bit 3
  1482. unsigned char ERROR_CODE_GBT_CHARGER_GET_EMERGENCY_STOP_CMD :1; //bit 4
  1483. unsigned char ERROR_CODE_GBT_ISOLATION_RESULT_FAIL :1; //bit 5
  1484. unsigned char ERROR_CODE_GBT_MOTHER_BOARD_MISS_LINK :1; //bit 6
  1485. unsigned char ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_LIMIT :1; //bit 7
  1486. //InfoVal[31]
  1487. unsigned char ERROR_CODE_GBT_REQ_CURRENT_MORE_THAN_LIMIT :1; //bit 0
  1488. unsigned char ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_10_PERCENT :1; //bit 1
  1489. unsigned char ERROR_CODE_GBT_OUTPUT_VOLTAGE_DIFF_BCS_5_PERCENT :1; //bit 2
  1490. unsigned char ERROR_CODE_GBT_STOP_ADC_MORE_THAN_10V :1; //bit 3
  1491. unsigned char :4; //bit 4 ~ 7 reserved
  1492. //InfoVal[32]
  1493. unsigned char :6; //bit 0 ~ 5 reserved
  1494. unsigned char ERROR_CODE_CEM_BHM_TIMEOUT :1; //bit 6
  1495. unsigned char ERROR_CODE_CEM_BRM_TIMEOUT :1; //bit 7
  1496. //InfoVal[33]
  1497. unsigned char ERROR_CODE_CEM_BCP_TIMEOUT :1; //bit 0
  1498. unsigned char ERROR_CODE_CEM_BRO_TIMEOUT :1; //bit 1
  1499. unsigned char ERROR_CODE_CEM_BCL_TIMEOUT :1; //bit 2
  1500. unsigned char ERROR_CODE_CEM_BCS_TIMEOUT :1; //bit 3
  1501. unsigned char ERROR_CODE_CEM_BSM_TIMEOUT :1; //bit 4
  1502. unsigned char ERROR_CODE_CEM_BST_TIMEOUT :1; //bit 5
  1503. unsigned char ERROR_CODE_CEM_BSD_TIMEOUT :1; //bit 6
  1504. unsigned char ERROR_CODE_CEM_BEM_OTHER_TIMEOUT :1; //bit 7
  1505. //InfoVal[34]
  1506. unsigned char ERROR_CODE_BEM_CRM_TIMEOUT :1; //bit 0
  1507. unsigned char ERROR_CODE_BEM_CRMAA_TIMEOUT :1; //bit 1
  1508. unsigned char ERROR_CODE_BEM_CTS_CML_TIMEOUT :1; //bit 2
  1509. unsigned char ERROR_CODE_BEM_CRO_TIMEOUT :1; //bit 3
  1510. unsigned char ERROR_CODE_BEM_CCS_TIMEOUT :1; //bit 4
  1511. unsigned char ERROR_CODE_BEM_CST_TIMEOUT :1; //bit 5
  1512. unsigned char ERROR_CODE_BEM_CSD_TIMEOUT :1; //bit 6
  1513. unsigned char ERROR_CODE_BEM_BEM_OTHER_TIMEOUT :1; //bit 7
  1514. //InfoVal[35]
  1515. unsigned char :2; //bit 0 ~ 1
  1516. unsigned char ERROR_CODE_BST_SOC_GOAL :1; //bit 2
  1517. unsigned char ERROR_CODE_BST_TOTAL_VOLTAGE_GOAL :1; //bit 3
  1518. unsigned char ERROR_CODE_BST_CELL_VOLTAGE_GOAL :1; //bit 4
  1519. unsigned char ERROR_CODE_BST_GET_CST :1; //bit 5
  1520. unsigned char ERROR_CODE_BST_ISOLATION :1; //bit 6
  1521. unsigned char ERROR_CODE_BST_OUTPUT_CONNECTOR_OTP :1; //bit 7
  1522. //InfoVal[36]
  1523. unsigned char ERROR_CODE_BST_COMPONENT :1; //bit 0
  1524. unsigned char ERROR_CODE_BST_CHARGE_CONNECTOR :1; //bit 1
  1525. unsigned char ERROR_CODE_BST_OTP :1; //bit 2
  1526. unsigned char ERROR_CODE_BST_OTHER :1; //bit 3
  1527. unsigned char ERROR_CODE_BST_HIGH_V :1; //bit 4
  1528. unsigned char ERROR_CODE_BST_CC2 :1; //bit 5
  1529. unsigned char ERROR_CODE_BST_CURRENT :1; //bit 6
  1530. unsigned char ERROR_CODE_BST_VOLTAGE :1; //bit 7
  1531. //InfoVal[37]
  1532. unsigned char ERROR_CODE_GET_BST_NO_REASON :1; //bit 0
  1533. unsigned char :5; //bit 1 ~ 5 reserved
  1534. unsigned char ERROR_CODE_BSM_CELL_OVER_VOLTAGE :1; //bit 6
  1535. unsigned char ERROR_CODE_BSM_CELL_UNDER_VOLTAGE :1; //bit 7
  1536. //InfoVal[38]
  1537. unsigned char ERROR_CODE_BSM_OVER_SOC :1; //bit 0
  1538. unsigned char ERROR_CODE_BSM_UNDER_SOC :1; //bit 1
  1539. unsigned char ERROR_CODE_BSM_CURRENT :1; //bit 2
  1540. unsigned char ERROR_CODE_BSM_TEMPERATURE :1; //bit 3
  1541. unsigned char ERROR_CODE_BSM_ISOLATE :1; //bit 4
  1542. unsigned char ERROR_CODE_BSM_OUTPUT_CONNECTOR :1; //bit 5
  1543. unsigned char :2; //bit 6 ~ 7 reserved
  1544. //InfoVal[39]
  1545. unsigned char BackendDisconnectedViaEthernet:1; //bit 0
  1546. unsigned char BackendDisconnectViaWiFi:1; //bit 1
  1547. unsigned char BackendDisconnectVia4G:1; //bit 2
  1548. unsigned char BackendRemoteStart:1; //bit 3
  1549. unsigned char BackendRemoteStop:1; //bit 4
  1550. unsigned char BackendRemoteReset:1; //bit 5
  1551. unsigned char :2; //bit 6 ~ 7 reserved
  1552. }bits;
  1553. }InfoEvents;
  1554. };
  1555. struct StatusCodeData
  1556. {
  1557. struct FaultCodeData FaultCode;
  1558. struct AlarmCodeData AlarmCode;
  1559. struct InfoCodeData InfoCode;
  1560. };
  1561. /**************************************************************************************/
  1562. /**************************PSU Share memory***************************************/
  1563. /**************************************************************************************/
  1564. struct PsuModuleVer
  1565. {
  1566. unsigned char FwPrimaryVersion[16];
  1567. unsigned char FwSecondVersion[16];
  1568. };
  1569. /*Following are the information for each PSU module*/
  1570. struct PsuModuleData
  1571. {
  1572. unsigned char AssignID;
  1573. unsigned char PhysicalID;
  1574. unsigned char GroupID;
  1575. unsigned char Address;
  1576. unsigned char FireWireIndex;
  1577. unsigned char FwVersion[16];
  1578. unsigned char SerialNumber[32];
  1579. unsigned char StateMachine; //0: Identification, 1:Operation, 2: Alarm, 3: Failure, s4:Upgrade
  1580. unsigned char OutputPowerSwitch; //0: D.D normal OFF, 1: D.D emergency OFF, 2: D.D ON
  1581. unsigned short FanSpeed_1; //RPM
  1582. unsigned short FanSpeed_2; //RPM
  1583. unsigned short FanSpeed_3; //RPM
  1584. unsigned short FanSpeed_4; //RPM
  1585. unsigned short InputVoltage_Type; //0x00 = Line to Line Vol, 0x01 = Line to Neutral Vol
  1586. unsigned short InputVoltageL1; //abcd=abc.d volt
  1587. unsigned short InputVoltageL2; //abcd=abc.d volt
  1588. unsigned short InputVoltageL3; //abcd=abc.d volt
  1589. unsigned short InputCurrentL1; //abcd=abc.d amp
  1590. unsigned short InputCurrentL2; //abcd=abc.d amp
  1591. unsigned short InputCurrentL3; //abcd=abc.d amp
  1592. unsigned short PresentOutputVoltage; //abcd=abc.d volt
  1593. unsigned short PresentOutputCurrent; //abcd=abc.d amp
  1594. unsigned short AvailableCurrent; //abcd=abc.d amp
  1595. unsigned int AvailablePower; //Watt
  1596. char CriticalTemp1; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1597. char CriticalTemp2; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1598. char CriticalTemp3; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1599. char ExletTemp; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1600. char InletTemp_1; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1601. char InletTemp_2; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1602. char InletTemp; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1603. char OutletTemp; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1604. unsigned int AlarmCode;
  1605. unsigned int FaultCode; //
  1606. unsigned int IAvailableCurrent; //abcd=abc.d amp
  1607. };
  1608. /*Following are the information for each PSU Group*/
  1609. struct PsuGroupData
  1610. {
  1611. unsigned char GroupPresentPsuQuantity;
  1612. unsigned char GroupOutputPowerSwitch; //0: D.D normal OFF, 1: D.D emergency OFF, 2: D.D ON
  1613. unsigned short GroupTargetOutputVoltage; //abcd=abc.d volt
  1614. unsigned short GroupTargetOutputCurrent; //abcd=abc.d amp
  1615. unsigned short GroupAvailableCurrent; //abcd=abc.d amp
  1616. unsigned int GroupAvailablePower; //Watt
  1617. unsigned short GroupPresentOutputVoltage; //abcd=abc.d volt
  1618. unsigned short GroupPresentOutputCurrent; //abcd=abc.d Amps
  1619. struct PsuModuleData PsuModule[MAX_PSU_QUANTITY];
  1620. };
  1621. /*Following is the information for system all PSU*/
  1622. struct PsuData
  1623. {
  1624. unsigned char SystemPresentPsuQuantity;
  1625. unsigned short SystemAvailableCurrent; //abcd=abc.d amp
  1626. unsigned int SystemAvailablePower; //Watt
  1627. struct PsuGroupData PsuGroup[4];
  1628. unsigned char GroupCount;
  1629. unsigned char Work_Step;
  1630. struct PsuModuleVer PsuVersion[MAX_PSU_QUANTITY];
  1631. };
  1632. /************************************************************************************/
  1633. /**************************CHAdeMO protocol Share memory*********************/
  1634. /**************************************************************************************/
  1635. struct CHAdeMOEvData
  1636. {
  1637. unsigned char SupportDynamicControl; //110.0
  1638. // bit0=1:supported
  1639. unsigned char SupportHighCurrent; //110.0
  1640. // bit1=1:supported
  1641. unsigned char MiniChargeCurrent; //100.0 0~200(A) (unit:1A)
  1642. // 0x00: request for current equivalent to 1.5kW
  1643. // 0x01: no request
  1644. // 0x02: request of 1A and following are the same rule
  1645. unsigned short MaxiBatteryVoltage; //100.5,100.4 0~600(V) (unit:1V)
  1646. unsigned short MaxiChargingTime; //101.2,101.1 10(sec.)~255(min.) (Unit:sec)
  1647. // Set 0xFF to 101.1 (Unit: 10sec) in case 101.2 (Unit: 1min) is used
  1648. unsigned char EstimatChargingTime; //101.3 0~254(min.) (Unit:sec)
  1649. // Display Only
  1650. unsigned short TotalBatteryCapacity; //101.6,101.5 0.1~6553.5(kWh) (unit:0.1 kWh)
  1651. unsigned char ProtocolVersion; //102.0 0~255
  1652. // 0x02: CHAdeMO specification ver.1.2
  1653. unsigned short TargetBatteryVoltage; //102.2,102.1 0~600(V) (unit:1V)
  1654. unsigned short ChargingCurrentRequest; //102.3 0~200(A) (unit:1A)
  1655. //110.2,110.1 0~1023(A) (unit:1A)
  1656. unsigned char BatteryAlarm; //102.4 >0:alarm
  1657. // bit0=1:Battery overvoltage
  1658. // bit1=1:Battery undervoltage
  1659. // bit2=1:Battery current deviation error
  1660. // bit3=1:High battery temperature
  1661. // bit4=1:Battery voltage deviation error
  1662. unsigned char EvDetection; //102.5
  1663. // bit0=0:Vehicle charging disabled, (stop charging)
  1664. // bit0=1:Vehicle charging enabled,
  1665. // bit1=0:¡§Parking¡¨ position
  1666. // bit1=1:other position (stop charging)
  1667. // bit2=0:Charging system normal
  1668. // bit2=1:Charging system error (stop charging)
  1669. // bit3=0:EV contactor close or during welding detection
  1670. // bit3=1:EV contactor open or termination of welding detection (stop charging)
  1671. // bit4=0:No stop request before charging
  1672. // bit4=1:Normal stop request before charging (stop charging)
  1673. unsigned char SOC; //102.6 0~100(%) (unit:%)
  1674. // Display Only
  1675. unsigned char Communicating; // it is true if receive EV CAN message within every 1500ms
  1676. unsigned char PresentMsgFlowStatus; //
  1677. };
  1678. struct CHAdeMOEvseData
  1679. {
  1680. unsigned char SelfTest_Comp;
  1681. unsigned char version[16]; //Chademo firmware version
  1682. unsigned char SupportDynamicControl; //118.0
  1683. // bit0=1:supported
  1684. unsigned char SupportHighCurrent; //118.0
  1685. // bit1=1:supported
  1686. unsigned short AvailableOutputVoltage; //108.2,108.1 0~600(V) (unit:1V)
  1687. unsigned short AvailableOutputCurrent; //108.3 0~255(A) (unit:1A)
  1688. //118.2,118.1 0~1023(A) (unit:1A)
  1689. unsigned short ThresholdVoltage; //108.5,108.4 0~600(V) (unit:1V)
  1690. unsigned char ConnectorTemperatureP; //108.6 -40~215(degC) (unit:degC) //value 0=-40 [NISSAN customized]
  1691. unsigned char ConnectorTemperatureN; //108.7 -40~215(degC) (unit:degC) //value 0=-40 [NISSAN customized]
  1692. unsigned char ProtocolVersion; //109.0 0~255
  1693. // 0x00: CHAdeMO specification 0.9 and earlier
  1694. // 0x01: CHAdeMO specification 0.9 and 0.9.1
  1695. // 0x02: CHAdeMO specification 1.0.0, 1.0.1, 1.1 and 1.2
  1696. unsigned short PresentOutputVoltage; //109.2,109.1 0~600(V) (unit:1V)
  1697. unsigned short PresentOutputCurrent; //109.3 0~255(A) (unit:1A)
  1698. //118.4,118.3 0~1023(A) (unit:1A)
  1699. unsigned char EvseDetection; //109.5
  1700. // bit0=0:not charging state now
  1701. // bit0=1:charging state now
  1702. // bit1=0:EVSE normal
  1703. // bit1=1:EVSE error
  1704. // bit2=0:Not Energizing state
  1705. // bit2=1:Energizing state
  1706. // bit3=0:No Battery incompatibility
  1707. // bit3=1:Battery incompatibility
  1708. // bit4=0:No Charging system error
  1709. // bit4=1:Charging system error
  1710. // bit5=0:No Charging stop control
  1711. // bit5=1:Charging stop control
  1712. unsigned short RemainChargingTime; //109.7,109.6 10(sec.)~255(min.) (Unit:sec)
  1713. // Set 0xFF to 109.6 (Unit: 10sec) in case 109.7 (Unit: 1min) is used
  1714. unsigned char HighPowerCondition; //118.5
  1715. // bit0=0:Present charging current H¡¦118.3,H¡¦118.4¡¨ is less than or equal to rated current of a charging cable
  1716. // bit0=1:Present charging current H¡¦118.3,H¡¦118.4¡¨ is exceeds to rated current of a charging cable
  1717. // bit1=1:charging cable Cooling function Operating Installed
  1718. // bit2=1:charging cable Current limiting function
  1719. // bit3=1:charging connector Cooling function Operating
  1720. // bit4=1:charging connector Current limiting function Installed
  1721. // bit5=1:charging connector Over-temperature protection Installed
  1722. // bit6=1:Functional safety Applied
  1723. unsigned int MaxiGroupPower; // XXXXXXXX (Unit:Watt)depend on which group to be used
  1724. unsigned int MaxiGroupCurrent; // XXXXXXXX (unit:1A)depend on which group to be used
  1725. unsigned short ApplyOutputVoltage; // 0~600(V) (unit:1V)
  1726. unsigned short ElapseChargingTime; // (Unit:sec)
  1727. unsigned short ElapseEnergy; // (Unit:10xkWh)
  1728. unsigned char EvboardStatus; // 0 : init
  1729. };
  1730. struct CHAdeMOData
  1731. {
  1732. struct CHAdeMOEvData ev[CHAdeMO_QUANTITY];
  1733. struct CHAdeMOEvseData evse[CHAdeMO_QUANTITY];
  1734. };
  1735. /************************************************************************************/
  1736. /**************************GBT protocol Share memory*********************/
  1737. /**************************************************************************************/
  1738. struct GBTEvData
  1739. {
  1740. unsigned short MaxiBatteryVoltage; // 0~600(V) (unit:1V)
  1741. unsigned short MaxiChargingTime; // 10(sec.)~255(min.) (Unit:sec)
  1742. unsigned char EstimatChargingTime; // 0~254(min.) (Unit:sec)
  1743. unsigned short TotalBatteryCapacity; // 0.1~6553.5(kWh) (unit:0.1 kWh)
  1744. unsigned char ProtocolVersion; // 0~255
  1745. unsigned short TargetBatteryVoltage; // 0~600(V) (unit:1V)
  1746. unsigned short ChargingCurrentRequest; // 0~200(A) (unit:1A)
  1747. // 0~1023(A) (unit:1A)
  1748. unsigned char EvDetection; //102.5
  1749. // bit0=0:Vehicle charging disabled, (stop charging)
  1750. // bit0=1:Vehicle charging enabled,
  1751. // bit1=0:¡§Parking¡¨ position
  1752. // bit1=1:other position (stop charging)
  1753. // bit2=0:Charging system normal
  1754. // bit2=1:Charging system error (stop charging)
  1755. // bit3=0:EV contactor close or during welding detection
  1756. // bit3=1:EV contactor open or termination of welding detection (stop charging)
  1757. // bit4=0:No stop request before charging
  1758. // bit4=1:Normal stop request before charging (stop charging)
  1759. unsigned char SOC; //102.6 0~100(%) (unit:%)
  1760. // Display Only
  1761. unsigned char PresentMsgFlowStatus; //
  1762. };
  1763. struct GBTEvseData
  1764. {
  1765. unsigned char SelfTest_Comp;
  1766. unsigned char version[16]; // GBT firmware version
  1767. unsigned short AvailableOutputVoltage; // 0~600(V) (unit:1V)
  1768. unsigned short AvailableOutputCurrent; // 0~255(A) (unit:1A)
  1769. unsigned char ConnectorTemperatureP; // -40~215(degC) (unit:degC) //value 0=-40 [NISSAN customized]
  1770. unsigned char ConnectorTemperatureN; // -40~215(degC) (unit:degC) //value 0=-40 [NISSAN customized]
  1771. unsigned short PresentOutputVoltage; // 0~600(V) (unit:1V)
  1772. unsigned short PresentOutputCurrent; // 0~255(A) (unit:1A)
  1773. unsigned short RemainChargingTime; //109.7,109.6 10(sec.)~255(min.) (Unit:sec)
  1774. unsigned char EvboardStatus; // 0 : init
  1775. };
  1776. struct GBTData
  1777. {
  1778. struct GBTEvData ev[GB_QUANTITY];
  1779. struct GBTEvseData evse[GB_QUANTITY];
  1780. };
  1781. /************************************************************************************/
  1782. /**************************CCS protocol Share memory***************************/
  1783. /**************************DIN70121: 201412***************************************/
  1784. /**************************ISO15118_2014: 2014************************************/
  1785. /**************************ISO15118_2018: 2018************************************/
  1786. /************************************************************************************/
  1787. typedef enum boolean { FALSE, TRUE } BOOL;
  1788. enum ResponseCodeType_DIN70121 { OK_DIN70121 = 0, OK_NewSessionEstablished_DIN70121 = 1, OK_OldSessionJoined_DIN70121 = 2, OK_CertificateExpiresSoon_DIN70121 = 3,
  1789. FAILED_DIN70121 = 4, FAILED_SequenceError_DIN70121 = 5, FAILED_ServiceIDInvalid_DIN70121 = 6, FAILED_UnknownSession_DIN70121 = 7,
  1790. FAILED_ServiceSelectionInvalid_DIN70121 = 8, FAILED_PaymentSelectionInvalid_DIN70121 = 9, FAILED_CertificateExpired_DIN70121 = 10,
  1791. FAILED_SignatureError_DIN70121 = 11, FAILED_NoCertificateAvailable_DIN70121 = 12, FAILED_CertChainError_DIN70121 = 13, FAILED_ChallengeInvalid_DIN70121 = 14,
  1792. FAILED_ContractCanceled_DIN70121 = 15, FAILED_WrongChargeParameter_DIN70121 = 16, FAILED_PowerDeliveryNotApplied_DIN70121 = 17,
  1793. FAILED_TariffSelectionInvalid_DIN70121 = 18, FAILED_ChargingProfileInvalid_DIN70121 = 19, FAILED_EVSEPresentVoltageToLow_DIN70121 = 20,
  1794. FAILED_MeteringSignatureNotValid_DIN70121 = 21, FAILED_WrongEnergyTransferType_DIN70121 = 22};
  1795. enum ResponseCodeType_ISO15118_2014 { OK_ISO15118_2014 = 0, OK_NewSessionEstablished_ISO15118_2014 = 1, OK_OldSessionJoined_ISO15118_2014 = 2, OK_CertificateExpiresSoon_ISO15118_2014 = 3,
  1796. FAILED_ISO15118_2014 = 4, FAILED_SequenceError_ISO15118_2014 = 5, FAILED_ServiceIDInvalid_ISO15118_2014 = 6, FAILED_UnknownSession_ISO15118_2014 = 7,
  1797. FAILED_ServiceSelectionInvalid_ISO15118_2014 = 8, FAILED_PaymentSelectionInvalid_ISO15118_2014 = 9, FAILED_CertificateExpired_ISO15118_2014 = 10,
  1798. FAILED_SignatureError_ISO15118_2014 = 11, FAILED_NoCertificateAvailable_ISO15118_2014 = 12, FAILED_CertChainError_ISO15118_2014 = 13, FAILED_ChallengeInvalid_ISO15118_2014 = 14,
  1799. FAILED_ContractCanceled_ISO15118_2014 = 15, FAILED_WrongChargeParameter_ISO15118_2014 = 16, FAILED_PowerDeliveryNotApplied_ISO15118_2014 = 17,
  1800. FAILED_TariffSelectionInvalid_ISO15118_2014 = 18, FAILED_ChargingProfileInvalid_ISO15118_2014 = 19, FAILED_MeteringSignatureNotValid_ISO15118_2014 = 20,
  1801. FAILED_NoChargeServiceSelected_ISO15118_2014 = 21, FAILED_WrongEnergyTransferMode_ISO15118_2014 = 22, FAILED_ContactorError_ISO15118_2014 = 23,
  1802. FAILED_CertificateNotAllowedAtThisEVSE_ISO15118_2014 = 24, FAILED_CertificateRevoked_ISO15118_2014 = 25 };
  1803. enum ResponseCodeType_ISO15118_2018 { OK_ISO15118_2018 = 0, OK_NewSessionEstablished_ISO15118_2018 = 1, OK_OldSessionJoined_ISO15118_2018 = 2, OK_CertificateExpiresSoon_ISO15118_2018 = 3,
  1804. OK_IsolationValid_ISO15118_2018 = 4, OK_IsolationWarning_ISO15118_2018 = 5, WARNING_CertificateExpired_ISO15118_2018 = 6, WARNING_NoCertificateAvailable_ISO15118_2018 = 7,
  1805. WARNING_CertValidationError_ISO15118_2018 = 8, WARNING_CertVerificationError_ISO15118_2018 = 9, WARNING_ContractCanceled_ISO15118_2018 = 10,
  1806. FAILED_ISO15118_2018 = 11, FAILED_SequenceError_ISO15118_2018 = 12, FAILED_ServiceIDInvalid_ISO15118_2018 = 13, FAILED_UnknownSession_ISO15118_2018 = 14,
  1807. FAILED_ServiceSelectionInvalid_ISO15118_2018 = 15, FAILED_SignatureError_ISO15118_2018 = 16, FAILED_IdentificationSelectionInvalid_ISO15118_2018 = 17,
  1808. FAILED_ChallengeInvalid_ISO15118_2018 = 18, FAILED_WrongChargeParameter_ISO15118_2018 = 19, FAILED_IsolationFault_ISO15118_2018 = 20,
  1809. FAILED_PowerDeliveryNotApplied_ISO15118_2018 = 21, FAILED_TariffSelectionInvalid_ISO15118_2018 = 22, FAILED_ChargingProfileInvalid_ISO15118_2018 = 23,
  1810. FAILED_MeteringSignatureNotValid_ISO15118_2018 = 24, FAILED_NoChargeServiceSelected_ISO15118_2018 = 25, FAILED_WrongEnergyTransferMode_ISO15118_2018 = 26,
  1811. FAILED_ContactorError_ISO15118_2018 = 27, FAILED_CertificateRevoked_ISO15118_2018 = 28, FAILED_CertificateNotYetValid_ISO15118_2018 = 29 };
  1812. enum EVSENotificationType { None = 0, StopCharging = 1, ReNegotiation = 2};
  1813. enum ServiceCategoryType { EVCharging = 0, Internet = 1, ContractCertificate = 2, OtherCustom = 3};
  1814. enum PaymentOptionType { Contract = 0, ExternalPayment = 1};
  1815. /*enum EVSESupportedEnergyTransferType { AC_single_phase_core = 0, AC_three_phase_core = 1, DC_core = 2, DC_extended = 3,
  1816. DC_combo_core = 4, DC_dual = 5, AC_core1p_DC_extended = 6, AC_single_DC_core = 7,
  1817. AC_single_phase_three_phase_core_DC_extended = 8, AC_core3p_DC_extended = 9};*/
  1818. enum EnergyTransferModeType { AC_single_phase_core = 0, AC_three_phase_core = 1, DC_core = 2, DC_extended = 3,
  1819. DC_combo_core = 4, DC_unique = 5};
  1820. //enum identificationOptionType { Contract = 0, ExternalIdentification = 1};
  1821. 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};
  1822. 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};
  1823. enum ProcessingType { Finished = 0, Ongoing = 1, Ongoing_WaitingForCustomerInteraction = 2};
  1824. enum EVSEProcessingType_DIN70121 { Finished_DIN70121 = 0, Ongoing_DIN70121 = 1};
  1825. enum EVSEProcessingType_ISO15118_2014 { Finished_ISO15118_2014 = 0, Ongoing_ISO15118_2014 = 1, Ongoing_WaitingForCustomerInteraction_ISO15118_2014=2 };
  1826. enum DC_EVErrorCodeType { NO_ERROR = 0, FAILED_RESSTemperatureInhibit = 1, FAILED_EVShiftPosition = 2, FAILED_ChargerConnectorLockFault = 3,
  1827. FAILED_EVRESSMalfunction = 4, FAILED_ChargingCurrentdifferential = 5, FAILED_ChargingVoltageOutOfRange = 6,
  1828. Reserved_A = 7, Reserved_B = 8, Reserved_C = 9, FAILED_ChargingSystemIncompatibility = 10, NoData = 11};
  1829. enum IsolationLevelType_DIN70121 { Invalid_DIN70121 = 0, Valid_DIN70121 = 1, Warning_DIN70121 = 2, Fault_DIN70121 = 3};
  1830. 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};
  1831. enum DC_EVSEStatusCodeType { EVSE_NotReady = 0, EVSE_Ready = 1, EVSE_Shutdown = 2, EVSE_UtilityInterruptEvent = 3,
  1832. EVSE_IsolationMonitoringActive = 4, EVSE_EmergencyShutdown = 5, EVSE_Malfunction = 6,
  1833. Reserved_8 = 7, Reserved_9 = 8};
  1834. enum ScheduleOriginType { EV = 0, SA = 1};
  1835. enum ChargeProgressType_ISO15118_2014 {start_ISO15118_2014 = 0, Stop_ISO15118_2014 = 1, Renegotiate_ISO15118_2014 = 2};
  1836. enum ChargeProgressType_ISO15118_2018 {start_ISO15118_2018 = 0, Renegotiate_ISO15118_2018 = 1, Standby_ISO15118_2018 = 2, Stop_ISO15118_2018 = 3};
  1837. enum evOperationType {Charge = 0, Discharge = 1, Standby = 2};
  1838. enum mechanicalChargingDeviceStatusType {Home = 0, Moving = 1, EndPosition = 2};
  1839. enum EV_CP_StatusType {A = 0, B = 1, C = 2, D = 3, E = 4, F = 5};
  1840. enum EV_Error_Status_CodeType { No_EV_Error = 0, EV_FAILED_EmergencyEvent = 1, EV_FAILED_Breaker = 2, EV_FAILED_RESSTemperatureInhibit = 3,
  1841. EV_FAILED_RESS = 4, EV_FAILED_ChargingCurrentDifferential = 5, EV_FAILED_ChargingVoltageOutOfRange = 6,
  1842. Reserved_by_ISO_1 = 7, Reserved_by_ISO_2 = 8, Reserved_by_ISO_3 = 9, OEM1 = 10,
  1843. OEM2 = 11, OEM3 = 12, OEM4 = 13};
  1844. enum IsolationStatusType { Invalid = 0, Safe = 1, Warning = 2, Fault = 3};
  1845. enum ChargingSessionType { Terminate = 0, Pause = 1};
  1846. enum CostKindType { relativePricePercentage = 0, RenewableGenerationPercentage = 1, CarbonDioxideEmission = 2};
  1847. struct PhysicalValueType_DIN70121 //The final physical value is determined by: Value * 10 ^ Multiplier [Unit]
  1848. {
  1849. int Multiplier; //range: -3..+3
  1850. enum unitSymbolType_DIN70121 Unit;
  1851. short Value;
  1852. };
  1853. struct PhysicalValueType_ISO15118_2014 //The final physical value is determined by: Value * 10 ^ Multiplier [Unit]
  1854. {
  1855. int Multiplier; //range: -3..+3
  1856. enum unitSymbolType_ISO15118_2014 Unit;
  1857. short Value;
  1858. };
  1859. struct PhysicalValueType_ISO15118_2018 //The final physical value is determined by: Value * 10 ^ Exponent [Unit]
  1860. {
  1861. int Exponent; //range: -3..+3
  1862. short Value;
  1863. };
  1864. struct AppProtocolType
  1865. {
  1866. unsigned char ProtocolNamespace[100];
  1867. unsigned int VersionNumberMajor;
  1868. unsigned int VersionNumberMinor;
  1869. unsigned char SchemaID;
  1870. unsigned char Priority; //range 1..20
  1871. };
  1872. struct ACD_SSEnergyTransferModeType
  1873. {
  1874. unsigned char EVID[20];
  1875. };
  1876. struct EVSEStatusType
  1877. {
  1878. unsigned short NotificationMaxDelay; //in seconds
  1879. enum EVSENotificationType EVSENotification;
  1880. };
  1881. struct ServiceIDListType
  1882. {
  1883. unsigned short ServiceID[10]; //refer to chapter 8.6.2.1 Table 192
  1884. };
  1885. struct PaymentOptionListType
  1886. {
  1887. enum PaymentOptionType PaymentOption[2];
  1888. };
  1889. struct ServiceTagType
  1890. {
  1891. unsigned short ServiceID;
  1892. unsigned char ServiceName[32];//Optional Element
  1893. enum ServiceCategoryType ServiceCategory;
  1894. unsigned char ServiceScope[32];//Optional Element
  1895. };
  1896. struct ServiceType_DIN70121
  1897. {
  1898. struct ServiceTagType ServiceTag;
  1899. BOOL FreeService;
  1900. };
  1901. struct ServiceType_ISO15118_2014
  1902. {
  1903. unsigned short ServiceID;
  1904. unsigned char ServiceName[32]; //Optional
  1905. enum ServiceCategoryType ServiceCategory;
  1906. unsigned char ServiceScope[64]; //Optional
  1907. BOOL FreeService;
  1908. };
  1909. /*struct ServiceType_ISO15118_2018
  1910. {
  1911. unsigned short ServiceID;
  1912. BOOL FreeService;
  1913. }; */
  1914. struct SupportedEnergyTransferModeType
  1915. {
  1916. enum EnergyTransferModeType EnergyTransferMode[6];
  1917. };
  1918. struct ServiceChargeType
  1919. {
  1920. struct ServiceType_DIN70121 Services;
  1921. //enum EVSESupportedEnergyTransferType EnergyTransferType;
  1922. enum EnergyTransferModeType EnergyTransferType;
  1923. };
  1924. struct ChargeServiceType
  1925. {
  1926. struct ServiceType_ISO15118_2014 Services;
  1927. struct SupportedEnergyTransferModeType SupportedEnergyTransferMode;
  1928. };
  1929. struct ServiceListType
  1930. {
  1931. struct ServiceType_ISO15118_2014 Service[8];
  1932. };
  1933. struct IdentificationOptionListType
  1934. {
  1935. enum PaymentOptionType IdentificationOption[2];
  1936. };
  1937. struct ParameterType
  1938. {
  1939. unsigned char Name[32];
  1940. struct PhysicalValueType_ISO15118_2014 PhysicalValue_ISO15118_2014;
  1941. struct PhysicalValueType_ISO15118_2018 PhysicalValue_ISO15118_2018;
  1942. };
  1943. struct ParameterSetType
  1944. {
  1945. short ParameterSetID;
  1946. struct ParameterType Parameter[16];
  1947. };
  1948. struct ServiceParameterListType
  1949. {
  1950. struct ParameterSetType ParameterSet[255];
  1951. };
  1952. struct WPT_SDlEnergyTransferModeType
  1953. {
  1954. struct ServiceParameterListType ServiceParameterList;
  1955. };
  1956. struct SelectedServiceType
  1957. {
  1958. unsigned short ServiceID;
  1959. short ParameterSetID;
  1960. };
  1961. struct SelectedServiceListType
  1962. {
  1963. struct SelectedServiceType SelectedService[16];
  1964. };
  1965. struct CertificateChainType
  1966. {
  1967. unsigned char Id[32]; //Optional
  1968. unsigned char Certificate[800]; //check size again
  1969. unsigned char SubCertificates[4][800]; //Optional, check size again
  1970. };
  1971. struct PNC_AReqIdentificationModeType
  1972. {
  1973. unsigned char GenChallenge[16]; //DIN70121=> None, ISO15118_2014=>None, ISO15118_2018=>Optional
  1974. unsigned char Id[32]; //DIN70121=> None, ISO15118_2014=>None, ISO15118_2018=>Optional
  1975. };
  1976. struct AC_EVChargeParameterType
  1977. {
  1978. unsigned int DepartureTime; //Optional
  1979. struct PhysicalValueType_ISO15118_2014 EAmount;
  1980. struct PhysicalValueType_ISO15118_2014 EVMaxVoltage;
  1981. struct PhysicalValueType_ISO15118_2014 EVMaxCurrent;
  1982. struct PhysicalValueType_ISO15118_2014 EVMinCurrent;
  1983. };
  1984. struct DC_EVStatusType_DIN70121
  1985. {
  1986. BOOL EVReady;
  1987. BOOL EVCabinConditioning;
  1988. BOOL EVRESSConiditioning;
  1989. enum DC_EVErrorCodeType EVErrorCode;
  1990. unsigned char EVRESSSOC; /*0-100 percentage*/
  1991. };
  1992. struct DC_EVChargeParameterType_DIN70121
  1993. {
  1994. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  1995. struct PhysicalValueType_DIN70121 EVMaximumCurrentLimit;
  1996. struct PhysicalValueType_DIN70121 EVMaximumPowerLimit; //Optional
  1997. struct PhysicalValueType_DIN70121 EVMaximumVoltageLimit;
  1998. struct PhysicalValueType_DIN70121 EVEnergyCapacity; //Optional
  1999. struct PhysicalValueType_DIN70121 EVEnergyRequest; //Optional
  2000. unsigned char FullSOC;/*0-100 percentage*/ //Optional
  2001. unsigned char BulkSOC;/*0-100 percentage*/ //Optional
  2002. };
  2003. struct DC_EVStatusType_ISO15118_2014
  2004. {
  2005. BOOL EVReady;
  2006. enum DC_EVErrorCodeType EVErrorCode;
  2007. unsigned char EVRESSSOC; /*0-100 percentage*/
  2008. };
  2009. struct DC_EVChargeParameterType_ISO15118_2014
  2010. {
  2011. unsigned int DepartureTime; //Optional
  2012. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  2013. struct PhysicalValueType_ISO15118_2014 EVMaximumCurrentLimit;
  2014. struct PhysicalValueType_ISO15118_2014 EVMaximumPowerLimit; //Optional
  2015. struct PhysicalValueType_ISO15118_2014 EVMaximumVoltageLimit;
  2016. struct PhysicalValueType_ISO15118_2014 EVEnergyCapacity; //Optional
  2017. struct PhysicalValueType_ISO15118_2014 EVEnergyRequest; //Optional
  2018. unsigned char FullSOC;/*0-100 percentage*/ //Optional
  2019. unsigned char BulkSOC;/*0-100 percentage*/ //Optional
  2020. };
  2021. struct Dynamic_CPDReqControlModeType
  2022. {
  2023. unsigned int DepartureTime;
  2024. };
  2025. struct RelativeTimeIntervalType
  2026. {
  2027. unsigned int duration; //Optional
  2028. unsigned int start;
  2029. };
  2030. struct PMaxScheduleEntryType
  2031. {
  2032. struct RelativeTimeIntervalType RelativeTimeInterval;
  2033. unsigned short PMax;
  2034. };
  2035. struct PMaxScheduleType
  2036. {
  2037. unsigned short PMaxScheduleID; //no this itme in ISO15118_2014
  2038. struct PMaxScheduleEntryType PMaxScheduleEntry[1024];
  2039. };
  2040. struct CostType
  2041. {
  2042. unsigned int amount;
  2043. enum CostKindType costKind;
  2044. int amountMultiplier; //Optional , range: -3..+3
  2045. };
  2046. struct ConsumptionCostType
  2047. {
  2048. struct CostType Cost[3];
  2049. struct PhysicalValueType_ISO15118_2014 startValue;
  2050. };
  2051. struct SalesTariffEntryType
  2052. {
  2053. struct RelativeTimeIntervalType RelativeTimeInterval;
  2054. unsigned char EPriceLevel; //Optional
  2055. struct ConsumptionCostType ConsumptionCost[3]; //Optional
  2056. };
  2057. struct SalesTariffType
  2058. {
  2059. unsigned char Id[32]; //Optional
  2060. short SalesTariffID;
  2061. unsigned char SalesTariffDescription[32]; //Optional
  2062. unsigned char NumEPriceLevels; //Optional
  2063. struct SalesTariffEntryType SalesTariffEntry[1024];
  2064. };
  2065. struct SAScheduleTupleType
  2066. {
  2067. short SAScheduleTupleID;
  2068. struct PMaxScheduleType PMaxSchedule;
  2069. struct SalesTariffType SalesTariff; //Optional
  2070. };
  2071. struct ScheduleListType
  2072. {
  2073. enum ScheduleOriginType ScheduleOrigin;
  2074. struct SAScheduleTupleType ScheduleTuple[3];
  2075. };
  2076. struct Scheduled_CPDReqControlModeType
  2077. {
  2078. enum ProcessingType EVProcessing;
  2079. unsigned int DepartureTime; //Optional
  2080. unsigned short MaxSupportingPoints;
  2081. struct ScheduleListType ScheduleList; //Optional
  2082. };
  2083. struct AC_CPDReqEnergyTransferModeType
  2084. {
  2085. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  2086. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  2087. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  2088. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
  2089. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  2090. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  2091. struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
  2092. };
  2093. struct DC_CPDReqEnergyTransferModeType
  2094. {
  2095. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower; //Optional
  2096. struct PhysicalValueType_ISO15118_2018 EVMinimumChargePower; //Optional
  2097. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  2098. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  2099. struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
  2100. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  2101. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  2102. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  2103. unsigned char TargetSOC; //Optional
  2104. unsigned char BulkSOC; //Optional
  2105. };
  2106. struct BPT_AC_CPDReqEnergyTransferModeType
  2107. {
  2108. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
  2109. struct PhysicalValueType_ISO15118_2018 EVMaximumDischargePower;
  2110. struct PhysicalValueType_ISO15118_2018 EVMinimumDischargePower;
  2111. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  2112. struct PhysicalValueType_ISO15118_2018 EVMaximumDischargeCurrent;
  2113. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  2114. struct PhysicalValueType_ISO15118_2018 EVMinimumDischargeCurrent;
  2115. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  2116. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  2117. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  2118. struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
  2119. };
  2120. struct BPT_DC_CPDReqEnergyTransferModeType
  2121. {
  2122. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
  2123. struct PhysicalValueType_ISO15118_2018 EVMinimumChargePower;
  2124. struct PhysicalValueType_ISO15118_2018 EVMaximumDischargePower;
  2125. struct PhysicalValueType_ISO15118_2018 EVMinimumDischargePower;
  2126. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  2127. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  2128. struct PhysicalValueType_ISO15118_2018 EVMaximumDischargeCurrent;
  2129. struct PhysicalValueType_ISO15118_2018 EVMinimumDischargeCurrent;
  2130. struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
  2131. struct PhysicalValueType_ISO15118_2018 EVMinimumVoltage;
  2132. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest;
  2133. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest;
  2134. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest;
  2135. unsigned char TargetSOC; //Optional
  2136. unsigned char BulkSOC; //Optional
  2137. };
  2138. struct WPT_CPDReqEnergyTransferModeType
  2139. {
  2140. struct PhysicalValueType_ISO15118_2018 EVMaximumPower; //Optional
  2141. struct PhysicalValueType_ISO15118_2018 EVMinimumPower; //Optional
  2142. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  2143. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  2144. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  2145. };
  2146. struct ACD_CPDReqEnergyTransferModeType
  2147. {
  2148. //cannot be found in standard
  2149. };
  2150. struct SAScheduleListType
  2151. {
  2152. struct SAScheduleTupleType SAScheduleTuple[3];
  2153. };
  2154. struct DC_EVSEStatusType_DIN70121
  2155. {
  2156. enum IsolationLevelType_DIN70121 EVSEIsolationStatus; //Optional
  2157. enum DC_EVSEStatusCodeType EVSEStatusCode;
  2158. unsigned int NotificationMaxDelay;
  2159. enum EVSENotificationType EVSENotification;
  2160. };
  2161. struct DC_EVSEChargeParameterType_DIN70121
  2162. {
  2163. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  2164. struct PhysicalValueType_DIN70121 EVSEMaximumCurrentLimit;
  2165. struct PhysicalValueType_DIN70121 EVSEMaximumPowerLimit; //Optional
  2166. struct PhysicalValueType_DIN70121 EVSEMaximumVoltageLimit;
  2167. struct PhysicalValueType_DIN70121 EVSEMinimumCurrentLimit;
  2168. struct PhysicalValueType_DIN70121 EVSEMinimumVoltageLimit;
  2169. struct PhysicalValueType_DIN70121 EVSECurrentRegulationTolerance; //Optional
  2170. struct PhysicalValueType_DIN70121 EVSEPeakCurrentRipple;
  2171. struct PhysicalValueType_DIN70121 EVSEEnergyToBeDelivered; //Optional
  2172. };
  2173. struct AC_EVSEStatusType
  2174. {
  2175. BOOL RCD;
  2176. unsigned short NotificationMaxDelay;
  2177. enum EVSENotificationType EVSENotification; //need to be confirmed
  2178. };
  2179. struct AC_EVSEChargeParameterType
  2180. {
  2181. struct AC_EVSEStatusType AC_EVSEStatus;
  2182. struct PhysicalValueType_ISO15118_2014 EVSENominalVoltage;
  2183. struct PhysicalValueType_ISO15118_2014 EVSEMaxCurrent;
  2184. };
  2185. struct DC_EVSEStatusType_ISO15118_2014
  2186. {
  2187. unsigned short NotificationMaxDelay;
  2188. enum EVSENotificationType EVSENotification;
  2189. enum IsolationLevelType_ISO15118_2014 EVSEIsolationStatus; //Optional
  2190. enum DC_EVSEStatusCodeType DC_EVSEStatusCode;
  2191. };
  2192. struct DC_EVSEChargeParameterType_ISO15118_2014
  2193. {
  2194. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  2195. struct PhysicalValueType_ISO15118_2014 EVSEMaximumCurrentLimit;
  2196. struct PhysicalValueType_ISO15118_2014 EVSEMaximumPowerLimit;
  2197. struct PhysicalValueType_ISO15118_2014 EVSEMaximumVoltageLimit;
  2198. struct PhysicalValueType_ISO15118_2014 EVSEMinimumCurrentLimit;
  2199. struct PhysicalValueType_ISO15118_2014 EVSEMinimumVoltageLimit;
  2200. struct PhysicalValueType_ISO15118_2014 EVSECurrentRegulationTolerance; //Optional
  2201. struct PhysicalValueType_ISO15118_2014 EVSEPeakCurrentRipple;
  2202. struct PhysicalValueType_ISO15118_2014 EVSEEnergyToBeDelivered; //Optional
  2203. };
  2204. struct Scheduled_CPDResControlModeType
  2205. {
  2206. struct ScheduleListType ScheduleList;
  2207. };
  2208. struct AC_CPDResEnergyTransferModeType
  2209. {
  2210. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent[3];
  2211. struct PhysicalValueType_ISO15118_2018 EVSENominalVoltage;
  2212. struct PhysicalValueType_ISO15118_2018 EVSENominalFrequency;
  2213. };
  2214. struct DC_CPDResEnergyTransferModeType
  2215. {
  2216. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower;
  2217. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent;
  2218. struct PhysicalValueType_ISO15118_2018 EVSEMinimumChargeCurrent;
  2219. struct PhysicalValueType_ISO15118_2018 EVSEMaximumVoltage;
  2220. struct PhysicalValueType_ISO15118_2018 EVSEMinimumVoltage;
  2221. };
  2222. struct BPT_AC_CPDResEnergyTransferModeType
  2223. {
  2224. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent[3];
  2225. struct PhysicalValueType_ISO15118_2018 EVSEMaximumDischargeCurrent[3];
  2226. struct PhysicalValueType_ISO15118_2018 EVSENominalVoltage;
  2227. struct PhysicalValueType_ISO15118_2018 EVSENominalFrequency;
  2228. };
  2229. struct BPT_DC_CPDResEnergyTransferModeType
  2230. {
  2231. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower;
  2232. struct PhysicalValueType_ISO15118_2018 EVSEMaximumDischargePower;
  2233. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent;
  2234. struct PhysicalValueType_ISO15118_2018 EVSEMaximumDischargeCurrent;
  2235. struct PhysicalValueType_ISO15118_2018 EVSEMinimumChargeCurrent;
  2236. struct PhysicalValueType_ISO15118_2018 EVSEMinimumDischargeCurrent;
  2237. struct PhysicalValueType_ISO15118_2018 EVSEMaximumVoltage;
  2238. struct PhysicalValueType_ISO15118_2018 EVSEMinimumVoltage;
  2239. };
  2240. struct WPT_CPDResEnergyTransferModeType
  2241. {
  2242. struct PhysicalValueType_ISO15118_2018 EVSEMaximumPower;
  2243. struct PhysicalValueType_ISO15118_2018 EVSEMinimumPower;
  2244. };
  2245. struct ACD_CPDResEnergyTransferModeType
  2246. {
  2247. //not found in ISO15118_2018
  2248. };
  2249. struct ProfileEntryType_DIN70121
  2250. {
  2251. unsigned int ChargingProfileEntryStart;
  2252. short ChargingProfileEntryMaxPower;
  2253. };
  2254. struct ChargingProfileType_DIN70121
  2255. {
  2256. short SAScheduleTupleID;
  2257. struct ProfileEntryType_DIN70121 ProfileEntry[24];
  2258. };
  2259. struct DC_EVPowerDeliveryParameterType_DIN70121
  2260. {
  2261. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  2262. BOOL BulkChargingComplete; //Optional
  2263. BOOL ChargingComplete;
  2264. };
  2265. struct ProfileEntryType_ISO15118_2014
  2266. {
  2267. unsigned int ChargingProfileEntryStart;
  2268. struct PhysicalValueType_ISO15118_2018 ChargingProfileEntryMaxPower;
  2269. unsigned char ChargingProfileEntryMaxNumberOfPhasesInUse; //Optional
  2270. };
  2271. struct ChargingProfileType_ISO15118_2014
  2272. {
  2273. struct ProfileEntryType_ISO15118_2014 ProfileEntry[24];
  2274. };
  2275. struct DC_EVPowerDeliveryParameterType_ISO15118_2014
  2276. {
  2277. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  2278. BOOL BulkChargingComplete; //Optional
  2279. BOOL ChargingComplete;
  2280. };
  2281. struct TimeInterval
  2282. {
  2283. unsigned int start;
  2284. unsigned int duration; //Optional
  2285. };
  2286. struct PowerScheduleEntryType
  2287. {
  2288. struct TimeInterval TimeInterval;
  2289. struct PhysicalValueType_ISO15118_2018 Power[3];
  2290. };
  2291. struct EVPowerProfileType
  2292. {
  2293. struct PowerScheduleEntryType EVPowerProfileEntry[2048];
  2294. };
  2295. struct Scheduled_PDReqControlModeType
  2296. {
  2297. unsigned char ScheduleTupleID;
  2298. struct EVPowerProfileType EVPowerProfile;
  2299. };
  2300. struct BPT_Scheduled_PDReqControlModeType
  2301. {
  2302. unsigned char ScheduleTupleID;
  2303. struct EVPowerProfileType EVPowerProfile; //Optional
  2304. enum evOperationType EVOperation;
  2305. };
  2306. struct ListOfRootCertificateIDsType
  2307. {
  2308. unsigned char RootCertificateID[20][40];
  2309. };
  2310. struct ContractSignatureEncryptedPrivateKeyType
  2311. {
  2312. unsigned char Id[32];
  2313. };
  2314. struct DiffieHellmanPublickeyType
  2315. {
  2316. unsigned char Id[32];
  2317. };
  2318. struct ContractCertificateEncryptedPrivateKeyType
  2319. {
  2320. unsigned char Id[32];
  2321. };
  2322. struct EVTechnicalStatusType
  2323. {
  2324. BOOL EV_Status_ReadyToCharge;
  2325. BOOL EV_Status_ImmobilizationRequest; //Optional
  2326. BOOL EV_Status_Immobilized;
  2327. struct PhysicalValueType_ISO15118_2018 EV_Status_WLAN_Strength;
  2328. enum EV_CP_StatusType EV_CP_Status;
  2329. unsigned char EV_Status_RESSSOC; //0~100%
  2330. enum EV_Error_Status_CodeType EV_Error_Status_Code;
  2331. BOOL EVSE_Timeout;
  2332. };
  2333. struct MeterInfoType_ISO15118_2014
  2334. {
  2335. unsigned char MeterID[32];
  2336. unsigned long MeterReading; //Optional
  2337. unsigned char SigMeterReading[64]; //Optional
  2338. short MeterStatus; //Optional
  2339. short TMeter; //Optional
  2340. };
  2341. struct Scheduled_MRReqControlModeType
  2342. {
  2343. unsigned char ScheduleTupleID;
  2344. };
  2345. struct MeterInfoType_ISO15118_2018
  2346. {
  2347. unsigned char MeterID[32];
  2348. unsigned long MeterReadingWhCharged; //Optional
  2349. unsigned long MeterReadingWhDischarged; //Optional
  2350. unsigned long MeterReadingVARhLeading; //Optional
  2351. unsigned long MeterReadingVARhLagging; //Optional
  2352. unsigned char SignatureMeterReading[64]; //Optional
  2353. short MeterStatus; //Optional
  2354. short TimeStampMeter; //Optional
  2355. BOOL ReceiptRequired; //Optional
  2356. };
  2357. struct PnC_CLReqIdentificationModeType
  2358. {
  2359. BOOL MeteringReceiptRequested;
  2360. };
  2361. struct Dynamic_CSReqControlModeType
  2362. {
  2363. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest;
  2364. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest;
  2365. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest;
  2366. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
  2367. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  2368. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  2369. };
  2370. struct Scheduled_CSReqControlModeType
  2371. {
  2372. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  2373. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  2374. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  2375. BOOL Standby;
  2376. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower; //Optional
  2377. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent; //Optional
  2378. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent; //Optional
  2379. };
  2380. struct DisplayParametersType
  2381. {
  2382. unsigned short CurrentRange;
  2383. unsigned char CurrentSOC; //0~100%
  2384. unsigned char MinimumSOC; //0~100%
  2385. struct PhysicalValueType_ISO15118_2018 RemainingTimeToMaximumSOC;
  2386. struct PhysicalValueType_ISO15118_2018 RemainingTimeToTargetSOC;
  2387. struct PhysicalValueType_ISO15118_2018 RemainingTimeToBulkSOC;
  2388. struct PhysicalValueType_ISO15118_2018 RemainingTimeToMinimumSOC;
  2389. BOOL ChargingComplete;
  2390. BOOL BulkChargingComplete;
  2391. BOOL InletHot;
  2392. };
  2393. struct PnC_CLResIdentificationModeType
  2394. {
  2395. struct MeterInfoType_ISO15118_2018 MeterInfo;
  2396. };
  2397. struct Dynamic_CSResControlModeType
  2398. {
  2399. struct PhysicalValueType_ISO15118_2018 EVSETargetActivePower;
  2400. };
  2401. struct Scheduled_CDResControlModeType
  2402. {
  2403. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower; //Optional
  2404. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent; //Optional
  2405. struct PhysicalValueType_ISO15118_2018 EVSEMaximumVoltage; //Optional
  2406. };
  2407. struct LFA_EVFinePositioningSetupParametersType
  2408. {
  2409. unsigned char NumberOfSensors;
  2410. //NOT complete yet, to be continue.....
  2411. };
  2412. /****SupportedAppProtocolRequest****/
  2413. struct SupportedAppProtocolRequest_DIN70121
  2414. {
  2415. struct AppProtocolType AppProtocol[20];
  2416. };
  2417. struct SupportedAppProtocolRequest_ISO15118_2014
  2418. {
  2419. struct AppProtocolType AppProtocol[20];
  2420. };
  2421. struct SupportedAppProtocolRequest_ISO15118_2018
  2422. {
  2423. struct AppProtocolType AppProtocol[20];
  2424. };
  2425. /****SupportedAppProtocolResponse****/
  2426. struct SupportedAppProtocolResponse_DIN70121
  2427. {
  2428. enum ResponseCodeType_DIN70121 ResponseCode;
  2429. unsigned char SchemaID; //Optional
  2430. };
  2431. struct SupportedAppProtocolResponse_ISO15118_2014
  2432. {
  2433. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2434. unsigned char SchemaID; //Optional
  2435. };
  2436. struct SupportedAppProtocolResponse_ISO15118_2018
  2437. {
  2438. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2439. unsigned char SchemaID; //Optional
  2440. };
  2441. /****SessionSetupRequest****/
  2442. struct SessionSetupRequest_DIN70121
  2443. {
  2444. unsigned char EVCCID[8]; //the MAC address of the EVCC in Hex
  2445. };
  2446. struct SessionSetupRequest_ISO15118_2014
  2447. {
  2448. unsigned char EVCCID[8]; //the MAC address of the EVCC in Hex
  2449. };
  2450. struct SessionSetupRequest_ISO15118_2018
  2451. {
  2452. unsigned char EVCCID[8]; //the MAC address of the EVCC in Hex
  2453. struct ACD_SSEnergyTransferModeType ACD_SSEnergyTransferMode; //For ACD mandatory, optional for rest
  2454. };
  2455. /****SessionSetupResponse****/
  2456. struct SessionSetupResponse_DIN70121
  2457. {
  2458. enum ResponseCodeType_DIN70121 ResponseCode;
  2459. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  2460. unsigned int EVSETimeStamp; //EPOCH format, Optional
  2461. };
  2462. struct SessionSetupResponse_ISO15118_2014
  2463. {
  2464. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2465. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  2466. unsigned int EVSETimeStamp; //EPOCH format, Optional
  2467. };
  2468. struct SessionSetupResponse_ISO15118_2018
  2469. {
  2470. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2471. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  2472. struct EVSEStatusType EVSEStatus; //Optional
  2473. };
  2474. /****ServiceDiscoveryRequest****/
  2475. struct ServiceDiscoveryRequest_DIN70121
  2476. {
  2477. unsigned char ServiceScope[32]; //Optional
  2478. enum ServiceCategoryType ServiceCategory; //Optional
  2479. };
  2480. struct ServiceDiscoveryRequest_ISO15118_2014
  2481. {
  2482. unsigned char ServiceScope[32]; //Optional
  2483. enum ServiceCategoryType ServiceCategory; //Optional
  2484. };
  2485. struct ServiceDiscoveryRequest_ISO15118_2018
  2486. {
  2487. struct ServiceIDListType SupportedServiceIDs; //Optional
  2488. };
  2489. /****ServiceDiscoveryResponse****/
  2490. struct ServiceDiscoveryResponse_DIN70121
  2491. {
  2492. enum ResponseCodeType_DIN70121 ResponseCode;
  2493. struct PaymentOptionListType PaymentOptions;
  2494. struct ServiceChargeType ChargeService_DIN70121;
  2495. };
  2496. struct ServiceDiscoveryResponse_ISO15118_2014
  2497. {
  2498. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2499. struct PaymentOptionListType PaymentOptions;
  2500. struct ChargeServiceType ChargeService;
  2501. struct ServiceListType ServiceList; //Optional
  2502. };
  2503. struct ServiceDiscoveryResponse_ISO15118_2018
  2504. {
  2505. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2506. struct EVSEStatusType EVSEStatus; //Optional
  2507. struct IdentificationOptionListType IdentificationOptionList;
  2508. struct ServiceListType EnergyTransferServiceList;
  2509. struct ServiceListType VASList; //Optional
  2510. };
  2511. /****ServiceDetailRequest****/
  2512. //Only in ISO15118_2014 and ISO15118_2018
  2513. struct ServiceDetailRequest_ISO15118_2014
  2514. {
  2515. unsigned short ServiceID;
  2516. };
  2517. struct ServiceDetailRequest_ISO15118_2018
  2518. {
  2519. unsigned short ServiceID;
  2520. struct WPT_SDlEnergyTransferModeType WPT_SDlEnergyTransferMode;
  2521. };
  2522. /****ServiceDetailResponse****/
  2523. struct ServiceDetailResponse_ISO15118_2014
  2524. {
  2525. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2526. unsigned short ServiceID;
  2527. struct ServiceParameterListType ServiceParameterList;
  2528. };
  2529. struct ServiceDetailResponse_ISO15118_2018
  2530. {
  2531. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2532. unsigned short ServiceID;
  2533. struct ServiceParameterListType ServiceParameterList;
  2534. struct EVSEStatusType EVSEStatus; //Optional
  2535. };
  2536. /****ServiceAndPaymentSelectionRequest / ServiceSelectionRequest****/
  2537. struct ServiceAndPaymentSelectionRequest_DIN70121
  2538. {
  2539. enum PaymentOptionType SelectedPaymentOption;
  2540. struct SelectedServiceListType SelectedServiceList;
  2541. };
  2542. struct ServiceAndPaymentSelectionRequest_ISO15118_2014
  2543. {
  2544. enum PaymentOptionType SelectedPaymentOption;
  2545. struct SelectedServiceListType SelectedServiceList;
  2546. };
  2547. struct ServiceSelectionRequest_ISO15118_2018
  2548. {
  2549. enum PaymentOptionType SelectedPaymentOption;
  2550. struct SelectedServiceType SelectedEnergyTransferService;
  2551. struct SelectedServiceListType SelectedVASList;
  2552. enum ProcessingType EVProcessing;
  2553. };
  2554. /****ServiceAndPaymentSelectionResponse / ServiceSelectionResponse****/
  2555. struct ServiceAndPaymentSelectionResponse_DIN70121
  2556. {
  2557. enum ResponseCodeType_DIN70121 ResponseCode;
  2558. };
  2559. struct ServiceAndPaymentSelectionResponse_ISO15118_2014
  2560. {
  2561. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2562. };
  2563. struct ServiceSelectionResponse_ISO15118_2018
  2564. {
  2565. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2566. struct EVSEStatusType EVSEStatus; //Optional
  2567. };
  2568. /****PaymentDetailsRequest / IdentificationDetailsRequest****/
  2569. struct PaymentDetailsRequest_ISO15118_2014
  2570. {
  2571. unsigned char eMAID[16];
  2572. struct CertificateChainType ContractSignatureCertChain;
  2573. };
  2574. struct IdentificationDetailsRequest_ISO15118_2018
  2575. {
  2576. struct CertificateChainType ContractSignatureCertChain;
  2577. };
  2578. /****PaymentDetailsResponse / IdentificationDetailsResponse ****/
  2579. struct PaymentDetailsResponse_ISO15118_2014
  2580. {
  2581. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2582. unsigned char GenChallenge[16];
  2583. long EVSETimeStamp;
  2584. };
  2585. struct IdentificationDetailsResponse_ISO15118_2018
  2586. {
  2587. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2588. struct EVSEStatusType EVSEStatus; //Optional
  2589. unsigned char GenChallenge[16];
  2590. enum ProcessingType EVSEProcessing;
  2591. };
  2592. /****ContractAuthenticationRequest / AuthorizationRequest****/
  2593. struct ContractAuthenticationRequest_DIN70121
  2594. {
  2595. //None
  2596. };
  2597. struct AuthorizationRequest_ISO15118_2014
  2598. {
  2599. unsigned char GenChallenge[16]; //Optional
  2600. unsigned char Id[32]; //Optional
  2601. };
  2602. struct AuthorizationRequest_ISO15118_2018
  2603. {
  2604. struct PNC_AReqIdentificationModeType PNC_AReqIdentificationMode; //Optional
  2605. };
  2606. /****ContractAuthenticationResponse / AuthorizationResponse****/
  2607. struct ContractAuthenticationResponse_DIN70121
  2608. {
  2609. enum ResponseCodeType_DIN70121 ResponseCode;
  2610. enum EVSEProcessingType_DIN70121 EVSEProcessing;
  2611. };
  2612. struct AuthorizationResponse_ISO15118_2014
  2613. {
  2614. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2615. enum EVSEProcessingType_ISO15118_2014 EVSEProcessing;
  2616. };
  2617. struct AuthorizationResponse_ISO15118_2018
  2618. {
  2619. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2620. enum ProcessingType EVSEProcessing;
  2621. struct EVSEStatusType EVSEStatus; //Optional
  2622. };
  2623. /****ChargeParameterDiscoveryRequest****/
  2624. struct ChargeParameterDiscoveryRequest_DIN70121
  2625. {
  2626. enum EnergyTransferModeType EVRequestedEnergyTransferType;
  2627. struct DC_EVChargeParameterType_DIN70121 DC_EVChargeParameter;
  2628. };
  2629. struct ChargeParameterDiscoveryRequest_ISO15118_2014
  2630. {
  2631. unsigned short MaxEntriesSAScheduleTuple; //Optional
  2632. enum EnergyTransferModeType RequestedEnergyTransferMode;
  2633. struct AC_EVChargeParameterType AC_EVChargeParameter;
  2634. struct DC_EVChargeParameterType_ISO15118_2014 DC_EVChargeParameter;
  2635. };
  2636. struct ChargeParameterDiscoveryRequest_ISO15118_2018
  2637. {
  2638. struct Dynamic_CPDReqControlModeType Dynamic_CPDReqControlMode;
  2639. struct Scheduled_CPDReqControlModeType Scheduled_CPDReqControlMode;
  2640. struct AC_CPDReqEnergyTransferModeType AC_CPDReqEnergyTransferMode;
  2641. struct DC_CPDReqEnergyTransferModeType DC_CPDReqEnergyTransferMode;
  2642. struct BPT_AC_CPDReqEnergyTransferModeType BPT_AC_CPDReqEnergyTransferMode;
  2643. struct BPT_DC_CPDReqEnergyTransferModeType BPT_DC_CPDReqEnergyTransferMode;
  2644. struct WPT_CPDReqEnergyTransferModeType WPT_CPDReqEnergyTransferMode;
  2645. struct ACD_CPDReqEnergyTransferModeType ACD_CPDReqEnergyTransferMode;
  2646. };
  2647. /****ChargeParameterDiscoveryResponse****/
  2648. struct ChargeParameterDiscoveryResponse_DIN70121
  2649. {
  2650. enum ResponseCodeType_DIN70121 ResponseCode;
  2651. enum EVSEProcessingType_DIN70121 EVSEProcessing;
  2652. struct SAScheduleListType SAScheduleList;
  2653. struct DC_EVSEChargeParameterType_DIN70121 DC_EVSEChargeParameter;
  2654. };
  2655. struct ChargeParameterDiscoveryResponse_ISO15118_2014
  2656. {
  2657. enum EVSEProcessingType_ISO15118_2014 EVSEProcessing;
  2658. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2659. struct SAScheduleListType SAScheduleList;
  2660. struct AC_EVSEChargeParameterType AC_EVSEChargeParameter;
  2661. struct DC_EVSEChargeParameterType_ISO15118_2014 DC_EVSEChargeParameter;
  2662. };
  2663. struct ChargeParameterDiscoveryResponse_ISO15118_2018
  2664. {
  2665. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2666. struct EVSEStatusType EVSEStatus; //Optional
  2667. enum ProcessingType EVSEProcessing;
  2668. struct Scheduled_CPDResControlModeType Scheduled_CPDResControlMode; //Optional
  2669. struct AC_CPDResEnergyTransferModeType AC_CPDResEnergyTransferMode;
  2670. struct DC_CPDResEnergyTransferModeType DC_CPDResEnergyTransferMode;
  2671. struct BPT_AC_CPDResEnergyTransferModeType BPT_AC_CPDResEnergyTransferMode;
  2672. struct BPT_DC_CPDResEnergyTransferModeType BPT_DC_CPDResEnergyTransferMode;
  2673. struct WPT_CPDResEnergyTransferModeType WPT_CPDResEnergyTransferMode;
  2674. struct ACD_CPDResEnergyTransferModeType ACD_CPDResEnergyTransferMode;
  2675. };
  2676. /****PowerDeliveryRequest****/
  2677. struct PowerDeliveryRequest_DIN70121
  2678. {
  2679. BOOL ReadyToChargeState;
  2680. struct ChargingProfileType_DIN70121 ChargingProfile;
  2681. struct DC_EVPowerDeliveryParameterType_DIN70121 DC_EVPowerDeliveryParameter;
  2682. };
  2683. struct PowerDeliveryRequest_ISO15118_2014
  2684. {
  2685. enum ChargeProgressType_ISO15118_2014 ChargeProgress;
  2686. short SAScheduleTupleID;
  2687. struct ChargingProfileType_ISO15118_2014 ChargingProfile;
  2688. struct DC_EVPowerDeliveryParameterType_ISO15118_2014 DC_EVPowerDeliveryParameter;
  2689. };
  2690. struct PowerDeliveryRequest_ISO15118_2018
  2691. {
  2692. enum ChargeProgressType_ISO15118_2018 ChargeProgress;
  2693. struct Scheduled_PDReqControlModeType Scheduled_PDReqControlMode;
  2694. struct BPT_Scheduled_PDReqControlModeType BPT_Scheduled_PDReqControlMode;
  2695. };
  2696. /****PowerDeliveryResponse****/
  2697. struct PowerDeliveryResponse_DIN70121
  2698. {
  2699. enum ResponseCodeType_DIN70121 ResponseCode;
  2700. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  2701. };
  2702. struct PowerDeliveryResponse_ISO15118_2014
  2703. {
  2704. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2705. struct AC_EVSEStatusType AC_EVSEStatus;
  2706. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  2707. };
  2708. struct PowerDeliveryResponse_ISO15118_2018
  2709. {
  2710. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2711. struct EVSEStatusType EVSEStatus; //Optional
  2712. };
  2713. /****CertificateUpdateRequest****/
  2714. struct CertificateUpdateRequest_ISO15118_2014
  2715. {
  2716. unsigned char Id[32];
  2717. struct CertificateChainType ContractSignatureCertChain;
  2718. unsigned char eMAID[16];
  2719. struct ListOfRootCertificateIDsType ListOfRootCertificateIDs;
  2720. };
  2721. /****CertificateUpdateResponse****/
  2722. struct CertificateUpdateResponse_ISO15118_2014
  2723. {
  2724. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2725. struct CertificateChainType SAProvisioningCertificateChain;
  2726. struct CertificateChainType ContractSignatureCertChain;
  2727. struct ContractSignatureEncryptedPrivateKeyType ContractSignatureEncryptedPrivateKey;
  2728. struct DiffieHellmanPublickeyType DHpublickey;
  2729. unsigned char eMAID[16];
  2730. short RetryCounter; //Optional
  2731. };
  2732. /****CertificateInstallationRequest****/
  2733. struct CertificateInstallationRequest_ISO15118_2014
  2734. {
  2735. unsigned char Id[32];
  2736. unsigned char OEMProvisioningCert[800];
  2737. struct ListOfRootCertificateIDsType ListOfRootCertificateIDs;
  2738. };
  2739. struct CertificateInstallationRequest_ISO15118_2018
  2740. {
  2741. unsigned char Id[32];
  2742. struct CertificateChainType OEMProvisioningCertChain;
  2743. struct ListOfRootCertificateIDsType ListOfRootCertificateIDs;
  2744. unsigned short MaxSupportedCerts;
  2745. };
  2746. /****CertificateInstallationResponse****/
  2747. struct CertificateInstallationResponse_ISO15118_2014
  2748. {
  2749. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2750. struct CertificateChainType SAProvisioningCertificateChain;
  2751. struct CertificateChainType ContractSignatureCertChain;
  2752. struct ContractSignatureEncryptedPrivateKeyType ContractSignatureEncryptedPrivateKey;
  2753. struct DiffieHellmanPublickeyType DHpublickey;
  2754. unsigned char eMAID[16];
  2755. };
  2756. struct CertificateInstallationResponse_ISO15118_2018
  2757. {
  2758. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2759. struct EVSEStatusType EVSEStatus; //Optional
  2760. struct CertificateChainType SAProvisioningCertificateChain;
  2761. struct CertificateChainType ContractCertificateChain;
  2762. struct ContractCertificateEncryptedPrivateKeyType ContractEncryptedPrivateKey;
  2763. struct DiffieHellmanPublickeyType DHpublickey;
  2764. enum ProcessingType EVSEProcessing;
  2765. unsigned short RemainingContractCertificateChains;
  2766. };
  2767. /****SystemStatusRequest****/
  2768. struct SystemStatusRequest_ISO15118_2018
  2769. {
  2770. enum mechanicalChargingDeviceStatusType EVMechanicalChargingDeviceStatus;
  2771. struct EVTechnicalStatusType EVTechnicalStatus;
  2772. unsigned char EV_OEMStatus[800]; //Optional
  2773. };
  2774. /****SystemStatusResponse****/
  2775. struct SystemStatusResponse_ISO15118_2018
  2776. {
  2777. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2778. enum mechanicalChargingDeviceStatusType EVSEMechanicalChargingDeviceStatus;
  2779. BOOL EVSE_ReadyToCharge;
  2780. enum IsolationStatusType EVSE_IsolationStatus;
  2781. BOOL EVSE_Disabled;
  2782. BOOL EVSE_UtilityInterruptEvent;
  2783. BOOL EVSE_EmergencyShutdown;
  2784. BOOL EVSE_Malfunction;
  2785. BOOL EV_InChargePosition;
  2786. BOOL EV_AssociationStatus;
  2787. };
  2788. /****SessionStopRequest****/
  2789. struct SessionStopRequest_DIN70121
  2790. {
  2791. //No member in standard
  2792. };
  2793. struct SessionStopRequest_ISO15118_2014
  2794. {
  2795. enum ChargingSessionType ChargingSession;
  2796. };
  2797. struct SessionStopRequest_ISO15118_2018
  2798. {
  2799. enum ChargingSessionType ChargingSession;
  2800. };
  2801. /****SessionStopResponse****/
  2802. struct SessionStopResponse_DIN70121
  2803. {
  2804. enum ResponseCodeType_DIN70121 ResponseCode;
  2805. };
  2806. struct SessionStopResponse_ISO15118_2014
  2807. {
  2808. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2809. };
  2810. struct SessionStopResponse_ISO15118_2018
  2811. {
  2812. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2813. struct EVSEStatusType EVSEStatus; //Optional
  2814. };
  2815. /****MeteringReceiptRequest****/
  2816. struct MeteringReceiptRequest_ISO15118_2014
  2817. {
  2818. unsigned char Id[32]; //Optional
  2819. unsigned char SessionID[8];
  2820. short SAScheduleTupleID; //Optional
  2821. struct MeterInfoType_ISO15118_2014 MeterInfo;
  2822. };
  2823. struct MeteringReceiptRequest_ISO15118_2018
  2824. {
  2825. unsigned char Id[32]; //Optional
  2826. unsigned char SessionID[8];
  2827. struct Scheduled_MRReqControlModeType Schedule_MRReqControlMode;
  2828. struct MeterInfoType_ISO15118_2018 MeterInfo;
  2829. };
  2830. /****MeteringReceiptResponse****/
  2831. struct MeteringReceiptResponse_ISO15118_2014
  2832. {
  2833. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2834. struct AC_EVSEStatusType AC_EVSEStatus;
  2835. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  2836. };
  2837. struct MeteringReceiptResponse_ISO15118_2018
  2838. {
  2839. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2840. struct EVSEStatusType EVSEStatus; //Optional
  2841. };
  2842. /****ChargingStatusRequest (AC Only)****/
  2843. struct ChargingStatusRequest_ISO15118_2014
  2844. {
  2845. //No member in standard
  2846. };
  2847. struct ChargingStatusRequest_ISO15118_2018
  2848. {
  2849. struct PnC_CLReqIdentificationModeType PnC_CLReqIdentificationMode;
  2850. struct Dynamic_CSReqControlModeType Dynamic_CSReqControlMode;
  2851. struct Scheduled_CSReqControlModeType Scheduled_CSReqControlMode;
  2852. struct DisplayParametersType DisplayParameters;
  2853. };
  2854. /****ChargingStatusResponse (AC Only)****/
  2855. struct ChargingStatusResponse_ISO15118_2014
  2856. {
  2857. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2858. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  2859. short SAScheduleTupleID;
  2860. struct PhysicalValueType_ISO15118_2014 EVSEMaxCurrent; //Optional
  2861. struct MeterInfoType_ISO15118_2014 MeterInfo; //Optional
  2862. BOOL ReceiptRequired; //Optional
  2863. struct AC_EVSEStatusType AC_EVSEStatus;
  2864. };
  2865. struct ChargingStatusResponse_ISO15118_2018
  2866. {
  2867. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2868. struct EVSEStatusType EVSEStatus; //Optional
  2869. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  2870. struct PhysicalValueType_ISO15118_2018 EVSETargetFrequency; //Optional
  2871. struct PnC_CLResIdentificationModeType PnC_CLResIdentificationMode;
  2872. struct Dynamic_CSResControlModeType Dynamic_CSResControlMode;
  2873. struct Scheduled_CSReqControlModeType Scheduled_CSReqControlMode;
  2874. };
  2875. /****CableCheckRequest (DC Only)****/
  2876. struct CableCheckRequest_DIN70121
  2877. {
  2878. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  2879. };
  2880. struct CableCheckRequest_ISO15118_2014
  2881. {
  2882. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  2883. };
  2884. struct CableCheckRequest_ISO15118_2018
  2885. {
  2886. //No member in standard
  2887. };
  2888. /****CableCheckResponse (DC Only)****/
  2889. struct CableCheckResponse_DIN70121
  2890. {
  2891. enum ResponseCodeType_DIN70121 ResponseCode;
  2892. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  2893. enum EVSEProcessingType_DIN70121 EVSEProcessing;
  2894. };
  2895. struct CableCheckResponse_ISO15118_2014
  2896. {
  2897. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2898. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  2899. enum EVSEProcessingType_ISO15118_2014 EVSEProcessing;
  2900. };
  2901. struct CableCheckResponse_ISO15118_2018
  2902. {
  2903. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2904. struct EVSEStatusType EVSEStatus; //Optional
  2905. enum ProcessingType EVSEProcessing;
  2906. };
  2907. /****PreChargeRequest (DC Only)****/
  2908. struct PreChargeRequest_DIN70121
  2909. {
  2910. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  2911. struct PhysicalValueType_DIN70121 EVTargetVoltage;
  2912. struct PhysicalValueType_DIN70121 EVTargetCurrent;
  2913. };
  2914. struct PreChargeRequest_ISO15118_2014
  2915. {
  2916. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  2917. struct PhysicalValueType_ISO15118_2014 EVTargetVoltage;
  2918. struct PhysicalValueType_ISO15118_2014 EVTargetCurrent;
  2919. };
  2920. struct PreChargeRequest_ISO15118_2018
  2921. {
  2922. struct PhysicalValueType_ISO15118_2018 EVTargetVoltage;
  2923. struct PhysicalValueType_ISO15118_2018 EVTargetCurrent;
  2924. };
  2925. /****PreChargeResponse (DC Only)****/
  2926. struct PreChargeResponse_DIN70121
  2927. {
  2928. enum ResponseCodeType_DIN70121 ResponseCode;
  2929. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  2930. struct PhysicalValueType_DIN70121 EVSEPresentVoltage;
  2931. };
  2932. struct PreChargeResponse_ISO15118_2014
  2933. {
  2934. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2935. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  2936. struct PhysicalValueType_ISO15118_2014 EVSEPresentVoltage;
  2937. };
  2938. struct PreChargeResponse_ISO15118_2018
  2939. {
  2940. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2941. struct EVSEStatusType EVSEStatus; //Optional
  2942. struct PhysicalValueType_ISO15118_2018 EVSEPresentVoltage;
  2943. };
  2944. /****CurrentDemandRequest (DC Only)****/
  2945. struct CurrentDemandRequest_DIN70121
  2946. {
  2947. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  2948. struct PhysicalValueType_DIN70121 EVTargetCurrent;
  2949. struct PhysicalValueType_DIN70121 EVMaximumVoltageLimit; //Optional
  2950. struct PhysicalValueType_DIN70121 EVMaximumCurrentLimit; //Optional
  2951. struct PhysicalValueType_DIN70121 EVMaximumPowerLimit; //Optional
  2952. BOOL BulkChargingComplete; //Optional
  2953. BOOL ChargingComplete;
  2954. struct PhysicalValueType_DIN70121 RemainingTimeToFullSoC; //Optional
  2955. struct PhysicalValueType_DIN70121 RemainingTimeToBulkSoC; //Optional
  2956. struct PhysicalValueType_DIN70121 EVTargetVoltage;
  2957. };
  2958. struct CurrentDemandRequest_ISO15118_2014
  2959. {
  2960. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  2961. struct PhysicalValueType_ISO15118_2014 EVTargetCurrent;
  2962. struct PhysicalValueType_ISO15118_2014 EVMaximumVoltageLimit; //Optional
  2963. struct PhysicalValueType_ISO15118_2014 EVMaximumCurrentLimit; //Optional
  2964. struct PhysicalValueType_ISO15118_2014 EVMaximumPowerLimit; //Optional
  2965. BOOL BulkChargingComplete; //Optional
  2966. BOOL ChargingComplete;
  2967. struct PhysicalValueType_ISO15118_2014 RemainingTimeToFullSoC; //Optional
  2968. struct PhysicalValueType_ISO15118_2014 RemainingTimeToBulkSoC; //Optional
  2969. struct PhysicalValueType_ISO15118_2014 EVTargetVoltage;
  2970. };
  2971. struct CurrentDemandRequest_ISO15118_2018
  2972. {
  2973. struct DisplayParametersType DisplayParameters; //Optional
  2974. struct PnC_CLReqIdentificationModeType PnC_CLReqIdentificationMode;
  2975. struct Dynamic_CSReqControlModeType Dynamic_CDReqControlMode;
  2976. struct Scheduled_CSReqControlModeType Scheduled_CDReqControlMode;
  2977. };
  2978. /****CurrentDemandResponse (DC Only)****/
  2979. struct CurrentDemandResponse_DIN70121
  2980. {
  2981. enum ResponseCodeType_DIN70121 ResponseCode;
  2982. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  2983. struct PhysicalValueType_DIN70121 EVSEPresentVoltage;
  2984. struct PhysicalValueType_DIN70121 EVSEPresentCurrent;
  2985. BOOL EVSECurrentLimitAchieved;
  2986. BOOL EVSEVoltageLimitAchieved;
  2987. BOOL EVSEPowerLimitAchieved;
  2988. struct PhysicalValueType_DIN70121 EVSEMaximumVoltageLimit; //Optional
  2989. struct PhysicalValueType_DIN70121 EVSEMaximumCurrentLimit; //Optional
  2990. struct PhysicalValueType_DIN70121 EVSEMaximumPowerLimit; //Optional
  2991. };
  2992. struct CurrentDemandResponse_ISO15118_2014
  2993. {
  2994. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2995. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  2996. struct PhysicalValueType_ISO15118_2014 EVSEPresentVoltage;
  2997. struct PhysicalValueType_ISO15118_2014 EVSEPresentCurrent;
  2998. BOOL EVSECurrentLimitAchieved;
  2999. BOOL EVSEVoltageLimitAchieved;
  3000. BOOL EVSEPowerLimitAchieved;
  3001. struct PhysicalValueType_ISO15118_2014 EVSEMaximumVoltageLimit; //Optional
  3002. struct PhysicalValueType_ISO15118_2014 EVSEMaximumCurrentLimit; //Optional
  3003. struct PhysicalValueType_ISO15118_2014 EVSEMaximumPowerLimit; //Optional
  3004. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  3005. short SAScheduleTupleID;
  3006. struct MeterInfoType_ISO15118_2014 MeterInfo; //Optional
  3007. BOOL ReceiptRequired; //Optional
  3008. };
  3009. struct CurrentDemandResponse_ISO15118_2018
  3010. {
  3011. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  3012. struct EVSEStatusType EVSEStatus; //Optional
  3013. struct PhysicalValueType_ISO15118_2018 EVSEPresentVoltage;
  3014. struct PhysicalValueType_ISO15118_2018 EVSEPresentCurrent;
  3015. BOOL EVSECurrentLimitAchieved;
  3016. BOOL EVSEVoltageLimitAchieved;
  3017. BOOL EVSEPowerLimitAchieved;
  3018. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeVoltage; //Optional
  3019. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent; //Optional
  3020. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower; //Optional
  3021. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  3022. struct PnC_CLResIdentificationModeType PnC_CLResIdentificationMode;
  3023. struct Scheduled_CDResControlModeType Scheduled_CDResControlMode;
  3024. };
  3025. /****WeldingDetectionRequest (DC Only)*****/
  3026. struct WeldingDetectionRequest_DIN70121
  3027. {
  3028. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  3029. };
  3030. struct WeldingDetectionRequest_ISO15118_2014
  3031. {
  3032. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  3033. };
  3034. struct WeldingDetectionRequest_ISO15118_2018
  3035. {
  3036. //No member in Standard
  3037. };
  3038. /****WeldingDetectionResponse (DC Only)****/
  3039. struct WeldingDetectionResponse_DIN70121
  3040. {
  3041. enum ResponseCodeType_DIN70121 ResponseCode;
  3042. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  3043. struct PhysicalValueType_DIN70121 EVSEPresentVoltage;
  3044. };
  3045. struct WeldingDetectionResponse_ISO15118_2014
  3046. {
  3047. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  3048. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  3049. struct PhysicalValueType_ISO15118_2014 EVSEPresentVoltage;
  3050. };
  3051. struct WeldingDetectionResponse_ISO15118_2018
  3052. {
  3053. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  3054. struct EVSEStatusType EVSEStatus; //Optional
  3055. struct PhysicalValueType_ISO15118_2018 EVSEPresentVoltage;
  3056. };
  3057. /****FinePositioningSetupRequest (WPT Only)****/
  3058. struct FinePositioningSetupRequest_ISO15118_2018
  3059. {
  3060. struct LFA_EVFinePositioningSetupParametersType LFA_EVFinePositioningSetupParameters; //Optional
  3061. };
  3062. /****FinePositioningSetupResponse (WPT Only)****/
  3063. struct FinePositioningSetupResponse_ISO15118_2018
  3064. {
  3065. //NOT complete yet, to be continue.....
  3066. };
  3067. struct V2GMessageType_DIN70121
  3068. {
  3069. unsigned char SelfTest_Comp;
  3070. unsigned char version[16];
  3071. unsigned char PresentMsgFlowStatus;
  3072. /* 0: Idle(wait B2 state), 1: CM_SLAC_PARM.REQ, 2: CM_SLAC_PARM.CNF, 3: CM_START_ATTEN_CHAR.IND
  3073. 4: CM_MNBC_SOUND.IND, 5: CM_ATTEN_CHAR.IND, 6: CM_ATTEN_CHAR.RSP, 7: CM_VALIDATE.REQ
  3074. 8: CM_VALIDATE.CNF, 9: CM_SLAC_MATCH.REQ, 10: CM_SLAC_MATCH.CNF, 11: CM_AMP_MAP.REQ
  3075. 12: CM_AMP_MAP.CNF, 13: SLACC/SDP/TCP connection,
  3076. 16: SupportedAppProtocolRequest, 17: SupportedAppProtocolResponse, 18: SessionSetupRequest
  3077. 19: SessionSetupResponse, 20: ServiceDiscoveryRequest, 21: ServiceDiscoveryResponse
  3078. 22: ServiceDetailRequest, 23: ServiceDetailResponse
  3079. 24: ServiceAndPaymentSelectionRequest/ServiceSelectionRequest, 25: ServiceAndPaymentSelectionResponse/ServiceSelectionResponse
  3080. 26: PaymentDetailsRequest/IdentificationDetailsRequest;, 27: PaymentDetailsResponse/IdentificationDetailsResponse,
  3081. 28: AuthorizationRequest, 29: AuthorizationResponse,
  3082. 30: CertificateUpdateRequest, 31: CertificateUpdateResponse, 32:CertificateInstallationRequest, 33: CertificateInstallationResponse
  3083. 34: ChargeParameterDiscoveryRequest, 35: ChargeParameterDiscoveryResponse
  3084. 36: CableCheckRequest, 37: CableCheckResponse, 38: PreChargeRequest, 39: PreChargeResponse
  3085. 40: PowerDeliveryRequest start, 41: PowerDeliveryResponse start, 42: ChargingStatusRequest, 43: ChargingStatusResponse
  3086. 44: CurrentDemandRequest, 45: CurrentDemandResponse, 46: MeteringReceiptRequest, 47: MeteringReceiptResponse
  3087. 48: PowerDeliveryRequest end, 49: PowerDeliveryRequest end, 50: WeldingDetectionRequest, 51: WeldingDetectionResponse,
  3088. 52: SessionStopRequest, 53: SessionStopResponse
  3089. 253: Performance Timeout, 254: Sequence Timeout, 255: Fault
  3090. */
  3091. struct SupportedAppProtocolRequest_DIN70121 SupportedAppProtocolRequest;
  3092. struct SupportedAppProtocolResponse_DIN70121 SupportedAppProtocolResponse;
  3093. struct SessionSetupRequest_DIN70121 SessionSetupRequest;
  3094. struct SessionSetupResponse_DIN70121 SessionSetupResponse;
  3095. struct ServiceDiscoveryRequest_DIN70121 ServiceDiscoveryRequest;
  3096. struct ServiceDiscoveryResponse_DIN70121 ServiceDiscoveryResponse;
  3097. struct ServiceAndPaymentSelectionRequest_DIN70121 ServiceAndPaymentSelectionRequest;
  3098. struct ServiceAndPaymentSelectionResponse_DIN70121 ServiceAndPaymentSelectionResponse;
  3099. struct ContractAuthenticationRequest_DIN70121 ContractAuthenticationRequest;
  3100. struct ContractAuthenticationResponse_DIN70121 ContractAuthenticationResponse;
  3101. struct ChargeParameterDiscoveryRequest_DIN70121 ChargeParameterDiscoveryRequest;
  3102. struct ChargeParameterDiscoveryResponse_DIN70121 ChargeParameterDiscoveryResponse;
  3103. struct CableCheckRequest_DIN70121 CableCheckRequest;
  3104. struct CableCheckResponse_DIN70121 CableCheckResponse;
  3105. struct PreChargeRequest_DIN70121 PreChargeRequest;
  3106. struct PreChargeResponse_DIN70121 PreChargeResponse;
  3107. struct PowerDeliveryRequest_DIN70121 PowerDeliveryRequest;
  3108. struct PowerDeliveryResponse_DIN70121 PowerDeliveryResponse;
  3109. struct CurrentDemandRequest_DIN70121 CurrentDemandRequest;
  3110. struct CurrentDemandResponse_DIN70121 CurrentDemandResponse;
  3111. struct WeldingDetectionRequest_DIN70121 WeldingDetectionRequest;
  3112. struct WeldingDetectionResponse_DIN70121 WeldingDetectionResponse;
  3113. struct SessionStopRequest_DIN70121 SessionStopRequest;
  3114. struct SessionStopResponse_DIN70121 SessionStopResponse;
  3115. };
  3116. struct V2GMessageType_ISO15118_2014
  3117. {
  3118. unsigned char PresentMsgFlowStatus;
  3119. /* 0: Idle(wait B2 state), 1: CM_SLAC_PARM.REQ, 2: CM_SLAC_PARM.CNF, 3: CM_START_ATTEN_CHAR.IND
  3120. 4: CM_MNBC_SOUND.IND, 5: CM_ATTEN_CHAR.IND, 6: CM_ATTEN_CHAR.RSP, 7: CM_VALIDATE.REQ
  3121. 8: CM_VALIDATE.CNF, 9: CM_SLAC_MATCH.REQ, 10: CM_SLAC_MATCH.CNF, 11: CM_AMP_MAP.REQ
  3122. 12: CM_AMP_MAP.CNF, 13: SLACC/SDP/TCP connection,
  3123. 16: SupportedAppProtocolRequest, 17: SupportedAppProtocolResponse, 18: SessionSetupRequest
  3124. 19: SessionSetupResponse, 20: ServiceDiscoveryRequest, 21: ServiceDiscoveryResponse
  3125. 22: ServiceDetailRequest, 23: ServiceDetailResponse
  3126. 24: ServiceAndPaymentSelectionRequest/ServiceSelectionRequest, 25: ServiceAndPaymentSelectionResponse/ServiceSelectionResponse
  3127. 26: PaymentDetailsRequest/IdentificationDetailsRequest;, 27: PaymentDetailsResponse/IdentificationDetailsResponse,
  3128. 28: AuthorizationRequest, 29: AuthorizationResponse,
  3129. 30: CertificateUpdateRequest, 31: CertificateUpdateResponse, 32:CertificateInstallationRequest, 33: CertificateInstallationResponse
  3130. 34: ChargeParameterDiscoveryRequest, 35: ChargeParameterDiscoveryResponse
  3131. 36: CableCheckRequest, 37: CableCheckResponse, 38: PreChargeRequest, 39: PreChargeResponse
  3132. 40: PowerDeliveryRequest start, 41: PowerDeliveryResponse start, 42: ChargingStatusRequest, 43: ChargingStatusResponse
  3133. 44: CurrentDemandRequest, 45: CurrentDemandResponse, 46: MeteringReceiptRequest, 47: MeteringReceiptResponse
  3134. 48: PowerDeliveryRequest end, 49: PowerDeliveryRequest end, 50: WeldingDetectionRequest, 51: WeldingDetectionResponse,
  3135. 52: SessionStopRequest, 53: SessionStopResponse
  3136. 253: Performance Timeout, 254: Sequence Timeout, 255: Fault
  3137. */
  3138. struct SupportedAppProtocolRequest_ISO15118_2014 SupportedAppProtocolRequest;
  3139. struct SupportedAppProtocolResponse_ISO15118_2014 SupportedAppProtocolResponse;
  3140. struct SessionSetupRequest_ISO15118_2014 SessionSetupRequest;
  3141. struct SessionSetupResponse_ISO15118_2014 SessionSetupResponse;
  3142. struct ServiceDiscoveryRequest_ISO15118_2014 ServiceDiscoveryRequest;
  3143. struct ServiceDiscoveryResponse_ISO15118_2014 ServiceDiscoveryResponse;
  3144. struct ServiceDetailRequest_ISO15118_2014 ServiceDetailRequest;
  3145. struct ServiceDetailResponse_ISO15118_2014 ServiceDetailResponse;
  3146. struct ServiceAndPaymentSelectionRequest_ISO15118_2014 ServiceAndPaymentSelectionRequest;
  3147. struct ServiceAndPaymentSelectionResponse_ISO15118_2014 ServiceAndPaymentSelectionResponse;
  3148. struct PaymentDetailsRequest_ISO15118_2014 PaymentDetailsRequest;
  3149. struct PaymentDetailsResponse_ISO15118_2014 PaymentDetailsResponse;
  3150. struct AuthorizationRequest_ISO15118_2014 AuthorizationRequest;
  3151. struct AuthorizationResponse_ISO15118_2014 AuthorizationResponse;
  3152. struct CertificateUpdateRequest_ISO15118_2014 CertificateUpdateRequest;
  3153. struct CertificateUpdateResponse_ISO15118_2014 CertificateUpdateResponse;
  3154. struct CertificateInstallationRequest_ISO15118_2014 CertificateInstallationRequest;
  3155. struct CertificateInstallationResponse_ISO15118_2014 CertificateInstallationResponse;
  3156. struct ChargeParameterDiscoveryRequest_ISO15118_2014 ChargeParameterDiscoveryRequest;
  3157. struct ChargeParameterDiscoveryResponse_ISO15118_2014 ChargeParameterDiscoveryResponse;
  3158. struct CableCheckRequest_ISO15118_2014 CableCheckRequest;
  3159. struct CableCheckResponse_ISO15118_2014 CableCheckResponse;
  3160. struct PreChargeRequest_ISO15118_2014 PreChargeRequest;
  3161. struct PreChargeResponse_ISO15118_2014 PreChargeResponse;
  3162. struct PowerDeliveryRequest_ISO15118_2014 PowerDeliveryRequest;
  3163. struct PowerDeliveryResponse_ISO15118_2014 PowerDeliveryResponse;
  3164. struct ChargingStatusRequest_ISO15118_2014 ChargingStatusRequest;
  3165. struct ChargingStatusResponse_ISO15118_2014 ChargingStatusResponse;
  3166. struct CurrentDemandRequest_ISO15118_2014 CurrentDemandRequest;
  3167. struct CurrentDemandResponse_ISO15118_2014 CurrentDemandResponse;
  3168. struct MeteringReceiptRequest_ISO15118_2014 MeteringReceiptRequest;
  3169. struct MeteringReceiptResponse_ISO15118_2014 MeteringReceiptResponse;
  3170. struct WeldingDetectionRequest_ISO15118_2014 WeldingDetectionRequest;
  3171. struct WeldingDetectionResponse_ISO15118_2014 WeldingDetectionResponse;
  3172. struct SessionStopRequest_ISO15118_2014 SessionStopRequest;
  3173. struct SessionStopResponse_ISO15118_2014 SessionStopResponse;
  3174. };
  3175. struct V2GMessageType_ISO15118_2018
  3176. {
  3177. unsigned char PresentMsgFlowStatus;
  3178. /* 0: Idle(wait B2 state), 1: CM_SLAC_PARM.REQ, 2: CM_SLAC_PARM.CNF, 3: CM_START_ATTEN_CHAR.IND
  3179. 4: CM_MNBC_SOUND.IND, 5: CM_ATTEN_CHAR.IND, 6: CM_ATTEN_CHAR.RSP, 7: CM_VALIDATE.REQ
  3180. 8: CM_VALIDATE.CNF, 9: CM_SLAC_MATCH.REQ, 10: CM_SLAC_MATCH.CNF, 11: CM_AMP_MAP.REQ
  3181. 12: CM_AMP_MAP.CNF, 13: SLACC/SDP/TCP connection,
  3182. 16: SupportedAppProtocolRequest, 17: SupportedAppProtocolResponse, 18: SessionSetupRequest
  3183. 19: SessionSetupResponse, 20: ServiceDiscoveryRequest, 21: ServiceDiscoveryResponse
  3184. 22: ServiceDetailRequest, 23: ServiceDetailResponse
  3185. 24: ServiceAndPaymentSelectionRequest/ServiceSelectionRequest, 25: ServiceAndPaymentSelectionResponse/ServiceSelectionResponse
  3186. 26: PaymentDetailsRequest/IdentificationDetailsRequest;, 27: PaymentDetailsResponse/IdentificationDetailsResponse,
  3187. 28: AuthorizationRequest, 29: AuthorizationResponse,
  3188. 30: CertificateUpdateRequest, 31: CertificateUpdateResponse, 32:CertificateInstallationRequest, 33: CertificateInstallationResponse
  3189. 34: ChargeParameterDiscoveryRequest, 35: ChargeParameterDiscoveryResponse
  3190. 36: CableCheckRequest, 37: CableCheckResponse, 38: PreChargeRequest, 39: PreChargeResponse
  3191. 40: PowerDeliveryRequest start, 41: PowerDeliveryResponse start, 42: ChargingStatusRequest, 43: ChargingStatusResponse
  3192. 44: CurrentDemandRequest, 45: CurrentDemandResponse, 46: MeteringReceiptRequest, 47: MeteringReceiptResponse
  3193. 48: PowerDeliveryRequest end, 49: PowerDeliveryRequest end, 50: WeldingDetectionRequest, 51: WeldingDetectionResponse,
  3194. 52: SessionStopRequest, 53: SessionStopResponse
  3195. 253: Performance Timeout, 254: Sequence Timeout, 255: Fault
  3196. */
  3197. struct SupportedAppProtocolRequest_ISO15118_2018 SupportedAppProtocolRequest;
  3198. struct SupportedAppProtocolResponse_ISO15118_2018 SupportedAppProtocolResponse;
  3199. struct SessionSetupRequest_ISO15118_2018 SessionSetupRequest;
  3200. struct SessionSetupResponse_ISO15118_2018 SessionSetupResponse;
  3201. struct ServiceDiscoveryRequest_ISO15118_2018 ServiceDiscoveryRequest;
  3202. struct ServiceDiscoveryResponse_ISO15118_2018 ServiceDiscoveryResponse;
  3203. struct ServiceDetailRequest_ISO15118_2018 ServiceDetailRequest;
  3204. struct ServiceDetailResponse_ISO15118_2018 ServiceDetailResponse;
  3205. struct ServiceSelectionRequest_ISO15118_2018 ServiceSelectionRequest;
  3206. struct ServiceSelectionResponse_ISO15118_2018 ServiceSelectionResponse;
  3207. struct IdentificationDetailsRequest_ISO15118_2018 IdentificationDetailsRequest;
  3208. struct IdentificationDetailsResponse_ISO15118_2018 IdentificationDetailsResponse;
  3209. struct AuthorizationRequest_ISO15118_2018 AuthorizationRequest;
  3210. struct AuthorizationResponse_ISO15118_2018 AuthorizationResponse;
  3211. struct CertificateInstallationRequest_ISO15118_2018 CertificateInstallationRequest;
  3212. struct CertificateInstallationResponse_ISO15118_2018 CertificateInstallationResponse;
  3213. struct ChargeParameterDiscoveryRequest_ISO15118_2018 ChargeParameterDiscoveryRequest;
  3214. struct ChargeParameterDiscoveryResponse_ISO15118_2018 ChargeParameterDiscoveryResponse;
  3215. struct CableCheckRequest_ISO15118_2018 CableCheckRequest;
  3216. struct CableCheckResponse_ISO15118_2018 CableCheckResponse;
  3217. struct PreChargeRequest_ISO15118_2018 PreChargeRequest;
  3218. struct PreChargeResponse_ISO15118_2018 PreChargeResponse;
  3219. struct PowerDeliveryRequest_ISO15118_2018 PowerDeliveryRequest;
  3220. struct PowerDeliveryResponse_ISO15118_2018 PowerDeliveryResponse;
  3221. struct ChargingStatusRequest_ISO15118_2018 ChargingStatusRequest;
  3222. struct ChargingStatusResponse_ISO15118_2018 ChargingStatusResponse;
  3223. struct CurrentDemandRequest_ISO15118_2018 CurrentDemandRequest;
  3224. struct CurrentDemandResponse_ISO15118_2018 CurrentDemandResponse;
  3225. struct MeteringReceiptRequest_ISO15118_2018 MeteringReceiptRequest;
  3226. struct MeteringReceiptResponse_ISO15118_2018 MeteringReceiptResponse;
  3227. struct WeldingDetectionRequest_ISO15118_2018 WeldingDetectionRequest;
  3228. struct WeldingDetectionResponse_ISO15118_2018 WeldingDetectionResponse;
  3229. struct SessionStopRequest_ISO15118_2018 SessionStopRequest;
  3230. struct SessionStopResponse_ISO15118_2018 SessionStopResponse;
  3231. };
  3232. struct CcsData
  3233. {
  3234. unsigned char CommProtocol; // 1: V2GMessage_DIN70121, 2:V2GMessage_ISO15118_2014, 3:V2GMessage_ISO15118_2018
  3235. struct V2GMessageType_DIN70121 V2GMessage_DIN70121[CCS_QUANTITY];
  3236. struct V2GMessageType_ISO15118_2014 V2GMessage_ISO15118_2014[CCS_QUANTITY];
  3237. struct V2GMessageType_ISO15118_2018 V2GMessage_ISO15118_2018[CCS_QUANTITY];
  3238. };
  3239. /**************************************************************************************/
  3240. /***************STM32F407 Communication Share memory**************************/
  3241. /**************************************************************************************/
  3242. struct PrimaryMcuData
  3243. {
  3244. unsigned char SelfTest_Comp;
  3245. unsigned char version[16]; //STM32F407 firmware version
  3246. unsigned int InputVoltage; //value comes from external meter
  3247. unsigned int InputCurrent; //value comes from external meter
  3248. union
  3249. {
  3250. unsigned char OutputDrvValue[1];
  3251. struct
  3252. {
  3253. //OutputDrvValue[0]
  3254. unsigned char AcContactorDrv:1; //bit 0, H: ON, L:OFF
  3255. unsigned char Button1LedDrv:1; //bit 1, H: ON, L:OFF
  3256. unsigned char Button2LedDrv:1; //bit 2, H: ON, L:OFF
  3257. unsigned char SystemLed1Drv:1; //bit 3, H: ON, L:OFF
  3258. unsigned char SystemLed2Drv:1; //bit 4, H: ON, L:OFF
  3259. unsigned char SystemLed3Drv:1; //bit 5, H: ON, L:OFF
  3260. unsigned char SystemLed4Drv:1; //bit 6, H: ON, L:OFF
  3261. unsigned char:1; //bit 7 reserved
  3262. }bits;
  3263. }OutputDrv;
  3264. union
  3265. {
  3266. unsigned char InputDetValue[2];
  3267. struct
  3268. {
  3269. //InputDetValue[0]
  3270. unsigned char AcContactorDetec:1; //bit 0, H: ON, L:OFF
  3271. unsigned char AcMainBreakerDetec:1; //bit 1, H: ON, L:OFF
  3272. unsigned char SpdDetec:1; //bit 2, H: ON, L:OFF
  3273. unsigned char DoorOpen:1; //bit 3, H: Open, L:Close
  3274. unsigned char Gfd1:1; //bit 4, H: Trigger, L:Normal
  3275. unsigned char Gfd2:1; //bit 5, H: Trigger, L:Normal
  3276. unsigned char Button1:1; //bit 6 , H: Push, L:Release
  3277. unsigned char Button2:1; //bit 7, H: Push, L:Release
  3278. //InputDetValue[1]
  3279. unsigned char EmergencyButton:1; //bit 0, H: Push, L:Release
  3280. unsigned char :7; //bit 1~7, Reserved
  3281. }bits;
  3282. }InputDet;
  3283. };
  3284. /**************************************************************************************/
  3285. /*************Fan power module Communication Share memory******************/
  3286. /**************************************************************************************/
  3287. struct FanModuleData
  3288. {
  3289. unsigned char SelfTest_Comp;
  3290. unsigned char version[16]; //fan power module firmware version
  3291. unsigned short PresentFan1Speed; //RPM
  3292. unsigned short PresentFan2Speed; //RPM
  3293. unsigned short PresentFan3Speed; //RPM
  3294. unsigned short PresentFan4Speed; //RPM
  3295. unsigned short SetFan1Speed; //RPM
  3296. unsigned short SetFan2Speed; //RPM
  3297. unsigned short SetFan3Speed; //RPM
  3298. unsigned short SetFan4Speed; //RPM
  3299. unsigned short TestFanSpeed; //RPM
  3300. unsigned char DiffOfAirPressure; //pa
  3301. unsigned char UpdateFW; //1:do update
  3302. };
  3303. /**************************************************************************************/
  3304. /***********Relay control module Communication Share memory******************/
  3305. /**************************************************************************************/
  3306. struct RelayModuleData
  3307. {
  3308. unsigned char SelfTest_Comp;
  3309. unsigned char version[16]; //relay module firmware version
  3310. unsigned short InputL1Volt; //XXXXX.x volt
  3311. unsigned short InputL2Volt; //XXXXX.x volt
  3312. unsigned short InputL3Volt; //XXXXX.x volt
  3313. unsigned short Gun1FuseOutputVolt; //XXXXX.x volt
  3314. unsigned short Gun2FuseOutputVolt; //XXXXX.x volt
  3315. unsigned short Gun1RelayOutputVolt; //XXXXX.x volt
  3316. unsigned short Gun2RelayOutputVolt; //XXXXX.x volt
  3317. unsigned short Gun1OutputCurrent; //XXXXX.x amp
  3318. unsigned short Gun2OutputCurrent; //XXXXX.x amp
  3319. unsigned char UpdateFW; //1:do update
  3320. };
  3321. /**************************************************************************************/
  3322. /***********Led control module Communication Share memory******************/
  3323. /**************************************************************************************/
  3324. struct LedModuleData
  3325. {
  3326. unsigned char SelfTest_Comp;
  3327. unsigned char version[16]; //led module firmware version
  3328. unsigned short Connect_1_Status; // Idle : 0, Charging : 1, Alarm : 2
  3329. unsigned short Connect_2_Status; // Idle : 0, Charging : 1, Alarm : 2
  3330. unsigned short EnableFunc; // reserved
  3331. };
  3332. /**************************************************************************************/
  3333. /************************OCPP Share memory***************************************/
  3334. /**************************************************************************************/
  3335. struct StructIdTagInfo
  3336. {
  3337. unsigned char ExpiryDate[28];
  3338. unsigned char ParentIdTag[20];
  3339. unsigned char Status[16]; //Accepted, Blocked, Expired, Invalid, ConcurrentTx
  3340. };
  3341. struct StructLocalAuthorizationList
  3342. {
  3343. unsigned char IdTag[20];
  3344. struct StructIdTagInfo IdTagInfo;
  3345. };
  3346. struct StructSampledValue
  3347. {
  3348. unsigned char Value[128];
  3349. unsigned char Context[30];//Interruption.Begin, Interruption.End, Sample.Clock, Sample.Periodic, Transaction.Begin, Transaction.End, Trigger, Other
  3350. unsigned char Format[16];//Raw,SignedData
  3351. unsigned char Measurand[40];/* "Energy.Active.Export.Register",
  3352. "Energy.Active.Import.Register",
  3353. "Energy.Reactive.Export.Register",
  3354. "Energy.Reactive.Import.Register",
  3355. "Energy.Active.Export.Interval",
  3356. "Energy.Active.Import.Interval",
  3357. "Energy.Reactive.Export.Interval",
  3358. "Energy.Reactive.Import.Interval",
  3359. "Power.Active.Export",
  3360. "Power.Active.Import",
  3361. "Power.Offered",
  3362. "Power.Reactive.Export",
  3363. "Power.Reactive.Import",
  3364. "Power.Factor",
  3365. "Current.Import",
  3366. "Current.Export",
  3367. "Current.Offered",
  3368. "Voltage",
  3369. "Frequency",
  3370. "Temperature",
  3371. "SoC",
  3372. "RPM"
  3373. */
  3374. unsigned char Phase[10]; /* "L1",
  3375. "L2",
  3376. "L3",
  3377. "N",
  3378. "L1-N",
  3379. "L2-N",
  3380. "L3-N",
  3381. "L1-L2",
  3382. "L2-L3",
  3383. "L3-L1"
  3384. */
  3385. unsigned char Location[10]; //Cable,EV,Inlet,Outlet,Body
  3386. unsigned char Unit[20]; /* "Wh",
  3387. "kWh",
  3388. "varh",
  3389. "kvarh",
  3390. "W",
  3391. "kW",
  3392. "VA",
  3393. "kVA",
  3394. "var",
  3395. "kvar",
  3396. "A",
  3397. "V",
  3398. "K",
  3399. "Celcius",
  3400. "Fahrenheit",
  3401. "Percent"
  3402. */
  3403. };
  3404. struct StructMeterValue
  3405. {
  3406. unsigned char TimeStamp[28];
  3407. struct StructSampledValue SampledValue[10];
  3408. };
  3409. struct StructConfigurationKeyItems
  3410. {
  3411. unsigned char Item[50];
  3412. };
  3413. struct StructConfigurationKey
  3414. {
  3415. unsigned char Key[50];
  3416. unsigned char ReadOnly[8]; //boolean
  3417. unsigned char Value[500];
  3418. };
  3419. struct StructChargingSchedulePeriod
  3420. {
  3421. int StartPeriod;
  3422. float Limit;//0.1;
  3423. int NumberPhases;
  3424. };
  3425. struct StructChargingSchedule
  3426. {
  3427. int Duration;
  3428. unsigned char StartSchedule[28];
  3429. unsigned char ChargingRateUnit[4]; //A, W
  3430. struct StructChargingSchedulePeriod ChargingSchedulePeriod[10];
  3431. float MinChargingRate; //0.1;
  3432. };
  3433. struct StructChargingProfile
  3434. {
  3435. int ChargingProfileId;
  3436. int TransactionId;
  3437. int StackLevel;
  3438. unsigned char ChargingProfilePurpose[24]; //ChargePointMaxProfile, TxDefaultProfile, TxProfile
  3439. unsigned char ChargingProfileKind[12]; //Absolute, Recurring, Relative
  3440. unsigned char RecurrencyKind[8]; //Daily, Weekly
  3441. unsigned char ValidFrom[28];
  3442. unsigned char ValidTo[28];
  3443. struct StructChargingSchedule ChargingSchedule;
  3444. };
  3445. struct StructBootNotification
  3446. {
  3447. unsigned char CpVendor[20]; //chargePointVendor //mandatory
  3448. unsigned char CpModel[20]; //chargePointModel //mandatory
  3449. unsigned char CpSN[25]; //chargePointSerialNumber
  3450. unsigned char CbSN[25]; //chargeBoxSerialNumber
  3451. unsigned char CpFwVersion[50]; //firmwareVersion
  3452. unsigned char CpIccid[22]; //iccid
  3453. unsigned char CpImsi[20]; //imsi
  3454. unsigned char CpMeterType[25]; //meterType
  3455. unsigned char CpMeterSerialNumber[25]; //meterSerialNumber
  3456. unsigned char ResponseStatus[16]; //Accepted, Pending, Rejected
  3457. unsigned char ResponseCurrentTime[28]; //currentTime //mandatory
  3458. int ResponseHeartbeatInterval; //interval //mandatory
  3459. };
  3460. struct StructHeartbeat
  3461. {
  3462. unsigned char ResponseCurrentTime[28];
  3463. };
  3464. struct StructAuthorize
  3465. {
  3466. unsigned char IdTag[20];
  3467. struct StructIdTagInfo ResponseIdTagInfo;
  3468. };
  3469. struct StructStartTransaction
  3470. {
  3471. int ConnectorId;
  3472. unsigned char IdTag[20];
  3473. int MeterStart;
  3474. int ReservationId;
  3475. unsigned char Timestamp[28];
  3476. struct StructIdTagInfo ResponseIdTagInfo;
  3477. int ResponseTransactionId;
  3478. };
  3479. struct StructStopTransaction
  3480. {
  3481. unsigned char IdTag[20];
  3482. int MeterStop;
  3483. unsigned char Timestamp[28];
  3484. int TransactionId;
  3485. unsigned char StopReason[20]; /* "EmergencyStop",
  3486. "EVDisconnected",
  3487. "HardReset",
  3488. "Local",
  3489. "Other",
  3490. "PowerLoss",
  3491. "Reboot",
  3492. "Remote",
  3493. "SoftReset",
  3494. "UnlockCommand",
  3495. "DeAuthorized"
  3496. */
  3497. struct StructMeterValue TransactionData[1];
  3498. struct StructIdTagInfo ResponseIdTagInfo;
  3499. };
  3500. struct StructStatusNotification
  3501. {
  3502. int ConnectorId;
  3503. unsigned char ErrorCode[25]; /* "ConnectorLockFailure",
  3504. "EVCommunicationError",
  3505. "GroundFailure",
  3506. "HighTemperature",
  3507. "InternalError",
  3508. "LocalListConflict",
  3509. "NoError",
  3510. "OtherError",
  3511. "OverCurrentFailure",
  3512. "PowerMeterFailure",
  3513. "PowerSwitchFailure",
  3514. "ReaderFailure",
  3515. "ResetFailure",
  3516. "UnderVoltage",
  3517. "OverVoltage",
  3518. "WeakSignal"
  3519. */
  3520. unsigned char Info[50];
  3521. unsigned char Status[20]; /* "Available",
  3522. "Preparing",
  3523. "Charging",
  3524. "SuspendedEVSE",
  3525. "SuspendedEV",
  3526. "Finishing",
  3527. "Reserved",
  3528. "Unavailable",
  3529. "Faulted"
  3530. */
  3531. unsigned char Timestamp[28];
  3532. unsigned char VendorId[256];
  3533. unsigned char VendorErrorCode[50];
  3534. };
  3535. struct StructCancelReservation
  3536. {
  3537. int ReservationId;
  3538. unsigned char ResponseStatus[16]; //Accepted, Rejected
  3539. unsigned char guid[37];
  3540. };
  3541. struct StructChangeAvailability
  3542. {
  3543. int ConnectorId;
  3544. unsigned char Type[16]; //Inoperative, Operative
  3545. unsigned char ResponseStatus[16]; //Accepted, Rejected, Scheduled
  3546. unsigned char guid[37];
  3547. };
  3548. struct StructChangeConfiguration
  3549. {
  3550. unsigned char Key[50];
  3551. unsigned char Value[500];
  3552. unsigned char ResponseStatus[16]; //Accepted, Rejected, RebootRequired, NotSupported
  3553. };
  3554. struct StructClearCache
  3555. {
  3556. unsigned char ResponseStatus[16]; //Accepted, Rejected
  3557. };
  3558. struct StructClearChargingProfile
  3559. {
  3560. int Id;
  3561. int ConnectorId;
  3562. unsigned char ChargingProfilePurpose[24]; //ChargePointMaxProfile, TxDefaultProfile, TxProfile
  3563. int StackLevel;
  3564. unsigned char ResponseStatus[16]; //Accepted, Unknown
  3565. };
  3566. struct StructDataTransfer
  3567. {
  3568. unsigned char VendorId[256];
  3569. unsigned char MessageId[52];
  3570. unsigned char Data[512];
  3571. unsigned char ResponseStatus[18]; //Accepted, Rejected,UnknownMessageId,UnknownVendorId
  3572. unsigned char ResponseData[256];
  3573. };
  3574. struct StructDiagnosticsStatusNotification
  3575. {
  3576. unsigned char Status[16]; //Idle,Uploaded,UploadFailed,Uploading
  3577. };
  3578. struct StructFirmwareStatusNotification
  3579. {
  3580. unsigned char Status[20]; //Downloaded,DownloadFailed,Downloading,Idle,InstallationFailed,Installing,Installed
  3581. };
  3582. struct StructGetCompositeSchedule
  3583. {
  3584. int ConnectorId;
  3585. int Duration;
  3586. unsigned char ChargingRateUnit[4]; //A,W
  3587. unsigned char ResponseStatus[12]; //Accepted,Rejected
  3588. int ResponseConnectorId;
  3589. unsigned char ResponseScheduleStart[28];
  3590. struct StructChargingSchedule ResponseChargingSchedule;
  3591. };
  3592. struct StructGetConfiguration
  3593. {
  3594. struct StructConfigurationKeyItems *Key;
  3595. struct StructConfigurationKey *ResponseConfigurationKey;
  3596. struct StructConfigurationKeyItems *ResponseUnknownKey;
  3597. };
  3598. struct StructGetDiagnostics
  3599. {
  3600. unsigned char Location[256];
  3601. int Retries;
  3602. int RetryInterval;
  3603. unsigned char StartTime[28];
  3604. unsigned char StopTime[28];
  3605. unsigned char ResponseFileName[256];
  3606. };
  3607. struct StructGetLocalListVersion
  3608. {
  3609. int ResponseListVersion;
  3610. };
  3611. struct StructMeterValues
  3612. {
  3613. int ConnectorId;
  3614. int TransactionId;
  3615. struct StructMeterValue MeterValue[0];
  3616. };
  3617. struct StructRemoteStartTransaction
  3618. {
  3619. int ConnectorId;
  3620. unsigned char IdTag[20];
  3621. struct StructChargingProfile ChargingProfile;
  3622. unsigned char ResponseStatus[10]; //Accepted, Rejected
  3623. unsigned char guid[37];
  3624. };
  3625. struct StructRemoteStopTransaction
  3626. {
  3627. int TransactionId;
  3628. unsigned char ResponseStatus[10]; //Accepted, Rejected
  3629. };
  3630. struct StructReserveNow
  3631. {
  3632. int ConnectorId;
  3633. unsigned char ExpiryDate[28];
  3634. unsigned char IdTag[20];
  3635. unsigned char ParentIdTag[20];
  3636. int ReservationId;
  3637. unsigned char ResponseStatus[12]; //Accepted, Faulted, Occupied, Rejected, Unavailable
  3638. unsigned char guid[37]; //OCPP Server request message uuid
  3639. };
  3640. struct StructReset
  3641. {
  3642. unsigned char Type[8]; //Hard, Soft
  3643. unsigned char ResponseStatus[10]; //Accepted, Rejected
  3644. unsigned char guid[37]; //OCPP Server request message uuid
  3645. };
  3646. struct StructSendLocalList
  3647. {
  3648. int ListVersion;
  3649. unsigned char UpdateType[16]; //Differential, Full
  3650. struct StructLocalAuthorizationList *LocalAuthorizationList;
  3651. unsigned char ResponseStatus[16]; //Accepted, Failed, NotSupported, VersionMismatch
  3652. };
  3653. struct StructSetChargingProfile
  3654. {
  3655. int ConnectorId;
  3656. struct StructChargingProfile ChargingProfile;
  3657. unsigned char ResponseStatus[16]; //Accepted, Rejected, NotSupported
  3658. };
  3659. struct StructTriggerMessage
  3660. {
  3661. unsigned char RequestedMessage[32]; /*
  3662. "BootNotification",
  3663. "DiagnosticsStatusNotification",
  3664. "FirmwareStatusNotification",
  3665. "Heartbeat",
  3666. "MeterValues",
  3667. "StatusNotification"
  3668. */
  3669. int ConnectorId;
  3670. unsigned char ResponseStatus[16]; //Accepted, Rejected, NotImplemented
  3671. };
  3672. struct StructUnlockConnector
  3673. {
  3674. int ConnectorId;
  3675. unsigned char ResponseStatus[16]; //Unlocked, UnlockFailed, NotSupported
  3676. unsigned char guid[37]; //OCPP Server request message uuid
  3677. };
  3678. struct StructUpdateFirmware
  3679. {
  3680. unsigned char Location[256];
  3681. int Retries;
  3682. unsigned char RetrieveDate[28];
  3683. int RetryInterval;
  3684. };
  3685. struct OCPP16ConfigurationItem
  3686. {
  3687. unsigned char ItemName[64];
  3688. unsigned char ItemAccessibility;//0:RO, 1:RW
  3689. unsigned char ItemData[128];
  3690. };
  3691. struct OCPP16ConfigurationTable
  3692. {
  3693. //please refer to OCPP 1.6 chapter 9
  3694. struct OCPP16ConfigurationItem CoreProfile[34];
  3695. struct OCPP16ConfigurationItem LocalAuthListManagementProfile[3];
  3696. struct OCPP16ConfigurationItem ReservationProfile[1];
  3697. struct OCPP16ConfigurationItem SmartChargingProfile[5];
  3698. };
  3699. struct OCPP16Data
  3700. {
  3701. 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"
  3702. unsigned char ChargeBoxId[128];
  3703. unsigned char OcppConnStatus; //0: disconnected, 1: connected
  3704. unsigned int Timeout_Secs;
  3705. unsigned short Ping_Pong_Interval;
  3706. union
  3707. {
  3708. //Operations Initiated by Charge Point
  3709. unsigned char CpMsgValue[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3710. struct
  3711. {
  3712. //CpMsgValue[0]
  3713. unsigned char DataTransferReq:1; //bit 0,
  3714. unsigned char DataTransferConf:1; //bit 1,
  3715. unsigned char StartTransactionReq:1; //bit 2,
  3716. unsigned char StartTransactionConf:1; //bit 3,
  3717. unsigned char StopTransactionReq:1; //bit 4,
  3718. unsigned char StopTransactionConf:1; //bit 5,
  3719. unsigned char :2; //bit 6,7 , reserved
  3720. } bits[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3721. }CpMsg;
  3722. union
  3723. {
  3724. //Operations Initiated by Sequence Point
  3725. unsigned char SpMsgValue[1];
  3726. struct
  3727. {
  3728. //SpMsgValue[0]
  3729. unsigned char BootNotificationReq :1; //bit 0,
  3730. unsigned char BootNotificationConf :1; //bit 1,
  3731. unsigned char AuthorizeReq :1; //bit 2,
  3732. unsigned char AuthorizeConf :1; //bit 3,
  3733. unsigned char DiagnosticsStatusNotificationReq :1; //bit 4,
  3734. unsigned char DiagnosticsStatusNotificationConf :1; //bit 5,
  3735. unsigned char FirmwareStatusNotificationReq :1; //bit 6,
  3736. unsigned char FirmwareStatusNotificationConf :1; //bit 7,
  3737. } bits;
  3738. } SpMsg;
  3739. union
  3740. {
  3741. //Operations Initiated by Central System
  3742. unsigned char CsMsgValue[3 * (CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY)];
  3743. struct
  3744. {
  3745. //CsMsgValue[0]
  3746. unsigned char CancelReservationReq :1; //bit 0,
  3747. unsigned char CancelReservationConf :1; //bit 1,
  3748. unsigned char ChangeAvailabilityReq :1; //bit 2,
  3749. unsigned char ChangeAvailabilityConf :1; //bit 3,
  3750. unsigned char ReserveNowReq :1; //bit 4,
  3751. unsigned char ReserveNowConf :1; //bit 5,
  3752. unsigned char SetChargingProfileReq :1; //bit 6,
  3753. unsigned char SetChargingProfileConf :1; //bit 7,
  3754. //CsMsgValue[1]
  3755. unsigned char TriggerMessageReq :1; //bit 0,
  3756. unsigned char TriggerMessageConf :1; //bit 1,
  3757. unsigned char UnlockConnectorReq :1; //bit 2,
  3758. unsigned char UnlockConnectorConf :1; //bit 3,
  3759. unsigned char RemoteStartTransactionReq :1; //bit 4,
  3760. unsigned char RemoteStartTransactionConf :1; //bit 5,
  3761. unsigned char RemoteStopTransactionReq :1; //bit 6,
  3762. unsigned char RemoteStopTransactionConf :1; //bit 7,
  3763. //CsMsgValue[2]
  3764. unsigned char ClearChargingProfileReq :1; //bit 0,
  3765. unsigned char ClearChargingProfileConf :1; //bit 1,
  3766. unsigned char DataTransferReq :1; //bit 2,
  3767. unsigned char DataTransferConf :1; //bit 3,
  3768. unsigned char GetCompositeScheduleReq :1; //bit 4,
  3769. unsigned char GetCompositeScheduleConf :1; //bit 5,
  3770. unsigned char :2; //bit 6,7
  3771. } bits[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3772. }CsMsg;
  3773. union
  3774. {
  3775. //Operations Initiated by Main System
  3776. unsigned char MsMsgValue[2];
  3777. struct
  3778. {
  3779. //CsMsgValue[0]
  3780. unsigned char ChangeConfigurationReq :1; //bit 0,
  3781. unsigned char ChangeConfigurationConf :1; //bit 1,
  3782. unsigned char ClearCacheReq :1; //bit 2,
  3783. unsigned char ClearCacheConf :1; //bit 3,
  3784. unsigned char GetConfigurationReq :1; //bit 4,
  3785. unsigned char GetConfigurationConf :1; //bit 5,
  3786. unsigned char UpdateFirmwareReq :1; //bit 6,
  3787. unsigned char UpdateFirmwareConf :1; //bit 7,
  3788. //CsMsgValue[1]
  3789. unsigned char GetDiagnosticsReq :1; //bit 0,
  3790. unsigned char GetDiagnosticsConf :1; //bit 1,
  3791. unsigned char GetLocalListVersionReq :1; //bit 2,
  3792. unsigned char GetLocalListVersionConf :1; //bit 3,
  3793. unsigned char ResetReq :1; //bit 4,
  3794. unsigned char ResetConf :1; //bit 5,
  3795. unsigned char SendLocalListReq :1; //bit 6,
  3796. unsigned char SendLocalListConf :1; //bit 7,
  3797. } bits;
  3798. } MsMsg;
  3799. union
  3800. {
  3801. //Operations triggered by CSU
  3802. unsigned char CSUMsgValue[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3803. struct
  3804. {
  3805. //CSUMsgValue[0]
  3806. unsigned char ChargingProfileReq:1; //bit 0,
  3807. unsigned char ChargingProfileConf:1; //bit 0,
  3808. unsigned char :6; //bit 1,2,3,4,5,6,7 , reserved
  3809. } bits[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3810. }CSUMsg;
  3811. struct StructBootNotification BootNotification;
  3812. struct StructHeartbeat Heartbeat;
  3813. struct StructAuthorize Authorize;
  3814. struct StructStartTransaction StartTransaction[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3815. struct StructStopTransaction StopTransaction[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3816. struct StructStatusNotification StatusNotification[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3817. struct StructCancelReservation CancelReservation[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3818. struct StructChangeAvailability ChangeAvailability[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3819. struct StructChangeConfiguration ChangeConfiguration;
  3820. struct StructClearCache ClearCache;
  3821. struct StructClearChargingProfile ClearChargingProfile[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3822. struct StructDataTransfer DataTransfer[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3823. struct StructDiagnosticsStatusNotification DiagnosticsStatusNotification;
  3824. struct StructFirmwareStatusNotification FirmwareStatusNotification;
  3825. struct StructGetCompositeSchedule GetCompositeSchedule[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3826. struct StructGetConfiguration GetConfiguration;
  3827. struct StructGetDiagnostics GetDiagnostics;
  3828. struct StructGetLocalListVersion GetLocalListVersion;
  3829. struct StructMeterValues MeterValues[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3830. struct StructRemoteStartTransaction RemoteStartTransaction[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3831. struct StructRemoteStopTransaction RemoteStopTransaction[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3832. struct StructReserveNow ReserveNow[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3833. struct StructReset Reset;
  3834. struct StructSendLocalList SendLocalList;
  3835. struct StructSetChargingProfile SetChargingProfile[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3836. struct StructTriggerMessage TriggerMessage[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3837. struct StructUnlockConnector UnlockConnector[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3838. struct StructUpdateFirmware UpdateFirmware;
  3839. struct OCPP16ConfigurationTable ConfigurationTable;
  3840. struct StructChargingProfile SmartChargingProfile[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3841. };
  3842. #endif // DEFINE_H_