define.h 168 KB

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