define.h 314 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149
  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 GENERAL_GUN_QUANTITY 0
  43. #define PSU_QUANTITY 2
  44. #define ONE_CONNECTOR_USE 0
  45. #elif BYTONGB
  46. #define MAX_PSU_QUANTITY 62
  47. #define CHAdeMO_QUANTITY 1
  48. #define CCS_QUANTITY 1
  49. #define GB_QUANTITY 0
  50. #define AC_QUANTITY 1
  51. #define GENERAL_GUN_QUANTITY 0
  52. #define PSU_QUANTITY 2
  53. #define ONE_CONNECTOR_USE 0
  54. #elif DW30
  55. #define MAX_PSU_QUANTITY 62
  56. #define CHAdeMO_QUANTITY 0
  57. #define CCS_QUANTITY 1
  58. #define GB_QUANTITY 0
  59. #define AC_QUANTITY 0
  60. #define GENERAL_GUN_QUANTITY 0
  61. #define PSU_QUANTITY 2
  62. #define ONE_CONNECTOR_USE 0
  63. #elif DM30
  64. #define MAX_PSU_QUANTITY 62
  65. #define CHAdeMO_QUANTITY 0
  66. #define CCS_QUANTITY 1
  67. #define GB_QUANTITY 0
  68. #define AC_QUANTITY 0
  69. #define GENERAL_GUN_QUANTITY 0
  70. #define PSU_QUANTITY 2
  71. #define ONE_CONNECTOR_USE 0
  72. #elif DS60120
  73. #define MAX_PSU_QUANTITY 62
  74. #define CHAdeMO_QUANTITY 2
  75. #define CCS_QUANTITY 2
  76. #define GB_QUANTITY 2
  77. #define AC_QUANTITY 1
  78. #define GENERAL_GUN_QUANTITY 0
  79. #define PSU_QUANTITY 2
  80. #define ONE_CONNECTOR_USE 0
  81. #elif DS60210
  82. #define MAX_PSU_QUANTITY 62
  83. #define CHAdeMO_QUANTITY 1
  84. #define CCS_QUANTITY 1
  85. #define GB_QUANTITY 0
  86. #define AC_QUANTITY 0
  87. #define GENERAL_GUN_QUANTITY 0
  88. #define PSU_QUANTITY 2
  89. #define ONE_CONNECTOR_USE 0
  90. #elif PlugIt360
  91. #define MAX_PSU_QUANTITY 62
  92. #define CHAdeMO_QUANTITY 0
  93. #define CCS_QUANTITY 1
  94. #define GB_QUANTITY 0
  95. #define AC_QUANTITY 0
  96. #define GENERAL_GUN_QUANTITY 0
  97. #define PSU_QUANTITY 2
  98. #define ONE_CONNECTOR_USE 0
  99. #elif DD360
  100. #define MAX_PSU_QUANTITY 62
  101. #define CHAdeMO_QUANTITY 0
  102. #define CCS_QUANTITY 2
  103. #define GB_QUANTITY 0
  104. #define AC_QUANTITY 0
  105. #define GENERAL_GUN_QUANTITY 0
  106. #define PSU_QUANTITY 2
  107. #define ONE_CONNECTOR_USE 0
  108. #elif DD360Audi
  109. #define MAX_PSU_QUANTITY 62
  110. #define CHAdeMO_QUANTITY 0
  111. #define CCS_QUANTITY 2
  112. #define GB_QUANTITY 0
  113. #define AC_QUANTITY 0
  114. #define GENERAL_GUN_QUANTITY 0
  115. #define PSU_QUANTITY 2
  116. #define ONE_CONNECTOR_USE 0
  117. #elif DO360
  118. #define MAX_PSU_QUANTITY 62
  119. #define CHAdeMO_QUANTITY 0
  120. #define CCS_QUANTITY 0
  121. #define GB_QUANTITY 0
  122. #define AC_QUANTITY 0
  123. #define GENERAL_GUN_QUANTITY 4
  124. #define PSU_QUANTITY 6
  125. #define ONE_CONNECTOR_USE 0
  126. #elif ATE
  127. #define MAX_PSU_QUANTITY 62
  128. #define CHAdeMO_QUANTITY 0
  129. #define CCS_QUANTITY 1
  130. #define GB_QUANTITY 0
  131. #define AC_QUANTITY 0
  132. #define GENERAL_GUN_QUANTITY 0
  133. #define PSU_QUANTITY 2
  134. #define ONE_CONNECTOR_USE 0
  135. #else
  136. #define MAX_PSU_QUANTITY 62
  137. #define CHAdeMO_QUANTITY 2
  138. #define CCS_QUANTITY 2
  139. #define GB_QUANTITY 2
  140. #define AC_QUANTITY 1
  141. #define GENERAL_GUN_QUANTITY 0
  142. #define PSU_QUANTITY 2
  143. #define ONE_CONNECTOR_USE 0
  144. #endif
  145. #define CONNECTOR_QUANTITY (CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY + GENERAL_GUN_QUANTITY)
  146. /*SystemLog message*/
  147. #define SystemLogMessage //for debug info save to log file
  148. //#define ConsloePrintLog //for debug info print to console
  149. /**************************************************************************************/
  150. /*****************************share memory key information*****************************/
  151. /**************************************************************************************/
  152. #define ShmSysConfigAndInfoKey 1001
  153. #define ShmPsuKey 1002
  154. #define ShmCHAdeMOCommKey 1003
  155. #define ShmCcsCommKey 1004
  156. #define ShmStatusCodeKey 1005
  157. #define ShmPrimaryMcuKey 1006
  158. #define ShmFanBdKey 1007
  159. #define ShmRelayBdKey 1008
  160. #define ShmOcppModuleKey 1009
  161. #define ShmGBTCommKey 1010
  162. #define ShmLedBdKey 1011
  163. #define ShmOcpp20ModuleKey 1012
  164. #define ShmRelay2BdKey 1013
  165. /**************************************************************************************/
  166. /****************** Share memory configuration value constant define ******************/
  167. /**************************************************************************************/
  168. enum SYSTEM_STATUS {
  169. SYS_MODE_BOOTING = 0,
  170. SYS_MODE_IDLE = 1,
  171. SYS_MODE_AUTHORIZING = 2,
  172. SYS_MODE_MODE_REASSIGN_CHECK = 3,
  173. SYS_MODE_REASSIGN = 4,
  174. SYS_MODE_PREPARING = 5,
  175. SYS_MODE_PREPARE_FOR_EV = 6,
  176. SYS_MODE_PREPARE_FOR_EVSE = 7,
  177. SYS_MODE_CHARGING = 8,
  178. SYS_MODE_TERMINATING = 9,
  179. SYS_MODE_COMPLETE = 10,
  180. SYS_MODE_ALARM = 11,
  181. SYS_MODE_FAULT = 12,
  182. SYS_MODE_RESERVATION = 13,
  183. SYS_MODE_BOOKING = 14,
  184. SYS_MODE_MAINTAIN = 15,
  185. SYS_MODE_DEBUG = 16,
  186. SYS_MODE_CCS_PRECHARGE_STEP0 = 17,
  187. SYS_MODE_CCS_PRECHARGE_STEP1 = 18,
  188. SYS_MODE_UPDATE = 19
  189. };
  190. enum AUTHORIZATION_MODE {
  191. AUTH_MODE_ENABLE = 0,
  192. AUTH_MODE_DISABLE = 1
  193. };
  194. enum LCD_LANGUAGE {
  195. LCD_LANG_ENGLISH = 0,
  196. LCD_LANG_CHT = 1,
  197. LCD_LANG_CHS = 2,
  198. LCD_LANG_JAPANESE = 3,
  199. LCD_LANG_FRENCH = 4,
  200. LCD_LANG_ITALIAN = 5,
  201. LCD_LANG_SPANISH = 6,
  202. LCD_LANG_GERMAN = 7,
  203. LCD_LANG_DUTCH = 8,
  204. LCD_LANG_NORWEGIAN = 9,
  205. LCD_LANG_FINNISH = 10,
  206. LCD_LANG_SWEDISH = 11,
  207. LCD_LANG_SLOVENIAN = 12,
  208. LCD_LANG_THAI = 13,
  209. };
  210. enum RFID_ENDIAN {
  211. RFID_ENDIAN_LITTLE = 0,
  212. RFID_ENDIAN_BIG = 1
  213. };
  214. enum PHASE_LOSS_POLICY {
  215. LOSS_POLICY_CHARGING = 0,
  216. LOSS_POLICY_STOP = 1
  217. };
  218. enum CCS_AUTHPRIZATION_MODE {
  219. CCS_AUTH_MODE_EIM = 0,
  220. CCS_AUTH_MODE_MIXED = 1
  221. };
  222. enum OFF_LINE_POLICY {
  223. OFF_POLICY_LOCALLIST = 0,
  224. OFF_POLICY_PH_RFID = 1,
  225. OFF_POLICY_FREE = 2,
  226. OFF_POLICY_NOCHARGE = 3
  227. };
  228. /*Configuration enum*/
  229. enum CoreProfile {
  230. AllowOfflineTxForUnknownId = 0,
  231. AuthorizationCacheEnabled,
  232. AuthorizeRemoteTxRequests,
  233. BlinkRepeat,
  234. ClockAlignedDataInterval,
  235. ConnectionTimeOut,
  236. GetConfigurationMaxKeys,
  237. HeartbeatInterval,
  238. LightIntensity,
  239. LocalAuthorizeOffline,
  240. LocalPreAuthorize,
  241. MaxEnergyOnInvalidId,
  242. MeterValuesAlignedData,
  243. MeterValuesAlignedDataMaxLength,
  244. MeterValuesSampledData,
  245. MeterValuesSampledDataMaxLength,
  246. MeterValueSampleInterval,
  247. MinimumStatusDuration,
  248. NumberOfConnectors,
  249. ResetRetries,
  250. ConnectorPhaseRotation,
  251. ConnectorPhaseRotationMaxLength,
  252. StopTransactionOnEVSideDisconnect,
  253. StopTransactionOnInvalidId,
  254. StopTxnAlignedData,
  255. StopTxnAlignedDataMaxLength,
  256. StopTxnSampledData,
  257. StopTxnSampledDataMaxLength,
  258. SupportedFeatureProfiles,
  259. SupportedFeatureProfilesMaxLength,
  260. TransactionMessageAttempts,
  261. TransactionMessageRetryInterval,
  262. UnlockConnectorOnEVSideDisconnect,
  263. WebSocketPingInterval,
  264. QueueOffLineStartTransactionMessage,
  265. AuthorizationKey,
  266. SecurityProfile,
  267. DefaultPrice,
  268. CustomDisplayCostAndPrice,
  269. CustomIdleFeeAfterStop,
  270. _CoreProfile_CNT
  271. };
  272. /**************************************************************************************/
  273. /****structure SysConfigData => shall store the data to NAND flash****************/
  274. /****structure SysInfoData => shall NOT store the data to NAND flash***************/
  275. /****according to System Configuration and Information Table.xlsx Rev.0.2 *******/
  276. /**************************************************************************************/
  277. struct NoneUse {
  278. unsigned char unknown; // None use struct
  279. };
  280. struct EthConfigData {
  281. unsigned char EthDhcpClient; //0: enable,1: disable
  282. unsigned char EthMacAddress[18]; //default: Null
  283. unsigned char EthIpAddress[16]; //Eth0 default:192.168.0.10 ,Eth1 default:192.168.1.10
  284. unsigned char EthSubmaskAddress[16]; //Eth0 default:255.255.255.0 ,Eth1 default:255.255.255.0
  285. unsigned char EthGatewayAddress[16]; //Eth0 default:192.168.0.254 ,Eth1 default:192.168.1.254
  286. };
  287. struct WifiConfigData {
  288. unsigned char WifiMode; //0: disable, 1: Infrastructure client, 2: Infrastructure server, 3: Ad-Hoc
  289. unsigned char WifiSsid[256]; //default: Null
  290. unsigned char WifiPassword[256]; //default: Null
  291. int WifiRssi; //dbm
  292. unsigned char WifiDhcpServer; //0: enable, 1: disable
  293. unsigned char WifiDhcpClient; //0: enable, 1: disable
  294. unsigned char WifiMacAddress[18]; //default: Null
  295. unsigned char WifiIpAddress[16]; //default:192.168.2.10
  296. unsigned char WifiSubmaskAddress[16]; //default:255.255.255.0
  297. unsigned char WifiGatewayAddress[16]; //default:192.168.2.254
  298. unsigned char WifiNetworkConn; //0: disconnected, 1: connected
  299. };
  300. struct TeleConfigData {
  301. unsigned char TelcomModelName[64]; //default: Null
  302. unsigned char TelcomSoftwareVer[64]; //default: Null
  303. unsigned char TelcomApn[256]; //default: Null
  304. int TelcomRssi; //dbm
  305. unsigned char TelcomChapPapId[256]; //default: Null
  306. unsigned char TelcomChapPapPwd[256]; //default: Null
  307. unsigned char TelcomModemImei[16]; //default: Null
  308. unsigned char TelcomSimImsi[16]; //default: Null
  309. unsigned char TelcomSimIccid[22]; //default: Null
  310. unsigned char TelcomSimStatus; //0: no SIM card is found, 1: valid SIM card, 2: invalid SIM card
  311. unsigned char TelcomModemMode; //0: No services, 1: CDMA, 2: GSM/GPRS, 3: WCDMA, 4: GSM/WCDMA, 5: TD_SCDMA mode, 6: Unknow
  312. unsigned char TelcomIpAddress[16]; //default: Null
  313. unsigned char TelcomNetworkConn; //0: disconnected, 1: connected
  314. unsigned char TelcomEnabled; //0: disable, 1: enable
  315. };
  316. struct BtConfigData {
  317. unsigned char LoginCentralID[64]; //default: Null
  318. unsigned char isLogin; //0: Central device non-login 1: Central device login
  319. unsigned char isRequestStart; //0: no action 1: request start charging
  320. unsigned char isRequestStop; //0: no action 1: request stop charging
  321. };
  322. struct BillingConfigData {
  323. unsigned char isBilling; //0:not for business 1:for business
  324. unsigned char Currency; //
  325. float Fee[24]; //fee for 24 hours
  326. float Cur_fee; // display current fee
  327. };
  328. struct LED {
  329. unsigned char Intensity; // LED bar intensity 0: Darkest 1: Medium 2: Brightest
  330. unsigned char Red[3]; // Red color 0~100, element 0: IDLE 1: CHARGING 2: FAULT
  331. unsigned char Green[3]; // Green color 0~100, element 0: IDLE 1: CHARGING 2: FAULT
  332. unsigned char Blue[3]; // Blue color 0~100, element 0: IDLE 1: CHARGING 2: FAULT
  333. };
  334. struct Schedule {
  335. unsigned char isEnable; // 0: disable schedule function 1: enable schedule function
  336. unsigned char scheduleType; // 0: Once 1: Daily
  337. unsigned char scheduleMethod; // 0: Continuous 1: Specificate end time
  338. unsigned char startTimeHour; // Schedule start trigger time hour
  339. unsigned char startTimeMinute; // Schedule start trigger time minute
  340. unsigned char stopTimeHour; // Schedule stop trigger time hour
  341. unsigned char stopTimeMinute; // Schedule stop trigger time minute
  342. unsigned char isTriggerStart; // 0: disable; 1: enable
  343. unsigned char isTriggerStop; // 0: disable; 1: enable
  344. };
  345. struct SysConfigData {
  346. /**************System***************/
  347. unsigned char CsuBootLoadFwRev[32]; //CSU board bootloader firmware version
  348. unsigned char ModelName[64]; //charger model name
  349. unsigned char AcModelName[64]; //for third gun (DC + AC)
  350. unsigned char SerialNumber[64]; //charger system serial number
  351. unsigned char SystemId[128]; //charger system ID
  352. unsigned char SystemDateTime[32]; //charger system date and time
  353. unsigned char AcPhaseCount; //AC EVSE power phase quantity, 1: One phase 3: Three phase
  354. unsigned char AuthorisationMode; //0: enable, 1: disable
  355. unsigned char DefaultLanguage; //
  356. unsigned char RfidCardNumEndian; //0: little endian, 1: big endian
  357. unsigned short AcPlugInTimes; //0~65535
  358. unsigned short GbPlugInTimes; //0~65535
  359. unsigned short Ccs1PlugInTime; //0~65535
  360. unsigned short Ccs2PlugInTimes; //0~65535
  361. unsigned short ChademoPlugInTimes; //0~65535
  362. unsigned char PsuAcInputType; //0: 220, 1: 277
  363. unsigned short RatingCurrent; //0: Depend on Model name, 1 ~ rating value amp
  364. unsigned short AcRatingCurrent; //for third gun; 0: Depend on Model name, 1 ~ rating value amp
  365. unsigned char isAPP; //for AuthorisationMode=0; 0:false, 1:true
  366. unsigned char isQRCode; //for AuthorisationMode=0; 0:false, 1:true
  367. unsigned char isRFID; //for AuthorisationMode=0; 0:false, 1:true
  368. unsigned char QRCodeMadeMode; //for isQRCode=1 ; 0: default 1:customized
  369. unsigned char QRCodeContent[128]; //for QRCodeMadeMode=1
  370. unsigned char TotalConnectorCount; //Connector count
  371. unsigned char AcConnectorCount; // For DC type
  372. unsigned char SwitchDebugFlag; // Console Debug
  373. unsigned char AlwaysGfdFlag;
  374. /**************Charging***************/
  375. unsigned short MaxChargingEnergy; //0: no limit, 1 ~ 65535 kWh
  376. unsigned short MaxChargingPower; //0: rating value, 1 ~ RATING_POWER kW
  377. unsigned short MaxChargingCurrent; //0: rating value, 1 ~ RATING_CURRENT amp
  378. unsigned short AcMaxChargingCurrent; //for third gun; 0: rating value, 1 ~ RATING_CURRENT amp
  379. unsigned short MaxChargingDuration; //0: no limit, 1 ~ 65535 minutes
  380. unsigned char PhaseLossPolicy; //0: charging, 1: stop charging
  381. unsigned char LocalWhiteCard[10][32]; //Max. card quantity is 10
  382. unsigned char UserId[32]; //the user use this ID to trigger charging event, it can be RFID card number, OCPP IdTag, etc.
  383. struct BillingConfigData BillingData;
  384. /**************Network***************/
  385. unsigned char FtpServer[256]; //the ftp server for Phihong server to do data transimission
  386. struct EthConfigData Eth0Interface;
  387. struct EthConfigData Eth1Interface;
  388. struct WifiConfigData AthInterface;
  389. struct TeleConfigData TelecomInterface;
  390. struct BtConfigData Bluetooth;
  391. /**************Backend***************/
  392. unsigned int BackendConnTimeout; //default : 300s
  393. unsigned char OfflinePolicy; //0: local list, 1: Phihong RFID tag, 2: free charging, 3: no charging
  394. unsigned short OfflineMaxChargeEnergy; //0: same as MaxChargingEnergy, 1 ~ 65535 kWh
  395. unsigned short OfflineMaxChargeDuration; //0: same as MaxChargeDuration, 1 ~ 65535 minutes
  396. 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"
  397. unsigned char ChargeBoxId[128];
  398. unsigned char chargePointVendor[20]; //the Vendor of the ChargePoint
  399. unsigned int Checksum; //4 bytes checksum
  400. struct LED LedInfo; // LED configuration info
  401. unsigned char ShowInformation;
  402. };
  403. struct ChargingInfoData {
  404. unsigned char Index;
  405. unsigned char slotsIndex;
  406. unsigned char Type; // 0 : Chademo, 1 : CCS, 2: GB
  407. unsigned char type_index;
  408. unsigned char Evboard_id; // for EV board
  409. unsigned char StopChargeFlag; // for EV board
  410. unsigned char SystemStatus; //0: Booting, 1: idle, 2: authorizing, 3: preparing, 4: charging, 5: terminating, 6: alarm, 7: fault
  411. unsigned char PreviousSystemStatus; // 0: Booting, 1: idle, 2: authorizing, 3: preparing, 4: charging, 5: terminating, 6: alarm, 7: fault
  412. int ReservationId;
  413. unsigned char IsAvailable;
  414. float MaximumChargingVoltage; // unit 0.1V
  415. float AvailableChargingCurrent; // unit 0.1A
  416. float AvailableChargingPower; // unit .01kW
  417. float DividChargingCurrent; //0~6553.5 amp
  418. float DeratingChargingCurrent; //0~6553.5 amp
  419. float DeratingChargingPower; //0~6553.5 kW
  420. float FuseChargingVoltage; //0~6553.5 volt
  421. float FireChargingVoltage; //0~6553.5 volt
  422. float PresentChargingVoltage; //0~6553.5 volt
  423. float PresentChargingCurrent; //0~6553.5 amp
  424. float PresentChargingPower; //0~6553.5 kW
  425. float PresentChargedEnergy; //0~6553.5 kWh
  426. int PresentChargedDuration; // second
  427. int RemainChargingDuration; // second
  428. float EvBatteryMaxVoltage; // 0~6553.5 volt
  429. float EvBatterytargetVoltage; // 0~6553.5 volt
  430. float EvBatterytargetCurrent; //102.3 0~200(A) (unit:1A)
  431. int EvBatterySoc; // 0~100%
  432. unsigned char ConnectorPlugIn; //0: unplug, 1: Plug-in
  433. unsigned char GunLocked; //0: unlocked 1: locked
  434. float PilotVoltage;
  435. 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
  436. unsigned char PilotDuty; // 0~100%
  437. unsigned char StartUserId[32]; // This ID is trigger start charging event user by RFID,back-end,BLE.
  438. unsigned char StartDateTime[32]; // Charging cycle start date time
  439. unsigned char StopDateTime[32]; // Charging cycle stop date time
  440. unsigned char StartMethod;
  441. float ChargingFee;
  442. // Connector Temp
  443. unsigned char ConnectorTemp; //0x00: -60¢XC ~ 0xFE: 194
  444. // Charging Status
  445. unsigned char GroundFaultStatus; // for GFD result => 0x00 : None, 0x01 : Can Start Charging, 0x02 : Stop Charging
  446. unsigned short RealRatingPower;
  447. unsigned char RelayWeldingCheck; // 0 : No Comp., 1 : Comp.
  448. unsigned char PrechargeStatus; // for ccs precharge => 0x00 : None defined, 0x01 : Accepted
  449. float PowerConsumption; // This contains the meter value (Power Consumption) kWh
  450. unsigned char RelayK1K2Status; // 0x00 : open, 0x01 : close
  451. unsigned char RelayKPK2Status; // 0x00 : open, 0x01 : close
  452. unsigned char TimeoutFlag; // 0 : none,
  453. struct timeval TimeoutTimer;
  454. unsigned char MaxChargeEnable;
  455. unsigned char IsReadyToCharging;
  456. unsigned char CcsAuthentication; // 0:EIM, 1:EIM & PnC mixed
  457. unsigned char AcCcsChargingMode; // 0:BC (PWM) only, 1:BC & PLC mixed
  458. unsigned short SampleChargingCur[10];
  459. /**************Alston for AC***************/
  460. unsigned char SelfTest_Comp;
  461. unsigned char version[16];
  462. unsigned char IsModeChagned;
  463. unsigned char IsCharging;
  464. unsigned char IsErrorOccur;
  465. float RealMaxVoltage;
  466. float RealMaxCurrent;
  467. float RealMaxPower;
  468. unsigned char ConnectorWarningCode[7];
  469. unsigned char ConnectorAlarmCode[7];
  470. unsigned char EvConnAlarmCode[7];
  471. float ChargingProfileCurrent; //0~6553.5 amp
  472. float ChargingProfilePower; //0~6553.5 kW
  473. float PresentChargingVoltageL2; //0~6553.5 volt
  474. float PresentChargingVoltageL3; //0~6553.5 volt
  475. float PresentChargingCurrentL2; //0~6553.5 amp
  476. float PresentChargingCurrentL3; //0~6553.5 amp
  477. char RemoteStartFlag;
  478. unsigned char MaxChargingToAverPassFlag;
  479. unsigned char EVCCID[18]; //the MAC address of the EVCC in Hex
  480. unsigned char isRemoteStart;
  481. struct Schedule schedule; // Schedule
  482. int EvBatteryStartSoc; // 0~100%
  483. unsigned char UnKnowStopChargeFlag; // for EV board
  484. };
  485. typedef union {
  486. unsigned int SettingValue;
  487. struct {
  488. unsigned int AuthorizeRequest: 1; // 0: idle, 1: requesting
  489. unsigned int res: 31;
  490. } bits;
  491. } DispenserSettingFlag;
  492. struct DispenserModule {
  493. unsigned char LocalStatus; // 0: None, 1: Identification, 2: Idle, 3: Alarm, 4: Charging, 5: _DS_Timeout
  494. unsigned char ConnectorQuantity; //Connector count
  495. unsigned char ConnectorID[2]; //Available Connector ID: 1 ~ 4
  496. unsigned char UserId[32]; //the user use this ID to trigger charging event, it can be RFID card number, OCPP IdTag, etc.
  497. unsigned char ModelName[64]; //charger model name
  498. unsigned char SerialNumber[64]; //charger system serial number
  499. unsigned char SystemId[128]; //charger system ID
  500. unsigned char AuthorisationMode; //0: enable, 1: disable
  501. unsigned char RfidCardNumEndian; //0: little endian, 1: big endian
  502. unsigned char isAPP; //for AuthorisationMode=0; 0:false, 1:true
  503. unsigned char isQRCode; //for AuthorisationMode=0; 0:false, 1:true
  504. unsigned char isRFID; //for AuthorisationMode=0; 0:false, 1:true
  505. unsigned char QRCodeMadeMode; //for isQRCode=1 ; 0: default 1:customized
  506. unsigned char QRCodeContent[128]; //for QRCodeMadeMode=1
  507. unsigned char FactoryConfiguration; //0: normal, 1: trigger, charger will return the configuration to factory default if trigger
  508. unsigned char CsuBootLoadFwRev[32]; //CSU board bootloader firmware version
  509. unsigned char CsuKernelFwRev[32]; //CSU board OS kernel firmware version
  510. unsigned char CsuRootFsFwRev[32]; //CSU board root file system firmware version
  511. unsigned char CsuPrimFwRev[32]; //CSU board root file system firmware version
  512. unsigned char LcmFwRev[32]; //LCM module firmware version
  513. unsigned char PsuPrimFwRev[32]; //PSU primary firmware version
  514. unsigned char PsuSecFwRev[32]; //PSU secondary firmware version
  515. unsigned char FanModuleFwRev[32]; //Fan module firmware version
  516. unsigned char RelayModuleFwRev[32]; //Relay control module firmware version
  517. unsigned char TelcomModemFwRev[32]; //the 3G/4G modem firmware version
  518. unsigned char LedModuleFwRev[32]; //LED control module firmware version
  519. unsigned char Connector1FwRev[32]; //Connector1 module firmware version
  520. unsigned char Connector2FwRev[32]; //Connector2 module firmware version
  521. struct LED LedInfo; // LED configuration info
  522. // 0: Authorize idle, 1: Authorize wait, 2: Authorizing
  523. unsigned char AuthorizeStatus; // 3: Authorize ok, 4: Authorizing fail
  524. DispenserSettingFlag Setting;
  525. };
  526. struct ConnectionInfoData {
  527. unsigned char Status; // 0: free, 1: WaitModelName, 2: DispenserMatched
  528. unsigned char DispenserIndex;
  529. unsigned int IpAddress;
  530. };
  531. struct DispenserInfoData {
  532. unsigned char DispenserQuantity;
  533. unsigned char TotalConnectorQuantity;
  534. struct DispenserModule Dispenser[GENERAL_GUN_QUANTITY];
  535. union {
  536. unsigned char Status;
  537. struct {
  538. unsigned char Dispenser1: 1; // 1: ever checkin, 0: never checkin
  539. unsigned char Dispenser2: 1; // 1: ever checkin, 0: never checkin
  540. unsigned char Dispenser3: 1; // 1: ever checkin, 0: never checkin
  541. unsigned char Dispenser4: 1; // 1: ever checkin, 0: never checkin
  542. unsigned char Dispenser5: 1; // 1: ever checkin, 0: never checkin
  543. unsigned char Dispenser6: 1; // 1: ever checkin, 0: never checkin
  544. unsigned char Dispenser7: 1; // 1: ever checkin, 0: never checkin
  545. unsigned char Dispenser8: 1; // 1: ever checkin, 0: never checkin
  546. } Flag;
  547. } CheckInLog; // record dispenser checkin status
  548. unsigned char ConnectorLog[GENERAL_GUN_QUANTITY]; // record connector quantity of dispenser
  549. struct ConnectionInfoData ConnectionInfo[GENERAL_GUN_QUANTITY];
  550. };
  551. struct WARNING_CODE_INFO {
  552. unsigned char WarningCount;
  553. unsigned char PageIndex;
  554. unsigned char WarningCode[10][7];
  555. unsigned char Level;
  556. unsigned char ExtraErrProcess; // 0 : none, 1 : input uvp..
  557. };
  558. typedef union {
  559. unsigned int Value;
  560. struct {
  561. unsigned int AuthorizeRequestType: 4; // 0: not authorize, 1: local authorized, 2: remote start authorized
  562. unsigned int PermissionRequest: 1; // 0: no request, 1: dispenser request to charging
  563. unsigned int RemoteStartRequest: 1; // 0: no request, 1: remote start
  564. unsigned int RemoteStopRequest: 1; // 0: no request, 1: remote stop
  565. unsigned int UnlockStopRequest: 1; // 0: no request, 1: Unlock stop
  566. unsigned int TimeoutStopRequest: 1; // 0: no request, 1: ethernet timeout stop
  567. unsigned int PsuReleasable: 1;
  568. unsigned int res: 22;
  569. } bits;
  570. } ConnectorParameter;
  571. struct ConnectorInfoData {
  572. unsigned char RemoteStatus; // 0: Idle, 1: Preparing, 2: Charging, 3: Terminating
  573. unsigned char Enable; // 0: Disable, 1: Enable
  574. unsigned char ReadyToCharge; // 0: Not Ready, 1: Ready to Charge
  575. unsigned char ParentDispensetIndex; // Parent Dispenser Index: 0 ~ 3
  576. ConnectorParameter Parameter;
  577. // 0: Authorize idle, 1: Authorize wait, 2: Authorizing
  578. unsigned char AuthorizeStatus; // 3: Authorize ok, 4: Authorizing fail
  579. struct ChargingInfoData GeneralChargingData;
  580. struct WARNING_CODE_INFO WarningInfo;
  581. };
  582. typedef union {
  583. unsigned int SettingValue;
  584. struct {
  585. unsigned int StartAuthorize: 1; // 0: idle, 1: authorizing
  586. unsigned int AuthorizingCompleted: 1; // 0: not yet, 1: authorizing completed
  587. unsigned int AuthorizeTargetIndex: 4; // dispenser or connector index from 0 ~ 3
  588. unsigned int AuthorizeSrc: 4; // 0: not authorize, 1: local authorize, 2: remote authorize
  589. unsigned int res: 22;
  590. } bits;
  591. } CabinetSettingFlag;
  592. struct SysInfoData {
  593. /**************System***************/
  594. unsigned char BootingStatus; // 0 : booting, 1 : Initializing Complete.
  595. unsigned char AuthorizeFlag; // 0 : None, 1 : Authorizing
  596. unsigned char FactoryConfiguration; //0: normal, 1: trigger, charger will return the configuration to factory default if trigger
  597. float InputVoltageR; //0~655.35 volt
  598. float InputVoltageS; //0~655.35 volt
  599. float InputVoltageT; //0~655.35 volt
  600. unsigned int SystemFanRotaSpeed; //0 ~ 65535 RPM
  601. unsigned int PsuFanRotaSpeed; //0 ~ 65535 RPM
  602. unsigned char AuxPower5V; //0 ~ 255 volt
  603. unsigned char AuxPower12V; //0 ~ 255 volt
  604. unsigned char AuxPower24V; //0 ~ 255 volt
  605. unsigned char AuxPower48V; //0 ~ 255 volt
  606. unsigned char CsuHwRev[32]; //CSU board hardware version
  607. unsigned char CsuBootLoadFwRev[32]; //CSU board bootloader firmware version
  608. unsigned char CsuKernelFwRev[32];//CSU board OS kernel firmware version
  609. unsigned char CsuRootFsFwRev[32];//CSU board root file system firmware version
  610. unsigned char CsuPrimFwRev[32]; //CSU board root file system firmware version
  611. unsigned char LcmHwRev[32]; //LCM module hardware version
  612. unsigned char LcmFwRev[32]; //LCM module firmware version
  613. unsigned char PsuHwRev[32]; //PSU hardware version
  614. unsigned char PsuPrimFwRev[32]; //PSU primary firmware version
  615. unsigned char PsuSecFwRev[32]; //PSU secondary firmware version
  616. unsigned char AuxPwrHwRev[32]; //Aux. power module hardware version
  617. unsigned char AuxPwrFwRev[32]; //Aux. power module firmware version
  618. unsigned char FanModuleHwRev[32]; //Fan module hardware version
  619. unsigned char FanModuleFwRev[32]; //Fan module firmware version
  620. unsigned char RelayModuleHwRev[32]; //Relay control module hardware version
  621. unsigned char RelayModuleFwRev[32]; //Relay control module firmware version
  622. unsigned char TelcomModemFwRev[32]; //the 3G/4G modem firmware version
  623. unsigned char LedModuleFwRev[32]; //LED control module firmware version
  624. unsigned char Connector1FwRev[32]; //Connector1 module firmware version
  625. unsigned char Connector2FwRev[32]; //Connector2 module firmware version
  626. int SystemAmbientTemp; // -40 ~ 215 degree C
  627. int SystemCriticalTemp; // -40 ~ 215 degree C
  628. int CcsConnectorTemp; // -40 ~ 215 degree C
  629. int PsuAmbientTemp; // -40 ~ 215 degree C
  630. /**************Charging***************/
  631. struct ChargingInfoData ChademoChargingData[CHAdeMO_QUANTITY];
  632. struct ChargingInfoData CcsChargingData[CCS_QUANTITY];
  633. struct ChargingInfoData GbChargingData[GB_QUANTITY];
  634. struct ChargingInfoData AcChargingData[AC_QUANTITY];
  635. unsigned char CurGunSelected;
  636. unsigned char CurGunSelectedByAc;
  637. /**************Network***************/
  638. unsigned char InternetConn; //0: disconnected, 1: connected
  639. /**************Backend***************/
  640. unsigned char OcppConnStatus; //0: disconnected, 1: connected
  641. char OrderCharging;
  642. /**************Alston***************/
  643. unsigned char WaitForPlugit; //0: none scan, 1: scanning
  644. unsigned char PageIndex; //0 : Initialize
  645. //1 : idle
  646. //4 : Authorizing
  647. //5 : Authorizing complete
  648. //6 : Authorizing fail
  649. //7 : Wait for Plug
  650. //8 : Pre-charge
  651. //9 : Charging
  652. unsigned char SelfTestSeq; //
  653. unsigned char ReAssignedFlag; //
  654. unsigned char CanAverageCharging;
  655. unsigned char MainChargingMode; // 0 : Max, 1 : Average
  656. unsigned char BridgeRelayStatus;
  657. unsigned char FirmwareUpdate; // 0 : none, 1 : update.
  658. unsigned char AcContactorStatus; // 0: disconnected, 1: connected
  659. unsigned char SystemTimeoutFlag; // 0 : none, 1 : self test
  660. struct timeval SystemTimeoutTimer;
  661. unsigned char SystemPage;
  662. unsigned char ConnectorPage;
  663. unsigned char IsAlternatvieConf; // 0 : normal, 1 : alternative
  664. unsigned char StartToChargingFlag; // 0 : Stop, 1 : Start for modbus
  665. unsigned char ChargerType; // 0 : IEC, 1 : UL
  666. unsigned char ethInternetConn; // 0 : disconnected, 1: connected
  667. // DO360
  668. unsigned char Relay2ModuleHwRev[32]; //Relay control module hardware version
  669. unsigned char Relay2ModuleFwRev[32]; //Relay control module firmware version
  670. struct DispenserInfoData DispenserInfo;
  671. struct ConnectorInfoData ConnectorInfo[GENERAL_GUN_QUANTITY];
  672. CabinetSettingFlag CabinetSetting;
  673. };
  674. struct SysConfigAndInfo {
  675. struct SysConfigData SysConfig;
  676. struct SysInfoData SysInfo;
  677. struct WARNING_CODE_INFO SysWarningInfo;
  678. };
  679. char Currency[54][3] = {
  680. "AED", // - Emirati Dirham
  681. "ARS", // - Argentine Peso
  682. "AUD", // - Australian Dollar
  683. "BGN", // - Bulgarian Lev
  684. "BHD", // - Bahraini Dinar
  685. "BND", // - Bruneian Dollar
  686. "BRL", // - Brazilian Real
  687. "BWP", // - Botswana Pula
  688. "CAD", // - Canadian Dollar
  689. "CHF", // - Swiss Franc
  690. "CLP", // - Chilean Peso
  691. "CNY", // - Chinese Yuan Renminbi
  692. "COP", // - Colombian Peso
  693. "CZK", // - Czech Koruna
  694. "DKK", // - Danish Krone
  695. "EUR", // - Euro
  696. "GBP", // - British Pound
  697. "HKD", // - Hong Kong Dollar
  698. "HRK", // - Croatian Kuna
  699. "HUF", // - Hungarian Forint
  700. "IDR", // - Indonesian Rupiah
  701. "ILS", // - Israeli Shekel
  702. "INR", // - Indian Rupee
  703. "IRR", // - Iranian Rial
  704. "ISK", // - Icelandic Krona
  705. "JPY", // - Japanese Yen
  706. "KRW", // - South Korean Won
  707. "KWD", // - Kuwaiti Dinar
  708. "KZT", // - Kazakhstani Tenge
  709. "LKR", // - Sri Lankan Rupee
  710. "LYD", // - Libyan Dinar
  711. "MUR", // - Mauritian Rupee
  712. "MXN", // - Mexican Peso
  713. "MYR", // - Malaysian Ringgit
  714. "NOK", // - Norwegian Krone
  715. "NPR", // - Nepalese Rupee
  716. "NZD", // - New Zealand Dollar
  717. "OMR", // - Omani Rial
  718. "PHP", // - Philippine Peso
  719. "PKR", // - Pakistani Rupee
  720. "PLN", // - Polish Zloty
  721. "QAR", // - Qatari Riyal
  722. "RON", // - Romanian New Leu
  723. "RUB", // - Russian Ruble
  724. "SAR", // - Saudi Arabian Riyal
  725. "SEK", // - Swedish Krona
  726. "SGD", // - Singapore Dollar
  727. "THB", // - Thai Baht
  728. "TRY", // - Turkish Lira
  729. "TTD", // - Trinidadian Dollar
  730. "TWD", // - Taiwan New Dollar
  731. "USD", // - US Dollar
  732. "VEF", // - Venezuelan Bolivar
  733. "ZAR" // - South African Rand
  734. };
  735. /**************************************************************************************/
  736. /**************************Alarm Share memory**************************************/
  737. /***************************************************************************************
  738. Status Code A B C D E F
  739. 0: Issue 1: From EVSE 1: Fault (unrecoverable) 001 ~ 999 serial number
  740. e.g., hardware broken, system latch
  741. 1: Recovered 2: From EV 2: Alarm (recoverable)
  742. e.g., OTP, OVP
  743. 3: From Backend 3: Information
  744. e.g., swipe card to stop charging
  745. according to XXX.Revxx
  746. ***************************************************************************************/
  747. /**************************************************************************************/
  748. char FaultStatusCode[40][6] = {
  749. "011001", //CHAdeMO output fuse blew
  750. "011002", //CCS output fuse blew
  751. "011003", //GB output fuse blew
  752. "011004", //RCD/CCID self-test fail
  753. "011005", //AC input contactor 1 welding
  754. "011006", //AC input contactor 1 driving fault
  755. "011007", //AC input contactor 2 welding
  756. "011008", //AC input contactor 2 driving fault
  757. "011009", //AC output relay welding
  758. "011010", //AC output relay driving fault
  759. "011011", //CHAdeMO output relay welding
  760. "011012", //CHAdeMO output relay driving fault
  761. "011013", //CCS output relay welding
  762. "011014", //CCS output relay driving fault
  763. "011015", //GB output relay welding
  764. "011016", //GB output relay driving fault
  765. "011017", //AC connector temperature sensor broken
  766. "011018", //CHAdeMO connector temperature sensor broken
  767. "011019", //CCS connector temperature sensor broken
  768. "011020", //GB connector temperature sensor broken
  769. "011021", //WiFi module broken
  770. "011022", //3G/4G module broken
  771. "011023", //Aux. power module broken
  772. "011024", //Relay control module /smart box broken
  773. "011025", //CHAdeMO connector lock fail
  774. "011026", //GB connector lock fail
  775. "011027", //AC connector lock fail
  776. "011028", //CHAdeMO module broken
  777. "011029", //CCS module broken
  778. "011030", //GBT module broken
  779. "011031", //PSU module broken
  780. "011032", //RCD/CCID module broken
  781. "011033", //Maximum Output Current setup error
  782. "011034", //Shutter fault
  783. "011035", //Ble module broken
  784. "011036", //Rotary switch fault
  785. "011037", //CCS liquid chiller water level fault
  786. "011038", //Reserved
  787. "011039", //Reserved
  788. "011040" //Reserved
  789. };
  790. struct FaultCodeData {
  791. unsigned char PreviousFaultVal[5];
  792. union {
  793. unsigned char FaultVal[5];
  794. struct {
  795. //FaultVal[0]
  796. unsigned char ChademoOutputFuseBlew: 1; //bit 0
  797. unsigned char CcsOutputFuseBlew: 1; //bit 1
  798. unsigned char GbOutputFuseBlew: 1; //bit 2
  799. unsigned char RcdSelfTestFail: 1; //bit 3
  800. unsigned char AcInputContactor1Welding: 1; //bit 4
  801. unsigned char AcInputContactor1DrivingFault: 1; //bit 5
  802. unsigned char AcInputContactor2Welding: 1; //bit 6
  803. unsigned char AcInputContactor2DrivingFault: 1; //bit 7
  804. //FaultVal[1]
  805. unsigned char AcOutputRelayWelding: 1; //bit 0
  806. unsigned char AcOutputRelayDrivingFault: 1; //bit 1
  807. unsigned char ChademoOutputRelayWelding: 1; //bit 2
  808. unsigned char ChademoOutputRelayDrivingFault: 1; //bit 3
  809. unsigned char CcsOutputRelayWelding: 1; //bit 4
  810. unsigned char CcsOutputRelayDrivingFault: 1; //bit 5
  811. unsigned char GbOutputRelayWelding: 1; //bit 6
  812. unsigned char GbOutputRelayDrivingFault: 1; //bit 7
  813. //FaultVal[2]
  814. unsigned char AcConnectorTempSensorBroken: 1; //bit 0
  815. unsigned char ChademoConnectorTempSensorBroken: 1; //bit 1
  816. unsigned char CcsConnectorTempSensorBroken: 1; //bit 2
  817. unsigned char GbConnectorTempSensorBroken: 1; //bit 3
  818. unsigned char WiFiModuleBroken: 1; //bit 4
  819. unsigned char Telecom4GModuleBroken: 1; //bit 5
  820. unsigned char AuxPowerModuleBroken: 1; //bit 6
  821. unsigned char RelayControlModuleBroken : 1; //bit 7
  822. //FaultVal[3]
  823. unsigned char ChademoConnectorLockFail: 1; //bit 0
  824. unsigned char GbConnectorLockFail: 1; //bit 1
  825. unsigned char AcConnectorLockFail: 1; //bit 2
  826. unsigned char ChademoModuleBroken: 1; //bit 3
  827. unsigned char CcsModuleBroken: 1; //bit 4
  828. unsigned char GbModuleBroken: 1; //bit 5
  829. unsigned char PsuModuleBroken: 1; //bit 6
  830. unsigned char RcdCcidModuleBroken: 1; //bit 7
  831. //FaultVal[4]
  832. unsigned char MaximumOutputCurrentSetupError: 1; //bit 0
  833. unsigned char ShutterFault: 1; //bit 1
  834. unsigned char BleModuleBroken: 1; //bit 2
  835. unsigned char RotarySwitchFault: 1; //bit 3
  836. unsigned char CcsLiquidChillerWaterLevelFault: 1; //bit 4
  837. unsigned char : 3; //bit 5 ~ 7 reserved
  838. } bits;
  839. } FaultEvents;
  840. };
  841. char AlarmStatusCode[128][6] = {
  842. "012200", //System L1 input OVP
  843. "012201", //System L2 input OVP
  844. "012202", //System L3 input OVP
  845. "012203", //System L1 input UVP
  846. "012204", //System L2 input UVP
  847. "012205", //System L3 input UVP
  848. "012206", //PSU L1 input OVP
  849. "012207", //PSU L2 input OVP
  850. "012208", //PSU L3 input OVP
  851. "012209", //PSU L1 input UVP
  852. "012210", //PSU L2 input UVP
  853. "012211", //PSU L3 input UVP
  854. "012212", //System L1 input drop
  855. "012213", //System L2 input drop
  856. "012214", //System L3 input drop
  857. "012215", //System AC output OVP
  858. "012216", //System AC output OCP L1
  859. "012217", //System CHAdeMO output OVP
  860. "012218", //System CHAdeMO output OCP
  861. "012219", //System CCS output OVP
  862. "012220", //System CCS output OCP
  863. "012221", //System GB output OVP
  864. "012222", //System GB output OCP
  865. "012223", //System ambient/inlet OTP
  866. "012224", //System critical point OTP
  867. "012225", //PSU ambient/inlet OTP
  868. "012226", //PSU critical point OTP
  869. "012227", //Aux. power module OTP
  870. "012228", //Relay board/smart box OTP
  871. "012229", //CHAdeMO connector OTP
  872. "012230", //CCS connector OTP
  873. "012231", //GB connector OTP
  874. "012232", //AC connector OTP
  875. "012233", //RCD/CCID trip
  876. "012234", //CHAdeMO GFD trip
  877. "012235", //CCS GFD trip
  878. "012236", //GB GFD trip
  879. "012237", //SPD trip
  880. "012238", //Main power breaker trip
  881. "012239", //Aux. power breaker trip
  882. "012240", //PSU communication fail
  883. "012241", //WiFi module communication fail
  884. "012242", //3G/4G module communication fail
  885. "012243", //RFID module communication fail
  886. "012244", //Bluetooth module communication fail
  887. "012245", //LCM module communication fail
  888. "012246", //Aux. power module communication fail
  889. "012247", //Relay control boaed/smart box communication fail
  890. "012248", //CCS module communication fail
  891. "012249", //CHAdeMO module communication fail
  892. "012250", //GBT module communication fail
  893. "012251", //Emergency stop
  894. "012252", //Door open
  895. "012253", //System fan decay
  896. "012254", //Fail to create share memory
  897. "012255", //CSU initialization failed
  898. "012256", //AC Ground Fault
  899. "012257", //MCU self-test Fault
  900. "012258", //Relay self-test Fault
  901. "012259", //CHAdeMO groundfault detection timeout (GFD)
  902. "012260", //CCS groundfault detection timeout (GFD)
  903. "012261", //GB groundfault detection timeout (GFD)
  904. "012262", //Circuit Short L1
  905. "012263", // PSU Duplicate ID
  906. "012264", // PSU Output Short Circuit
  907. "012265", // PSU Discharge Abnormal
  908. "012266", // PSU Dc Side ShutDown
  909. "012267", // PSU Failure Alarm
  910. "012268", // PSU Protection Alarm
  911. "012269", // PSU FanFailure Alarm
  912. "012270", // PSU Input UVP
  913. "012271", // PSU Input OVP
  914. "012272", // PSU WalkIn State
  915. "012273", // PSU Power Limited State
  916. "012274", // PSU Id Repeat
  917. "012275", // PSU Severe Uneven Current
  918. "012276", // PSU Three Phase Input Inadequate
  919. "012277", // PSU Three Phase Onput Imbalance
  920. "012278", // PSU Ffc Side ShutDown
  921. "012279", // NO PSU Resource
  922. "012280", // Self test Failed due to communication of Relayboard failure
  923. "012281", // Self test Failed due to communication of Fanboard failure
  924. "012282", // Self test Failed due to communication of Primary failure
  925. "012283", // Self test Failed due to communication of Chademoboard failure
  926. "012284", // Self test Failed due to communication of CCSboard failure
  927. "012285", // Self test Failed due to AC Contact failure
  928. "012286", // Self test Failed due to communication of PSU failure
  929. "012287", // Self test Failed due to Model name is none match
  930. "012288", // CCS output UVP
  931. "012289", // Chademo output UVP
  932. "012290", // GBT output UVP
  933. "012291", // Self test Failed due to communication of GBTboard failure
  934. "012292", // Self test Failed due to communication of AC failure
  935. "012293", // Self test Failed due to communication of Ledboard failure
  936. "012294", // Ac input OVP
  937. "012295", // Ac input UVP
  938. "012296", // CHAdeMO groundfault detection - warning
  939. "012297", // CCS groundfault detection - warning
  940. "012298", // GB groundfault detection - warning
  941. "012299", // System AC output OCP L2
  942. "012300", // System AC output OCP L3
  943. "012301", // Circuit Short L2
  944. "012302", // Circuit Short L3
  945. "012303", // CCS liquid chiller water level warning
  946. "012304", // connection disconnected from power cabinet
  947. "012305", // Meter communication timeout
  948. };
  949. struct AlarmCodeData {
  950. unsigned char PreviousAlarmVal[14];
  951. union {
  952. unsigned char AlarmVal[14];
  953. struct {
  954. //AlarmVal[0]
  955. unsigned char SystemL1InputOVP: 1; //bit 0
  956. unsigned char SystemL2InputOVP: 1; //bit 1
  957. unsigned char SystemL3InputOVP: 1; //bit 2
  958. unsigned char SystemL1InputUVP: 1; //bit 3
  959. unsigned char SystemL2InputUVP: 1; //bit 4
  960. unsigned char SystemL3InputUVP: 1; //bit 5
  961. unsigned char PsuL1InputOVP: 1; //bit 6
  962. unsigned char PsuL2InputOVP: 1; //bit 7
  963. //AlarmVal[1]
  964. unsigned char PsuL3InputOVP: 1; //bit 0
  965. unsigned char PsuL1InputUVP: 1; //bit 1
  966. unsigned char PsuL2InputUVP: 1; //bit 2
  967. unsigned char PsuL3InputUVP : 1; //bit 3
  968. unsigned char SystemL1InputDrop: 1; //bit 4
  969. unsigned char SystemL2InputDrop: 1; //bit 5
  970. unsigned char SystemL3InputDrop: 1; //bit 6
  971. unsigned char SystemAcOutputOVP: 1; //bit 7
  972. //AlarmVal[2]
  973. unsigned char SystemAcOutputOCP: 1; //bit 0
  974. unsigned char SystemChademoOutputOVP: 1; //bit 1
  975. unsigned char SystemChademoOutputOCP: 1; //bit 2
  976. unsigned char SystemCcsOutputOVP: 1; //bit 3
  977. unsigned char SystemCcsOutputOCP: 1; //bit 4
  978. unsigned char SystemGbOutputOVP: 1; //bit 5
  979. unsigned char SystemGbOutputOCP: 1; //bit 6
  980. unsigned char SystemAmbientOTP : 1; //bit 7
  981. //AlarmVal[3]
  982. unsigned char SystemCriticalPointOTP: 1; //bit 0
  983. unsigned char PsuAmbientOTP: 1; //bit 1
  984. unsigned char PsuCriticalPointOTP: 1; //bit 2
  985. unsigned char AuxPowerModuleOTP: 1; //bit 3
  986. unsigned char RelayBoardOTP: 1; //bit 4
  987. unsigned char ChademoConnectorOTP: 1; //bit 5
  988. unsigned char CcsConnectorOTP: 1; //bit 6
  989. unsigned char GbConnectorOTP: 1; //bit 7
  990. //AlarmVal[4]
  991. unsigned char AcConnectorOTP: 1; //bit 0
  992. unsigned char RcdTrip: 1; //bit 1
  993. unsigned char ChademoGfdTrip: 1; //bit 2
  994. unsigned char CcsGfdTrip: 1; //bit 3
  995. unsigned char GbGfdTrip: 1; //bit 4
  996. unsigned char SpdTrip: 1; //bit 5
  997. unsigned char MainPowerBreakerTrip: 1; //bit 6
  998. unsigned char AuxPowerBreakerTrip: 1; //bit 7
  999. //AlarmVal[5]
  1000. unsigned char PsuCommunicationFail: 1; //bit 0
  1001. unsigned char WiFiModuleCommFail: 1; //bit 1
  1002. unsigned char Telecom4GModuleCommFail: 1; //bit 2
  1003. unsigned char RfidModuleCommFail: 1; //bit 3
  1004. unsigned char BluetoothModuleCommFail: 1; //bit 4
  1005. unsigned char LcmModuleCommFail: 1; //bit 5
  1006. unsigned char AuxPowerModuleCommFail: 1; //bit 6
  1007. unsigned char RelayBoardCommFail: 1; //bit 7
  1008. //AlarmVal[6]
  1009. unsigned char CcsModuleCommFail: 1; //bit 0
  1010. unsigned char ChademoModuleCommFail: 1; //bit 1
  1011. unsigned char GbModuleCommFail: 1; //bit 2
  1012. unsigned char EmergencyStopTrip: 1; //bit 3
  1013. unsigned char DoorOpen: 1; //bit 4
  1014. unsigned char SystemFanDecay: 1; //bit 5
  1015. unsigned char FailToCreateShareMemory: 1; //bit 6
  1016. unsigned char CsuInitFailed: 1; //bit 7
  1017. //AlarmVal[7]
  1018. unsigned char AcGroundfaultFail: 1; //bit 0
  1019. unsigned char McuSelftestFail: 1; //bit 1
  1020. unsigned char RelaySelftestFail: 1; //bit 2
  1021. unsigned char ChademoGroundfaultTimeout: 1; //bit 3
  1022. unsigned char CcsGroundfaultTimeout: 1; //bit 4
  1023. unsigned char GbGroundfaultTimeout: 1; //bit 5
  1024. unsigned char CircuitShort: 1; //bit 6
  1025. unsigned char PsuDuplicateID: 1; //bit 7
  1026. //AlarmVal[8]
  1027. unsigned char PsuOutputShortCircuit : 1; //bit 0
  1028. unsigned char PsuDischargeAbnormal : 1; //bit 1
  1029. unsigned char PsuDcSideShutDown : 1; //bit 2
  1030. unsigned char PsuFailureAlarm : 1; //bit 3
  1031. unsigned char PsuProtectionAlarm : 1; //bit 4
  1032. unsigned char PsuFanFailureAlarm : 1; //bit 5
  1033. unsigned char PsuInputUVP: 1; //bit 6
  1034. unsigned char PsuInputOVP: 1; //bit 7
  1035. //AlarmVal[9]
  1036. unsigned char PsuWalkInState : 1; //bit 0
  1037. unsigned char PsuPowerLimitedState : 1; //bit 1
  1038. unsigned char PsuIdRepeat : 1; //bit 2
  1039. unsigned char PsuSevereUnevenCurrent : 1; //bit 3
  1040. unsigned char PsuThreePhaseInputInadequate : 1; //bit 4
  1041. unsigned char PsuThreePhaseOnputImbalance : 1; //bit 5
  1042. unsigned char PsuFfcSideShutDown : 1; //bit 6
  1043. unsigned char PsuNoResource: 1; //bit 7
  1044. //AlarmVal[10]
  1045. unsigned char RelayboardStestFail : 1; //bit 0
  1046. unsigned char FanboardStestFail : 1; //bit 1
  1047. unsigned char PrimaryStestFail : 1; //bit 2
  1048. unsigned char ChademoboardStestFail : 1; //bit 3
  1049. unsigned char CCSboardStestFail : 1; //bit 4
  1050. unsigned char AcContactStestFail : 1; //bit 5
  1051. unsigned char PsuModuleStestFail : 1; //bit 6
  1052. unsigned char ModelNameNoneMatchStestFail: 1; //bit 7
  1053. //AlarmVal[11]
  1054. unsigned char CcsOutputUVPFail : 1; //bit 0
  1055. unsigned char ChademoOutputUVPFail : 1; //bit 1
  1056. unsigned char GbtOutputUVPFail : 1; //bit 2
  1057. unsigned char GbtboardStestFail : 1; //bit 3
  1058. unsigned char AcConnectorStestFail: 1; //bit 4
  1059. unsigned char LedboardStestFail: 1; //bit 5
  1060. unsigned char AcSystemInputOVP: 1; //bit 6
  1061. unsigned char AcSystemInputUVP: 1; //bit 7
  1062. //AlarmVal[12]
  1063. unsigned char ChademoGroundWarning : 1; //bit 0
  1064. unsigned char CcsGroundfaultWarning : 1; //bit 1
  1065. unsigned char GbGroundfaultWarning : 1; //bit 2
  1066. unsigned char SystemAcOutputOCPL2: 1; //bit 3
  1067. unsigned char SystemAcOutputOCPL3: 1; //bit 4
  1068. unsigned char CircuitShortL2: 1; //bit 5
  1069. unsigned char CircuitShortL3: 1; //bit 6
  1070. unsigned char CcsLiquidChillerWaterLevelWarning: 1; //bit 7
  1071. //AlarmVal[13]
  1072. unsigned char DisconnectedFromDo : 1; //bit 0
  1073. unsigned char MeterCommTimeout: 1; //bit 1
  1074. unsigned char Reserved : 6; //bit 2~bit7
  1075. } bits;
  1076. } AlarmEvents;
  1077. };
  1078. char InfoStatusCode[384][6] = {
  1079. //Information comes from EVSE
  1080. "013600", //Normal stop charging by user
  1081. "013601", //Charging Time's up
  1082. "013602", //Replace system air filter
  1083. "013603", //Reach to CHAdeMO max. plugging times.
  1084. "013604", //Reach to CCS max. plugging times.
  1085. "013605", //Reach to GB max. plugging times.
  1086. "013606", //Reach to AC max. plugging times.
  1087. "013607", //CSU fimrware update fail
  1088. "013608", //CHAdeMO Module fimrware update fail
  1089. "013609", //CCS Module fimrware update fail
  1090. "013610", //GB Module fimrware update fail
  1091. "013611", //Aux. power module fimrware update fail
  1092. "013612", //Relay control module fimrware update fail
  1093. "013613", //LCM module fimrware update fail
  1094. "013614", //Bluetooth module fimrware update fail
  1095. "013615", //WiFi module fimrware update fail
  1096. "013616", //3G/4G module fimrware update fail
  1097. "013617", //SMR fimrware update fail
  1098. "013618", //RFID module fimrware update fail
  1099. "013619", //configured by USB flash drive
  1100. "013620", //configured by backend
  1101. "013621", //configured by webpage
  1102. "013622", //disconnected from Internet through Ethernet
  1103. "013623", //disconnected from Internet through WiFi
  1104. "013624", //disconnected from Internet through 3G/4G
  1105. "013625", //disconnected from AP through WiFi
  1106. "013626", //disconnected from APN through 3G/4G
  1107. "013627", //WiFi disabled (separated charger only)
  1108. "013628", //4G disabled (separated charger only)
  1109. "013629", //Reserved
  1110. "013630", //Reserved
  1111. "013631", //Reserved
  1112. //Information comes from EV
  1113. "023700", //CHAdeMO EV communication Fail
  1114. "023701", //CCS EV communication Fail
  1115. "023702", //GB EV communication Fail
  1116. "023703", //AC: pilot fault
  1117. "023704", //CHAdeMO: battery malfunction
  1118. "023705", //CHAdeMO: no charging permission
  1119. "023706", //CHAdeMO: battery incompatibility
  1120. "023707", //CHAdeMO: battery OVP
  1121. "023708", //CHAdeMO: battery UVP
  1122. "023709", //CHAdeMO: battery OTP
  1123. "023710", //CHAdeMO: battery current difference
  1124. "023711", //CHAdeMO: battery voltage difference
  1125. "023712", //CHAdeMO: shift position
  1126. "023713", //CHAdeMO: battery other fault
  1127. "023714", //CHAdeMO: charging system error
  1128. "023715", //CHAdeMO: EV normal stop
  1129. "023716", //CHAdeMO: connector temperature sensor broken
  1130. "023717", //CHAdeMO: connector lock fail
  1131. "023718", //CHAdeMO: D1 ON No Receive
  1132. "023719", //CHAdeMO: BMS K to J Timeout
  1133. "023720", //CHAdeMO: BMS Charge Allow Timeout
  1134. "023721", //CHAdeMO: Wait GroundFault Timeout
  1135. "023722", //CHAdeMO: BMS EV Relay Timeout
  1136. "023723", //CHAdeMO: BMS Request Current Timeout
  1137. "023724", //CHAdeMO: BMS K to J OFF Timeout
  1138. "023725", //CHAdeMO: BMS EV Relay OFF Timeout
  1139. "023726", //CHAdeMO: ADC More Than 10V
  1140. "023727", //CHAdeMO: ADC More Than 20V
  1141. "023728", //CHAdeMO: BMS Charge Before Stop
  1142. "023729", //CHAdeMO: Charger Get Normal Stop
  1143. "023730", //CHAdeMO: Charger Get Emergency Stop
  1144. "023731", //CHAdeMO: Isolation Result Fail
  1145. "023732", //CHAdeMO: Miss Link With MotherBoard
  1146. "023733", //CHAdeMO: Output Voltage More Than Limit
  1147. "023734", //CHAdeMO: Request Current More Than Limit
  1148. "023735", //CHAdeMO: Re Cap BMS Eqr Current Exceed
  1149. "023736", //CHAdeMO: Charge Remain Count Down
  1150. "023737", //CCS:CCS_EVCC_EVErrorCode_FAILED_RESSTemperatureInhibit
  1151. "023738", //CCS:CCS_EVCC_EVErrorCode_FAILED_EVShiftPosition
  1152. "023739", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargerConnectorLockFault
  1153. "023740", //CCS:CCS_EVCC_EVErrorCode_FAILED_EVRESSMalfunction
  1154. "023741", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargingCurrentdifferential
  1155. "023742", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargingVoltageOutOfRange
  1156. "023743", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargingSystemIncompatibility
  1157. "023744", //CCS:CCS_EVCC_EVErrorCode_FAILED_EmergencyEvent
  1158. "023745", //CCS:CCS_EVCC_EVErrorCode_FAILED_Breaker
  1159. "023746", //CCS:CCS_EVCC_EVErrorCode_FAILED_NoData
  1160. "023747", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_DIN_A
  1161. "023748", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_DIN_B
  1162. "023749", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_DIN_C
  1163. "023750", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_ISO_1
  1164. "023751", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_ISO_2
  1165. "023752", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_ISO_3
  1166. "023753", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_1
  1167. "023754", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_2
  1168. "023755", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_3
  1169. "023756", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_4
  1170. "023757", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_5
  1171. "023758", //CCS:CCS_SECC_ResponseCode_FAILED_SequenceError
  1172. "023759", //CCS:CCS_SECC_ResponseCode_FAILED_SignatureError
  1173. "023760", //CCS:CCS_SECC_ResponseCode_FAILED_UnknownSession
  1174. "023761", //CCS:CCS_SECC_ResponseCode_FAILED_ServiceIDInvalid
  1175. "023762", //CCS:CCS_SECC_ResponseCode_FAILED_Payment SelectionInvalid
  1176. "023763", //CCS:CCS_SECC_ResponseCode_FAILED_IdentificationSelectionInvalid
  1177. "023764", //CCS:CCS_SECC_ResponseCode_FAILED_ServiceSelectionInvalid
  1178. "023765", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateExpired
  1179. "023766", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateNotYetValid
  1180. "023767", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateRevoked
  1181. "023768", //CCS:CCS_SECC_ResponseCode_FAILED_NoCertificateAvailable
  1182. "023769", //CCS:CCS_SECC_ResponseCode_FAILED_CertChainError
  1183. "023770", //CCS:CCS_SECC_ResponseCode_FAILED_CertValidationError
  1184. "023771", //CCS:CCS_SECC_ResponseCode_FAILED_CertVerificationError
  1185. "023772", //CCS:CCS_SECC_ResponseCode_FAILED_ContractCanceled
  1186. "023773", //CCS:CCS_SECC_ResponseCode_FAILED_ChallengeInvalid
  1187. "023774", //CCS:CCS_SECC_ResponseCode_FAILED_WrongEnergyTransferMode
  1188. "023775", //CCS:CCS_SECC_ResponseCode_FAILED_WrongChargeParameter
  1189. "023776", //CCS:CCS_SECC_ResponseCode_FAILED_ChargingProfileInvalid
  1190. "023777", //CCS:CCS_SECC_ResponseCode_FAILED_TariffSelectionInvalid
  1191. "023778", //CCS:CCS_SECC_ResponseCode_FAILED_EVSEPresentVoltageToLow
  1192. "023779", //CCS:CCS_SECC_ResponseCode_FAILED_PowerDeliveryNotApplied
  1193. "023780", //CCS:CCS_SECC_ResponseCode_FAILED_MeteringSignatureNotValid
  1194. "023781", //CCS:CCS_SECC_ResponseCode_FAILED_NoChargeServiceSelected
  1195. "023782", //CCS:CCS_SECC_ResponseCode_FAILED_ContactorError
  1196. "023783", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateNotAllowedAtThisEVSE
  1197. "023784", //CCS:CCS_SECC_ResponseCode_FAILED_GAChargeStop
  1198. "023785", //CCS:CCS_SECC_ResponseCode_FAILED_AlignmentError
  1199. "023786", //CCS:CCS_SECC_ResponseCode_FAILED_ACDError
  1200. "023787", //CCS:CCS_SECC_ResponseCode_FAILED_AssociationError
  1201. "023788", //CCS:CCS_SECC_ResponseCode_FAILED_EVSEChargeAbort
  1202. "023789", //CCS:CCS_SECC_ResponseCode_FAILED_NoSupportedApp-Protocol-Protocol
  1203. "023790", //CCS:CCS_SECC_ResponseCode_FAILED_ContractNotAccepted
  1204. "023791", //CCS:CCS_SECC_ResponseCode_FAILED_MOUnknown
  1205. "023792", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_Prov_CertificateRevoke
  1206. "023793", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_SubCA1_CertificateRevoked
  1207. "023794", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_SubCA2_CertificateRevoked
  1208. "023795", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_RootCA_CertificateRevoked
  1209. "023796", //CCS:CCS_SECC_ResponseCode_FAILED_MO_Prov_CertificateRevoked
  1210. "023797", //CCS:CCS_SECC_ResponseCode_FAILED_MO_SubCA1_CertificateRevoked
  1211. "023798", //CCS:CCS_SECC_ResponseCode_FAILED_MO_SubCA2_CertificateRevoked
  1212. "023799", //CCS:CCS_SECC_ResponseCode_FAILED_MO_RootCA_CertificateRevoked
  1213. "023800", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_Prov_CertificateRevoked
  1214. "023801", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_SubCA1_CertificateRevoked
  1215. "023802", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_SubCA2_CertificateRevoked
  1216. "023803", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_RootCA_CertificateRevoked
  1217. "023804", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_1
  1218. "023805", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_2
  1219. "023806", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_3
  1220. "023807", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_4
  1221. "023808", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_5
  1222. "023809", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_SLAC_init
  1223. "023810", //CCS:CCS_SECC_TIMEOUT_SLAC_TP_match_response
  1224. "023811", //CCS:CCS_SECC_TIMEOUT_CM_START_ATTEN_CHAR_IND
  1225. "023812", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_match_MNBC
  1226. "023813", //CCS:CCS_SECC_TIMEOUT_SLAC_TP_EVSE_avg_atten_calc
  1227. "023814", //CCS:CCS_SECC_TIMEOUT_SLAC_CM_ATTEN_CHAR_RSP
  1228. "023815", //CCS:CCS_SECC_TIMEOUT_SLAC_CM_VALIDATE_REQ_1ST__CM_SLAC_MATCH_REQ
  1229. "023816", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_assoc_session
  1230. "023817", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_vald_toggle
  1231. "023818", //CCS:CCS_SECC_TIMEOUT_SLAC_CM_MNBC_SOUND_IND
  1232. "023819", //CCS:CCS_SECC_TIMEOUT_SLAC_CM_VALIDATE_REQ_2ND__CM_SLAC_MATCH_REQ
  1233. "023820", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_3
  1234. "023821", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_4
  1235. "023822", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_5
  1236. "023823", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_UDP_TT_match_join
  1237. "023824", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_TCP_TT_match_join
  1238. "023825", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_TP_amp_map_exchange
  1239. "023826", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_TP_link_ready_notification
  1240. "023827", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_1
  1241. "023828", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_2
  1242. "023829", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_3
  1243. "023830", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_4
  1244. "023831", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_5
  1245. "023832", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_SupportedAppProtocolRes
  1246. "023833", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_SessionSetupRes
  1247. "023834", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ServiceDiscoveryRes
  1248. "023835", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ServicePaymentSelectionRes
  1249. "023836", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ContractAuthenticationRes
  1250. "023837", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ChargeParameterDiscoveryRes
  1251. "023838", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_PowerDeliveryRes
  1252. "023839", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_CableCheckRes
  1253. "023840", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_PreChargeRes
  1254. "023841", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_CurrentDemandRes
  1255. "023842", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_WeldingDetectionRes
  1256. "023843", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_SessionStopRes
  1257. "023844", //CCS:CCS_SECC_TIMEOUT_V2G_Sequence_Time
  1258. "023845", //CCS:CCS_SECC_TIMEOUT_V2G_ReadyToCharge_Performance_Time
  1259. "023846", //CCS:CCS_SECC_TIMEOUT_V2G_CommunicationSetup_Performance_Time
  1260. "023847", //CCS:CCS_SECC_TIMEOUT_V2G_CableCheck_Performance_Time
  1261. "023848", //CCS:CCS_SECC_TIMEOUT_V2G_CPState_Detection_Time
  1262. "023849", //CCS:CCS_SECC_TIMEOUT_V2G_CPOscillator_Retain_Time
  1263. "023850", //CCS:CCS_SECC_TIMEOUT_V2G_PreCharge_Performace_Time
  1264. "023851", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_2
  1265. "023852", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_3
  1266. "023853", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_4
  1267. "023854", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_5
  1268. "023855", //CCS:CCS_CAN_TIMEOUT_TP_GET_EV_TARGET_INFO
  1269. "023856", //CCS:CCS_CAN_TIMEOUT_TT_GET_EV_TARGET_INFO
  1270. "023857", //CCS:CCS_CAN_TIMEOUT_TP_GET_EV_BATTERY_INFO
  1271. "023858", //CCS:CCS_CAN_TIMEOUT_TT_GET_EV_BATTERY_INFO
  1272. "023859", //CCS:CCS_CAN_TIMEOUT_TP_EV_STOP_EVENT
  1273. "023860", //CCS:CCS_CAN_TIMEOUT_TT_EV_STOP_EVENT
  1274. "023861", //CCS:CCS_CAN_TIMEOUT_TP_EVSE_STOP_EVENT
  1275. "023862", //CCS:CCS_CAN_TIMEOUT_TT_EVSE_STOP_EVENT
  1276. "023863", //CCS:CCS_CAN_TIMEOUT_TP_GET_MISC_INFO
  1277. "023864", //CCS:CCS_CAN_TIMEOUT_TT_GET_MISC_INFO
  1278. "023865", //CCS:CCS_CAN_TIMEOUT_TP_DOWNLOAD_REQUEST
  1279. "023866", //CCS:CCS_CAN_TIMEOUT_TT_DOWNLOAD_REQUEST
  1280. "023867", //CCS:CCS_CAN_TIMEOUT_TP_START_BLOCK_TRANSFER
  1281. "023868", //CCS:CCS_CAN_TIMEOUT_TT_START_BLOCK_TRANSFER
  1282. "023869", //CCS:CCS_CAN_TIMEOUT_TP_DATA_TRANSFER
  1283. "023870", //CCS:CCS_CAN_TIMEOUT_TT_DATA_TRANSFER
  1284. "023871", //CCS:CCS_CAN_TIMEOUT_TP_DOWNLOAD_FINISH
  1285. "023872", //CCS:CCS_CAN_TIMEOUT_TT_DOWNLOAD_FINISH
  1286. "023873", //CCS:CCS_CAN_TIMEOUT_TP_ISOLATION_STATUS
  1287. "023874", //CCS:CCS_CAN_TIMEOUT_TT_ISOLATION_STATUS
  1288. "023875", //CCS:CCS_CAN_TIMEOUT_TP_CONNECTOR_INFO
  1289. "023876", //CCS:CCS_CAN_TIMEOUT_TT_CONNECTOR_INFO
  1290. "023877", //CCS:CCS_CAN_TIMEOUT_TT_RTC_INFO
  1291. "023878", //CCS:CCS_CAN_TIMEOUT_TP_RTC_INFO
  1292. "023879", //CCS:CCS_CAN_TIMEOUT_TP_EVSE_PRECHARGE_INFO
  1293. "023880", //CCS:CCS_CAN_TIMEOUT_TT_EVSE_PRECHARGE_INFO
  1294. "023881", //CCS:CCS_CAN_TIMEOUT_MSG_Sequence
  1295. "023882", //CCS:CCS_CAN_MSG_Unrecognized_CMD_ID
  1296. "023883", //CCS:CCS_SECC_DIN_Msg_Decode_Error
  1297. "023884", //CCS:CCS_SECC_DIN_Msg_Encode_Error
  1298. "023885", //CCS:CCS_SECC_ISO1_Msg_Decode_Error
  1299. "023886", //CCS:CCS_SECC_ISO1_Msg_Encode_Error
  1300. "023887", //CCS:CCS_SECC_ISO2_Msg_Decode_Error
  1301. "023888", //CCS:CCS_SECC_ISO2_Msg_Encode_Error
  1302. "023889", //CCS:CCS_SECC_CP_STATUS_Error
  1303. "023890", //CCS:CCS_SECC_Unexpected_60V_Before_Charing_Error
  1304. "023891", //CCS:CCS_SECC_Not_Ready_For_Charging
  1305. "023892", //CCS:CCS_SECCC_TIMEOUT_QCA7000_COMM (The firmware code of QCA7000 may not be installed, yet)
  1306. "023893", //CCS:CCS_SECC_FAIL_QCA7000_SETKEY
  1307. "023894", //Reserved
  1308. "023895", //Reserved
  1309. "023896", //Reserved
  1310. "023897", //Reserved
  1311. "023898", //Reserved
  1312. "023899", //Reserved
  1313. "023900", //GBT: ERROR_CODE_GBT_LOS_CC1
  1314. "023901", //GBT: ERROR_CODE_GBT_CONNECTOR_LOCK_FAIL
  1315. "023902", //GBT: ERROR_CODE_GBT_BATTERY_INCOMPATIBLE
  1316. "023903", //GBT: ERROR_CODE_GBT_BMS_BROAA_TIMEOUT
  1317. "023904", //GBT: ERROR_CODE_GBT_CSU_PRECHARGE_TIMEOUT
  1318. "023905", //GBT: ERROR_CODE_GBT_BMS_PRESENT_VOLTAGE_FAULT
  1319. "023906", //GBT: ERROR_CODE_GBT_BMS_VOLTAGE_OVER_RANGE
  1320. "023907", //GBT: ERROR_CODE_GBT_BSM_CHARGE_ALLOW_00_10MIN_COUUNTDONE
  1321. "023908", //GBT: ERROR_CODE_GBT_WAIT_GROUNDFAULT_TIMEOUT
  1322. "023909", //GBT: ERROR_CODE_GBT_ADC_MORE_THAN_10V
  1323. "023910", //GBT: ERROR_CODE_GBT_ADC_MORE_THAN_60V
  1324. "023911", //GBT: ERROR_CODE_GBT_CHARGER_GET_NORMAL_STOP_CMD
  1325. "023912", //GBT: ERROR_CODE_GBT_CHARGER_GET_EMERGENCY_STOP_CMD
  1326. "023913", //GBT: ERROR_CODE_GBT_ISOLATION_RESULT_FAIL
  1327. "023914", //GBT: ERROR_CODE_GBT_MOTHER_BOARD_MISS_LINK
  1328. "023915", //GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_LIMIT
  1329. "023916", //GBT: ERROR_CODE_GBT_REQ_CURRENT_MORE_THAN_LIMIT
  1330. "023917", //GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_10_PERCENT
  1331. "023918", //GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_DIFF_BCS_5_PERCENT
  1332. "023919", //GBT: ERROR_CODE_GBT_STOP_ADC_MORE_THAN_10V
  1333. "023920", // Reserved
  1334. "023921", // Reserved
  1335. "023922", // Reserved
  1336. "023923", // Reserved
  1337. "023924", // Reserved
  1338. "023925", // Reserved
  1339. "023926", // Reserved
  1340. "023927", // Reserved
  1341. "023928", // Reserved
  1342. "023929", // Reserved
  1343. "023930", //GBT: ERROR_CODE_CEM_BHM_TIMEOUT
  1344. "023931", //GBT: ERROR_CODE_CEM_BRM_TIMEOUT
  1345. "023932", //GBT: ERROR_CODE_CEM_BCP_TIMEOUT
  1346. "023933", //GBT: ERROR_CODE_CEM_BRO_TIMEOUT
  1347. "023934", //GBT: ERROR_CODE_CEM_BCL_TIMEOUT
  1348. "023935", //GBT: ERROR_CODE_CEM_BCS_TIMEOUT
  1349. "023936", //GBT: ERROR_CODE_CEM_BSM_TIMEOUT
  1350. "023937", //GBT: ERROR_CODE_CEM_BST_TIMEOUT
  1351. "023938", //GBT: ERROR_CODE_CEM_BSD_TIMEOUT
  1352. "023939", //GBT: ERROR_CODE_CEM_BEM_OTHER_TIMEOUT
  1353. "023940", //GBT: ERROR_CODE_BEM_CRM_TIMEOUT
  1354. "023941", //GBT: ERROR_CODE_BEM_CRMAA_TIMEOUT
  1355. "023942", //GBT: ERROR_CODE_BEM_CTS_CML_TIMEOUT
  1356. "023943", //GBT: ERROR_CODE_BEM_CRO_TIMEOUT
  1357. "023944", //GBT: ERROR_CODE_BEM_CCS_TIMEOUT
  1358. "023945", //GBT: ERROR_CODE_BEM_CST_TIMEOUT
  1359. "023946", //GBT: ERROR_CODE_BEM_CSD_TIMEOUT
  1360. "023947", //GBT: ERROR_CODE_BEM_BEM_OTHER_TIMEOUT
  1361. "023948", // Reserved
  1362. "023949", // Reserved
  1363. "023950", //GBT: ERROR_CODE_BST_SOC_GOAL
  1364. "023951", //GBT: ERROR_CODE_BST_TOTAL_VOLTAGE_GOAL
  1365. "023952", //GBT: ERROR_CODE_BST_CELL_VOLTAGE_GOAL
  1366. "023953", //GBT: ERROR_CODE_BST_GET_CST
  1367. "023954", //GBT: ERROR_CODE_BST_ISOLATION
  1368. "023955", //GBT: ERROR_CODE_BST_OUTPUT_CONNECTOR_OTP
  1369. "023956", //GBT: ERROR_CODE_BST_COMPONENT
  1370. "023957", //GBT: ERROR_CODE_BST_CHARGE_CONNECTOR
  1371. "023958", //GBT: ERROR_CODE_BST_OTP
  1372. "023959", //GBT: ERROR_CODE_BST_OTHER
  1373. "023960", //GBT: ERROR_CODE_BST_HIGH_V
  1374. "023961", //GBT: ERROR_CODE_BST_CC2
  1375. "023962", //GBT: ERROR_CODE_BST_CURRENT
  1376. "023963", //GBT: ERROR_CODE_BST_VOLTAGE
  1377. "023964", //GBT: ERROR_CODE_GET_BST_NO_REASON
  1378. "023965", // Reserved
  1379. "023966", // Reserved
  1380. "023967", // Reserved
  1381. "023968", // Reserved
  1382. "023969", // Reserved
  1383. "023970", //GBT: ERROR_CODE_BSM_CELL_OVER_VOLTAGE
  1384. "023971", //GBT: ERROR_CODE_BSM_CELL_UNDER_VOLTAGE
  1385. "023972", //GBT: ERROR_CODE_BSM_OVER_SOC
  1386. "023973", //GBT: ERROR_CODE_BSM_UNDER_SOC
  1387. "023974", //GBT: ERROR_CODE_BSM_CURRENT
  1388. "023975", //GBT: ERROR_CODE_BSM_TEMPERATURE
  1389. "023976", //GBT: ERROR_CODE_BSM_ISOLATE
  1390. "023977", //GBT: ERROR_CODE_BSM_OUTPUT_CONNECTOR
  1391. "023978", // Reserved
  1392. "023979", // Reserved
  1393. "033900", //disconnected from backend through Ethernet
  1394. "033901", //disconnected from backend through WiFi
  1395. "033902", //disconnected from backend through 3G/4G
  1396. "033903", //Remote start charging by backend
  1397. "033904", //Remote stop charging by backend
  1398. "033905", //Remote reset by backend
  1399. "033906", //Authorization failed
  1400. "033907", //Reserved
  1401. };
  1402. struct InfoCodeData {
  1403. unsigned char PreviousInfoVal[40];
  1404. union {
  1405. unsigned char InfoVal[40];
  1406. struct {
  1407. //InfoVal[0]
  1408. unsigned char NormalStopChargingByUser: 1; //bit 0
  1409. unsigned char ChargingTimesUp: 1; //bit 1
  1410. unsigned char ReplaceSystemAirFilter: 1; //bit 2
  1411. unsigned char ReachChademoMaxPluggingTimes: 1; //bit 3
  1412. unsigned char ReachCcsMaxPluggingTimes: 1; //bit 4
  1413. unsigned char ReachGbMaxPluggingTimes: 1; //bit 5
  1414. unsigned char ReachAcMaxPluggingTimes: 1; //bit 6
  1415. unsigned char CsuFimrwareUpdateFail: 1; //bit 7
  1416. //InfoVal[1]
  1417. unsigned char ChademoModuleFimrwareUpdateFail: 1; //bit 0
  1418. unsigned char CcsModuleFimrwareUpdateFail: 1; //bit 1
  1419. unsigned char GbModuleFimrwareUpdateFail: 1; //bit 2
  1420. unsigned char AuxPowerModuleFimrwareUpdateFail: 1; //bit 3
  1421. unsigned char RelayBoardFimrwareUpdateFail: 1; //bit 4
  1422. unsigned char LcmModuleFimrwareUpdateFail: 1; //bit 5
  1423. unsigned char BluetoothModuleFimrwareUpdateFail: 1; //bit 6
  1424. unsigned char WiFiModuleFimrwareUpdateFail: 1; //bit 7
  1425. //InfoVal[2]
  1426. unsigned char Telocom4GModuleFimrwareUpdateFail: 1; //bit 0
  1427. unsigned char PsuFimrwareUpdateFail: 1; //bit 1
  1428. unsigned char RfidModuleFimrwareUpdateFail: 1; //bit 2
  1429. unsigned char ConfiguredByUsbFlashDrive: 1; //bit 3
  1430. unsigned char ConfiguredByBackend: 1; //bit 4
  1431. unsigned char ConfiguredByWebpage: 1; //bit 5
  1432. unsigned char InternetDisconnectViaEthernet: 1; //bit 6
  1433. unsigned char InternetDisconnectViaWiFi : 1; //bit 7
  1434. //InfoVal[3]
  1435. unsigned char InternetDisconnectVia4Gi: 1; //bit 0
  1436. unsigned char ApDisconnectViaWiFi: 1; //bit 1
  1437. unsigned char ApnDisconnectVia4Gi: 1; //bit 2
  1438. unsigned char WiFiDisable: 1; //bit 3
  1439. unsigned char Telocom4GModuleDisable: 1; //bit 4
  1440. unsigned char : 3; //bit 5~7 reserved
  1441. //InfoVal[4]
  1442. unsigned char ChademoEvCommFail: 1; //bit 0
  1443. unsigned char CcsEvCommFail: 1; //bit 1
  1444. unsigned char GbEvCommFail: 1; //bit 2
  1445. unsigned char PilotFault: 1; //bit 3
  1446. unsigned char ChademoBatteryMalfun: 1; //bit 4
  1447. unsigned char ChademoNoPermission: 1; //bit 5
  1448. unsigned char ChademoBatteryIncompatibility: 1; //bit 6
  1449. unsigned char ChademoBatteryOVP: 1; //bit 7
  1450. //InfoVal[5]
  1451. unsigned char ChademoBatteryUVP: 1; //bit 0
  1452. unsigned char ChademoBatteryOTP: 1; //bit 1
  1453. unsigned char ChademoBatteryCurrentDiff: 1; //bit 2
  1454. unsigned char ChademoBatteryVoltageDiff: 1; //bit 3
  1455. unsigned char ChademoShiftPosition: 1; //bit 4
  1456. unsigned char ChademoBatteryOtherFault: 1; //bit 5
  1457. unsigned char ChademoChargingSystemError: 1; //bit 6
  1458. unsigned char ChademoEvNormalStop: 1; //bit 7
  1459. //InfoVal[6]
  1460. unsigned char ChademoTempSensorBroken: 1; //bit 0
  1461. unsigned char ChademoConnectorLockFail: 1; //bit 1
  1462. unsigned char ChademoD1OnNoReceive: 1; //bit 2
  1463. unsigned char ChademoBmsKtoJTimeout: 1; //bit 3
  1464. unsigned char ChademoBmsChargeAllowTimeout: 1; //bit 4
  1465. unsigned char ChademoWaitGfdTimeout: 1; //bit 5
  1466. unsigned char ChademoBmsEvRelayTimeout: 1; //bit 6
  1467. unsigned char ChademoBmsReqCurrentTimeout: 1; //bit 7
  1468. //InfoVal[7]
  1469. unsigned char ChademoBmsKtoJOffTimeout : 1; //bit 0
  1470. unsigned char ChademoBmsEvRelayOffTimeout : 1; //bit 1
  1471. unsigned char ChademoAdcMoreThan10V : 1; //bit 2
  1472. unsigned char ChademoAdcMoreThan20V : 1; //bit 3
  1473. unsigned char ChademoBmsChargeBeforeStop : 1; //bit 4
  1474. unsigned char ChademoChargerGetNormalStop : 1; //bit 5
  1475. unsigned char ChademoChargerGetEmergencyStop : 1; //bit 6
  1476. unsigned char ChademoIsolationResultFail : 1; //bit 7
  1477. //InfoVal[8]
  1478. unsigned char ChademoMissLinkWithMotherBoard : 1; //bit 0
  1479. unsigned char ChademoOutputVolMoreThanLimit : 1; //bit 1
  1480. unsigned char ChademoReqCurrentMoreThanLimit : 1; //bit 2
  1481. unsigned char ChademoReCapBmsEqrCurrentExceed : 1; //bit 3
  1482. unsigned char ChademoChargeRemainCountDown : 1; //bit 4
  1483. unsigned char CcsRESTemperatureInhibit: 1; //bit 5
  1484. unsigned char CcsEVShiftPosition: 1; //bit 6
  1485. unsigned char CcsChargerConnectorLockFault: 1; //bit 7
  1486. //InfoVal[9]
  1487. unsigned char CcsEVRESSMalfunction: 1; //bit 0
  1488. unsigned char CcsChargingCurrentdifferential: 1; //bit 1
  1489. unsigned char CcsChargingVoltageOutOfRange: 1; //bit 2
  1490. unsigned char CcsChargingSystemIncompatibility: 1; //bit 3
  1491. unsigned char CcsEmergencyEvent: 1; //bit 4
  1492. unsigned char CcsBreaker: 1; //bit 5
  1493. unsigned char CcsNoData: 1; //bit 6
  1494. unsigned char Ccsreserved_by_DIN_A: 1; //bit 7
  1495. //InfoVal[10]
  1496. unsigned char Ccsreserved_by_DIN_B: 1; //bit 0
  1497. unsigned char Ccsreserved_by_DIN_C: 1; //bit 1
  1498. unsigned char Ccsreserved_by_ISO_1: 1; //bit 2
  1499. unsigned char Ccsreserved_by_ISO_2: 1; //bit 3
  1500. unsigned char Ccsreserved_by_ISO_3: 1; //bit 4
  1501. unsigned char Ccsreserved_by_OEM_1: 1; //bit 5
  1502. unsigned char Ccsreserved_by_OEM_2: 1; //bit 6
  1503. unsigned char Ccsreserved_by_OEM_3: 1; //bit 7
  1504. //InfoVal[11]
  1505. unsigned char Ccsreserved_by_OEM_4: 1; //bit 0
  1506. unsigned char Ccsreserved_by_OEM_5: 1; //bit 1
  1507. unsigned char CcsSequenceError: 1; //bit 2
  1508. unsigned char CcsSignatureError: 1; //bit 3
  1509. unsigned char CcsUnknownSession: 1; //bit 4
  1510. unsigned char CcsServiceIDInvalid: 1; //bit 5
  1511. unsigned char CcsPaymentSelectionInvalid: 1; //bit 6
  1512. unsigned char CcsIdentificationSelectionInvalid: 1; //bit 7
  1513. //InfoVal[12]
  1514. unsigned char CcsServiceSelectionInvalid: 1; //bit 0
  1515. unsigned char CcsCertificateExpired: 1; //bit 1
  1516. unsigned char CcsCertificateNotYetValid: 1; //bit 2
  1517. unsigned char CcsCertificateRevoked: 1; //bit 3
  1518. unsigned char CcsNoCertificateAvailable: 1; //bit 4
  1519. unsigned char CcsCertChainError: 1; //bit 5
  1520. unsigned char CcsCertValidationError: 1; //bit 6
  1521. unsigned char CcsCertVerificationError: 1; //bit 7
  1522. //InfoVal[13]
  1523. unsigned char CcsContractCanceled: 1; //bit 0
  1524. unsigned char CcsChallengeInvalid: 1; //bit 1
  1525. unsigned char CcsWrongEnergyTransferMode: 1; //bit 2
  1526. unsigned char CcsWrongChargeParameter: 1; //bit 3
  1527. unsigned char CcsChargingProfileInvalid: 1; //bit 4
  1528. unsigned char CcsTariffSelectionInvalid: 1; //bit 5
  1529. unsigned char CcsEVSEPresentVoltageToLow: 1; //bit 6
  1530. unsigned char CcsPowerDeliveryNotApplied: 1; //bit 7
  1531. //InfoVal[14]
  1532. unsigned char CcsMeteringSignatureNotValid: 1; //bit 0
  1533. unsigned char CcsNoChargeServiceSelected: 1; //bit 1
  1534. unsigned char CcsContactorError: 1; //bit 2
  1535. unsigned char CcsCertificateNotAllowedAtThisEVSE: 1; //bit 3
  1536. unsigned char CcsGAChargeStop: 1; //bit 4
  1537. unsigned char CcsAlignmentError: 1; //bit 5
  1538. unsigned char CcsACDError: 1; //bit 6
  1539. unsigned char CcsAssociationError: 1; //bit 7
  1540. //InfoVal[15]
  1541. unsigned char CcsEVSEChargeAbort: 1; //bit 0
  1542. unsigned char CcsNoSupportedAppProtocol: 1; //bit 1
  1543. unsigned char CcsContractNotAccepted: 1; //bit 2
  1544. unsigned char CcsMOUnknown: 1; //bit 3
  1545. unsigned char CcsOEM_Prov_CertificateRevoke: 1; //bit 4
  1546. unsigned char CcsOEM_SubCA1_CertificateRevoked: 1; //bit 5
  1547. unsigned char CcsOEM_SubCA2_CertificateRevoked: 1; //bit 6
  1548. unsigned char CcsOEM_RootCA_CertificateRevoked: 1; //bit 7
  1549. //InfoVal[16]
  1550. unsigned char CcsMO_Prov_CertificateRevoked: 1; //bit 0
  1551. unsigned char CcsMO_SubCA1_CertificateRevoked: 1; //bit 1
  1552. unsigned char CcsMO_SubCA2_CertificateRevoked: 1; //bit 2
  1553. unsigned char CcsMO_RootCA_CertificateRevoked: 1; //bit 3
  1554. unsigned char CcsCPS_Prov_CertificateRevoked: 1; //bit 4
  1555. unsigned char CcsCPS_SubCA1_CertificateRevoked: 1; //bit 5
  1556. unsigned char CcsCPS_SubCA2_CertificateRevoked: 1; //bit 6
  1557. unsigned char CcsCPS_RootCA_CertificateRevoked: 1; //bit 7
  1558. //InfoVal[17]
  1559. unsigned char : 5; //bit 0~4 reserved
  1560. unsigned char CcsTT_EVSE_SLAC_init: 1; //bit 5
  1561. unsigned char CcsTP_match_response: 1; //bit 6
  1562. unsigned char CcsTT_match_sequence: 1; //bit 7
  1563. //InfoVal[18]
  1564. unsigned char CcsTT_EVSE_match_MNBC: 1; //bit 0
  1565. unsigned char CcsTP_EVSE_avg_atten_calc: 1; //bit 1
  1566. unsigned char CcsTT_match_response: 1; //bit 2
  1567. unsigned char CcsTP_EVSE_match_session: 1; //bit 3
  1568. unsigned char CcsTT_EVSE_assoc_session: 1; //bit 4
  1569. unsigned char CcsTT_EVSE_vald_toggle: 1; //bit 5
  1570. unsigned char CcsSeccSlacTimeoutCmMnbcSound: 1; //bit 6 reserved
  1571. unsigned char CcsSeccSlacTimeoutCmValidateReq: 1; //bit 7 reserved
  1572. //InfoVal[19]
  1573. unsigned char : 3; //bit 0~2 reserved
  1574. unsigned char CcsUDP_TT_match_join: 1; //bit 3
  1575. unsigned char CcsTCP_TT_match_join: 1; //bit 4
  1576. unsigned char CcsTP_amp_map_exchange: 1; //bit 5
  1577. unsigned char CcsTP_link_ready_notification: 1; //bit 6
  1578. unsigned char : 1; //bit 7 resetved
  1579. //InfoVal[20]
  1580. unsigned char : 4; //bit 0~3 reserved
  1581. unsigned char CcsSupportedAppProtocolRes: 1; //bit 4
  1582. unsigned char CcsSessionSetupRes: 1; //bit 5
  1583. unsigned char CcsServiceDiscoveryRes: 1; //bit 6
  1584. unsigned char CcsServicePaymentSelectionRes: 1; //bit 7
  1585. //InfoVal[21]
  1586. unsigned char CcsContractAuthenticationRes: 1; //bit 0
  1587. unsigned char CcsChargeParameterDiscoveryRes: 1; //bit 1
  1588. unsigned char CcsPowerDeliveryRes: 1; //bit 2
  1589. unsigned char CcsCableCheckRes: 1; //bit 3
  1590. unsigned char CcsPreChargeRes: 1; //bit 4
  1591. unsigned char CcsCurrentDemandRes: 1; //bit 5
  1592. unsigned char CcsWeldingDetectionRes: 1; //bit 6
  1593. unsigned char CcsSessionStopRes: 1; //bit 7
  1594. //InfoVal[22]
  1595. unsigned char CcsSequence_Time: 1; //bit 0
  1596. unsigned char CcsReadyToCharge_Performance_Time: 1; //bit 1
  1597. unsigned char CcsCommunicationSetup_Performance_Time: 1; //bit 2
  1598. unsigned char CcsCableCheck_Performance_Time: 1; //bit 3
  1599. unsigned char CcsCPState_Detection_Time: 1; //bit 4
  1600. unsigned char CcsCPOscillator_Retain_Time: 1; //bit 5
  1601. unsigned char CcsSeccTimeoutV2GPreChargePerformaceTime: 1; //bit 6
  1602. unsigned char : 1; //bit 7 reserved
  1603. //InfoVal[23]
  1604. unsigned char : 3; //bit 0~2 reserved
  1605. unsigned char CcsTP_GET_EV_TARGET_INFO: 1; //bit 3
  1606. unsigned char CcsTT_GET_EV_TARGET_INFO: 1; //bit 4
  1607. unsigned char CcsTP_GET_EV_BATTERY_INFO: 1; //bit 5
  1608. unsigned char CcsTT_GET_EV_BATTERY_INFO: 1; //bit 6
  1609. unsigned char CcsTP_EV_STOP_EVENT: 1; //bit 7
  1610. //InfoVal[24]
  1611. unsigned char CcsTT_EV_STOP_EVENT: 1; //bit 0
  1612. unsigned char CcsTP_EVSE_STOP_EVENT: 1; //bit 1
  1613. unsigned char CcsTT_EVSE_STOP_EVENT: 1; //bit 2
  1614. unsigned char CcsTP_GET_MISC_INFO: 1; //bit 3
  1615. unsigned char CcsTT_GET_MISC_INFO: 1; //bit 4
  1616. unsigned char CcsTP_DOWNLOAD_REQUEST: 1; //bit 5
  1617. unsigned char CcsTT_DOWNLOAD_REQUEST: 1; //bit 6
  1618. unsigned char CcsTP_START_BLOCK_TRANSFER: 1; //bit 7
  1619. //InfoVal[25]
  1620. unsigned char CcsTT_START_BLOCK_TRANSFER: 1; //bit 0
  1621. unsigned char CcsTP_DATA_TRANSFER: 1; //bit 1
  1622. unsigned char CcsTT_DATA_TRANSFER: 1; //bit 2
  1623. unsigned char CcsTP_DOWNLOAD_FINISH: 1; //bit 3
  1624. unsigned char CcsTT_DOWNLOAD_FINISH: 1; //bit 4
  1625. unsigned char CcsTP_ISOLATION_STATUS: 1; //bit 5
  1626. unsigned char CcsTT_ISOLATION_STATUS: 1; //bit 6
  1627. unsigned char CcsTP_CONNECTOR_INFO: 1; //bit 7
  1628. //InfoVal[26]
  1629. unsigned char CcsTT_CONNECTOR_INFO: 1; //bit 0
  1630. unsigned char CcsTT_RTC_INFO: 1; //bit 1
  1631. unsigned char CcsTP_RTC_INFO: 1; //bit 2
  1632. unsigned char CcsTP_EVSE_PRECHARGE_INFO: 1; //bit 3
  1633. unsigned char CcsTT_EVSE_PRECHARGE_INFO: 1; //bit 4
  1634. unsigned char CcsMSG_Sequence: 1; //bit 5
  1635. unsigned char CcsCAN_MSG_Unrecognized_CMD_ID: 1; //bit 6
  1636. unsigned char CcsDIN_Msg_Decode_Error: 1; //bit 7
  1637. //InfoVal[27]
  1638. unsigned char CcsDIN_Msg_Encode_Error: 1; //bit 0
  1639. unsigned char CcsISO1_Msg_Decode_Error: 1; //bit 1
  1640. unsigned char CcsISO1_Msg_Encode_Error: 1; //bit 2
  1641. unsigned char CcsISO2_Msg_Decode_Error: 1; //bit 3
  1642. unsigned char CcsISO2_Msg_Encode_Error: 1; //bit 4
  1643. unsigned char CcsCpStatus_Error: 1; //bit 5
  1644. unsigned char CcsUnexpectVolBeforeCharing_Error: 1; //bit 6
  1645. unsigned char CcsSeccNotReadyForCharging: 1; //bit 7 reserved
  1646. //InfoVal[28]
  1647. unsigned char CcsSeccTimeoutQCA7000Comm: 1; //bit 0
  1648. unsigned char CcsSeccFailForQCA7000SetKey: 1; //bit 1
  1649. unsigned char : 6; //bit 2~7 reserved
  1650. //InfoVal[29]
  1651. unsigned char ERROR_CODE_GBT_LOS_CC1 : 1; //bit 0
  1652. unsigned char ERROR_CODE_GBT_CONNECTOR_LOCK_FAIL : 1; //bit 1
  1653. unsigned char ERROR_CODE_GBT_BATTERY_INCOMPATIBLE : 1; //bit 2
  1654. unsigned char ERROR_CODE_GBT_BMS_BROAA_TIMEOUT : 1; //bit 3
  1655. unsigned char ERROR_CODE_GBT_CSU_PRECHARGE_TIMEOUT : 1; //bit 4
  1656. unsigned char ERROR_CODE_GBT_BMS_PRESENT_VOLTAGE_FAULT : 1; //bit 5
  1657. unsigned char ERROR_CODE_GBT_BMS_VOLTAGE_OVER_RANGE : 1; //bit 6
  1658. unsigned char ERROR_CODE_GBT_BSM_CHARGE_ALLOW_00_10MIN_COUUNTDONE : 1; //bit 7
  1659. //InfoVal[30]
  1660. unsigned char ERROR_CODE_GBT_WAIT_GROUNDFAULT_TIMEOUT : 1; //bit 0
  1661. unsigned char ERROR_CODE_GBT_ADC_MORE_THAN_10V : 1; //bit 1
  1662. unsigned char ERROR_CODE_GBT_ADC_MORE_THAN_60V : 1; //bit 2
  1663. unsigned char ERROR_CODE_GBT_CHARGER_GET_NORMAL_STOP_CMD : 1; //bit 3
  1664. unsigned char ERROR_CODE_GBT_CHARGER_GET_EMERGENCY_STOP_CMD : 1; //bit 4
  1665. unsigned char ERROR_CODE_GBT_ISOLATION_RESULT_FAIL : 1; //bit 5
  1666. unsigned char ERROR_CODE_GBT_MOTHER_BOARD_MISS_LINK : 1; //bit 6
  1667. unsigned char ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_LIMIT : 1; //bit 7
  1668. //InfoVal[31]
  1669. unsigned char ERROR_CODE_GBT_REQ_CURRENT_MORE_THAN_LIMIT : 1; //bit 0
  1670. unsigned char ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_10_PERCENT : 1; //bit 1
  1671. unsigned char ERROR_CODE_GBT_OUTPUT_VOLTAGE_DIFF_BCS_5_PERCENT : 1; //bit 2
  1672. unsigned char ERROR_CODE_GBT_STOP_ADC_MORE_THAN_10V : 1; //bit 3
  1673. unsigned char : 4; //bit 4 ~ 7 reserved
  1674. //InfoVal[32]
  1675. unsigned char : 6; //bit 0 ~ 5 reserved
  1676. unsigned char ERROR_CODE_CEM_BHM_TIMEOUT : 1; //bit 6
  1677. unsigned char ERROR_CODE_CEM_BRM_TIMEOUT : 1; //bit 7
  1678. //InfoVal[33]
  1679. unsigned char ERROR_CODE_CEM_BCP_TIMEOUT : 1; //bit 0
  1680. unsigned char ERROR_CODE_CEM_BRO_TIMEOUT : 1; //bit 1
  1681. unsigned char ERROR_CODE_CEM_BCL_TIMEOUT : 1; //bit 2
  1682. unsigned char ERROR_CODE_CEM_BCS_TIMEOUT : 1; //bit 3
  1683. unsigned char ERROR_CODE_CEM_BSM_TIMEOUT : 1; //bit 4
  1684. unsigned char ERROR_CODE_CEM_BST_TIMEOUT : 1; //bit 5
  1685. unsigned char ERROR_CODE_CEM_BSD_TIMEOUT : 1; //bit 6
  1686. unsigned char ERROR_CODE_CEM_BEM_OTHER_TIMEOUT : 1; //bit 7
  1687. //InfoVal[34]
  1688. unsigned char ERROR_CODE_BEM_CRM_TIMEOUT : 1; //bit 0
  1689. unsigned char ERROR_CODE_BEM_CRMAA_TIMEOUT : 1; //bit 1
  1690. unsigned char ERROR_CODE_BEM_CTS_CML_TIMEOUT : 1; //bit 2
  1691. unsigned char ERROR_CODE_BEM_CRO_TIMEOUT : 1; //bit 3
  1692. unsigned char ERROR_CODE_BEM_CCS_TIMEOUT : 1; //bit 4
  1693. unsigned char ERROR_CODE_BEM_CST_TIMEOUT : 1; //bit 5
  1694. unsigned char ERROR_CODE_BEM_CSD_TIMEOUT : 1; //bit 6
  1695. unsigned char ERROR_CODE_BEM_BEM_OTHER_TIMEOUT : 1; //bit 7
  1696. //InfoVal[35]
  1697. unsigned char : 2; //bit 0 ~ 1
  1698. unsigned char ERROR_CODE_BST_SOC_GOAL : 1; //bit 2
  1699. unsigned char ERROR_CODE_BST_TOTAL_VOLTAGE_GOAL : 1; //bit 3
  1700. unsigned char ERROR_CODE_BST_CELL_VOLTAGE_GOAL : 1; //bit 4
  1701. unsigned char ERROR_CODE_BST_GET_CST : 1; //bit 5
  1702. unsigned char ERROR_CODE_BST_ISOLATION : 1; //bit 6
  1703. unsigned char ERROR_CODE_BST_OUTPUT_CONNECTOR_OTP : 1; //bit 7
  1704. //InfoVal[36]
  1705. unsigned char ERROR_CODE_BST_COMPONENT : 1; //bit 0
  1706. unsigned char ERROR_CODE_BST_CHARGE_CONNECTOR : 1; //bit 1
  1707. unsigned char ERROR_CODE_BST_OTP : 1; //bit 2
  1708. unsigned char ERROR_CODE_BST_OTHER : 1; //bit 3
  1709. unsigned char ERROR_CODE_BST_HIGH_V : 1; //bit 4
  1710. unsigned char ERROR_CODE_BST_CC2 : 1; //bit 5
  1711. unsigned char ERROR_CODE_BST_CURRENT : 1; //bit 6
  1712. unsigned char ERROR_CODE_BST_VOLTAGE : 1; //bit 7
  1713. //InfoVal[37]
  1714. unsigned char ERROR_CODE_GET_BST_NO_REASON : 1; //bit 0
  1715. unsigned char : 5; //bit 1 ~ 5 reserved
  1716. unsigned char ERROR_CODE_BSM_CELL_OVER_VOLTAGE : 1; //bit 6
  1717. unsigned char ERROR_CODE_BSM_CELL_UNDER_VOLTAGE : 1; //bit 7
  1718. //InfoVal[38]
  1719. unsigned char ERROR_CODE_BSM_OVER_SOC : 1; //bit 0
  1720. unsigned char ERROR_CODE_BSM_UNDER_SOC : 1; //bit 1
  1721. unsigned char ERROR_CODE_BSM_CURRENT : 1; //bit 2
  1722. unsigned char ERROR_CODE_BSM_TEMPERATURE : 1; //bit 3
  1723. unsigned char ERROR_CODE_BSM_ISOLATE : 1; //bit 4
  1724. unsigned char ERROR_CODE_BSM_OUTPUT_CONNECTOR : 1; //bit 5
  1725. unsigned char : 2; //bit 6 ~ 7 reserved
  1726. //InfoVal[39]
  1727. unsigned char BackendDisconnectedViaEthernet: 1; //bit 0
  1728. unsigned char BackendDisconnectViaWiFi: 1; //bit 1
  1729. unsigned char BackendDisconnectVia4G: 1; //bit 2
  1730. unsigned char BackendRemoteStart: 1; //bit 3
  1731. unsigned char BackendRemoteStop: 1; //bit 4
  1732. unsigned char BackendRemoteReset: 1; //bit 5
  1733. unsigned char AuthorizationFailed: 1; //bit 6
  1734. unsigned char : 1; //bit 7 reserved
  1735. } bits;
  1736. } InfoEvents;
  1737. };
  1738. struct StatusCodeData {
  1739. struct FaultCodeData FaultCode;
  1740. struct AlarmCodeData AlarmCode;
  1741. struct InfoCodeData InfoCode;
  1742. };
  1743. /**************************************************************************************/
  1744. /**************************PSU Share memory***************************************/
  1745. /**************************************************************************************/
  1746. struct PsuModuleVer {
  1747. unsigned char FwPrimaryVersion[16];
  1748. unsigned char FwSecondVersion[16];
  1749. };
  1750. /*Following are the information for each PSU module*/
  1751. struct PsuModuleData {
  1752. unsigned char AssignID;
  1753. unsigned char PhysicalID;
  1754. unsigned char GroupID;
  1755. unsigned char Address;
  1756. unsigned char FireWireIndex;
  1757. unsigned char FwVersion[16];
  1758. unsigned char SerialNumber[32];
  1759. unsigned char StateMachine; //0: Identification, 1:Operation, 2: Alarm, 3: Failure, s4:Upgrade
  1760. unsigned char OutputPowerSwitch; //0: D.D normal OFF, 1: D.D emergency OFF, 2: D.D ON
  1761. unsigned short FanSpeed_1; //RPM
  1762. unsigned short FanSpeed_2; //RPM
  1763. unsigned short FanSpeed_3; //RPM
  1764. unsigned short FanSpeed_4; //RPM
  1765. unsigned short InputVoltage_Type; //0x00 = Line to Line Vol, 0x01 = Line to Neutral Vol
  1766. unsigned short InputVoltageL1; //abcd=abc.d volt
  1767. unsigned short InputVoltageL2; //abcd=abc.d volt
  1768. unsigned short InputVoltageL3; //abcd=abc.d volt
  1769. unsigned short InputCurrentL1; //abcd=abc.d amp
  1770. unsigned short InputCurrentL2; //abcd=abc.d amp
  1771. unsigned short InputCurrentL3; //abcd=abc.d amp
  1772. unsigned short PresentOutputVoltage; //abcd=abc.d volt
  1773. unsigned short PresentOutputCurrent; //abcd=abc.d amp
  1774. unsigned short AvailableCurrent; //abcd=abc.d amp
  1775. unsigned int AvailablePower; //abcd=abc.d kWatt
  1776. char CriticalTemp1; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1777. char CriticalTemp2; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1778. char CriticalTemp3; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1779. char ExletTemp; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1780. char InletTemp_1; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1781. char InletTemp_2; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1782. char InletTemp; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1783. char OutletTemp; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1784. unsigned int AlarmCode;
  1785. unsigned int FaultCode; //
  1786. unsigned int IAvailableCurrent; //abcd=abc.d amp
  1787. };
  1788. /*Following are the information for each PSU Group*/
  1789. struct PsuGroupData {
  1790. unsigned char GroupPresentPsuQuantity;
  1791. unsigned char GroupOutputPowerSwitch; //0: D.D normal OFF, 1: D.D emergency OFF, 2: D.D ON
  1792. unsigned short GroupTargetOutputVoltage; //abcd=abc.d volt
  1793. unsigned short GroupTargetOutputCurrent; //abcd=abc.d amp
  1794. unsigned short GroupAvailableCurrent; //abcd=abc.d amp
  1795. unsigned int GroupAvailablePower; //abcd=abc.d kWatt
  1796. unsigned int GroupRealOutputPower; //Watt
  1797. unsigned short GroupPresentOutputVoltage; //abcd=abc.d volt
  1798. unsigned short GroupPresentOutputCurrent; //abcd=abc.d Amps
  1799. unsigned int GroupPresentOutputPower; //Watt
  1800. struct PsuModuleData PsuModule[MAX_PSU_QUANTITY];
  1801. };
  1802. /*Following is the information for system all PSU*/
  1803. struct PsuData {
  1804. unsigned char SystemPresentPsuQuantity;
  1805. unsigned short SystemAvailableCurrent; //abcd=abc.d amp
  1806. unsigned int SystemAvailablePower; //Watt
  1807. struct PsuGroupData PsuGroup[4];
  1808. unsigned char GroupCount;
  1809. unsigned char Work_Step;
  1810. struct PsuModuleVer PsuVersion[MAX_PSU_QUANTITY];
  1811. };
  1812. /************************************************************************************/
  1813. /**************************CHAdeMO protocol Share memory*********************/
  1814. /**************************************************************************************/
  1815. struct CHAdeMOEvData {
  1816. unsigned char SupportDynamicControl; //110.0
  1817. // bit0=1:supported
  1818. unsigned char SupportHighCurrent; //110.0
  1819. // bit1=1:supported
  1820. unsigned char MiniChargeCurrent; //100.0 0~200(A) (unit:1A)
  1821. // 0x00: request for current equivalent to 1.5kW
  1822. // 0x01: no request
  1823. // 0x02: request of 1A and following are the same rule
  1824. unsigned short MaxiBatteryVoltage; //100.5,100.4 0~600(V) (unit:1V)
  1825. unsigned short MaxiChargingTime; //101.2,101.1 10(sec.)~255(min.) (Unit:sec)
  1826. // Set 0xFF to 101.1 (Unit: 10sec) in case 101.2 (Unit: 1min) is used
  1827. unsigned char EstimatChargingTime; //101.3 0~254(min.) (Unit:sec)
  1828. // Display Only
  1829. unsigned short TotalBatteryCapacity; //101.6,101.5 0.1~6553.5(kWh) (unit:0.1 kWh)
  1830. unsigned char ProtocolVersion; //102.0 0~255
  1831. // 0x02: CHAdeMO specification ver.1.2
  1832. unsigned short TargetBatteryVoltage; //102.2,102.1 0~600(V) (unit:1V)
  1833. unsigned short ChargingCurrentRequest; //102.3 0~200(A) (unit:1A)
  1834. //110.2,110.1 0~1023(A) (unit:1A)
  1835. unsigned char BatteryAlarm; //102.4 >0:alarm
  1836. // bit0=1:Battery overvoltage
  1837. // bit1=1:Battery undervoltage
  1838. // bit2=1:Battery current deviation error
  1839. // bit3=1:High battery temperature
  1840. // bit4=1:Battery voltage deviation error
  1841. unsigned char EvDetection; //102.5
  1842. // bit0=0:Vehicle charging disabled, (stop charging)
  1843. // bit0=1:Vehicle charging enabled,
  1844. // bit1=0:¡§Parking¡¨ position
  1845. // bit1=1:other position (stop charging)
  1846. // bit2=0:Charging system normal
  1847. // bit2=1:Charging system error (stop charging)
  1848. // bit3=0:EV contactor close or during welding detection
  1849. // bit3=1:EV contactor open or termination of welding detection (stop charging)
  1850. // bit4=0:No stop request before charging
  1851. // bit4=1:Normal stop request before charging (stop charging)
  1852. unsigned char SOC; //102.6 0~100(%) (unit:%)
  1853. // Display Only
  1854. unsigned char Communicating; // it is true if receive EV CAN message within every 1500ms
  1855. unsigned char PresentMsgFlowStatus; //
  1856. };
  1857. struct CHAdeMOEvseData {
  1858. unsigned char SelfTest_Comp;
  1859. unsigned char version[16]; //Chademo firmware version
  1860. unsigned char SupportDynamicControl; //118.0
  1861. // bit0=1:supported
  1862. unsigned char SupportHighCurrent; //118.0
  1863. // bit1=1:supported
  1864. unsigned short AvailableOutputVoltage; //108.2,108.1 0~600(V) (unit:1V)
  1865. unsigned short AvailableOutputCurrent; //108.3 0~255(A) (unit:1A)
  1866. //118.2,118.1 0~1023(A) (unit:1A)
  1867. unsigned short ThresholdVoltage; //108.5,108.4 0~600(V) (unit:1V)
  1868. unsigned char ConnectorTemperatureP; //108.6 -40~215(degC) (unit:degC) //value 0=-40 [NISSAN customized]
  1869. unsigned char ConnectorTemperatureN; //108.7 -40~215(degC) (unit:degC) //value 0=-40 [NISSAN customized]
  1870. unsigned char ProtocolVersion; //109.0 0~255
  1871. // 0x00: CHAdeMO specification 0.9 and earlier
  1872. // 0x01: CHAdeMO specification 0.9 and 0.9.1
  1873. // 0x02: CHAdeMO specification 1.0.0, 1.0.1, 1.1 and 1.2
  1874. unsigned short PresentOutputVoltage; //109.2,109.1 0~600(V) (unit:1V)
  1875. unsigned short PresentOutputCurrent; //109.3 0~255(A) (unit:1A)
  1876. //118.4,118.3 0~1023(A) (unit:1A)
  1877. unsigned char EvseDetection; //109.5
  1878. // bit0=0:not charging state now
  1879. // bit0=1:charging state now
  1880. // bit1=0:EVSE normal
  1881. // bit1=1:EVSE error
  1882. // bit2=0:Not Energizing state
  1883. // bit2=1:Energizing state
  1884. // bit3=0:No Battery incompatibility
  1885. // bit3=1:Battery incompatibility
  1886. // bit4=0:No Charging system error
  1887. // bit4=1:Charging system error
  1888. // bit5=0:No Charging stop control
  1889. // bit5=1:Charging stop control
  1890. unsigned short RemainChargingTime; //109.7,109.6 10(sec.)~255(min.) (Unit:sec)
  1891. // Set 0xFF to 109.6 (Unit: 10sec) in case 109.7 (Unit: 1min) is used
  1892. unsigned char HighPowerCondition; //118.5
  1893. // bit0=0:Present charging current H¡¦118.3,H¡¦118.4¡¨ is less than or equal to rated current of a charging cable
  1894. // bit0=1:Present charging current H¡¦118.3,H¡¦118.4¡¨ is exceeds to rated current of a charging cable
  1895. // bit1=1:charging cable Cooling function Operating Installed
  1896. // bit2=1:charging cable Current limiting function
  1897. // bit3=1:charging connector Cooling function Operating
  1898. // bit4=1:charging connector Current limiting function Installed
  1899. // bit5=1:charging connector Over-temperature protection Installed
  1900. // bit6=1:Functional safety Applied
  1901. unsigned int MaxiGroupPower; // XXXXXXXX (Unit:Watt)depend on which group to be used
  1902. unsigned int MaxiGroupCurrent; // XXXXXXXX (unit:1A)depend on which group to be used
  1903. unsigned short ApplyOutputVoltage; // 0~600(V) (unit:1V)
  1904. unsigned short ElapseChargingTime; // (Unit:sec)
  1905. unsigned short ElapseEnergy; // (Unit:10xkWh)
  1906. unsigned char EvboardStatus; // 0 : init
  1907. };
  1908. struct CHAdeMOData {
  1909. struct CHAdeMOEvData ev[CHAdeMO_QUANTITY];
  1910. struct CHAdeMOEvseData evse[CHAdeMO_QUANTITY];
  1911. };
  1912. /************************************************************************************/
  1913. /**************************GBT protocol Share memory*********************/
  1914. /**************************************************************************************/
  1915. struct GBTEvData {
  1916. unsigned short MaxiBatteryVoltage; // 0~600(V) (unit:1V)
  1917. unsigned short MaxiChargingTime; // 10(sec.)~255(min.) (Unit:sec)
  1918. unsigned char EstimatChargingTime; // 0~254(min.) (Unit:sec)
  1919. unsigned short TotalBatteryCapacity; // 0.1~6553.5(kWh) (unit:0.1 kWh)
  1920. unsigned char ProtocolVersion; // 0~255
  1921. unsigned short TargetBatteryVoltage; // 0~600(V) (unit:1V)
  1922. unsigned short ChargingCurrentRequest; // 0~200(A) (unit:1A)
  1923. // 0~1023(A) (unit:1A)
  1924. unsigned char EvDetection; //102.5
  1925. // bit0=0:Vehicle charging disabled, (stop charging)
  1926. // bit0=1:Vehicle charging enabled,
  1927. // bit1=0:¡§Parking¡¨ position
  1928. // bit1=1:other position (stop charging)
  1929. // bit2=0:Charging system normal
  1930. // bit2=1:Charging system error (stop charging)
  1931. // bit3=0:EV contactor close or during welding detection
  1932. // bit3=1:EV contactor open or termination of welding detection (stop charging)
  1933. // bit4=0:No stop request before charging
  1934. // bit4=1:Normal stop request before charging (stop charging)
  1935. unsigned char SOC; //102.6 0~100(%) (unit:%)
  1936. // Display Only
  1937. unsigned char PresentMsgFlowStatus; //
  1938. };
  1939. struct GBTEvseData {
  1940. unsigned char SelfTest_Comp;
  1941. unsigned char version[16]; // GBT firmware version
  1942. unsigned short AvailableOutputVoltage; // 0~600(V) (unit:1V)
  1943. unsigned short AvailableOutputCurrent; // 0~255(A) (unit:1A)
  1944. unsigned char ConnectorTemperatureP; // -40~215(degC) (unit:degC) //value 0=-40 [NISSAN customized]
  1945. unsigned char ConnectorTemperatureN; // -40~215(degC) (unit:degC) //value 0=-40 [NISSAN customized]
  1946. unsigned short PresentOutputVoltage; // 0~600(V) (unit:1V)
  1947. unsigned short PresentOutputCurrent; // 0~255(A) (unit:1A)
  1948. unsigned short RemainChargingTime; //109.7,109.6 10(sec.)~255(min.) (Unit:sec)
  1949. unsigned char EvboardStatus; // 0 : init
  1950. };
  1951. struct GBTData {
  1952. struct GBTEvData ev[GB_QUANTITY];
  1953. struct GBTEvseData evse[GB_QUANTITY];
  1954. };
  1955. /************************************************************************************/
  1956. /**************************CCS protocol Share memory***************************/
  1957. /**************************DIN70121: 201412***************************************/
  1958. /**************************ISO15118_2014: 2014************************************/
  1959. /**************************ISO15118_2018: 2018************************************/
  1960. /************************************************************************************/
  1961. typedef enum boolean { FALSE, TRUE } BOOL;
  1962. enum ResponseCodeType_DIN70121 { OK_DIN70121 = 0, OK_NewSessionEstablished_DIN70121 = 1, OK_OldSessionJoined_DIN70121 = 2, OK_CertificateExpiresSoon_DIN70121 = 3,
  1963. FAILED_DIN70121 = 4, FAILED_SequenceError_DIN70121 = 5, FAILED_ServiceIDInvalid_DIN70121 = 6, FAILED_UnknownSession_DIN70121 = 7,
  1964. FAILED_ServiceSelectionInvalid_DIN70121 = 8, FAILED_PaymentSelectionInvalid_DIN70121 = 9, FAILED_CertificateExpired_DIN70121 = 10,
  1965. FAILED_SignatureError_DIN70121 = 11, FAILED_NoCertificateAvailable_DIN70121 = 12, FAILED_CertChainError_DIN70121 = 13, FAILED_ChallengeInvalid_DIN70121 = 14,
  1966. FAILED_ContractCanceled_DIN70121 = 15, FAILED_WrongChargeParameter_DIN70121 = 16, FAILED_PowerDeliveryNotApplied_DIN70121 = 17,
  1967. FAILED_TariffSelectionInvalid_DIN70121 = 18, FAILED_ChargingProfileInvalid_DIN70121 = 19, FAILED_EVSEPresentVoltageToLow_DIN70121 = 20,
  1968. FAILED_MeteringSignatureNotValid_DIN70121 = 21, FAILED_WrongEnergyTransferType_DIN70121 = 22
  1969. };
  1970. enum ResponseCodeType_ISO15118_2014 { OK_ISO15118_2014 = 0, OK_NewSessionEstablished_ISO15118_2014 = 1, OK_OldSessionJoined_ISO15118_2014 = 2, OK_CertificateExpiresSoon_ISO15118_2014 = 3,
  1971. FAILED_ISO15118_2014 = 4, FAILED_SequenceError_ISO15118_2014 = 5, FAILED_ServiceIDInvalid_ISO15118_2014 = 6, FAILED_UnknownSession_ISO15118_2014 = 7,
  1972. FAILED_ServiceSelectionInvalid_ISO15118_2014 = 8, FAILED_PaymentSelectionInvalid_ISO15118_2014 = 9, FAILED_CertificateExpired_ISO15118_2014 = 10,
  1973. FAILED_SignatureError_ISO15118_2014 = 11, FAILED_NoCertificateAvailable_ISO15118_2014 = 12, FAILED_CertChainError_ISO15118_2014 = 13, FAILED_ChallengeInvalid_ISO15118_2014 = 14,
  1974. FAILED_ContractCanceled_ISO15118_2014 = 15, FAILED_WrongChargeParameter_ISO15118_2014 = 16, FAILED_PowerDeliveryNotApplied_ISO15118_2014 = 17,
  1975. FAILED_TariffSelectionInvalid_ISO15118_2014 = 18, FAILED_ChargingProfileInvalid_ISO15118_2014 = 19, FAILED_MeteringSignatureNotValid_ISO15118_2014 = 20,
  1976. FAILED_NoChargeServiceSelected_ISO15118_2014 = 21, FAILED_WrongEnergyTransferMode_ISO15118_2014 = 22, FAILED_ContactorError_ISO15118_2014 = 23,
  1977. FAILED_CertificateNotAllowedAtThisEVSE_ISO15118_2014 = 24, FAILED_CertificateRevoked_ISO15118_2014 = 25
  1978. };
  1979. enum ResponseCodeType_ISO15118_2018 { OK_ISO15118_2018 = 0, OK_NewSessionEstablished_ISO15118_2018 = 1, OK_OldSessionJoined_ISO15118_2018 = 2, OK_CertificateExpiresSoon_ISO15118_2018 = 3,
  1980. OK_IsolationValid_ISO15118_2018 = 4, OK_IsolationWarning_ISO15118_2018 = 5, WARNING_CertificateExpired_ISO15118_2018 = 6, WARNING_NoCertificateAvailable_ISO15118_2018 = 7,
  1981. WARNING_CertValidationError_ISO15118_2018 = 8, WARNING_CertVerificationError_ISO15118_2018 = 9, WARNING_ContractCanceled_ISO15118_2018 = 10,
  1982. FAILED_ISO15118_2018 = 11, FAILED_SequenceError_ISO15118_2018 = 12, FAILED_ServiceIDInvalid_ISO15118_2018 = 13, FAILED_UnknownSession_ISO15118_2018 = 14,
  1983. FAILED_ServiceSelectionInvalid_ISO15118_2018 = 15, FAILED_SignatureError_ISO15118_2018 = 16, FAILED_IdentificationSelectionInvalid_ISO15118_2018 = 17,
  1984. FAILED_ChallengeInvalid_ISO15118_2018 = 18, FAILED_WrongChargeParameter_ISO15118_2018 = 19, FAILED_IsolationFault_ISO15118_2018 = 20,
  1985. FAILED_PowerDeliveryNotApplied_ISO15118_2018 = 21, FAILED_TariffSelectionInvalid_ISO15118_2018 = 22, FAILED_ChargingProfileInvalid_ISO15118_2018 = 23,
  1986. FAILED_MeteringSignatureNotValid_ISO15118_2018 = 24, FAILED_NoChargeServiceSelected_ISO15118_2018 = 25, FAILED_WrongEnergyTransferMode_ISO15118_2018 = 26,
  1987. FAILED_ContactorError_ISO15118_2018 = 27, FAILED_CertificateRevoked_ISO15118_2018 = 28, FAILED_CertificateNotYetValid_ISO15118_2018 = 29
  1988. };
  1989. enum EVSENotificationType { None = 0, StopCharging = 1, ReNegotiation = 2};
  1990. enum ServiceCategoryType { EVCharging = 0, Internet = 1, ContractCertificate = 2, OtherCustom = 3};
  1991. enum PaymentOptionType { Contract = 0, ExternalPayment = 1};
  1992. /*enum EVSESupportedEnergyTransferType { AC_single_phase_core = 0, AC_three_phase_core = 1, DC_core = 2, DC_extended = 3,
  1993. DC_combo_core = 4, DC_dual = 5, AC_core1p_DC_extended = 6, AC_single_DC_core = 7,
  1994. AC_single_phase_three_phase_core_DC_extended = 8, AC_core3p_DC_extended = 9};*/
  1995. enum EnergyTransferModeType { AC_single_phase_core = 0, AC_three_phase_core = 1, DC_core = 2, DC_extended = 3,
  1996. DC_combo_core = 4, DC_unique = 5
  1997. };
  1998. //enum identificationOptionType { Contract = 0, ExternalIdentification = 1};
  1999. 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};
  2000. 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};
  2001. enum ProcessingType { Finished = 0, Ongoing = 1, Ongoing_WaitingForCustomerInteraction = 2};
  2002. enum EVSEProcessingType_DIN70121 { Finished_DIN70121 = 0, Ongoing_DIN70121 = 1};
  2003. enum EVSEProcessingType_ISO15118_2014 { Finished_ISO15118_2014 = 0, Ongoing_ISO15118_2014 = 1, Ongoing_WaitingForCustomerInteraction_ISO15118_2014 = 2 };
  2004. enum DC_EVErrorCodeType { NO_ERROR = 0, FAILED_RESSTemperatureInhibit = 1, FAILED_EVShiftPosition = 2, FAILED_ChargerConnectorLockFault = 3,
  2005. FAILED_EVRESSMalfunction = 4, FAILED_ChargingCurrentdifferential = 5, FAILED_ChargingVoltageOutOfRange = 6,
  2006. Reserved_A = 7, Reserved_B = 8, Reserved_C = 9, FAILED_ChargingSystemIncompatibility = 10, NoData = 11
  2007. };
  2008. enum IsolationLevelType_DIN70121 { Invalid_DIN70121 = 0, Valid_DIN70121 = 1, Warning_DIN70121 = 2, Fault_DIN70121 = 3};
  2009. 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};
  2010. enum DC_EVSEStatusCodeType { EVSE_NotReady = 0, EVSE_Ready = 1, EVSE_Shutdown = 2, EVSE_UtilityInterruptEvent = 3,
  2011. EVSE_IsolationMonitoringActive = 4, EVSE_EmergencyShutdown = 5, EVSE_Malfunction = 6,
  2012. Reserved_8 = 7, Reserved_9 = 8
  2013. };
  2014. enum ScheduleOriginType { EV = 0, SA = 1};
  2015. enum ChargeProgressType_ISO15118_2014 {start_ISO15118_2014 = 0, Stop_ISO15118_2014 = 1, Renegotiate_ISO15118_2014 = 2};
  2016. enum ChargeProgressType_ISO15118_2018 {start_ISO15118_2018 = 0, Renegotiate_ISO15118_2018 = 1, Standby_ISO15118_2018 = 2, Stop_ISO15118_2018 = 3};
  2017. enum evOperationType {Charge = 0, Discharge = 1, Standby = 2};
  2018. enum mechanicalChargingDeviceStatusType {Home = 0, Moving = 1, EndPosition = 2};
  2019. enum EV_CP_StatusType {A = 0, B = 1, C = 2, D = 3, E = 4, F = 5};
  2020. enum EV_Error_Status_CodeType { No_EV_Error = 0, EV_FAILED_EmergencyEvent = 1, EV_FAILED_Breaker = 2, EV_FAILED_RESSTemperatureInhibit = 3,
  2021. EV_FAILED_RESS = 4, EV_FAILED_ChargingCurrentDifferential = 5, EV_FAILED_ChargingVoltageOutOfRange = 6,
  2022. Reserved_by_ISO_1 = 7, Reserved_by_ISO_2 = 8, Reserved_by_ISO_3 = 9, OEM1 = 10,
  2023. OEM2 = 11, OEM3 = 12, OEM4 = 13
  2024. };
  2025. enum IsolationStatusType { Invalid = 0, Safe = 1, Warning = 2, Fault = 3};
  2026. enum ChargingSessionType { Terminate = 0, Pause = 1};
  2027. enum CostKindType { relativePricePercentage = 0, RenewableGenerationPercentage = 1, CarbonDioxideEmission = 2};
  2028. struct PhysicalValueType_DIN70121 { //The final physical value is determined by: Value * 10 ^ Multiplier [Unit]
  2029. int Multiplier; //range: -3..+3
  2030. enum unitSymbolType_DIN70121 Unit;
  2031. short Value;
  2032. };
  2033. struct PhysicalValueType_ISO15118_2014 { //The final physical value is determined by: Value * 10 ^ Multiplier [Unit]
  2034. int Multiplier; //range: -3..+3
  2035. enum unitSymbolType_ISO15118_2014 Unit;
  2036. short Value;
  2037. };
  2038. struct PhysicalValueType_ISO15118_2018 { //The final physical value is determined by: Value * 10 ^ Exponent [Unit]
  2039. int Exponent; //range: -3..+3
  2040. short Value;
  2041. };
  2042. struct AppProtocolType {
  2043. unsigned char ProtocolNamespace[100];
  2044. unsigned int VersionNumberMajor;
  2045. unsigned int VersionNumberMinor;
  2046. unsigned char SchemaID;
  2047. unsigned char Priority; //range 1..20
  2048. };
  2049. struct ACD_SSEnergyTransferModeType {
  2050. unsigned char EVID[20];
  2051. };
  2052. struct EVSEStatusType {
  2053. unsigned short NotificationMaxDelay; //in seconds
  2054. enum EVSENotificationType EVSENotification;
  2055. };
  2056. struct ServiceIDListType {
  2057. unsigned short ServiceID[10]; //refer to chapter 8.6.2.1 Table 192
  2058. };
  2059. struct PaymentOptionListType {
  2060. enum PaymentOptionType PaymentOption[2];
  2061. };
  2062. struct ServiceTagType {
  2063. unsigned short ServiceID;
  2064. unsigned char ServiceName[32];//Optional Element
  2065. enum ServiceCategoryType ServiceCategory;
  2066. unsigned char ServiceScope[32];//Optional Element
  2067. };
  2068. struct ServiceType_DIN70121 {
  2069. struct ServiceTagType ServiceTag;
  2070. BOOL FreeService;
  2071. };
  2072. struct ServiceType_ISO15118_2014 {
  2073. unsigned short ServiceID;
  2074. unsigned char ServiceName[32]; //Optional
  2075. enum ServiceCategoryType ServiceCategory;
  2076. unsigned char ServiceScope[64]; //Optional
  2077. BOOL FreeService;
  2078. };
  2079. /*struct ServiceType_ISO15118_2018
  2080. {
  2081. unsigned short ServiceID;
  2082. BOOL FreeService;
  2083. }; */
  2084. struct SupportedEnergyTransferModeType {
  2085. enum EnergyTransferModeType EnergyTransferMode[6];
  2086. };
  2087. struct ServiceChargeType {
  2088. struct ServiceType_DIN70121 Services;
  2089. //enum EVSESupportedEnergyTransferType EnergyTransferType;
  2090. enum EnergyTransferModeType EnergyTransferType;
  2091. };
  2092. struct ChargeServiceType {
  2093. struct ServiceType_ISO15118_2014 Services;
  2094. struct SupportedEnergyTransferModeType SupportedEnergyTransferMode;
  2095. };
  2096. struct ServiceListType {
  2097. struct ServiceType_ISO15118_2014 Service[8];
  2098. };
  2099. struct IdentificationOptionListType {
  2100. enum PaymentOptionType IdentificationOption[2];
  2101. };
  2102. struct ParameterType {
  2103. unsigned char Name[32];
  2104. struct PhysicalValueType_ISO15118_2014 PhysicalValue_ISO15118_2014;
  2105. struct PhysicalValueType_ISO15118_2018 PhysicalValue_ISO15118_2018;
  2106. };
  2107. struct ParameterSetType {
  2108. short ParameterSetID;
  2109. struct ParameterType Parameter[16];
  2110. };
  2111. struct ServiceParameterListType {
  2112. struct ParameterSetType ParameterSet[255];
  2113. };
  2114. struct WPT_SDlEnergyTransferModeType {
  2115. struct ServiceParameterListType ServiceParameterList;
  2116. };
  2117. struct SelectedServiceType {
  2118. unsigned short ServiceID;
  2119. short ParameterSetID;
  2120. };
  2121. struct SelectedServiceListType {
  2122. struct SelectedServiceType SelectedService[16];
  2123. };
  2124. struct CertificateChainType {
  2125. unsigned char Id[32]; //Optional
  2126. unsigned char Certificate[800]; //check size again
  2127. unsigned char SubCertificates[4][800]; //Optional, check size again
  2128. };
  2129. struct PNC_AReqIdentificationModeType {
  2130. unsigned char GenChallenge[16]; //DIN70121=> None, ISO15118_2014=>None, ISO15118_2018=>Optional
  2131. unsigned char Id[32]; //DIN70121=> None, ISO15118_2014=>None, ISO15118_2018=>Optional
  2132. };
  2133. struct AC_EVChargeParameterType {
  2134. unsigned int DepartureTime; //Optional
  2135. struct PhysicalValueType_ISO15118_2014 EAmount;
  2136. struct PhysicalValueType_ISO15118_2014 EVMaxVoltage;
  2137. struct PhysicalValueType_ISO15118_2014 EVMaxCurrent;
  2138. struct PhysicalValueType_ISO15118_2014 EVMinCurrent;
  2139. };
  2140. struct DC_EVStatusType_DIN70121 {
  2141. BOOL EVReady;
  2142. BOOL EVCabinConditioning;
  2143. BOOL EVRESSConiditioning;
  2144. enum DC_EVErrorCodeType EVErrorCode;
  2145. unsigned char EVRESSSOC; /*0-100 percentage*/
  2146. };
  2147. struct DC_EVChargeParameterType_DIN70121 {
  2148. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  2149. struct PhysicalValueType_DIN70121 EVMaximumCurrentLimit;
  2150. struct PhysicalValueType_DIN70121 EVMaximumPowerLimit; //Optional
  2151. struct PhysicalValueType_DIN70121 EVMaximumVoltageLimit;
  2152. struct PhysicalValueType_DIN70121 EVEnergyCapacity; //Optional
  2153. struct PhysicalValueType_DIN70121 EVEnergyRequest; //Optional
  2154. unsigned char FullSOC;/*0-100 percentage*/ //Optional
  2155. unsigned char BulkSOC;/*0-100 percentage*/ //Optional
  2156. };
  2157. struct DC_EVStatusType_ISO15118_2014 {
  2158. BOOL EVReady;
  2159. enum DC_EVErrorCodeType EVErrorCode;
  2160. unsigned char EVRESSSOC; /*0-100 percentage*/
  2161. };
  2162. struct DC_EVChargeParameterType_ISO15118_2014 {
  2163. unsigned int DepartureTime; //Optional
  2164. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  2165. struct PhysicalValueType_ISO15118_2014 EVMaximumCurrentLimit;
  2166. struct PhysicalValueType_ISO15118_2014 EVMaximumPowerLimit; //Optional
  2167. struct PhysicalValueType_ISO15118_2014 EVMaximumVoltageLimit;
  2168. struct PhysicalValueType_ISO15118_2014 EVEnergyCapacity; //Optional
  2169. struct PhysicalValueType_ISO15118_2014 EVEnergyRequest; //Optional
  2170. unsigned char FullSOC;/*0-100 percentage*/ //Optional
  2171. unsigned char BulkSOC;/*0-100 percentage*/ //Optional
  2172. };
  2173. struct Dynamic_CPDReqControlModeType {
  2174. unsigned int DepartureTime;
  2175. };
  2176. struct RelativeTimeIntervalType {
  2177. unsigned int duration; //Optional
  2178. unsigned int start;
  2179. };
  2180. struct PMaxScheduleEntryType {
  2181. struct RelativeTimeIntervalType RelativeTimeInterval;
  2182. unsigned short PMax;
  2183. };
  2184. struct PMaxScheduleType {
  2185. unsigned short PMaxScheduleID; //no this itme in ISO15118_2014
  2186. struct PMaxScheduleEntryType PMaxScheduleEntry[1024];
  2187. };
  2188. struct CostType {
  2189. unsigned int amount;
  2190. enum CostKindType costKind;
  2191. int amountMultiplier; //Optional , range: -3..+3
  2192. };
  2193. struct ConsumptionCostType {
  2194. struct CostType Cost[3];
  2195. struct PhysicalValueType_ISO15118_2014 startValue;
  2196. };
  2197. struct SalesTariffEntryType {
  2198. struct RelativeTimeIntervalType RelativeTimeInterval;
  2199. unsigned char EPriceLevel; //Optional
  2200. struct ConsumptionCostType ConsumptionCost[3]; //Optional
  2201. };
  2202. struct SalesTariffType {
  2203. unsigned char Id[32]; //Optional
  2204. short SalesTariffID;
  2205. unsigned char SalesTariffDescription[32]; //Optional
  2206. unsigned char NumEPriceLevels; //Optional
  2207. struct SalesTariffEntryType SalesTariffEntry[1024];
  2208. };
  2209. struct SAScheduleTupleType {
  2210. short SAScheduleTupleID;
  2211. struct PMaxScheduleType PMaxSchedule;
  2212. struct SalesTariffType SalesTariff; //Optional
  2213. };
  2214. struct ScheduleListType {
  2215. enum ScheduleOriginType ScheduleOrigin;
  2216. struct SAScheduleTupleType ScheduleTuple[3];
  2217. };
  2218. struct Scheduled_CPDReqControlModeType {
  2219. enum ProcessingType EVProcessing;
  2220. unsigned int DepartureTime; //Optional
  2221. unsigned short MaxSupportingPoints;
  2222. struct ScheduleListType ScheduleList; //Optional
  2223. };
  2224. struct AC_CPDReqEnergyTransferModeType {
  2225. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  2226. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  2227. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  2228. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
  2229. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  2230. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  2231. struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
  2232. };
  2233. struct DC_CPDReqEnergyTransferModeType {
  2234. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower; //Optional
  2235. struct PhysicalValueType_ISO15118_2018 EVMinimumChargePower; //Optional
  2236. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  2237. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  2238. struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
  2239. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  2240. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  2241. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  2242. unsigned char TargetSOC; //Optional
  2243. unsigned char BulkSOC; //Optional
  2244. };
  2245. struct BPT_AC_CPDReqEnergyTransferModeType {
  2246. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
  2247. struct PhysicalValueType_ISO15118_2018 EVMaximumDischargePower;
  2248. struct PhysicalValueType_ISO15118_2018 EVMinimumDischargePower;
  2249. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  2250. struct PhysicalValueType_ISO15118_2018 EVMaximumDischargeCurrent;
  2251. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  2252. struct PhysicalValueType_ISO15118_2018 EVMinimumDischargeCurrent;
  2253. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  2254. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  2255. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  2256. struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
  2257. };
  2258. struct BPT_DC_CPDReqEnergyTransferModeType {
  2259. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
  2260. struct PhysicalValueType_ISO15118_2018 EVMinimumChargePower;
  2261. struct PhysicalValueType_ISO15118_2018 EVMaximumDischargePower;
  2262. struct PhysicalValueType_ISO15118_2018 EVMinimumDischargePower;
  2263. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  2264. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  2265. struct PhysicalValueType_ISO15118_2018 EVMaximumDischargeCurrent;
  2266. struct PhysicalValueType_ISO15118_2018 EVMinimumDischargeCurrent;
  2267. struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
  2268. struct PhysicalValueType_ISO15118_2018 EVMinimumVoltage;
  2269. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest;
  2270. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest;
  2271. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest;
  2272. unsigned char TargetSOC; //Optional
  2273. unsigned char BulkSOC; //Optional
  2274. };
  2275. struct WPT_CPDReqEnergyTransferModeType {
  2276. struct PhysicalValueType_ISO15118_2018 EVMaximumPower; //Optional
  2277. struct PhysicalValueType_ISO15118_2018 EVMinimumPower; //Optional
  2278. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  2279. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  2280. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  2281. };
  2282. struct ACD_CPDReqEnergyTransferModeType {
  2283. //cannot be found in standard
  2284. };
  2285. struct SAScheduleListType {
  2286. struct SAScheduleTupleType SAScheduleTuple[3];
  2287. };
  2288. struct DC_EVSEStatusType_DIN70121 {
  2289. enum IsolationLevelType_DIN70121 EVSEIsolationStatus; //Optional
  2290. enum DC_EVSEStatusCodeType EVSEStatusCode;
  2291. unsigned int NotificationMaxDelay;
  2292. enum EVSENotificationType EVSENotification;
  2293. };
  2294. struct DC_EVSEChargeParameterType_DIN70121 {
  2295. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  2296. struct PhysicalValueType_DIN70121 EVSEMaximumCurrentLimit;
  2297. struct PhysicalValueType_DIN70121 EVSEMaximumPowerLimit; //Optional
  2298. struct PhysicalValueType_DIN70121 EVSEMaximumVoltageLimit;
  2299. struct PhysicalValueType_DIN70121 EVSEMinimumCurrentLimit;
  2300. struct PhysicalValueType_DIN70121 EVSEMinimumVoltageLimit;
  2301. struct PhysicalValueType_DIN70121 EVSECurrentRegulationTolerance; //Optional
  2302. struct PhysicalValueType_DIN70121 EVSEPeakCurrentRipple;
  2303. struct PhysicalValueType_DIN70121 EVSEEnergyToBeDelivered; //Optional
  2304. };
  2305. struct AC_EVSEStatusType {
  2306. BOOL RCD;
  2307. unsigned short NotificationMaxDelay;
  2308. enum EVSENotificationType EVSENotification; //need to be confirmed
  2309. };
  2310. struct AC_EVSEChargeParameterType {
  2311. struct AC_EVSEStatusType AC_EVSEStatus;
  2312. struct PhysicalValueType_ISO15118_2014 EVSENominalVoltage;
  2313. struct PhysicalValueType_ISO15118_2014 EVSEMaxCurrent;
  2314. };
  2315. struct DC_EVSEStatusType_ISO15118_2014 {
  2316. unsigned short NotificationMaxDelay;
  2317. enum EVSENotificationType EVSENotification;
  2318. enum IsolationLevelType_ISO15118_2014 EVSEIsolationStatus; //Optional
  2319. enum DC_EVSEStatusCodeType DC_EVSEStatusCode;
  2320. };
  2321. struct DC_EVSEChargeParameterType_ISO15118_2014 {
  2322. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  2323. struct PhysicalValueType_ISO15118_2014 EVSEMaximumCurrentLimit;
  2324. struct PhysicalValueType_ISO15118_2014 EVSEMaximumPowerLimit;
  2325. struct PhysicalValueType_ISO15118_2014 EVSEMaximumVoltageLimit;
  2326. struct PhysicalValueType_ISO15118_2014 EVSEMinimumCurrentLimit;
  2327. struct PhysicalValueType_ISO15118_2014 EVSEMinimumVoltageLimit;
  2328. struct PhysicalValueType_ISO15118_2014 EVSECurrentRegulationTolerance; //Optional
  2329. struct PhysicalValueType_ISO15118_2014 EVSEPeakCurrentRipple;
  2330. struct PhysicalValueType_ISO15118_2014 EVSEEnergyToBeDelivered; //Optional
  2331. };
  2332. struct Scheduled_CPDResControlModeType {
  2333. struct ScheduleListType ScheduleList;
  2334. };
  2335. struct AC_CPDResEnergyTransferModeType {
  2336. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent[3];
  2337. struct PhysicalValueType_ISO15118_2018 EVSENominalVoltage;
  2338. struct PhysicalValueType_ISO15118_2018 EVSENominalFrequency;
  2339. };
  2340. struct DC_CPDResEnergyTransferModeType {
  2341. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower;
  2342. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent;
  2343. struct PhysicalValueType_ISO15118_2018 EVSEMinimumChargeCurrent;
  2344. struct PhysicalValueType_ISO15118_2018 EVSEMaximumVoltage;
  2345. struct PhysicalValueType_ISO15118_2018 EVSEMinimumVoltage;
  2346. };
  2347. struct BPT_AC_CPDResEnergyTransferModeType {
  2348. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent[3];
  2349. struct PhysicalValueType_ISO15118_2018 EVSEMaximumDischargeCurrent[3];
  2350. struct PhysicalValueType_ISO15118_2018 EVSENominalVoltage;
  2351. struct PhysicalValueType_ISO15118_2018 EVSENominalFrequency;
  2352. };
  2353. struct BPT_DC_CPDResEnergyTransferModeType {
  2354. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower;
  2355. struct PhysicalValueType_ISO15118_2018 EVSEMaximumDischargePower;
  2356. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent;
  2357. struct PhysicalValueType_ISO15118_2018 EVSEMaximumDischargeCurrent;
  2358. struct PhysicalValueType_ISO15118_2018 EVSEMinimumChargeCurrent;
  2359. struct PhysicalValueType_ISO15118_2018 EVSEMinimumDischargeCurrent;
  2360. struct PhysicalValueType_ISO15118_2018 EVSEMaximumVoltage;
  2361. struct PhysicalValueType_ISO15118_2018 EVSEMinimumVoltage;
  2362. };
  2363. struct WPT_CPDResEnergyTransferModeType {
  2364. struct PhysicalValueType_ISO15118_2018 EVSEMaximumPower;
  2365. struct PhysicalValueType_ISO15118_2018 EVSEMinimumPower;
  2366. };
  2367. struct ACD_CPDResEnergyTransferModeType {
  2368. //not found in ISO15118_2018
  2369. };
  2370. struct ProfileEntryType_DIN70121 {
  2371. unsigned int ChargingProfileEntryStart;
  2372. short ChargingProfileEntryMaxPower;
  2373. };
  2374. struct ChargingProfileType_DIN70121 {
  2375. short SAScheduleTupleID;
  2376. struct ProfileEntryType_DIN70121 ProfileEntry[24];
  2377. };
  2378. struct DC_EVPowerDeliveryParameterType_DIN70121 {
  2379. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  2380. BOOL BulkChargingComplete; //Optional
  2381. BOOL ChargingComplete;
  2382. };
  2383. struct ProfileEntryType_ISO15118_2014 {
  2384. unsigned int ChargingProfileEntryStart;
  2385. struct PhysicalValueType_ISO15118_2018 ChargingProfileEntryMaxPower;
  2386. unsigned char ChargingProfileEntryMaxNumberOfPhasesInUse; //Optional
  2387. };
  2388. struct ChargingProfileType_ISO15118_2014 {
  2389. struct ProfileEntryType_ISO15118_2014 ProfileEntry[24];
  2390. };
  2391. struct DC_EVPowerDeliveryParameterType_ISO15118_2014 {
  2392. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  2393. BOOL BulkChargingComplete; //Optional
  2394. BOOL ChargingComplete;
  2395. };
  2396. struct TimeInterval {
  2397. unsigned int start;
  2398. unsigned int duration; //Optional
  2399. };
  2400. struct PowerScheduleEntryType {
  2401. struct TimeInterval TimeInterval;
  2402. struct PhysicalValueType_ISO15118_2018 Power[3];
  2403. };
  2404. struct EVPowerProfileType {
  2405. struct PowerScheduleEntryType EVPowerProfileEntry[2048];
  2406. };
  2407. struct Scheduled_PDReqControlModeType {
  2408. unsigned char ScheduleTupleID;
  2409. struct EVPowerProfileType EVPowerProfile;
  2410. };
  2411. struct BPT_Scheduled_PDReqControlModeType {
  2412. unsigned char ScheduleTupleID;
  2413. struct EVPowerProfileType EVPowerProfile; //Optional
  2414. enum evOperationType EVOperation;
  2415. };
  2416. struct ListOfRootCertificateIDsType {
  2417. unsigned char RootCertificateID[20][40];
  2418. };
  2419. struct ContractSignatureEncryptedPrivateKeyType {
  2420. unsigned char Id[32];
  2421. };
  2422. struct DiffieHellmanPublickeyType {
  2423. unsigned char Id[32];
  2424. };
  2425. struct ContractCertificateEncryptedPrivateKeyType {
  2426. unsigned char Id[32];
  2427. };
  2428. struct EVTechnicalStatusType {
  2429. BOOL EV_Status_ReadyToCharge;
  2430. BOOL EV_Status_ImmobilizationRequest; //Optional
  2431. BOOL EV_Status_Immobilized;
  2432. struct PhysicalValueType_ISO15118_2018 EV_Status_WLAN_Strength;
  2433. enum EV_CP_StatusType EV_CP_Status;
  2434. unsigned char EV_Status_RESSSOC; //0~100%
  2435. enum EV_Error_Status_CodeType EV_Error_Status_Code;
  2436. BOOL EVSE_Timeout;
  2437. };
  2438. struct MeterInfoType_ISO15118_2014 {
  2439. unsigned char MeterID[32];
  2440. unsigned long MeterReading; //Optional
  2441. unsigned char SigMeterReading[64]; //Optional
  2442. short MeterStatus; //Optional
  2443. short TMeter; //Optional
  2444. };
  2445. struct Scheduled_MRReqControlModeType {
  2446. unsigned char ScheduleTupleID;
  2447. };
  2448. struct MeterInfoType_ISO15118_2018 {
  2449. unsigned char MeterID[32];
  2450. unsigned long MeterReadingWhCharged; //Optional
  2451. unsigned long MeterReadingWhDischarged; //Optional
  2452. unsigned long MeterReadingVARhLeading; //Optional
  2453. unsigned long MeterReadingVARhLagging; //Optional
  2454. unsigned char SignatureMeterReading[64]; //Optional
  2455. short MeterStatus; //Optional
  2456. short TimeStampMeter; //Optional
  2457. BOOL ReceiptRequired; //Optional
  2458. };
  2459. struct PnC_CLReqIdentificationModeType {
  2460. BOOL MeteringReceiptRequested;
  2461. };
  2462. struct Dynamic_CSReqControlModeType {
  2463. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest;
  2464. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest;
  2465. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest;
  2466. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
  2467. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  2468. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  2469. };
  2470. struct Scheduled_CSReqControlModeType {
  2471. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  2472. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  2473. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  2474. BOOL Standby;
  2475. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower; //Optional
  2476. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent; //Optional
  2477. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent; //Optional
  2478. };
  2479. struct DisplayParametersType {
  2480. unsigned short CurrentRange;
  2481. unsigned char CurrentSOC; //0~100%
  2482. unsigned char MinimumSOC; //0~100%
  2483. struct PhysicalValueType_ISO15118_2018 RemainingTimeToMaximumSOC;
  2484. struct PhysicalValueType_ISO15118_2018 RemainingTimeToTargetSOC;
  2485. struct PhysicalValueType_ISO15118_2018 RemainingTimeToBulkSOC;
  2486. struct PhysicalValueType_ISO15118_2018 RemainingTimeToMinimumSOC;
  2487. BOOL ChargingComplete;
  2488. BOOL BulkChargingComplete;
  2489. BOOL InletHot;
  2490. };
  2491. struct PnC_CLResIdentificationModeType {
  2492. struct MeterInfoType_ISO15118_2018 MeterInfo;
  2493. };
  2494. struct Dynamic_CSResControlModeType {
  2495. struct PhysicalValueType_ISO15118_2018 EVSETargetActivePower;
  2496. };
  2497. struct Scheduled_CDResControlModeType {
  2498. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower; //Optional
  2499. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent; //Optional
  2500. struct PhysicalValueType_ISO15118_2018 EVSEMaximumVoltage; //Optional
  2501. };
  2502. struct LFA_EVFinePositioningSetupParametersType {
  2503. unsigned char NumberOfSensors;
  2504. //NOT complete yet, to be continue.....
  2505. };
  2506. /****SupportedAppProtocolRequest****/
  2507. struct SupportedAppProtocolRequest_DIN70121 {
  2508. struct AppProtocolType AppProtocol[20];
  2509. };
  2510. struct SupportedAppProtocolRequest_ISO15118_2014 {
  2511. struct AppProtocolType AppProtocol[20];
  2512. };
  2513. struct SupportedAppProtocolRequest_ISO15118_2018 {
  2514. struct AppProtocolType AppProtocol[20];
  2515. };
  2516. /****SupportedAppProtocolResponse****/
  2517. struct SupportedAppProtocolResponse_DIN70121 {
  2518. enum ResponseCodeType_DIN70121 ResponseCode;
  2519. unsigned char SchemaID; //Optional
  2520. };
  2521. struct SupportedAppProtocolResponse_ISO15118_2014 {
  2522. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2523. unsigned char SchemaID; //Optional
  2524. };
  2525. struct SupportedAppProtocolResponse_ISO15118_2018 {
  2526. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2527. unsigned char SchemaID; //Optional
  2528. };
  2529. /****SessionSetupRequest****/
  2530. struct SessionSetupRequest_DIN70121 {
  2531. unsigned char EVCCID[8]; //the MAC address of the EVCC in Hex
  2532. };
  2533. struct SessionSetupRequest_ISO15118_2014 {
  2534. unsigned char EVCCID[8]; //the MAC address of the EVCC in Hex
  2535. };
  2536. struct SessionSetupRequest_ISO15118_2018 {
  2537. unsigned char EVCCID[8]; //the MAC address of the EVCC in Hex
  2538. struct ACD_SSEnergyTransferModeType ACD_SSEnergyTransferMode; //For ACD mandatory, optional for rest
  2539. };
  2540. /****SessionSetupResponse****/
  2541. struct SessionSetupResponse_DIN70121 {
  2542. enum ResponseCodeType_DIN70121 ResponseCode;
  2543. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  2544. unsigned int EVSETimeStamp; //EPOCH format, Optional
  2545. };
  2546. struct SessionSetupResponse_ISO15118_2014 {
  2547. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2548. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  2549. unsigned int EVSETimeStamp; //EPOCH format, Optional
  2550. };
  2551. struct SessionSetupResponse_ISO15118_2018 {
  2552. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2553. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  2554. struct EVSEStatusType EVSEStatus; //Optional
  2555. };
  2556. /****ServiceDiscoveryRequest****/
  2557. struct ServiceDiscoveryRequest_DIN70121 {
  2558. unsigned char ServiceScope[32]; //Optional
  2559. enum ServiceCategoryType ServiceCategory; //Optional
  2560. };
  2561. struct ServiceDiscoveryRequest_ISO15118_2014 {
  2562. unsigned char ServiceScope[32]; //Optional
  2563. enum ServiceCategoryType ServiceCategory; //Optional
  2564. };
  2565. struct ServiceDiscoveryRequest_ISO15118_2018 {
  2566. struct ServiceIDListType SupportedServiceIDs; //Optional
  2567. };
  2568. /****ServiceDiscoveryResponse****/
  2569. struct ServiceDiscoveryResponse_DIN70121 {
  2570. enum ResponseCodeType_DIN70121 ResponseCode;
  2571. struct PaymentOptionListType PaymentOptions;
  2572. struct ServiceChargeType ChargeService_DIN70121;
  2573. };
  2574. struct ServiceDiscoveryResponse_ISO15118_2014 {
  2575. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2576. struct PaymentOptionListType PaymentOptions;
  2577. struct ChargeServiceType ChargeService;
  2578. struct ServiceListType ServiceList; //Optional
  2579. };
  2580. struct ServiceDiscoveryResponse_ISO15118_2018 {
  2581. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2582. struct EVSEStatusType EVSEStatus; //Optional
  2583. struct IdentificationOptionListType IdentificationOptionList;
  2584. struct ServiceListType EnergyTransferServiceList;
  2585. struct ServiceListType VASList; //Optional
  2586. };
  2587. /****ServiceDetailRequest****/
  2588. //Only in ISO15118_2014 and ISO15118_2018
  2589. struct ServiceDetailRequest_ISO15118_2014 {
  2590. unsigned short ServiceID;
  2591. };
  2592. struct ServiceDetailRequest_ISO15118_2018 {
  2593. unsigned short ServiceID;
  2594. struct WPT_SDlEnergyTransferModeType WPT_SDlEnergyTransferMode;
  2595. };
  2596. /****ServiceDetailResponse****/
  2597. struct ServiceDetailResponse_ISO15118_2014 {
  2598. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2599. unsigned short ServiceID;
  2600. struct ServiceParameterListType ServiceParameterList;
  2601. };
  2602. struct ServiceDetailResponse_ISO15118_2018 {
  2603. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2604. unsigned short ServiceID;
  2605. struct ServiceParameterListType ServiceParameterList;
  2606. struct EVSEStatusType EVSEStatus; //Optional
  2607. };
  2608. /****ServiceAndPaymentSelectionRequest / ServiceSelectionRequest****/
  2609. struct ServiceAndPaymentSelectionRequest_DIN70121 {
  2610. enum PaymentOptionType SelectedPaymentOption;
  2611. struct SelectedServiceListType SelectedServiceList;
  2612. };
  2613. struct ServiceAndPaymentSelectionRequest_ISO15118_2014 {
  2614. enum PaymentOptionType SelectedPaymentOption;
  2615. struct SelectedServiceListType SelectedServiceList;
  2616. };
  2617. struct ServiceSelectionRequest_ISO15118_2018 {
  2618. enum PaymentOptionType SelectedPaymentOption;
  2619. struct SelectedServiceType SelectedEnergyTransferService;
  2620. struct SelectedServiceListType SelectedVASList;
  2621. enum ProcessingType EVProcessing;
  2622. };
  2623. /****ServiceAndPaymentSelectionResponse / ServiceSelectionResponse****/
  2624. struct ServiceAndPaymentSelectionResponse_DIN70121 {
  2625. enum ResponseCodeType_DIN70121 ResponseCode;
  2626. };
  2627. struct ServiceAndPaymentSelectionResponse_ISO15118_2014 {
  2628. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2629. };
  2630. struct ServiceSelectionResponse_ISO15118_2018 {
  2631. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2632. struct EVSEStatusType EVSEStatus; //Optional
  2633. };
  2634. /****PaymentDetailsRequest / IdentificationDetailsRequest****/
  2635. struct PaymentDetailsRequest_ISO15118_2014 {
  2636. unsigned char eMAID[16];
  2637. struct CertificateChainType ContractSignatureCertChain;
  2638. };
  2639. struct IdentificationDetailsRequest_ISO15118_2018 {
  2640. struct CertificateChainType ContractSignatureCertChain;
  2641. };
  2642. /****PaymentDetailsResponse / IdentificationDetailsResponse ****/
  2643. struct PaymentDetailsResponse_ISO15118_2014 {
  2644. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2645. unsigned char GenChallenge[16];
  2646. long EVSETimeStamp;
  2647. };
  2648. struct IdentificationDetailsResponse_ISO15118_2018 {
  2649. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2650. struct EVSEStatusType EVSEStatus; //Optional
  2651. unsigned char GenChallenge[16];
  2652. enum ProcessingType EVSEProcessing;
  2653. };
  2654. /****ContractAuthenticationRequest / AuthorizationRequest****/
  2655. struct ContractAuthenticationRequest_DIN70121 {
  2656. //None
  2657. };
  2658. struct AuthorizationRequest_ISO15118_2014 {
  2659. unsigned char GenChallenge[16]; //Optional
  2660. unsigned char Id[32]; //Optional
  2661. };
  2662. struct AuthorizationRequest_ISO15118_2018 {
  2663. struct PNC_AReqIdentificationModeType PNC_AReqIdentificationMode; //Optional
  2664. };
  2665. /****ContractAuthenticationResponse / AuthorizationResponse****/
  2666. struct ContractAuthenticationResponse_DIN70121 {
  2667. enum ResponseCodeType_DIN70121 ResponseCode;
  2668. enum EVSEProcessingType_DIN70121 EVSEProcessing;
  2669. };
  2670. struct AuthorizationResponse_ISO15118_2014 {
  2671. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2672. enum EVSEProcessingType_ISO15118_2014 EVSEProcessing;
  2673. };
  2674. struct AuthorizationResponse_ISO15118_2018 {
  2675. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2676. enum ProcessingType EVSEProcessing;
  2677. struct EVSEStatusType EVSEStatus; //Optional
  2678. };
  2679. /****ChargeParameterDiscoveryRequest****/
  2680. struct ChargeParameterDiscoveryRequest_DIN70121 {
  2681. enum EnergyTransferModeType EVRequestedEnergyTransferType;
  2682. struct DC_EVChargeParameterType_DIN70121 DC_EVChargeParameter;
  2683. };
  2684. struct ChargeParameterDiscoveryRequest_ISO15118_2014 {
  2685. unsigned short MaxEntriesSAScheduleTuple; //Optional
  2686. enum EnergyTransferModeType RequestedEnergyTransferMode;
  2687. struct AC_EVChargeParameterType AC_EVChargeParameter;
  2688. struct DC_EVChargeParameterType_ISO15118_2014 DC_EVChargeParameter;
  2689. };
  2690. struct ChargeParameterDiscoveryRequest_ISO15118_2018 {
  2691. struct Dynamic_CPDReqControlModeType Dynamic_CPDReqControlMode;
  2692. struct Scheduled_CPDReqControlModeType Scheduled_CPDReqControlMode;
  2693. struct AC_CPDReqEnergyTransferModeType AC_CPDReqEnergyTransferMode;
  2694. struct DC_CPDReqEnergyTransferModeType DC_CPDReqEnergyTransferMode;
  2695. struct BPT_AC_CPDReqEnergyTransferModeType BPT_AC_CPDReqEnergyTransferMode;
  2696. struct BPT_DC_CPDReqEnergyTransferModeType BPT_DC_CPDReqEnergyTransferMode;
  2697. struct WPT_CPDReqEnergyTransferModeType WPT_CPDReqEnergyTransferMode;
  2698. struct ACD_CPDReqEnergyTransferModeType ACD_CPDReqEnergyTransferMode;
  2699. };
  2700. /****ChargeParameterDiscoveryResponse****/
  2701. struct ChargeParameterDiscoveryResponse_DIN70121 {
  2702. enum ResponseCodeType_DIN70121 ResponseCode;
  2703. enum EVSEProcessingType_DIN70121 EVSEProcessing;
  2704. struct SAScheduleListType SAScheduleList;
  2705. struct DC_EVSEChargeParameterType_DIN70121 DC_EVSEChargeParameter;
  2706. };
  2707. struct ChargeParameterDiscoveryResponse_ISO15118_2014 {
  2708. enum EVSEProcessingType_ISO15118_2014 EVSEProcessing;
  2709. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2710. struct SAScheduleListType SAScheduleList;
  2711. struct AC_EVSEChargeParameterType AC_EVSEChargeParameter;
  2712. struct DC_EVSEChargeParameterType_ISO15118_2014 DC_EVSEChargeParameter;
  2713. };
  2714. struct ChargeParameterDiscoveryResponse_ISO15118_2018 {
  2715. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2716. struct EVSEStatusType EVSEStatus; //Optional
  2717. enum ProcessingType EVSEProcessing;
  2718. struct Scheduled_CPDResControlModeType Scheduled_CPDResControlMode; //Optional
  2719. struct AC_CPDResEnergyTransferModeType AC_CPDResEnergyTransferMode;
  2720. struct DC_CPDResEnergyTransferModeType DC_CPDResEnergyTransferMode;
  2721. struct BPT_AC_CPDResEnergyTransferModeType BPT_AC_CPDResEnergyTransferMode;
  2722. struct BPT_DC_CPDResEnergyTransferModeType BPT_DC_CPDResEnergyTransferMode;
  2723. struct WPT_CPDResEnergyTransferModeType WPT_CPDResEnergyTransferMode;
  2724. struct ACD_CPDResEnergyTransferModeType ACD_CPDResEnergyTransferMode;
  2725. };
  2726. /****PowerDeliveryRequest****/
  2727. struct PowerDeliveryRequest_DIN70121 {
  2728. BOOL ReadyToChargeState;
  2729. struct ChargingProfileType_DIN70121 ChargingProfile;
  2730. struct DC_EVPowerDeliveryParameterType_DIN70121 DC_EVPowerDeliveryParameter;
  2731. };
  2732. struct PowerDeliveryRequest_ISO15118_2014 {
  2733. enum ChargeProgressType_ISO15118_2014 ChargeProgress;
  2734. short SAScheduleTupleID;
  2735. struct ChargingProfileType_ISO15118_2014 ChargingProfile;
  2736. struct DC_EVPowerDeliveryParameterType_ISO15118_2014 DC_EVPowerDeliveryParameter;
  2737. };
  2738. struct PowerDeliveryRequest_ISO15118_2018 {
  2739. enum ChargeProgressType_ISO15118_2018 ChargeProgress;
  2740. struct Scheduled_PDReqControlModeType Scheduled_PDReqControlMode;
  2741. struct BPT_Scheduled_PDReqControlModeType BPT_Scheduled_PDReqControlMode;
  2742. };
  2743. /****PowerDeliveryResponse****/
  2744. struct PowerDeliveryResponse_DIN70121 {
  2745. enum ResponseCodeType_DIN70121 ResponseCode;
  2746. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  2747. };
  2748. struct PowerDeliveryResponse_ISO15118_2014 {
  2749. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2750. struct AC_EVSEStatusType AC_EVSEStatus;
  2751. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  2752. };
  2753. struct PowerDeliveryResponse_ISO15118_2018 {
  2754. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2755. struct EVSEStatusType EVSEStatus; //Optional
  2756. };
  2757. /****CertificateUpdateRequest****/
  2758. struct CertificateUpdateRequest_ISO15118_2014 {
  2759. unsigned char Id[32];
  2760. struct CertificateChainType ContractSignatureCertChain;
  2761. unsigned char eMAID[16];
  2762. struct ListOfRootCertificateIDsType ListOfRootCertificateIDs;
  2763. };
  2764. /****CertificateUpdateResponse****/
  2765. struct CertificateUpdateResponse_ISO15118_2014 {
  2766. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2767. struct CertificateChainType SAProvisioningCertificateChain;
  2768. struct CertificateChainType ContractSignatureCertChain;
  2769. struct ContractSignatureEncryptedPrivateKeyType ContractSignatureEncryptedPrivateKey;
  2770. struct DiffieHellmanPublickeyType DHpublickey;
  2771. unsigned char eMAID[16];
  2772. short RetryCounter; //Optional
  2773. };
  2774. /****CertificateInstallationRequest****/
  2775. struct CertificateInstallationRequest_ISO15118_2014 {
  2776. unsigned char Id[32];
  2777. unsigned char OEMProvisioningCert[800];
  2778. struct ListOfRootCertificateIDsType ListOfRootCertificateIDs;
  2779. };
  2780. struct CertificateInstallationRequest_ISO15118_2018 {
  2781. unsigned char Id[32];
  2782. struct CertificateChainType OEMProvisioningCertChain;
  2783. struct ListOfRootCertificateIDsType ListOfRootCertificateIDs;
  2784. unsigned short MaxSupportedCerts;
  2785. };
  2786. /****CertificateInstallationResponse****/
  2787. struct CertificateInstallationResponse_ISO15118_2014 {
  2788. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2789. struct CertificateChainType SAProvisioningCertificateChain;
  2790. struct CertificateChainType ContractSignatureCertChain;
  2791. struct ContractSignatureEncryptedPrivateKeyType ContractSignatureEncryptedPrivateKey;
  2792. struct DiffieHellmanPublickeyType DHpublickey;
  2793. unsigned char eMAID[16];
  2794. };
  2795. struct CertificateInstallationResponse_ISO15118_2018 {
  2796. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2797. struct EVSEStatusType EVSEStatus; //Optional
  2798. struct CertificateChainType SAProvisioningCertificateChain;
  2799. struct CertificateChainType ContractCertificateChain;
  2800. struct ContractCertificateEncryptedPrivateKeyType ContractEncryptedPrivateKey;
  2801. struct DiffieHellmanPublickeyType DHpublickey;
  2802. enum ProcessingType EVSEProcessing;
  2803. unsigned short RemainingContractCertificateChains;
  2804. };
  2805. /****SystemStatusRequest****/
  2806. struct SystemStatusRequest_ISO15118_2018 {
  2807. enum mechanicalChargingDeviceStatusType EVMechanicalChargingDeviceStatus;
  2808. struct EVTechnicalStatusType EVTechnicalStatus;
  2809. unsigned char EV_OEMStatus[800]; //Optional
  2810. };
  2811. /****SystemStatusResponse****/
  2812. struct SystemStatusResponse_ISO15118_2018 {
  2813. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2814. enum mechanicalChargingDeviceStatusType EVSEMechanicalChargingDeviceStatus;
  2815. BOOL EVSE_ReadyToCharge;
  2816. enum IsolationStatusType EVSE_IsolationStatus;
  2817. BOOL EVSE_Disabled;
  2818. BOOL EVSE_UtilityInterruptEvent;
  2819. BOOL EVSE_EmergencyShutdown;
  2820. BOOL EVSE_Malfunction;
  2821. BOOL EV_InChargePosition;
  2822. BOOL EV_AssociationStatus;
  2823. };
  2824. /****SessionStopRequest****/
  2825. struct SessionStopRequest_DIN70121 {
  2826. //No member in standard
  2827. };
  2828. struct SessionStopRequest_ISO15118_2014 {
  2829. enum ChargingSessionType ChargingSession;
  2830. };
  2831. struct SessionStopRequest_ISO15118_2018 {
  2832. enum ChargingSessionType ChargingSession;
  2833. };
  2834. /****SessionStopResponse****/
  2835. struct SessionStopResponse_DIN70121 {
  2836. enum ResponseCodeType_DIN70121 ResponseCode;
  2837. };
  2838. struct SessionStopResponse_ISO15118_2014 {
  2839. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2840. };
  2841. struct SessionStopResponse_ISO15118_2018 {
  2842. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2843. struct EVSEStatusType EVSEStatus; //Optional
  2844. };
  2845. /****MeteringReceiptRequest****/
  2846. struct MeteringReceiptRequest_ISO15118_2014 {
  2847. unsigned char Id[32]; //Optional
  2848. unsigned char SessionID[8];
  2849. short SAScheduleTupleID; //Optional
  2850. struct MeterInfoType_ISO15118_2014 MeterInfo;
  2851. };
  2852. struct MeteringReceiptRequest_ISO15118_2018 {
  2853. unsigned char Id[32]; //Optional
  2854. unsigned char SessionID[8];
  2855. struct Scheduled_MRReqControlModeType Schedule_MRReqControlMode;
  2856. struct MeterInfoType_ISO15118_2018 MeterInfo;
  2857. };
  2858. /****MeteringReceiptResponse****/
  2859. struct MeteringReceiptResponse_ISO15118_2014 {
  2860. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2861. struct AC_EVSEStatusType AC_EVSEStatus;
  2862. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  2863. };
  2864. struct MeteringReceiptResponse_ISO15118_2018 {
  2865. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2866. struct EVSEStatusType EVSEStatus; //Optional
  2867. };
  2868. /****ChargingStatusRequest (AC Only)****/
  2869. struct ChargingStatusRequest_ISO15118_2014 {
  2870. //No member in standard
  2871. };
  2872. struct ChargingStatusRequest_ISO15118_2018 {
  2873. struct PnC_CLReqIdentificationModeType PnC_CLReqIdentificationMode;
  2874. struct Dynamic_CSReqControlModeType Dynamic_CSReqControlMode;
  2875. struct Scheduled_CSReqControlModeType Scheduled_CSReqControlMode;
  2876. struct DisplayParametersType DisplayParameters;
  2877. };
  2878. /****ChargingStatusResponse (AC Only)****/
  2879. struct ChargingStatusResponse_ISO15118_2014 {
  2880. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2881. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  2882. short SAScheduleTupleID;
  2883. struct PhysicalValueType_ISO15118_2014 EVSEMaxCurrent; //Optional
  2884. struct MeterInfoType_ISO15118_2014 MeterInfo; //Optional
  2885. BOOL ReceiptRequired; //Optional
  2886. struct AC_EVSEStatusType AC_EVSEStatus;
  2887. };
  2888. struct ChargingStatusResponse_ISO15118_2018 {
  2889. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2890. struct EVSEStatusType EVSEStatus; //Optional
  2891. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  2892. struct PhysicalValueType_ISO15118_2018 EVSETargetFrequency; //Optional
  2893. struct PnC_CLResIdentificationModeType PnC_CLResIdentificationMode;
  2894. struct Dynamic_CSResControlModeType Dynamic_CSResControlMode;
  2895. struct Scheduled_CSReqControlModeType Scheduled_CSReqControlMode;
  2896. };
  2897. /****CableCheckRequest (DC Only)****/
  2898. struct CableCheckRequest_DIN70121 {
  2899. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  2900. };
  2901. struct CableCheckRequest_ISO15118_2014 {
  2902. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  2903. };
  2904. struct CableCheckRequest_ISO15118_2018 {
  2905. //No member in standard
  2906. };
  2907. /****CableCheckResponse (DC Only)****/
  2908. struct CableCheckResponse_DIN70121 {
  2909. enum ResponseCodeType_DIN70121 ResponseCode;
  2910. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  2911. enum EVSEProcessingType_DIN70121 EVSEProcessing;
  2912. };
  2913. struct CableCheckResponse_ISO15118_2014 {
  2914. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2915. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  2916. enum EVSEProcessingType_ISO15118_2014 EVSEProcessing;
  2917. };
  2918. struct CableCheckResponse_ISO15118_2018 {
  2919. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2920. struct EVSEStatusType EVSEStatus; //Optional
  2921. enum ProcessingType EVSEProcessing;
  2922. };
  2923. /****PreChargeRequest (DC Only)****/
  2924. struct PreChargeRequest_DIN70121 {
  2925. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  2926. struct PhysicalValueType_DIN70121 EVTargetVoltage;
  2927. struct PhysicalValueType_DIN70121 EVTargetCurrent;
  2928. };
  2929. struct PreChargeRequest_ISO15118_2014 {
  2930. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  2931. struct PhysicalValueType_ISO15118_2014 EVTargetVoltage;
  2932. struct PhysicalValueType_ISO15118_2014 EVTargetCurrent;
  2933. };
  2934. struct PreChargeRequest_ISO15118_2018 {
  2935. struct PhysicalValueType_ISO15118_2018 EVTargetVoltage;
  2936. struct PhysicalValueType_ISO15118_2018 EVTargetCurrent;
  2937. };
  2938. /****PreChargeResponse (DC Only)****/
  2939. struct PreChargeResponse_DIN70121 {
  2940. enum ResponseCodeType_DIN70121 ResponseCode;
  2941. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  2942. struct PhysicalValueType_DIN70121 EVSEPresentVoltage;
  2943. };
  2944. struct PreChargeResponse_ISO15118_2014 {
  2945. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2946. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  2947. struct PhysicalValueType_ISO15118_2014 EVSEPresentVoltage;
  2948. };
  2949. struct PreChargeResponse_ISO15118_2018 {
  2950. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2951. struct EVSEStatusType EVSEStatus; //Optional
  2952. struct PhysicalValueType_ISO15118_2018 EVSEPresentVoltage;
  2953. };
  2954. /****CurrentDemandRequest (DC Only)****/
  2955. struct CurrentDemandRequest_DIN70121 {
  2956. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  2957. struct PhysicalValueType_DIN70121 EVTargetCurrent;
  2958. struct PhysicalValueType_DIN70121 EVMaximumVoltageLimit; //Optional
  2959. struct PhysicalValueType_DIN70121 EVMaximumCurrentLimit; //Optional
  2960. struct PhysicalValueType_DIN70121 EVMaximumPowerLimit; //Optional
  2961. BOOL BulkChargingComplete; //Optional
  2962. BOOL ChargingComplete;
  2963. struct PhysicalValueType_DIN70121 RemainingTimeToFullSoC; //Optional
  2964. struct PhysicalValueType_DIN70121 RemainingTimeToBulkSoC; //Optional
  2965. struct PhysicalValueType_DIN70121 EVTargetVoltage;
  2966. };
  2967. struct CurrentDemandRequest_ISO15118_2014 {
  2968. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  2969. struct PhysicalValueType_ISO15118_2014 EVTargetCurrent;
  2970. struct PhysicalValueType_ISO15118_2014 EVMaximumVoltageLimit; //Optional
  2971. struct PhysicalValueType_ISO15118_2014 EVMaximumCurrentLimit; //Optional
  2972. struct PhysicalValueType_ISO15118_2014 EVMaximumPowerLimit; //Optional
  2973. BOOL BulkChargingComplete; //Optional
  2974. BOOL ChargingComplete;
  2975. struct PhysicalValueType_ISO15118_2014 RemainingTimeToFullSoC; //Optional
  2976. struct PhysicalValueType_ISO15118_2014 RemainingTimeToBulkSoC; //Optional
  2977. struct PhysicalValueType_ISO15118_2014 EVTargetVoltage;
  2978. };
  2979. struct CurrentDemandRequest_ISO15118_2018 {
  2980. struct DisplayParametersType DisplayParameters; //Optional
  2981. struct PnC_CLReqIdentificationModeType PnC_CLReqIdentificationMode;
  2982. struct Dynamic_CSReqControlModeType Dynamic_CDReqControlMode;
  2983. struct Scheduled_CSReqControlModeType Scheduled_CDReqControlMode;
  2984. };
  2985. /****CurrentDemandResponse (DC Only)****/
  2986. struct CurrentDemandResponse_DIN70121 {
  2987. enum ResponseCodeType_DIN70121 ResponseCode;
  2988. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  2989. struct PhysicalValueType_DIN70121 EVSEPresentVoltage;
  2990. struct PhysicalValueType_DIN70121 EVSEPresentCurrent;
  2991. BOOL EVSECurrentLimitAchieved;
  2992. BOOL EVSEVoltageLimitAchieved;
  2993. BOOL EVSEPowerLimitAchieved;
  2994. struct PhysicalValueType_DIN70121 EVSEMaximumVoltageLimit; //Optional
  2995. struct PhysicalValueType_DIN70121 EVSEMaximumCurrentLimit; //Optional
  2996. struct PhysicalValueType_DIN70121 EVSEMaximumPowerLimit; //Optional
  2997. };
  2998. struct CurrentDemandResponse_ISO15118_2014 {
  2999. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  3000. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  3001. struct PhysicalValueType_ISO15118_2014 EVSEPresentVoltage;
  3002. struct PhysicalValueType_ISO15118_2014 EVSEPresentCurrent;
  3003. BOOL EVSECurrentLimitAchieved;
  3004. BOOL EVSEVoltageLimitAchieved;
  3005. BOOL EVSEPowerLimitAchieved;
  3006. struct PhysicalValueType_ISO15118_2014 EVSEMaximumVoltageLimit; //Optional
  3007. struct PhysicalValueType_ISO15118_2014 EVSEMaximumCurrentLimit; //Optional
  3008. struct PhysicalValueType_ISO15118_2014 EVSEMaximumPowerLimit; //Optional
  3009. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  3010. short SAScheduleTupleID;
  3011. struct MeterInfoType_ISO15118_2014 MeterInfo; //Optional
  3012. BOOL ReceiptRequired; //Optional
  3013. };
  3014. struct CurrentDemandResponse_ISO15118_2018 {
  3015. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  3016. struct EVSEStatusType EVSEStatus; //Optional
  3017. struct PhysicalValueType_ISO15118_2018 EVSEPresentVoltage;
  3018. struct PhysicalValueType_ISO15118_2018 EVSEPresentCurrent;
  3019. BOOL EVSECurrentLimitAchieved;
  3020. BOOL EVSEVoltageLimitAchieved;
  3021. BOOL EVSEPowerLimitAchieved;
  3022. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeVoltage; //Optional
  3023. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent; //Optional
  3024. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower; //Optional
  3025. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  3026. struct PnC_CLResIdentificationModeType PnC_CLResIdentificationMode;
  3027. struct Scheduled_CDResControlModeType Scheduled_CDResControlMode;
  3028. };
  3029. /****WeldingDetectionRequest (DC Only)*****/
  3030. struct WeldingDetectionRequest_DIN70121 {
  3031. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  3032. };
  3033. struct WeldingDetectionRequest_ISO15118_2014 {
  3034. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  3035. };
  3036. struct WeldingDetectionRequest_ISO15118_2018 {
  3037. //No member in Standard
  3038. };
  3039. /****WeldingDetectionResponse (DC Only)****/
  3040. struct WeldingDetectionResponse_DIN70121 {
  3041. enum ResponseCodeType_DIN70121 ResponseCode;
  3042. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  3043. struct PhysicalValueType_DIN70121 EVSEPresentVoltage;
  3044. };
  3045. struct WeldingDetectionResponse_ISO15118_2014 {
  3046. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  3047. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  3048. struct PhysicalValueType_ISO15118_2014 EVSEPresentVoltage;
  3049. };
  3050. struct WeldingDetectionResponse_ISO15118_2018 {
  3051. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  3052. struct EVSEStatusType EVSEStatus; //Optional
  3053. struct PhysicalValueType_ISO15118_2018 EVSEPresentVoltage;
  3054. };
  3055. /****FinePositioningSetupRequest (WPT Only)****/
  3056. struct FinePositioningSetupRequest_ISO15118_2018 {
  3057. struct LFA_EVFinePositioningSetupParametersType LFA_EVFinePositioningSetupParameters; //Optional
  3058. };
  3059. /****FinePositioningSetupResponse (WPT Only)****/
  3060. struct FinePositioningSetupResponse_ISO15118_2018 {
  3061. //NOT complete yet, to be continue.....
  3062. };
  3063. struct V2GMessageType_DIN70121 {
  3064. unsigned char SelfTest_Comp;
  3065. unsigned char version[16];
  3066. unsigned char PresentMsgFlowStatus;
  3067. /* 0: Idle(wait B2 state), 1: CM_SLAC_PARM.REQ, 2: CM_SLAC_PARM.CNF, 3: CM_START_ATTEN_CHAR.IND
  3068. 4: CM_MNBC_SOUND.IND, 5: CM_ATTEN_CHAR.IND, 6: CM_ATTEN_CHAR.RSP, 7: CM_VALIDATE.REQ
  3069. 8: CM_VALIDATE.CNF, 9: CM_SLAC_MATCH.REQ, 10: CM_SLAC_MATCH.CNF, 11: CM_AMP_MAP.REQ
  3070. 12: CM_AMP_MAP.CNF, 13: SLACC/SDP/TCP connection,
  3071. 16: SupportedAppProtocolRequest, 17: SupportedAppProtocolResponse, 18: SessionSetupRequest
  3072. 19: SessionSetupResponse, 20: ServiceDiscoveryRequest, 21: ServiceDiscoveryResponse
  3073. 22: ServiceDetailRequest, 23: ServiceDetailResponse
  3074. 24: ServiceAndPaymentSelectionRequest/ServiceSelectionRequest, 25: ServiceAndPaymentSelectionResponse/ServiceSelectionResponse
  3075. 26: PaymentDetailsRequest/IdentificationDetailsRequest;, 27: PaymentDetailsResponse/IdentificationDetailsResponse,
  3076. 28: AuthorizationRequest, 29: AuthorizationResponse,
  3077. 30: CertificateUpdateRequest, 31: CertificateUpdateResponse, 32:CertificateInstallationRequest, 33: CertificateInstallationResponse
  3078. 34: ChargeParameterDiscoveryRequest, 35: ChargeParameterDiscoveryResponse
  3079. 36: CableCheckRequest, 37: CableCheckResponse, 38: PreChargeRequest, 39: PreChargeResponse
  3080. 40: PowerDeliveryRequest start, 41: PowerDeliveryResponse start, 42: ChargingStatusRequest, 43: ChargingStatusResponse
  3081. 44: CurrentDemandRequest, 45: CurrentDemandResponse, 46: MeteringReceiptRequest, 47: MeteringReceiptResponse
  3082. 48: PowerDeliveryRequest end, 49: PowerDeliveryRequest end, 50: WeldingDetectionRequest, 51: WeldingDetectionResponse,
  3083. 52: SessionStopRequest, 53: SessionStopResponse
  3084. 253: Performance Timeout, 254: Sequence Timeout, 255: Fault
  3085. */
  3086. struct SupportedAppProtocolRequest_DIN70121 SupportedAppProtocolRequest;
  3087. struct SupportedAppProtocolResponse_DIN70121 SupportedAppProtocolResponse;
  3088. struct SessionSetupRequest_DIN70121 SessionSetupRequest;
  3089. struct SessionSetupResponse_DIN70121 SessionSetupResponse;
  3090. struct ServiceDiscoveryRequest_DIN70121 ServiceDiscoveryRequest;
  3091. struct ServiceDiscoveryResponse_DIN70121 ServiceDiscoveryResponse;
  3092. struct ServiceAndPaymentSelectionRequest_DIN70121 ServiceAndPaymentSelectionRequest;
  3093. struct ServiceAndPaymentSelectionResponse_DIN70121 ServiceAndPaymentSelectionResponse;
  3094. struct ContractAuthenticationRequest_DIN70121 ContractAuthenticationRequest;
  3095. struct ContractAuthenticationResponse_DIN70121 ContractAuthenticationResponse;
  3096. struct ChargeParameterDiscoveryRequest_DIN70121 ChargeParameterDiscoveryRequest;
  3097. struct ChargeParameterDiscoveryResponse_DIN70121 ChargeParameterDiscoveryResponse;
  3098. struct CableCheckRequest_DIN70121 CableCheckRequest;
  3099. struct CableCheckResponse_DIN70121 CableCheckResponse;
  3100. struct PreChargeRequest_DIN70121 PreChargeRequest;
  3101. struct PreChargeResponse_DIN70121 PreChargeResponse;
  3102. struct PowerDeliveryRequest_DIN70121 PowerDeliveryRequest;
  3103. struct PowerDeliveryResponse_DIN70121 PowerDeliveryResponse;
  3104. struct CurrentDemandRequest_DIN70121 CurrentDemandRequest;
  3105. struct CurrentDemandResponse_DIN70121 CurrentDemandResponse;
  3106. struct WeldingDetectionRequest_DIN70121 WeldingDetectionRequest;
  3107. struct WeldingDetectionResponse_DIN70121 WeldingDetectionResponse;
  3108. struct SessionStopRequest_DIN70121 SessionStopRequest;
  3109. struct SessionStopResponse_DIN70121 SessionStopResponse;
  3110. };
  3111. struct V2GMessageType_ISO15118_2014 {
  3112. unsigned char PresentMsgFlowStatus;
  3113. /* 0: Idle(wait B2 state), 1: CM_SLAC_PARM.REQ, 2: CM_SLAC_PARM.CNF, 3: CM_START_ATTEN_CHAR.IND
  3114. 4: CM_MNBC_SOUND.IND, 5: CM_ATTEN_CHAR.IND, 6: CM_ATTEN_CHAR.RSP, 7: CM_VALIDATE.REQ
  3115. 8: CM_VALIDATE.CNF, 9: CM_SLAC_MATCH.REQ, 10: CM_SLAC_MATCH.CNF, 11: CM_AMP_MAP.REQ
  3116. 12: CM_AMP_MAP.CNF, 13: SLACC/SDP/TCP connection,
  3117. 16: SupportedAppProtocolRequest, 17: SupportedAppProtocolResponse, 18: SessionSetupRequest
  3118. 19: SessionSetupResponse, 20: ServiceDiscoveryRequest, 21: ServiceDiscoveryResponse
  3119. 22: ServiceDetailRequest, 23: ServiceDetailResponse
  3120. 24: ServiceAndPaymentSelectionRequest/ServiceSelectionRequest, 25: ServiceAndPaymentSelectionResponse/ServiceSelectionResponse
  3121. 26: PaymentDetailsRequest/IdentificationDetailsRequest;, 27: PaymentDetailsResponse/IdentificationDetailsResponse,
  3122. 28: AuthorizationRequest, 29: AuthorizationResponse,
  3123. 30: CertificateUpdateRequest, 31: CertificateUpdateResponse, 32:CertificateInstallationRequest, 33: CertificateInstallationResponse
  3124. 34: ChargeParameterDiscoveryRequest, 35: ChargeParameterDiscoveryResponse
  3125. 36: CableCheckRequest, 37: CableCheckResponse, 38: PreChargeRequest, 39: PreChargeResponse
  3126. 40: PowerDeliveryRequest start, 41: PowerDeliveryResponse start, 42: ChargingStatusRequest, 43: ChargingStatusResponse
  3127. 44: CurrentDemandRequest, 45: CurrentDemandResponse, 46: MeteringReceiptRequest, 47: MeteringReceiptResponse
  3128. 48: PowerDeliveryRequest end, 49: PowerDeliveryRequest end, 50: WeldingDetectionRequest, 51: WeldingDetectionResponse,
  3129. 52: SessionStopRequest, 53: SessionStopResponse
  3130. 253: Performance Timeout, 254: Sequence Timeout, 255: Fault
  3131. */
  3132. struct SupportedAppProtocolRequest_ISO15118_2014 SupportedAppProtocolRequest;
  3133. struct SupportedAppProtocolResponse_ISO15118_2014 SupportedAppProtocolResponse;
  3134. struct SessionSetupRequest_ISO15118_2014 SessionSetupRequest;
  3135. struct SessionSetupResponse_ISO15118_2014 SessionSetupResponse;
  3136. struct ServiceDiscoveryRequest_ISO15118_2014 ServiceDiscoveryRequest;
  3137. struct ServiceDiscoveryResponse_ISO15118_2014 ServiceDiscoveryResponse;
  3138. struct ServiceDetailRequest_ISO15118_2014 ServiceDetailRequest;
  3139. struct ServiceDetailResponse_ISO15118_2014 ServiceDetailResponse;
  3140. struct ServiceAndPaymentSelectionRequest_ISO15118_2014 ServiceAndPaymentSelectionRequest;
  3141. struct ServiceAndPaymentSelectionResponse_ISO15118_2014 ServiceAndPaymentSelectionResponse;
  3142. struct PaymentDetailsRequest_ISO15118_2014 PaymentDetailsRequest;
  3143. struct PaymentDetailsResponse_ISO15118_2014 PaymentDetailsResponse;
  3144. struct AuthorizationRequest_ISO15118_2014 AuthorizationRequest;
  3145. struct AuthorizationResponse_ISO15118_2014 AuthorizationResponse;
  3146. struct CertificateUpdateRequest_ISO15118_2014 CertificateUpdateRequest;
  3147. struct CertificateUpdateResponse_ISO15118_2014 CertificateUpdateResponse;
  3148. struct CertificateInstallationRequest_ISO15118_2014 CertificateInstallationRequest;
  3149. struct CertificateInstallationResponse_ISO15118_2014 CertificateInstallationResponse;
  3150. struct ChargeParameterDiscoveryRequest_ISO15118_2014 ChargeParameterDiscoveryRequest;
  3151. struct ChargeParameterDiscoveryResponse_ISO15118_2014 ChargeParameterDiscoveryResponse;
  3152. struct CableCheckRequest_ISO15118_2014 CableCheckRequest;
  3153. struct CableCheckResponse_ISO15118_2014 CableCheckResponse;
  3154. struct PreChargeRequest_ISO15118_2014 PreChargeRequest;
  3155. struct PreChargeResponse_ISO15118_2014 PreChargeResponse;
  3156. struct PowerDeliveryRequest_ISO15118_2014 PowerDeliveryRequest;
  3157. struct PowerDeliveryResponse_ISO15118_2014 PowerDeliveryResponse;
  3158. struct ChargingStatusRequest_ISO15118_2014 ChargingStatusRequest;
  3159. struct ChargingStatusResponse_ISO15118_2014 ChargingStatusResponse;
  3160. struct CurrentDemandRequest_ISO15118_2014 CurrentDemandRequest;
  3161. struct CurrentDemandResponse_ISO15118_2014 CurrentDemandResponse;
  3162. struct MeteringReceiptRequest_ISO15118_2014 MeteringReceiptRequest;
  3163. struct MeteringReceiptResponse_ISO15118_2014 MeteringReceiptResponse;
  3164. struct WeldingDetectionRequest_ISO15118_2014 WeldingDetectionRequest;
  3165. struct WeldingDetectionResponse_ISO15118_2014 WeldingDetectionResponse;
  3166. struct SessionStopRequest_ISO15118_2014 SessionStopRequest;
  3167. struct SessionStopResponse_ISO15118_2014 SessionStopResponse;
  3168. };
  3169. struct V2GMessageType_ISO15118_2018 {
  3170. unsigned char PresentMsgFlowStatus;
  3171. /* 0: Idle(wait B2 state), 1: CM_SLAC_PARM.REQ, 2: CM_SLAC_PARM.CNF, 3: CM_START_ATTEN_CHAR.IND
  3172. 4: CM_MNBC_SOUND.IND, 5: CM_ATTEN_CHAR.IND, 6: CM_ATTEN_CHAR.RSP, 7: CM_VALIDATE.REQ
  3173. 8: CM_VALIDATE.CNF, 9: CM_SLAC_MATCH.REQ, 10: CM_SLAC_MATCH.CNF, 11: CM_AMP_MAP.REQ
  3174. 12: CM_AMP_MAP.CNF, 13: SLACC/SDP/TCP connection,
  3175. 16: SupportedAppProtocolRequest, 17: SupportedAppProtocolResponse, 18: SessionSetupRequest
  3176. 19: SessionSetupResponse, 20: ServiceDiscoveryRequest, 21: ServiceDiscoveryResponse
  3177. 22: ServiceDetailRequest, 23: ServiceDetailResponse
  3178. 24: ServiceAndPaymentSelectionRequest/ServiceSelectionRequest, 25: ServiceAndPaymentSelectionResponse/ServiceSelectionResponse
  3179. 26: PaymentDetailsRequest/IdentificationDetailsRequest;, 27: PaymentDetailsResponse/IdentificationDetailsResponse,
  3180. 28: AuthorizationRequest, 29: AuthorizationResponse,
  3181. 30: CertificateUpdateRequest, 31: CertificateUpdateResponse, 32:CertificateInstallationRequest, 33: CertificateInstallationResponse
  3182. 34: ChargeParameterDiscoveryRequest, 35: ChargeParameterDiscoveryResponse
  3183. 36: CableCheckRequest, 37: CableCheckResponse, 38: PreChargeRequest, 39: PreChargeResponse
  3184. 40: PowerDeliveryRequest start, 41: PowerDeliveryResponse start, 42: ChargingStatusRequest, 43: ChargingStatusResponse
  3185. 44: CurrentDemandRequest, 45: CurrentDemandResponse, 46: MeteringReceiptRequest, 47: MeteringReceiptResponse
  3186. 48: PowerDeliveryRequest end, 49: PowerDeliveryRequest end, 50: WeldingDetectionRequest, 51: WeldingDetectionResponse,
  3187. 52: SessionStopRequest, 53: SessionStopResponse
  3188. 253: Performance Timeout, 254: Sequence Timeout, 255: Fault
  3189. */
  3190. struct SupportedAppProtocolRequest_ISO15118_2018 SupportedAppProtocolRequest;
  3191. struct SupportedAppProtocolResponse_ISO15118_2018 SupportedAppProtocolResponse;
  3192. struct SessionSetupRequest_ISO15118_2018 SessionSetupRequest;
  3193. struct SessionSetupResponse_ISO15118_2018 SessionSetupResponse;
  3194. struct ServiceDiscoveryRequest_ISO15118_2018 ServiceDiscoveryRequest;
  3195. struct ServiceDiscoveryResponse_ISO15118_2018 ServiceDiscoveryResponse;
  3196. struct ServiceDetailRequest_ISO15118_2018 ServiceDetailRequest;
  3197. struct ServiceDetailResponse_ISO15118_2018 ServiceDetailResponse;
  3198. struct ServiceSelectionRequest_ISO15118_2018 ServiceSelectionRequest;
  3199. struct ServiceSelectionResponse_ISO15118_2018 ServiceSelectionResponse;
  3200. struct IdentificationDetailsRequest_ISO15118_2018 IdentificationDetailsRequest;
  3201. struct IdentificationDetailsResponse_ISO15118_2018 IdentificationDetailsResponse;
  3202. struct AuthorizationRequest_ISO15118_2018 AuthorizationRequest;
  3203. struct AuthorizationResponse_ISO15118_2018 AuthorizationResponse;
  3204. struct CertificateInstallationRequest_ISO15118_2018 CertificateInstallationRequest;
  3205. struct CertificateInstallationResponse_ISO15118_2018 CertificateInstallationResponse;
  3206. struct ChargeParameterDiscoveryRequest_ISO15118_2018 ChargeParameterDiscoveryRequest;
  3207. struct ChargeParameterDiscoveryResponse_ISO15118_2018 ChargeParameterDiscoveryResponse;
  3208. struct CableCheckRequest_ISO15118_2018 CableCheckRequest;
  3209. struct CableCheckResponse_ISO15118_2018 CableCheckResponse;
  3210. struct PreChargeRequest_ISO15118_2018 PreChargeRequest;
  3211. struct PreChargeResponse_ISO15118_2018 PreChargeResponse;
  3212. struct PowerDeliveryRequest_ISO15118_2018 PowerDeliveryRequest;
  3213. struct PowerDeliveryResponse_ISO15118_2018 PowerDeliveryResponse;
  3214. struct ChargingStatusRequest_ISO15118_2018 ChargingStatusRequest;
  3215. struct ChargingStatusResponse_ISO15118_2018 ChargingStatusResponse;
  3216. struct CurrentDemandRequest_ISO15118_2018 CurrentDemandRequest;
  3217. struct CurrentDemandResponse_ISO15118_2018 CurrentDemandResponse;
  3218. struct MeteringReceiptRequest_ISO15118_2018 MeteringReceiptRequest;
  3219. struct MeteringReceiptResponse_ISO15118_2018 MeteringReceiptResponse;
  3220. struct WeldingDetectionRequest_ISO15118_2018 WeldingDetectionRequest;
  3221. struct WeldingDetectionResponse_ISO15118_2018 WeldingDetectionResponse;
  3222. struct SessionStopRequest_ISO15118_2018 SessionStopRequest;
  3223. struct SessionStopResponse_ISO15118_2018 SessionStopResponse;
  3224. };
  3225. struct CcsData {
  3226. unsigned char CommProtocol; // 1: V2GMessage_DIN70121, 2:V2GMessage_ISO15118_2014, 3:V2GMessage_ISO15118_2018
  3227. struct V2GMessageType_DIN70121 V2GMessage_DIN70121[CCS_QUANTITY];
  3228. struct V2GMessageType_ISO15118_2014 V2GMessage_ISO15118_2014[CCS_QUANTITY];
  3229. struct V2GMessageType_ISO15118_2018 V2GMessage_ISO15118_2018[CCS_QUANTITY];
  3230. };
  3231. /**************************************************************************************/
  3232. /***************STM32F407 Communication Share memory**************************/
  3233. /**************************************************************************************/
  3234. struct PrimaryMcuData {
  3235. unsigned char SelfTest_Comp;
  3236. unsigned char version[16]; //STM32F407 firmware version
  3237. unsigned int InputVoltage; //value comes from external meter
  3238. unsigned int InputCurrent; //value comes from external meter
  3239. union {
  3240. unsigned char OutputDrvValue[1];
  3241. struct {
  3242. //OutputDrvValue[0]
  3243. unsigned char OnButtonLedDrv: 1; //bit 0, H: ON, L:OFF
  3244. unsigned char OffButtonLedDrv: 1; //bit 1, H: ON, L:OFF
  3245. unsigned char SystemLed1Drv: 1; //bit 2, H: ON, L:OFF
  3246. unsigned char SystemLed2Drv: 1; //bit 3, H: ON, L:OFF
  3247. unsigned char SystemLed3Drv: 1; //bit 4, H: ON, L:OFF
  3248. unsigned char SystemLed4Drv: 1; //bit 5, H: ON, L:OFF
  3249. unsigned char AcContactorDrv: 1; //bit 6, H: ON, L:OFF
  3250. unsigned char: 1; //bit 7 reserved
  3251. } bits;
  3252. } OutputDrv;
  3253. union {
  3254. unsigned char InputDetValue[2];
  3255. struct {
  3256. //InputDetValue[0]
  3257. unsigned char AcContactorDetec: 1; //bit 0, H: ON, L:OFF
  3258. unsigned char AcMainBreakerDetec: 1; //bit 1, H: ON, L:OFF
  3259. unsigned char SpdDetec: 1; //bit 2, H: ON, L:OFF
  3260. unsigned char DoorOpen: 1; //bit 3, H: Open, L:Close
  3261. unsigned char Gfd1: 1; //bit 4, H: Trigger, L:Normal
  3262. unsigned char Gfd2: 1; //bit 5, H: Trigger, L:Normal
  3263. unsigned char Button1: 1; //bit 6 , H: Push, L:Release
  3264. unsigned char Button2: 1; //bit 7, H: Push, L:Release
  3265. //InputDetValue[1]
  3266. unsigned char EmergencyButton: 1; //bit 0, H: Push, L:Release
  3267. unsigned char Key0: 1; //bit 1, H: ON, L:OFF
  3268. unsigned char Key1: 1; //bit 2, H: ON, L:OFF
  3269. unsigned char Key2: 1; //bit 3, H: ON, L:OFF
  3270. unsigned char Key3: 1; //bit 4, H: ON, L:OFF
  3271. unsigned char : 3; //bit 5~7, Reserved
  3272. } bits;
  3273. } InputDet;
  3274. };
  3275. /**************************************************************************************/
  3276. /*************Fan power module Communication Share memory******************/
  3277. /**************************************************************************************/
  3278. struct FanModuleData {
  3279. unsigned char SelfTest_Comp;
  3280. unsigned char version[16]; //fan power module firmware version
  3281. unsigned short PresentFan1Speed; //RPM
  3282. unsigned short PresentFan2Speed; //RPM
  3283. unsigned short PresentFan3Speed; //RPM
  3284. unsigned short PresentFan4Speed; //RPM
  3285. unsigned short SetFan1Speed; //RPM
  3286. unsigned short SetFan2Speed; //RPM
  3287. unsigned short SetFan3Speed; //RPM
  3288. unsigned short SetFan4Speed; //RPM
  3289. unsigned short TestFanSpeed; //RPM
  3290. unsigned char DiffOfAirPressure; //pa
  3291. unsigned char UpdateFW; //1:do update
  3292. };
  3293. /**************************************************************************************/
  3294. /***********Relay control module Communication Share memory******************/
  3295. /**************************************************************************************/
  3296. struct RelayModuleData {
  3297. unsigned char SelfTest_Comp;
  3298. unsigned char version[16]; //relay module firmware version
  3299. unsigned short InputL1Volt; //XXXXX.x volt
  3300. unsigned short InputL2Volt; //XXXXX.x volt
  3301. unsigned short InputL3Volt; //XXXXX.x volt
  3302. unsigned short Gun1FuseOutputVolt; //XXXXX.x volt
  3303. unsigned short Gun2FuseOutputVolt; //XXXXX.x volt
  3304. unsigned short Gun1RelayOutputVolt; //XXXXX.x volt
  3305. unsigned short Gun2RelayOutputVolt; //XXXXX.x volt
  3306. unsigned short Gun1OutputCurrent; //XXXXX.x amp
  3307. unsigned short Gun2OutputCurrent; //XXXXX.x amp
  3308. unsigned char UpdateFW; //1:do update
  3309. };
  3310. /**************************************************************************************/
  3311. /***********Led control module Communication Share memory******************/
  3312. /**************************************************************************************/
  3313. struct LedModuleData {
  3314. unsigned char SelfTest_Comp;
  3315. unsigned char version[16]; //led module firmware version
  3316. unsigned short Connect_1_Status; // Idle : 0, Charging : 1, Alarm : 2
  3317. unsigned short Connect_2_Status; // Idle : 0, Charging : 1, Alarm : 2
  3318. unsigned short EnableFunc; // reserved
  3319. };
  3320. /**************************************************************************************/
  3321. /************************OCPP Share memory***************************************/
  3322. /**************************************************************************************/
  3323. struct StructIdTagInfo {
  3324. unsigned char ExpiryDate[28];
  3325. unsigned char ParentIdTag[20];
  3326. unsigned char Status[16]; //Accepted, Blocked, Expired, Invalid, ConcurrentTx
  3327. };
  3328. struct StructLocalAuthorizationList {
  3329. unsigned char IdTag[20];
  3330. struct StructIdTagInfo IdTagInfo;
  3331. };
  3332. struct StructSampledValue {
  3333. unsigned char Value[128];
  3334. unsigned char Context[30];//Interruption.Begin, Interruption.End, Sample.Clock, Sample.Periodic, Transaction.Begin, Transaction.End, Trigger, Other
  3335. unsigned char Format[16];//Raw,SignedData
  3336. unsigned char Measurand[40];/* "Energy.Active.Export.Register",
  3337. "Energy.Active.Import.Register",
  3338. "Energy.Reactive.Export.Register",
  3339. "Energy.Reactive.Import.Register",
  3340. "Energy.Active.Export.Interval",
  3341. "Energy.Active.Import.Interval",
  3342. "Energy.Reactive.Export.Interval",
  3343. "Energy.Reactive.Import.Interval",
  3344. "Power.Active.Export",
  3345. "Power.Active.Import",
  3346. "Power.Offered",
  3347. "Power.Reactive.Export",
  3348. "Power.Reactive.Import",
  3349. "Power.Factor",
  3350. "Current.Import",
  3351. "Current.Export",
  3352. "Current.Offered",
  3353. "Voltage",
  3354. "Frequency",
  3355. "Temperature",
  3356. "SoC",
  3357. "RPM"
  3358. */
  3359. unsigned char Phase[10]; /* "L1",
  3360. "L2",
  3361. "L3",
  3362. "N",
  3363. "L1-N",
  3364. "L2-N",
  3365. "L3-N",
  3366. "L1-L2",
  3367. "L2-L3",
  3368. "L3-L1"
  3369. */
  3370. unsigned char Location[10]; //Cable,EV,Inlet,Outlet,Body
  3371. unsigned char Unit[20]; /* "Wh",
  3372. "kWh",
  3373. "varh",
  3374. "kvarh",
  3375. "W",
  3376. "kW",
  3377. "VA",
  3378. "kVA",
  3379. "var",
  3380. "kvar",
  3381. "A",
  3382. "V",
  3383. "K",
  3384. "Celcius",
  3385. "Fahrenheit",
  3386. "Percent"
  3387. */
  3388. };
  3389. struct StructMeterValue {
  3390. unsigned char TimeStamp[28];
  3391. struct StructSampledValue SampledValue[20];
  3392. };
  3393. struct StructConfigurationKeyItems {
  3394. unsigned char Item[50];
  3395. };
  3396. struct StructConfigurationKey {
  3397. unsigned char Key[50];
  3398. unsigned char ReadOnly[8]; //boolean
  3399. unsigned char Value[500];
  3400. };
  3401. struct StructChargingSchedulePeriod {
  3402. int StartPeriod;
  3403. float Limit;//0.1;
  3404. int NumberPhases;
  3405. };
  3406. struct StructChargingSchedule {
  3407. int Duration;
  3408. unsigned char StartSchedule[28];
  3409. unsigned char ChargingRateUnit[4]; //A, W
  3410. struct StructChargingSchedulePeriod ChargingSchedulePeriod[10];
  3411. float MinChargingRate; //0.1;
  3412. };
  3413. struct StructChargingProfile {
  3414. int ChargingProfileId;
  3415. int TransactionId;
  3416. int StackLevel;
  3417. unsigned char ChargingProfilePurpose[24]; //ChargePointMaxProfile, TxDefaultProfile, TxProfile
  3418. unsigned char ChargingProfileKind[12]; //Absolute, Recurring, Relative
  3419. unsigned char RecurrencyKind[8]; //Daily, Weekly
  3420. unsigned char ValidFrom[28];
  3421. unsigned char ValidTo[28];
  3422. struct StructChargingSchedule ChargingSchedule;
  3423. };
  3424. struct StructBootNotification {
  3425. unsigned char CpVendor[20]; //chargePointVendor //mandatory
  3426. unsigned char CpModel[20]; //chargePointModel //mandatory
  3427. unsigned char CpSN[25]; //chargePointSerialNumber
  3428. unsigned char CbSN[25]; //chargeBoxSerialNumber
  3429. unsigned char CpFwVersion[50]; //firmwareVersion
  3430. unsigned char CpIccid[22]; //iccid
  3431. unsigned char CpImsi[20]; //imsi
  3432. unsigned char CpMeterType[25]; //meterType
  3433. unsigned char CpMeterSerialNumber[25]; //meterSerialNumber
  3434. unsigned char ResponseStatus[16]; //Accepted, Pending, Rejected
  3435. unsigned char ResponseCurrentTime[28]; //currentTime //mandatory
  3436. int ResponseHeartbeatInterval; //interval //mandatory
  3437. };
  3438. struct StructHeartbeat {
  3439. unsigned char ResponseCurrentTime[28];
  3440. };
  3441. struct StructAuthorize {
  3442. unsigned char IdTag[20];
  3443. struct StructIdTagInfo ResponseIdTagInfo;
  3444. };
  3445. struct StructStartTransaction {
  3446. int ConnectorId;
  3447. unsigned char IdTag[20];
  3448. int MeterStart;
  3449. int ReservationId;
  3450. unsigned char Timestamp[28];
  3451. struct StructIdTagInfo ResponseIdTagInfo;
  3452. int ResponseTransactionId;
  3453. };
  3454. struct StructStopTransaction {
  3455. unsigned char IdTag[20];
  3456. int MeterStop;
  3457. unsigned char Timestamp[28];
  3458. int TransactionId;
  3459. unsigned char StopReason[20]; /* "EmergencyStop",
  3460. "EVDisconnected",
  3461. "HardReset",
  3462. "Local",
  3463. "Other",
  3464. "PowerLoss",
  3465. "Reboot",
  3466. "Remote",
  3467. "SoftReset",
  3468. "UnlockCommand",
  3469. "DeAuthorized"
  3470. */
  3471. struct StructMeterValue TransactionData[1];
  3472. struct StructIdTagInfo ResponseIdTagInfo;
  3473. };
  3474. struct StructStatusNotification {
  3475. int ConnectorId;
  3476. unsigned char ErrorCode[25]; /* "ConnectorLockFailure",
  3477. "EVCommunicationError",
  3478. "GroundFailure",
  3479. "HighTemperature",
  3480. "InternalError",
  3481. "LocalListConflict",
  3482. "NoError",
  3483. "OtherError",
  3484. "OverCurrentFailure",
  3485. "PowerMeterFailure",
  3486. "PowerSwitchFailure",
  3487. "ReaderFailure",
  3488. "ResetFailure",
  3489. "UnderVoltage",
  3490. "OverVoltage",
  3491. "WeakSignal"
  3492. */
  3493. unsigned char Info[50];
  3494. unsigned char Status[20]; /* "Available",
  3495. "Preparing",
  3496. "Charging",
  3497. "SuspendedEVSE",
  3498. "SuspendedEV",
  3499. "Finishing",
  3500. "Reserved",
  3501. "Unavailable",
  3502. "Faulted"
  3503. */
  3504. unsigned char Timestamp[28];
  3505. unsigned char VendorId[256];
  3506. unsigned char VendorErrorCode[50];
  3507. };
  3508. struct StructCancelReservation {
  3509. int ReservationId;
  3510. unsigned char ResponseStatus[16]; //Accepted, Rejected
  3511. unsigned char guid[37];
  3512. };
  3513. struct StructChangeAvailability {
  3514. int ConnectorId;
  3515. unsigned char Type[16]; //Inoperative, Operative
  3516. unsigned char ResponseStatus[16]; //Accepted, Rejected, Scheduled
  3517. unsigned char guid[37];
  3518. };
  3519. struct StructChangeConfiguration {
  3520. unsigned char Key[50];
  3521. unsigned char Value[500];
  3522. unsigned char ResponseStatus[16]; //Accepted, Rejected, RebootRequired, NotSupported
  3523. };
  3524. struct StructClearCache {
  3525. unsigned char ResponseStatus[16]; //Accepted, Rejected
  3526. };
  3527. struct StructClearChargingProfile {
  3528. int Id;
  3529. int ConnectorId;
  3530. unsigned char ChargingProfilePurpose[24]; //ChargePointMaxProfile, TxDefaultProfile, TxProfile
  3531. int StackLevel;
  3532. unsigned char ResponseStatus[16]; //Accepted, Unknown
  3533. };
  3534. struct StructDataTransfer {
  3535. unsigned char VendorId[256];
  3536. unsigned char MessageId[52];
  3537. unsigned char Data[512];
  3538. unsigned char ResponseStatus[18]; //Accepted, Rejected,UnknownMessageId,UnknownVendorId
  3539. unsigned char ResponseData[256];
  3540. };
  3541. struct StructDiagnosticsStatusNotification {
  3542. unsigned char Status[16]; //Idle,Uploaded,UploadFailed,Uploading
  3543. };
  3544. struct StructFirmwareStatusNotification {
  3545. unsigned char Status[20]; //Downloaded,DownloadFailed,Downloading,Idle,InstallationFailed,Installing,Installed
  3546. };
  3547. struct StructGetCompositeSchedule {
  3548. int ConnectorId;
  3549. int Duration;
  3550. unsigned char ChargingRateUnit[4]; //A,W
  3551. unsigned char ResponseStatus[12]; //Accepted,Rejected
  3552. int ResponseConnectorId;
  3553. unsigned char ResponseScheduleStart[28];
  3554. struct StructChargingSchedule ResponseChargingSchedule;
  3555. };
  3556. struct StructGetConfiguration {
  3557. struct StructConfigurationKeyItems *Key;
  3558. struct StructConfigurationKey *ResponseConfigurationKey;
  3559. struct StructConfigurationKeyItems *ResponseUnknownKey;
  3560. };
  3561. struct StructGetDiagnostics {
  3562. unsigned char Location[256];
  3563. int Retries;
  3564. int RetryInterval;
  3565. unsigned char StartTime[28];
  3566. unsigned char StopTime[28];
  3567. unsigned char ResponseFileName[256];
  3568. };
  3569. struct StructGetLocalListVersion {
  3570. int ResponseListVersion;
  3571. };
  3572. struct StructMeterValues {
  3573. int ConnectorId;
  3574. int TransactionId;
  3575. struct StructMeterValue MeterValue[1];
  3576. };
  3577. struct StructRemoteStartTransaction {
  3578. int ConnectorId;
  3579. unsigned char IdTag[20];
  3580. struct StructChargingProfile ChargingProfile;
  3581. unsigned char ResponseStatus[10]; //Accepted, Rejected
  3582. unsigned char guid[37];
  3583. };
  3584. struct StructRemoteStopTransaction {
  3585. int TransactionId;
  3586. unsigned char ResponseStatus[10]; //Accepted, Rejected
  3587. };
  3588. struct StructReserveNow {
  3589. int ConnectorId;
  3590. unsigned char ExpiryDate[28];
  3591. unsigned char IdTag[20];
  3592. unsigned char ParentIdTag[20];
  3593. int ReservationId;
  3594. unsigned char ResponseStatus[12]; //Accepted, Faulted, Occupied, Rejected, Unavailable
  3595. unsigned char guid[37]; //OCPP Server request message uuid
  3596. };
  3597. struct StructReset {
  3598. unsigned char Type[8]; //Hard, Soft
  3599. unsigned char ResponseStatus[10]; //Accepted, Rejected
  3600. unsigned char guid[37]; //OCPP Server request message uuid
  3601. };
  3602. struct StructSendLocalList {
  3603. int ListVersion;
  3604. unsigned char UpdateType[16]; //Differential, Full
  3605. struct StructLocalAuthorizationList *LocalAuthorizationList;
  3606. unsigned char ResponseStatus[16]; //Accepted, Failed, NotSupported, VersionMismatch
  3607. };
  3608. struct StructSetChargingProfile {
  3609. int ConnectorId;
  3610. struct StructChargingProfile ChargingProfile;
  3611. unsigned char ResponseStatus[16]; //Accepted, Rejected, NotSupported
  3612. };
  3613. struct StructTriggerMessage {
  3614. unsigned char RequestedMessage[32]; /*
  3615. "BootNotification",
  3616. "DiagnosticsStatusNotification",
  3617. "FirmwareStatusNotification",
  3618. "Heartbeat",
  3619. "MeterValues",
  3620. "StatusNotification"
  3621. */
  3622. int ConnectorId;
  3623. unsigned char ResponseStatus[16]; //Accepted, Rejected, NotImplemented
  3624. };
  3625. struct StructUnlockConnector {
  3626. int ConnectorId;
  3627. unsigned char ResponseStatus[16]; //Unlocked, UnlockFailed, NotSupported
  3628. unsigned char guid[37]; //OCPP Server request message uuid
  3629. };
  3630. struct StructUpdateFirmware {
  3631. unsigned char Location[256];
  3632. int Retries;
  3633. unsigned char RetrieveDate[28];
  3634. int RetryInterval;
  3635. };
  3636. struct OCPP16ConfigurationItem {
  3637. unsigned char ItemName[64];
  3638. unsigned char ItemAccessibility;//0:RO, 1:RW
  3639. unsigned char ItemData[128];
  3640. };
  3641. struct OCPP16ConfigurationTable {
  3642. //please refer to OCPP 1.6 chapter 9
  3643. struct OCPP16ConfigurationItem CoreProfile[_CoreProfile_CNT];
  3644. struct OCPP16ConfigurationItem LocalAuthListManagementProfile[3];
  3645. struct OCPP16ConfigurationItem ReservationProfile[1];
  3646. struct OCPP16ConfigurationItem SmartChargingProfile[5];
  3647. };
  3648. struct StrcutSetUserPrice {
  3649. unsigned char idToken[20];
  3650. unsigned char price[256];
  3651. };
  3652. struct StrcutRunningFinalCost {
  3653. int txId;
  3654. unsigned char description[256];
  3655. };
  3656. struct StructCost {
  3657. struct StrcutSetUserPrice SetUserPrice;
  3658. struct StrcutRunningFinalCost RunningCost[CONNECTOR_QUANTITY];
  3659. struct StrcutRunningFinalCost FinalCost[CONNECTOR_QUANTITY];
  3660. };
  3661. struct OCPP16Data {
  3662. 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"
  3663. unsigned char ChargeBoxId[128];
  3664. unsigned char OcppConnStatus; //0: disconnected, 1: connected
  3665. unsigned int Timeout_Secs;
  3666. unsigned short Ping_Pong_Interval;
  3667. union {
  3668. //Operations Initiated by Charge Point
  3669. unsigned char CpMsgValue[CONNECTOR_QUANTITY];
  3670. struct {
  3671. //CpMsgValue[0]
  3672. unsigned char DataTransferReq: 1; //bit 0,
  3673. unsigned char DataTransferConf: 1; //bit 1,
  3674. unsigned char StartTransactionReq: 1; //bit 2,
  3675. unsigned char StartTransactionConf: 1; //bit 3,
  3676. unsigned char StopTransactionReq: 1; //bit 4,
  3677. unsigned char StopTransactionConf: 1; //bit 5,
  3678. unsigned char : 2; //bit 6,7 , reserved
  3679. } bits[CONNECTOR_QUANTITY];
  3680. } CpMsg;
  3681. union {
  3682. //Operations Initiated by Sequence Point
  3683. unsigned char SpMsgValue[1];
  3684. struct {
  3685. //SpMsgValue[0]
  3686. unsigned char BootNotificationReq : 1; //bit 0,
  3687. unsigned char BootNotificationConf : 1; //bit 1,
  3688. unsigned char AuthorizeReq : 1; //bit 2,
  3689. unsigned char AuthorizeConf : 1; //bit 3,
  3690. unsigned char DiagnosticsStatusNotificationReq : 1; //bit 4,
  3691. unsigned char DiagnosticsStatusNotificationConf : 1; //bit 5,
  3692. unsigned char FirmwareStatusNotificationReq : 1; //bit 6,
  3693. unsigned char FirmwareStatusNotificationConf : 1; //bit 7,
  3694. } bits;
  3695. } SpMsg;
  3696. union {
  3697. //Operations Initiated by Central System
  3698. unsigned char CsMsgValue[3 * (CONNECTOR_QUANTITY)];
  3699. struct {
  3700. //CsMsgValue[0]
  3701. unsigned char CancelReservationReq : 1; //bit 0,
  3702. unsigned char CancelReservationConf : 1; //bit 1,
  3703. unsigned char ChangeAvailabilityReq : 1; //bit 2,
  3704. unsigned char ChangeAvailabilityConf : 1; //bit 3,
  3705. unsigned char ReserveNowReq : 1; //bit 4,
  3706. unsigned char ReserveNowConf : 1; //bit 5,
  3707. unsigned char SetChargingProfileReq : 1; //bit 6,
  3708. unsigned char SetChargingProfileConf : 1; //bit 7,
  3709. //CsMsgValue[1]
  3710. unsigned char TriggerMessageReq : 1; //bit 0,
  3711. unsigned char TriggerMessageConf : 1; //bit 1,
  3712. unsigned char UnlockConnectorReq : 1; //bit 2,
  3713. unsigned char UnlockConnectorConf : 1; //bit 3,
  3714. unsigned char RemoteStartTransactionReq : 1; //bit 4,
  3715. unsigned char RemoteStartTransactionConf : 1; //bit 5,
  3716. unsigned char RemoteStopTransactionReq : 1; //bit 6,
  3717. unsigned char RemoteStopTransactionConf : 1; //bit 7,
  3718. //CsMsgValue[2]
  3719. unsigned char ClearChargingProfileReq : 1; //bit 0,
  3720. unsigned char ClearChargingProfileConf : 1; //bit 1,
  3721. unsigned char DataTransferReq : 1; //bit 2,
  3722. unsigned char DataTransferConf : 1; //bit 3,
  3723. unsigned char GetCompositeScheduleReq : 1; //bit 4,
  3724. unsigned char GetCompositeScheduleConf : 1; //bit 5,
  3725. unsigned char : 2; //bit 6,7
  3726. } bits[CONNECTOR_QUANTITY];
  3727. } CsMsg;
  3728. union {
  3729. //Operations Initiated by Main System
  3730. unsigned char MsMsgValue[2];
  3731. struct {
  3732. //CsMsgValue[0]
  3733. unsigned char ChangeConfigurationReq : 1; //bit 0,
  3734. unsigned char ChangeConfigurationConf : 1; //bit 1,
  3735. unsigned char ClearCacheReq : 1; //bit 2,
  3736. unsigned char ClearCacheConf : 1; //bit 3,
  3737. unsigned char GetConfigurationReq : 1; //bit 4,
  3738. unsigned char GetConfigurationConf : 1; //bit 5,
  3739. unsigned char UpdateFirmwareReq : 1; //bit 6,
  3740. unsigned char UpdateFirmwareConf : 1; //bit 7,
  3741. //CsMsgValue[1]
  3742. unsigned char GetDiagnosticsReq : 1; //bit 0,
  3743. unsigned char GetDiagnosticsConf : 1; //bit 1,
  3744. unsigned char GetLocalListVersionReq : 1; //bit 2,
  3745. unsigned char GetLocalListVersionConf : 1; //bit 3,
  3746. unsigned char ResetReq : 1; //bit 4,
  3747. unsigned char ResetConf : 1; //bit 5,
  3748. unsigned char SendLocalListReq : 1; //bit 6,
  3749. unsigned char SendLocalListConf : 1; //bit 7,
  3750. } bits;
  3751. } MsMsg;
  3752. union {
  3753. //Operations triggered by CSU
  3754. unsigned char CSUMsgValue[CONNECTOR_QUANTITY];
  3755. struct {
  3756. //CSUMsgValue[0]
  3757. unsigned char ChargingProfileReq: 1; //bit 0,
  3758. unsigned char ChargingProfileConf: 1; //bit 0,
  3759. unsigned char : 6; //bit 1,2,3,4,5,6,7 , reserved
  3760. } bits[CONNECTOR_QUANTITY];
  3761. } CSUMsg;
  3762. struct StructBootNotification BootNotification;
  3763. struct StructHeartbeat Heartbeat;
  3764. struct StructAuthorize Authorize;
  3765. struct StructStartTransaction StartTransaction[CONNECTOR_QUANTITY];
  3766. struct StructStopTransaction StopTransaction[CONNECTOR_QUANTITY];
  3767. struct StructStatusNotification StatusNotification[CONNECTOR_QUANTITY];
  3768. struct StructCancelReservation CancelReservation[CONNECTOR_QUANTITY];
  3769. struct StructChangeAvailability ChangeAvailability[CONNECTOR_QUANTITY];
  3770. struct StructChangeConfiguration ChangeConfiguration;
  3771. struct StructClearCache ClearCache;
  3772. struct StructClearChargingProfile ClearChargingProfile[CONNECTOR_QUANTITY];
  3773. struct StructDataTransfer DataTransfer[CONNECTOR_QUANTITY];
  3774. struct StructDiagnosticsStatusNotification DiagnosticsStatusNotification;
  3775. struct StructFirmwareStatusNotification FirmwareStatusNotification;
  3776. struct StructGetCompositeSchedule GetCompositeSchedule[CONNECTOR_QUANTITY];
  3777. struct StructGetConfiguration GetConfiguration;
  3778. struct StructGetDiagnostics GetDiagnostics;
  3779. struct StructGetLocalListVersion GetLocalListVersion;
  3780. struct StructMeterValues MeterValues[CONNECTOR_QUANTITY];
  3781. struct StructRemoteStartTransaction RemoteStartTransaction[CONNECTOR_QUANTITY];
  3782. struct StructRemoteStopTransaction RemoteStopTransaction[CONNECTOR_QUANTITY];
  3783. struct StructReserveNow ReserveNow[CONNECTOR_QUANTITY];
  3784. struct StructReset Reset;
  3785. struct StructSendLocalList SendLocalList;
  3786. struct StructSetChargingProfile SetChargingProfile[CONNECTOR_QUANTITY];
  3787. struct StructTriggerMessage TriggerMessage[CONNECTOR_QUANTITY];
  3788. struct StructUnlockConnector UnlockConnector[CONNECTOR_QUANTITY];
  3789. struct StructUpdateFirmware UpdateFirmware;
  3790. struct OCPP16ConfigurationTable ConfigurationTable;
  3791. struct StructChargingProfile SmartChargingProfile[CONNECTOR_QUANTITY];
  3792. struct StructCost Cost;
  3793. };
  3794. /**************************************************************************************/
  3795. /************************* OCPP 2.0 Share memory **************************************/
  3796. /**************************************************************************************/
  3797. /*
  3798. * =============== Enum variable content ===============
  3799. */
  3800. enum AlignedDataCtrlrVariable {
  3801. AlignedDataCtrlr_Enabled = 0,
  3802. AlignedDataCtrlr_Available,
  3803. AlignedDataCtrlr_Measurands,
  3804. AlignedDataCtrlr_Interval,
  3805. AlignedDataCtrlr_SendDuringIdle,
  3806. AlignedDataCtrlr_SignReadings,
  3807. AlignedDataCtrlr_TxEndedMeasurands,
  3808. AlignedDataCtrlr_TxEndedInterval,
  3809. AuthCtrlr_Enabled,
  3810. AuthCtrlr_AdditionalInfoItemsPerMessage,
  3811. AuthCtrlr_OfflineTxForUnknownIdEnabled,
  3812. AuthCtrlr_AuthorizeRemoteStart,
  3813. AuthCtrlr_LocalAuthorizeOffline,
  3814. AuthCtrlr_LocalPreAuthorize,
  3815. AuthCtrlr_MasterPassGroupId,
  3816. AuthCacheCtrlr_Enabled,
  3817. AuthCacheCtrlr_Available,
  3818. AuthCacheCtrlr_LifeTime,
  3819. AuthCacheCtrlr_Storage,
  3820. AuthCacheCtrlr_Policy,
  3821. ClockCtrlr_DateTime,
  3822. ClockCtrlr_NtpSource,
  3823. ClockCtrlr_NtpServerUri,
  3824. ClockCtrlr_TimeOffset,
  3825. ClockCtrlr_NextTimeOffsetTransitionDateTime,
  3826. ClockCtrlr_NextTransition_TimeOffset,
  3827. ClockCtrlr_TimeSource,
  3828. ClockCtrlr_TimeZone,
  3829. ChargingStation_Available,
  3830. ChargingStation_AvailabilityState,
  3831. ChargingStation_SupplyPhases,
  3832. Connector_Available,
  3833. Connector_ConnectorType,
  3834. Connector_SupplyPhases,
  3835. CustomizationCtrlr_CustomImplementationEnabled,
  3836. DeviceDataCtrlr_GetReport_ItemsPerMessage,
  3837. DeviceDataCtrlr_GetVariables_ItemsPerMessage,
  3838. DeviceDataCtrlr_GetReport_BytesPerMessage,
  3839. DeviceDataCtrlr_GetVariables_BytesPerMessage,
  3840. DeviceDataCtrlr_ConfigurationValueSize,
  3841. DeviceDataCtrlr_ReportingValueSize,
  3842. DeviceDataCtrlr_SetVariables_ItemsPerMessage,
  3843. DeviceDataCtrlr_SetVariables_BytesPerMessage,
  3844. DisplayMessageCtrlr_Enabled,
  3845. DisplayMessageCtrlr_Available,
  3846. DisplayMessageCtrlr_DisplayMessages,
  3847. DisplayMessageCtrlr_SupportedFormats,
  3848. DisplayMessageCtrlr_SupportedPriorities,
  3849. EVSE_Available,
  3850. EVSE_AvailabilityState,
  3851. EVSE_SupplyPhases,
  3852. EVSE_Power,
  3853. LocalAuthListCtrlr_Enabled,
  3854. LocalAuthListCtrlr_Entries,
  3855. LocalAuthListCtrlr_Available,
  3856. LocalAuthListCtrlr_ItemsPerMessage,
  3857. LocalAuthListCtrlr_BytesPerMessage,
  3858. LocalAuthListCtrlr_Storage,
  3859. MonitoringCtrlr_Enabled,
  3860. MonitoringCtrlr_Available,
  3861. MonitoringCtrlr_ClearVariableMonitoring_ItemsPerMessage,
  3862. MonitoringCtrlr_SetVariableMonitoring_ItemsPerMessage,
  3863. MonitoringCtrlr_ClearVariableMonitoring_BytesPerMessage,
  3864. MonitoringCtrlr_SetVariableMonitoring_BytesPerMessage,
  3865. MonitoringCtrlr_OfflineQueuingSeverity,
  3866. OCPPCommCtrlr_ActiveNetworkProfile,
  3867. OCPPCommCtrlr_MessageTimeout,
  3868. OCPPCommCtrlr_FileTransferProtocols,
  3869. OCPPCommCtrlr_HeartbeatInterval,
  3870. OCPPCommCtrlr_NetworkConfigurationPriority,
  3871. OCPPCommCtrlr_NetworkProfileConnectionAttempts,
  3872. OCPPCommCtrlr_OfflineThreshold,
  3873. OCPPCommCtrlr_QueueAllMessages,
  3874. OCPPCommCtrlr_MessageAttempts,
  3875. OCPPCommCtrlr_MessageAttemptInterval,
  3876. OCPPCommCtrlr_UnlockOnEVSideDisconnect,
  3877. OCPPCommCtrlr_WebSocketPingInterval,
  3878. OCPPCommCtrlr_ResetRetries,
  3879. OCPPCommCtrlr_PublicKeyWithSignedMeterValue,
  3880. ReservationCtrlr_Enabled,
  3881. ReservationCtrlr_Available,
  3882. ReservationCtrlr_NonEvseSpecific,
  3883. SampledDataCtrlr_Enabled,
  3884. SampledDataCtrlr_Available,
  3885. SampledDataCtrlr_SignReadings,
  3886. SampledDataCtrlr_TxEndedMeasurands,
  3887. SampledDataCtrlr_TxEndedInterval,
  3888. SampledDataCtrlr_TxStartedMeasurands,
  3889. SampledDataCtrlr_TxUpdatedMeasurands,
  3890. SampledDataCtrlr_TxUpdatedInterval,
  3891. SecurityCtrlr_BasicAuthPassword,
  3892. SecurityCtrlr_Identity,
  3893. SecurityCtrlr_OrganizationName,
  3894. SecurityCtrlr_CertificateEntries,
  3895. SecurityCtrlr_SecurityProfile,
  3896. SecurityCtrlr_AdditionalRootCertificateCheck,
  3897. SmartChargingCtrlr_Enabled,
  3898. SmartChargingCtrlr_Available,
  3899. SmartChargingCtrlr_ACPhaseSwitchingSupported,
  3900. SmartChargingCtrlr_ProfileStackLevel,
  3901. SmartChargingCtrlr_RateUnit,
  3902. SmartChargingCtrlr_PeriodsPerSchedule,
  3903. SmartChargingCtrlr_ExternalControlSignalsEnabled,
  3904. SmartChargingCtrlr_NotifyChargingLimitWithSchedules,
  3905. SmartChargingCtrlr_Phases3to1,
  3906. SmartChargingCtrlr_Entries,
  3907. SmartChargingCtrlr_LimitChangeSignificance,
  3908. Tariff_Enabled,
  3909. Tariff_Available,
  3910. Tariff_TariffFallbackMessage,
  3911. Cost_Enabled,
  3912. Cost_Available,
  3913. Cost_TotalCostFallbackMessage,
  3914. Cost_Currency,
  3915. TxCtrlr_ChargingBeforeAcceptedEnabled,
  3916. TxCtrlr_EVConnectionTimeOut,
  3917. TxCtrlr_StopTxOnEVSideDisconnect,
  3918. TxCtrlr_TxBeforeAcceptedEnabled,
  3919. TxCtrlr_TxStartPoint,
  3920. TxCtrlr_TxStopPoint,
  3921. TxCtrlr_MaxEnergyOnInvalidId,
  3922. TxCtrlr_StopTxOnInvalidId,
  3923. CtrlrVariable_CNT
  3924. };
  3925. /*
  3926. * =============== Common class ===============
  3927. */
  3928. struct ACChargingParametersType {
  3929. int energyAmount; // Required, Amount of energy requested (in Wh). This includes energy required for preconditioning.
  3930. int evMinCurrent; // Required. Minimum current (amps) supported by the electric vehicle (per phase).
  3931. int evMaxCurrent; // Required. Maximum current (amps) supported by the electric vehicle (per phase). Includes cable capacity.
  3932. int evMaxVoltage; // Required. Maximum voltage supported by the electric vehicle
  3933. };
  3934. struct DCChargingParametersType {
  3935. int evMaxCurrent; // Required. Maximum current (amps) supported by the electric vehicle. Includes cable capacity.
  3936. int evMaxVoltage; // Required. Maximum voltage supported by the electric vehicle
  3937. int energyAmount; // Optional. Amount of energy requested (in Wh). This inludes energy required for preconditioning.
  3938. int evMaxPower; // Optional. Maximum power (in W) supported by the electric vehicle. Required for DC charging.
  3939. unsigned char stateOfCharge; // Optional. Energy available in the battery (in percent of the battery capacity)
  3940. int evEnergyCapacity; // Optional. Capacity of the electric vehicle battery (in Wh)
  3941. unsigned char fullSoC; // Optional. Percentage of SoC at which the EV considers the battery fully charged. (possible values: 0 - 100)
  3942. unsigned char bulkSoC; // Optional. Percentage of SoC at which the EV considers a fast charging process to end. (possible values: 0 - 100)
  3943. };
  3944. struct AdditionalInfoType {
  3945. unsigned char additionalIdToken[36]; // Required. This field specifies the additional IdToken.
  3946. unsigned char type[50]; // Required. This defines the type of the additionalIdToken. This is a custom type, so the implementation needs to be agreed upon by all involved parties.
  3947. };
  3948. struct APNType {
  3949. unsigned char apn[512]; // Required. The Access Point Name as an URL.
  3950. unsigned char apnUserName[20]; // Optional. APN user name.
  3951. unsigned char apnPassword[20]; // Optional. APN Password.
  3952. short int simPin; // Optional. SIM card pin code.
  3953. unsigned char preferredNetwork[6]; // Optional. Preferred network, written as MCC and MNC concatenated. See note.
  3954. unsigned char useOnlyPreferredNetwork; // Optional. Default: false. Use only the preferred Network, do not dial in when not available. See Note.
  3955. short int apnAuthentication[8]; // Required. Authentication method.
  3956. };
  3957. struct VPNType {
  3958. unsigned char server[512]; // Required. VPN Server Address
  3959. unsigned char user[20]; // Required. VPN User
  3960. unsigned char group[20]; // Optional. VPN group.
  3961. unsigned char password[20]; // Required. VPN Password.
  3962. unsigned char key[255]; // Required. VPN shared secret.
  3963. unsigned char type[8]; // Required. Type of VPN
  3964. };
  3965. struct GroupIdTokenType {
  3966. unsigned char idToken[36]; // Required. IdToken is case insensitive. Might hold the hidden id of an RFID tag, but can for example also contain a UUID.
  3967. unsigned char type[16]; // Required. Enumeration of possible idToken types.
  3968. };
  3969. struct MessageContentType {
  3970. unsigned char format[8]; // Required. Format of the message.
  3971. unsigned char language[8]; // Optional. Message language identifier. Contains a language code as defined in [RFC5646].
  3972. unsigned char content[512]; // Required. Message contents.
  3973. };
  3974. struct IdTokenInfoType {
  3975. unsigned char status[32]; // Required. Current status of the ID Token.
  3976. unsigned char cacheExpiryDateTime[28]; // Optional. Date and Time after which the token must be considered invalid.
  3977. short int chargingPriority; // Optional. Priority from a business point of view. Default priority is 0, The range is from -9 to 9. Higher values indicate a higher priority.
  3978. unsigned char language1[8]; // Optional. Preferred user interface language of identifier user. Contains a language code as defined in [RFC5646].
  3979. unsigned int evseId[100]; // Optional. Only used when the IdToken is only valid for one or more specific EVSEs, not for the entire Charging Station.
  3980. unsigned char language2[8]; // Optional. Second preferred user interface language of identifier user. Don?�t use when language1 is omitted, has to be different from language1.
  3981. struct GroupIdTokenType groupIdToken; // Optional. This contains the group identifier.
  3982. struct MessageContentType personalMessage; // Optional. Personal message that can be shown to the EV Driver and can be used for tariff information, user greetings etc.
  3983. };
  3984. struct IdTokenType {
  3985. unsigned char idToken[36]; // Required. IdToken is case insensitive. Might hold the hidden id of an RFID tag, but can for example also contain a UUID.
  3986. unsigned char type[16]; // Required. Enumeration of possible idToken types.
  3987. struct AdditionalInfoType additionalInfo[10]; // Optional. AdditionalInfo can be used to send extra information which can be validated by the CSMS in addition to the regular authorization with IdToken.
  3988. };
  3989. struct AuthorizationData {
  3990. struct IdTokenInfoType idTokenInfo; // Optional. Required when UpdateType is Full. This contains information about authorization status, expiry and group id.
  3991. struct IdTokenType idToken; // Required. This contains the identifier which needs to be stored for authorization.
  3992. };
  3993. struct CertificateHashDataType {
  3994. unsigned char hashAlgorithm[8]; // Required. Used algorithms for the hashes provided.
  3995. unsigned char issuerNameHash[128]; // Required. hashed value of the IssuerName.
  3996. unsigned char issuerKeyHash[128]; // Required. Hashed value of the issuers public key
  3997. unsigned char serialNumber[40]; // Required. The serial number of the certificate.
  3998. };
  3999. struct CertificateHashDataChainType {
  4000. unsigned char certificateType[32]; // Required. Indicates the type of the requested certificate(s).
  4001. struct CertificateHashDataType certificateHashData; // Required. Information to identify a certificate.
  4002. struct CertificateHashDataType childCertificateHashData[4]; // Optional. Information to identify the child certificate(s).
  4003. };
  4004. struct ChargingLimitType {
  4005. unsigned char chargingLimitSource[8]; // Required. Represents the source of the charging limit.
  4006. unsigned char isGridCritical; // Optional. Indicates whether the charging limit is critical for the grid.
  4007. };
  4008. struct ChargingNeedsType {
  4009. unsigned char requestedEnergyTransfer[32]; // Required. Mode of energy transfer requested by the EV.
  4010. unsigned char departureTime[28]; // Optional. Estimated departure time of the EV.
  4011. struct ACChargingParametersType acChargingParameters; // Optional. EV AC charging parameters.
  4012. struct DCChargingParametersType dcChargingParameters; // Optional. EV DC charging parameters
  4013. };
  4014. struct ChargingProfileCriterionType {
  4015. unsigned char chargingProfilePurpose[36]; // Optional. Defines the purpose of the schedule transferred by this profile
  4016. unsigned short int stackLevel; // Optional. Value determining level in hierarchy stack of profiles. Higher values have precedence over lower values. Lowest level is 0.
  4017. unsigned short int chargingProfileId[10]; // Optional. List of all the chargingProfileIds requested. Any ChargingProfile that matches one of these profiles will be reported.
  4018. unsigned char chargingLimitSource[4][8]; // Optional. For which charging limit sources, charging profiles SHALL be reported. If omitted, the Charging Station SHALL not filter on chargingLimitSource.
  4019. };
  4020. struct RelativeTimeIntervalTypeOCPP {
  4021. unsigned int start; // Required. Start of the interval, in seconds from NOW.
  4022. unsigned int duration; // Optional. Duration of the interval, in seconds.
  4023. };
  4024. struct CostTypeOCPP {
  4025. unsigned char costKind[36]; // Required. The kind of cost referred to in the message element amount
  4026. int amount; // Required. The estimated or actual cost per kWh
  4027. };
  4028. struct ConsumptionCostTypeOCPP {
  4029. float startValue; // Required. The lowest level of consumption that defines the starting point of this consumption block. The block interval extends to the start of the next interval.
  4030. struct CostTypeOCPP cost[3]; // Required. This field contains the cost details.
  4031. };
  4032. struct SalesTariffEntryTypeOCPP {
  4033. unsigned short int ePriceLevel; // Optional. Defines the price level of this SalesTariffEntry (referring to NumEPriceLevels). Small values for the EPriceLevel represent a cheaper TariffEntry. Large values for the EPriceLevel represent a more expensive TariffEntry.
  4034. struct RelativeTimeIntervalTypeOCPP relativeTimeInterval; // Required. Defines the time interval the SalesTariffEntry is valid for, based upon relative times.
  4035. struct ConsumptionCostTypeOCPP consumptionCost[3]; // Optional. Defines additional means for further relative price information and/or alternative costs.
  4036. };
  4037. struct SalesTariffTypeOCPP {
  4038. unsigned short int id; // Required. SalesTariff identifier used to identify one sales tariff. An SAID remains a unique identifier for one schedule throughout a charging session.
  4039. unsigned char salesTariffDescription[32]; // Optional. A human readable title/short description of the sales tariff e.g. for HMI display purposes.
  4040. unsigned short int numEPriceLevels; // Optional. Defines the overall number of distinct price levels used across all provided SalesTariff elements.
  4041. struct SalesTariffEntryTypeOCPP salesTariffEntry[1024]; // Required. Encapsulating element describing all relevant details for one time interval of the SalesTariff. The number of SalesTariffEntry elements is limited by the parameter maxScheduleTuples.
  4042. };
  4043. struct ChargingSchedulePeriodType {
  4044. int startPeriod; // Required. Start of the period, in seconds from the start of schedule. The value of StartPeriod also defines the stop time of the previous period.
  4045. float limit; // Required. Charging rate limit during the schedule period, in the applicable chargingRateUnit, for example in Amperes (A) or Watts (W). Accepts at most one digit fraction (e.g. 8.1).
  4046. unsigned char numberPhases; // Optional. The number of phases that can be used for charging. If a number of phases is needed, numberPhases=3 will be assumed unless another number is given.
  4047. unsigned char phaseToUse; // Optional. Values: 1..3, Used if numberPhases=1 and if the EVSE is capable of switching the phase connected to theEV, i.e. ACPhaseSwitchingSupported is defined and true.
  4048. };
  4049. struct ChargingScheduleType {
  4050. unsigned char startSchedule[28]; // Optional. Starting point of an absolute schedule. If absent the schedule will be relative to start of charging.
  4051. unsigned int duration; // Optional. Duration of the charging schedule in seconds.
  4052. unsigned char chargingRateUnit[8]; // Required. The unit of measure Limit is expressed in.
  4053. float minChargingRate; // Optional. Minimum charging rate supported by the EV.
  4054. unsigned short int id; // Required. Identifies the ChargingSchedule.
  4055. struct ChargingSchedulePeriodType chargingSchedulePeriod[1024]; // Required. List of ChargingSchedulePeriod elements defining maximum power or current usage over time.
  4056. struct SalesTariffTypeOCPP salesTariff; // Optional. Sales tariff associated with this charging schedule.
  4057. };
  4058. struct ChargingProfileType {
  4059. unsigned short int id; // Required. Id of ChargingProfile.
  4060. unsigned short int stackLevel; // Required. Value determining level in hierarchy stack of profiles. Higher values have precedence over lower values. Lowest level is 0.
  4061. unsigned char chargingProfilePurpose[36]; // Required. Defines the purpose of the schedule transferred by this profile
  4062. unsigned char chargingProfileKind[16]; // Required. Indicates the kind of schedule.
  4063. unsigned char recurrencyKind[8]; // Optional. Indicates the start point of a recurrence.
  4064. unsigned char validFrom[28]; // Optional. Point in time at which the profile starts to be valid. If absent, the profile is valid as soon as it is received by the Charging Station.
  4065. unsigned char validTo[28]; // Optional. Point in time at which the profile stops to be valid. If absent, the profile is valid until it is replaced by another profile.
  4066. unsigned char transactionId[36]; // Optional. SHALL only be included if ChargingProfilePurpose is set to TxProfile. The transactionId is used to match the profile to a specific transaction.
  4067. struct ChargingScheduleType chargingSchedule[3]; // Required. Schedule that contains limits for the available power or current over time. In order to support ISO 15118 schedule negotiation, it supports at most three schedules with associated tariff to choose from.
  4068. };
  4069. struct ModemType {
  4070. unsigned char iccid[20]; // Optional. This contains the ICCID of the modem?�s SIM card.
  4071. unsigned char imsi[20]; // Optional. This contains the IMSI of the modem?�s SIM card.
  4072. };
  4073. struct ChargingStationType {
  4074. unsigned char serialNumber[25]; // Optional. Vendor-specific device identifier.
  4075. unsigned char model[20]; // Required. Defines the model of the device.
  4076. unsigned char vendorName[50]; // Required. Identifies the vendor (not necessarily in a unique manner).
  4077. unsigned char firmwareVersion[50]; // Optional. This contains the firmware version of the Charging Station.
  4078. struct ModemType modem; // Optional. Defines the functional parameters of a communication link.
  4079. };
  4080. struct ClearChargingProfileType {
  4081. unsigned int evseId; // Optional. Specifies the id of the EVSE for which to clear charging profiles.
  4082. unsigned char chargingProfilePurpose[36]; // Optional. Specifies to purpose of the charging profiles that will be cleared, if they meet the other criteria in the request.
  4083. unsigned short int stackLevel; // Optional. Specifies the stackLevel for which charging profiles will be cleared, if they meet the other criteria in the request.
  4084. };
  4085. struct ClearMonitoringResultType {
  4086. unsigned short int id; // Required. Id of the monitor of which a clear was requested.
  4087. unsigned char status[16]; // Required. Result of the clear request for this monitor, identified by its Id.
  4088. };
  4089. struct EVSEType {
  4090. unsigned int id; // Required. EVSE Identifier. This contains a number (> 0) designating an EVSE of the Charging Station.
  4091. unsigned char connectorId; // Optional. An id to designate a specific connector (on an EVSE) by connector index number.
  4092. };
  4093. struct VariableType {
  4094. unsigned char name[50]; // Required. Name of the variable.
  4095. unsigned char instance[50]; // Optional. Name of instance in case the variable exists as multiple instances.
  4096. };
  4097. struct VariableAttributeType {
  4098. unsigned char type[8]; // Optional. Attribute: Actual, MinSet, MaxSet, etc. Defaults to Actual if absent.
  4099. unsigned char value[2500]; // Optional. Value of the attribute. May only be omitted when mutability is set to 'WriteOnly'.
  4100. unsigned char mutability[16]; // Optional. Defines the mutability of this attribute. Default is ReadWrite when omitted.
  4101. unsigned char persistent; // Optional. If true, value will be persistent across system reboots or power down. Default when omitted is false.
  4102. unsigned char constant; // Optional. If true, value that will never be changed by the Charging Station at runtime. Default when omitted is false.
  4103. };
  4104. struct VariableCharacteristicsType {
  4105. unsigned char unit[16]; // Optional. Unit of the variable. When the transmitted value has a unit, this field SHALL be included.
  4106. unsigned char dataType[16]; // Required. Data type of this variable.
  4107. float minLimit; // Optional. Minimum possible value of this variable.
  4108. float maxLimit; // Optional. Maximum possible value of this variable.
  4109. unsigned char valuesList[1000]; // Optional. Allowed values when variable is Option/Member/SequenceList.
  4110. unsigned char supportsMonitoring; // Required. Flag indicating if this variable supports monitoring.
  4111. };
  4112. struct ComponentType {
  4113. unsigned char name[50]; // Required. Name of the component.
  4114. unsigned char instance[50]; // Optional. Name of instance in case the component exist as multiple instances.
  4115. struct EVSEType evse; // Optional. Specifies the EVSE when component is located at EVSE level, also specifies the connector when component is located at Connector level.
  4116. };
  4117. struct ComponentVariableType {
  4118. struct ComponentType component; // Required. Component for which a report of Variable is requested.
  4119. struct VariableType variable; // Optional. Variable(s) for which the report is requested.
  4120. };
  4121. struct CompositeScheduleType {
  4122. unsigned char startDateTime[28]; // Required. Date and time at which the schedule becomes active.
  4123. struct ChargingScheduleType chargingSchedule; // Required. Charging schedule structure defines a list of charging periods.
  4124. };
  4125. struct EventDataType {
  4126. unsigned int eventId; // Required. Identifies the event. This field can be referred to as a cause by other events.
  4127. unsigned char timestamp[28]; // Required. Timestamp of the moment the report was generated.
  4128. unsigned char trigger[16]; // Required. Type of monitor that triggered this event, e.g. exceeding a threshold value.
  4129. unsigned int cause; // Optional. Refers to the Id of an event that is considered to be the cause for this event.
  4130. unsigned char actualValue[2500]; // Required. Actual value (attributeType Actual) of the variable.
  4131. unsigned char techcode[50]; // Optional. Technical (error) code as reported by component.
  4132. unsigned char techInfo[500]; // Optional. Technical detail information as reported by component.
  4133. unsigned char cleared; // Optional. Cleared is set to true to report the clearing of a monitored situation, i.e. a 'return to normal'.
  4134. unsigned char transactionId[36]; // Optional. If an event notification is linked to a specific transaction, this field can be used to specify its transactionId.
  4135. unsigned int variableMonitoringId; // Optional. Identifies the VariableMonitoring which triggered the event.
  4136. unsigned char eventNotificationType[32]; // Required. Specifies the event notification type of the message.
  4137. struct ComponentType component; // Required. Component for which event is notified.
  4138. struct VariableType variable; // Required. Variable for which event is notified.
  4139. };
  4140. struct FirmwareType {
  4141. unsigned char location[512]; // Required. URI defining the origin of the firmware.
  4142. unsigned char retrieveDateTime[28]; // Required. Date and time at which the firmware shall be retrieved.
  4143. unsigned char installDateTime[28]; // Optional. Date and time at which the firmware shall be installed.
  4144. unsigned char signingCertificate[5500]; // Optional. Certificate with which the firmware was signed. X.509 certificate, first DER encoded into binary, and then Base64 encoded.
  4145. unsigned char signature[800]; // Optional. Base64 encoded firmware signature.
  4146. };
  4147. struct GetVariableDataType {
  4148. unsigned char attributeType[8]; // Optional. Attribute type for which value is requested. When absent, default Actual is assumed.
  4149. struct ComponentType component; // Required. Component for which the Variable is requested.
  4150. struct VariableType variable; // Required. Variable for which the attribute value is requested.
  4151. };
  4152. struct GetVariableResultType {
  4153. unsigned char attributeStatus[32]; // Required. Result status of getting the variable.
  4154. unsigned char attributeType[8]; // Optional. Attribute type for which value is requested. When absent, default Actual is assumed.
  4155. unsigned char attributeValue[2500]; // Optional. Value of requested attribute type of component- variable.
  4156. struct ComponentType component; // Required. Component for which the Variable is requested.
  4157. struct VariableType variable; // Required. Variable for which the attribute value is requested.
  4158. };
  4159. struct LogParametersType {
  4160. unsigned char remoteLocation[512]; // Required. The URL of the location at the remote system where the log should be stored.
  4161. unsigned char oldestTimestamp[28]; // Optional. This contains the date and time of the oldest logging information to include in the diagnostics.
  4162. unsigned char latestTimestamp[28]; // Optional. This contains the date and time of the latest logging information to include in the diagnostics.
  4163. };
  4164. struct MessageInfoType {
  4165. unsigned int id; // Required. Master resource identifier, unique within an exchange context. It is defined within the OCPP context as a positive Integer value (greater or equal to zero).
  4166. unsigned char priority[16]; // Required. With what priority should this message be shown
  4167. unsigned char state[16]; // Optional. During what state should this message be shown. When omitted this message should be shown in any state of the Charging Station.
  4168. unsigned char startDateTime[28]; // Optional. From what date-time should this message be shown. If omitted: directly.
  4169. unsigned char endDateTime[28]; // Optional. Until what date-time should this message be shown, after this date/time this message SHALL be removed.
  4170. unsigned char transactionId[36]; // Optional. During which transaction shall this message be shown. Message SHALL be removed by the Charging Station after transaction has ended.
  4171. struct MessageContentType message; // Required. Contains message details for the message to be displayed on a Charging Station.
  4172. struct ComponentType display; // Optional. When a Charging Station has multiple Displays, this field can be used to define to which Display this message belongs.
  4173. };
  4174. struct SignedMeterValueType {
  4175. unsigned char signedMeterData[2500]; // Required. Base64 encoded, contains the signed data which might contain more then just the meter value. It can contain information like timestamps, reference to a customer etc.
  4176. unsigned char signingMethod[50]; // Required. Method used to create the digital signature.
  4177. unsigned char encodingMethod[50]; // Required. Method used to encode the meter values before applying the digital signature algorithm.
  4178. unsigned char publicKey[2500]; // Required. Base64 encoded, sending depends on configuration variable PublicKeyWithSignedMeterValue.
  4179. };
  4180. struct UnitOfMeasureType {
  4181. unsigned char uint[20]; // Optional. Unit of the value. Default = "Wh" if the (default) measurand is an "Energy" type.
  4182. unsigned short int multiplier; // Optional. Multiplier, this value represents the exponent to base 10. I.e. multiplier 3 means 10 raised to the 3rd power. Default is 0.
  4183. };
  4184. struct SampledValueType {
  4185. float value; // Required. Indicates the measured value.
  4186. unsigned char context[32]; // Optional. Type of detail value: start, end or sample. Default = "Sample.Periodic"
  4187. unsigned char measurand[32]; // Optional. Type of measurement. Default = "Energy.Active.Import.Register"
  4188. unsigned char phase[8]; // Optional. Indicates how the measured value is to be interpreted.
  4189. unsigned char location[8]; // Optional. Indicates where the measured value has been sampled. Default = "Outlet"
  4190. struct SignedMeterValueType signedMeterValue; // Optional. Contains the MeterValueSignature with sign/encoding method information.
  4191. struct UnitOfMeasureType unitOfMeasure; // Optional. Represents a UnitOfMeasure including a multiplier
  4192. };
  4193. struct MeterValueType {
  4194. unsigned char timestamp[28]; // Required. Timestamp for measured value(s).
  4195. struct SampledValueType sampledValue[10]; // Required. One or more measured values
  4196. };
  4197. struct VariableMonitoringType {
  4198. unsigned int id; // Required. Identifies the monitor.
  4199. float value; // Required. Value for threshold or delta monitoring. For Periodic or PeriodicClockAligned this is the interval in seconds.
  4200. unsigned char type[32]; // Required. The type of this monitor, e.g. a threshold, delta or periodic monitor.
  4201. unsigned char severity; // Required. The severity that will be assigned to an event that is triggered by this monitor.
  4202. unsigned char transaction; // Required. Monitor only active when a transaction is ongoing on a component relevant to this transaction.
  4203. };
  4204. struct MonitoringDataType {
  4205. struct ComponentType component; // Required. Component for which monitoring report was requested.
  4206. struct VariableType variable; // Required. Variable for which monitoring report was requested.
  4207. struct VariableMonitoringType variableMonitoring[10]; // Required. List of monitors for this Component-Variable pair.
  4208. };
  4209. struct NetworkConnectionProfileType {
  4210. unsigned char ocppVersion[8]; // Required. Defines the OCPP version used for this communication function.
  4211. unsigned char ocppTransport[8]; // Required. Defines the transport protocol (e.g. SOAP or JSON). Note: SOAP is not supported in OCPP 2.0, but is supported by other versions of OCPP.
  4212. unsigned char ocppCsmsUrl[512]; // Required. URL of the CSMS(s) that this Charging Station communicates with.
  4213. unsigned int messageTimeout; // Required. Duration in seconds before a message send by the Charging Station via this network connection times- out. The best setting depends on the underlying network and response times of the CSMS. If you are looking for a some guideline: use 30 seconds as a starting point.
  4214. unsigned char ocppInterface[16]; // Required. Applicable Network Interface.
  4215. struct VPNType vpn; // Optional. Settings to be used to set up the VPN connection
  4216. struct APNType apn; // Optional. Collection of configuration data needed to make a data-connection over a cellular network.
  4217. };
  4218. struct OCSPRequestDataType {
  4219. unsigned char hashAlgorithm[8]; // Required. Used algorithms for the hashes provided.
  4220. unsigned char issuerNameHash[128]; // Required. hashed value of the IssuerName.
  4221. unsigned char issuerKeyHash[128]; // Required. Hashed value of the issuers public key
  4222. unsigned char serialNumber[40]; // Required. The serial number of the certificate.
  4223. unsigned char responderURL[512]; // Required. This contains the responder URL (Case insensitive).
  4224. };
  4225. struct ReportDataType {
  4226. struct ComponentType component; // Required. Component for which a report of Variable is requested.
  4227. struct VariableType variable; // Required. Variable for which report is requested.
  4228. struct VariableAttributeType variableAttribute[4]; // Required. Attribute data of a variable.
  4229. struct VariableCharacteristicsType variableCharacteristics; // Optional. Fixed read-only parameters of a variable.
  4230. };
  4231. struct SetMonitoringDataType {
  4232. unsigned int id; // Optional. An id SHALL only be given to replace an existing monitor. The Charging Station handles the generation of id?�s for new monitors.
  4233. float value; // Required. Value for threshold or delta monitoring. For Periodic or PeriodicClockAligned this is the interval in seconds.
  4234. unsigned char type[32]; // Required. The type of this monitor, e.g. a threshold, delta or periodic monitor.
  4235. unsigned char severity; // Required. The severity that will be assigned to an event that is triggered by this monitor.
  4236. unsigned char transaction; // Optional. Monitor only active when a transaction is ongoing on a component relevant to this transaction. Default = false.
  4237. struct ComponentType component; // Required. Component for which monitor is set.
  4238. struct VariableType variable; // Required. Variable for which monitor is set.
  4239. };
  4240. struct SetMonitoringResultType {
  4241. unsigned int id; // Optional. Id given to the VariableMonitor by the Charging Station.
  4242. unsigned char type[32]; // Required. The type of this monitor, e.g. a threshold, delta or periodic monitor.
  4243. unsigned char severity; // Required. The severity that will be assigned to an event that is triggered by this monitor.
  4244. unsigned char status[32]; // Required. Status is OK if a value could be returned.
  4245. struct ComponentType component; // Required. Component for which status is returned.
  4246. struct VariableType variable; // Required. Variable for which status is returned.
  4247. };
  4248. struct SetVariableDataType {
  4249. unsigned char attributeType[8]; // Optional. Type of attribute: Actual, Target, MinSet, MaxSet. Default is Actual when omitted.
  4250. unsigned char attributeValue[1000]; // Required. Value to be assigned to attribute of variable.
  4251. struct ComponentType component; // Required. The component for which the variable data is set.
  4252. struct VariableType variable; // Required. Specifies the that needs to be set.
  4253. };
  4254. struct SetVariableResultType {
  4255. unsigned char attributeType[8]; // Optional. Type of attribute: Actual, Target, MinSet, MaxSet. Default is Actual when omitted.
  4256. unsigned char attributeStatus[32]; // Required. Result status of setting the variable.
  4257. struct ComponentType component; // Required. The component for which result is returned.
  4258. struct VariableType variable; // Required. The variable for which the result is returned.
  4259. };
  4260. struct TransactionType {
  4261. unsigned char transactionId[36]; // Required. This contains the Id of the transaction.
  4262. unsigned char chargingState[16]; // Optional. Current charging state, is required when state has changed. Omitted when there is no communication between EVSE and EV, because no cable is plugged in.
  4263. unsigned int timeSpentCharging; // Optional. Contains the total time that energy flowed from EVSE to EV during the transaction (in seconds). Note that timeSpentCharging is smaller or equal to the duration of the transaction.
  4264. unsigned char stoppedReason[20]; // Optional. This contains the reason why the transaction was stopped. MAY only be omitted when Reason is "Local".
  4265. unsigned int remoteStartId; // Optional. The ID given to remote start request (RequestStartTransactionRequest.
  4266. };
  4267. /*
  4268. * =============== Message ===============
  4269. */
  4270. struct Authorize_20 {
  4271. struct IdTokenType idToken; // Required. This contains the identifier that needs to be authorized.
  4272. struct OCSPRequestDataType iso15118CertificateHashData[4]; // Optional. Contains the information needed to verify the EV Contract Certificate via OCSP.
  4273. unsigned char Response_certificateStatus[32]; // Optional. Certificate status information. - if all certificates are valid: return 'Accepted'. - if one of the certificates was revoked, return 'CertificateRevoked'.
  4274. struct IdTokenInfoType Response_idTokenInfo; // Required. This contains information about authorization status, expiry and group id.
  4275. };
  4276. struct BootNotification_20 {
  4277. unsigned char reason[20]; // Required. This contains the reason for sending this message to the CSMS.
  4278. struct ChargingStationType chargingStation; // Required. Identifies the Charging Station
  4279. unsigned char Response_currentTime[28]; // Required. This contains the CSMS?�s current time.
  4280. unsigned int Response_interval; // Required. When Status is Accepted, this contains the heartbeat interval in seconds. If the CSMS returns something other than Accepted, the value of the interval field indicates the minimum wait time before sending a next BootNotification request.
  4281. unsigned char Response_status[16]; // Required. This contains whether the Charging Station has been registered within the CSMS.
  4282. };
  4283. struct CancelReservation_20 {
  4284. int reservationId; // Required. Id of the reservation to cancel.
  4285. unsigned char Response_status[16]; // Required. This indicates the success or failure of the canceling of a reservation by CSMS.
  4286. unsigned char guid[37]; // Save guid from server request
  4287. };
  4288. struct CertificateSigned_20 {
  4289. unsigned char certificate[10][5500]; // Required. The signed X.509 certificate, first DER encoded into binary, and then Base64 encoded. This can also contain the necessary sub CA certificates. In that case, the order should follow the certificate chain, starting from the leaf certificate.
  4290. unsigned char certificateType[32]; // Optional. Indicates the type of the signed certificate that is returned.
  4291. unsigned char Response_status[16]; // Required. Returns whether certificate signing has been accepted, otherwise rejected.
  4292. unsigned char guid[37]; // Save guid from server request
  4293. };
  4294. struct ChangeAvailability_20 {
  4295. unsigned char operationalStatus[16]; // Required. This contains the type of availability change that the Charging Station should perform.
  4296. struct EVSEType evse; // Optional. Contains Id?�s to designate a specific EVSE/connector by index numbers. When omitted, the message refers to the Charging Station as a whole.
  4297. unsigned char Response_status[16]; // Required. This indicates whether the Charging Station is able to perform the availability change.
  4298. unsigned char guid[37]; // Save guid from server request
  4299. };
  4300. struct ClearCache_20 {
  4301. unsigned char Response_status[16]; // Required. Accepted if the Charging Station has executed the request, otherwise rejected.
  4302. unsigned char guid[37]; // Save guid from server request
  4303. };
  4304. struct ClearChargingProfile_20 {
  4305. unsigned int chargingProfileId; // Optional. The Id of the charging profile to clear.
  4306. struct ClearChargingProfileType chargingProfileCriteria; // Optional. Specifies the charging profile.
  4307. unsigned char Response_status[16]; // Required. Indicates if the Charging Station was able to execute the request.
  4308. unsigned char guid[37]; // Save guid from server request
  4309. };
  4310. struct ClearDisplayMessage_20 {
  4311. unsigned int id; // Required. Id of the message that SHALL be removed from the Charging Station.
  4312. unsigned char Response_status[16]; // Required. Returns whether the Charging Station has been able to remove the message.
  4313. unsigned char guid[37]; // Save guid from server request
  4314. };
  4315. struct ClearedChargingLimit_20 {
  4316. unsigned char chargingLimitSource[8]; // Required. Source of the charging limit.
  4317. unsigned int evseId; // Optional. EVSE Identifier.
  4318. };
  4319. struct ClearVariableMonitoring_20 {
  4320. unsigned int id[10]; // Required. List of the monitors to be cleared, identified by there Id.
  4321. struct ClearMonitoringResultType Response_clearMonitoringResult[10];// Required. List of result statuses per monitor.
  4322. unsigned char guid[37]; // Save guid from server request
  4323. };
  4324. struct CostUpdated_20 {
  4325. float totalCost; // Required. Current total cost, based on the information known by the CSMS, of the transaction including taxes. In the currency configured with the configuration Variable: [Currency]
  4326. unsigned char transactionId[36]; // Required. Transaction Id of the transaction the current cost are asked for.
  4327. unsigned char guid[37]; // Save guid from server request
  4328. };
  4329. struct CustomerInformation_20 {
  4330. unsigned int requestId; // Required. The Id of the request.
  4331. unsigned char report; // Required. Flag indicating whether the Charging Station should return NotifyCustomerInformationRequest messages containing information about the customer referred to.
  4332. unsigned char clear; // Required. Flag indicating whether the Charging Station should clear all information about the customer referred to.
  4333. unsigned char customerIdentifier[64]; // Optional. A (e.g. vendor specific) identifier of the customer this request refers to. This field contains a custom identifier other than IdToken and Certificate. One of the possible identifiers (customerIdentifier, customerIdToken or customerCertificate) should be in the request message.
  4334. struct IdTokenType idToken; // Optional. The IdToken of the customer this request refers to. One of the possible identifiers (customerIdentifier, customerIdToken or customerCertificate) should be in the request message.
  4335. struct CertificateHashDataType customerCertificate; // Optional. The Certificate of the customer this request refers to. One of the possible identifiers (customerIdentifier, customerIdToken or customerCertificate) should be in the request message.
  4336. unsigned char Response_status[16]; // Required. Indicates whether the request was accepted.
  4337. unsigned char guid[37]; // Save guid from server request
  4338. };
  4339. struct DataTransfer_20 {
  4340. unsigned char messageId[50]; // Optional. May be used to indicate a specific message or implementation.
  4341. unsigned char data[512]; // Optional. Data without specified length or format. This needs to be decided by both parties (Open to implementation).
  4342. unsigned char vendorId[255]; // Required. This identifies the Vendor specific implementation
  4343. unsigned char Response_status[20]; // Required. This indicates the success or failure of the data transfer.
  4344. unsigned char Response_data[512]; // Optional. Data without specified length or format, in response to request.
  4345. unsigned char guid[37]; // Save guid from server request
  4346. };
  4347. struct DeleteCertificate_20 {
  4348. struct CertificateHashDataType certificateHashData; // Required. Indicates the certificate of which deletion is requested.
  4349. unsigned char Response_status[16]; // Required. Charging Station indicates if it can process the request.
  4350. unsigned char guid[37]; // Save guid from server request
  4351. };
  4352. struct FirmwareStatusNotification_20 {
  4353. unsigned char status[32]; // Required. This contains the progress status of the firmware installation.
  4354. unsigned int requestId; // Optional. The request id that was provided in the UpdateFirmwareRequest that started this firmware update. This field is mandatory, unless the message was triggered by a TriggerMessageRequest AND there is no firmware update ongoing.
  4355. };
  4356. struct Get15118EVCertificate_20 {
  4357. unsigned char iso15118SchemaVersion[50]; // Required. Schema version currently used for the 15118 session between EV and Charging Station. Needed for parsing of the EXI stream by the CSMS.
  4358. unsigned char action[16]; // Required. Defines whether certificate needs to be installed or updated.
  4359. unsigned char exiRequest[5600]; // Required. Raw CertificateInstallationReq request from EV, Base64 encoded.
  4360. unsigned char Response_status[16]; // Required. Indicates whether the message was processed properly.
  4361. unsigned char Response_exiResponse[5600]; // Required. Raw CertificateInstallationRes response for the EV, Base64 encoded.
  4362. };
  4363. struct GetBaseReport_20 {
  4364. unsigned int requestId; // Required. The Id of the request.
  4365. unsigned char reportBase[32]; // Required. This field specifies the report base.
  4366. unsigned char Response_status[16]; // Required. This indicates whether the Charging Station is able to accept this request.
  4367. unsigned char guid[37]; // Save guid from server request
  4368. };
  4369. struct GetCertificateStatus_20 {
  4370. struct OCSPRequestDataType ocspRequestData; // Required. Indicates the certificate of which the status is requested.
  4371. unsigned char Response_status[16]; // Required. This indicates whether the charging station was able to retrieve the OCSP certificate status.
  4372. unsigned char Response_ocspResult[5500]; // Optional. OCSPResponse class as defined in IETF RFC 6960. DER encoded (as defined in IETF RFC 6960), and then base64 encoded. MAY only be omitted when status is not Accepted.
  4373. };
  4374. struct GetChargingProfiles_20 {
  4375. unsigned int requestId; // Required. Reference identification that is to be used by the Charging Station in the ReportChargingProfilesRequest when provided.
  4376. unsigned int evseId; // Optional. For which EVSE installed charging profiles SHALL be reported. If 0, only charging profiles installed on the Charging Station itself (the grid connection) SHALL be reported. If omitted, all installed charging profiles SHALL be reported.
  4377. struct ChargingProfileCriterionType chargingProfile; // Required. Specifies the charging profile.
  4378. unsigned char Response_status[16]; // Required. This indicates whether the Charging Station is able to process this request and will send ReportChargingProfilesRequest messages.
  4379. unsigned char guid[37]; // Save guid from server request
  4380. };
  4381. struct GetCompositeSchedule_20 {
  4382. unsigned int duration; // Required. Length of the requested schedule in seconds.
  4383. unsigned char chargingRateUnit[8]; // Optional. Can be used to force a power or current profile.
  4384. unsigned int evseId; // Required. The ID of the EVSE for which the schedule is requested. When evseid=0, the Charging Station will calculate the expected consumption for the grid connection.
  4385. unsigned char Response_status[16]; // Required. The Charging Station will indicate if it was able to process the request
  4386. struct CompositeScheduleType Response_schedule; // Optional. This field contains the calculated composite schedule. It may only be omitted when this message contains status Rejected.
  4387. unsigned char guid[37]; // Save guid from server request
  4388. };
  4389. struct GetDisplayMessages_20 {
  4390. unsigned int id[10]; // Optional. If provided the Charging Station shall return Display Messages of the given ids. This field SHALL NOT contain more ids than set in NumberOfDisplayMessages.maxLimit
  4391. unsigned int requestId; // Required. The Id of this request.
  4392. unsigned char priority[16]; // Optional. If provided the Charging Station shall return Display Messages with the given priority only.
  4393. unsigned char state[16]; // Optional. If provided the Charging Station shall return Display Messages with the given state only.
  4394. unsigned char Response_status[16]; // Required. Indicates if the Charging Station has Display Messages that match the request criteria in the GetDisplayMessagesRequest
  4395. unsigned char guid[37]; // Save guid from server request
  4396. };
  4397. struct GetInstalledCertificateIds_20 {
  4398. unsigned char certificateType[10][32]; // Optional. Indicates the type of certificates requested. When omitted, all certificate types are requested.
  4399. unsigned char Response_status[16]; // Required. Charging Station indicates if it can process the request.
  4400. struct CertificateHashDataChainType Response_certificateHashDataChain[10]; // Optional. The Charging Station includes the Certificate information for each available certificate.
  4401. unsigned char guid[37]; // Save guid from server request
  4402. };
  4403. struct GetLocalListVersion_20 {
  4404. int Response_versionNumber; // Required. This contains the current version number of the local authorization list in the Charging Station.
  4405. unsigned char guid[37]; // Save guid from server request
  4406. };
  4407. struct GetLog_20 {
  4408. unsigned char logType[16]; // Required. This contains the type of log file that the Charging Station should send.
  4409. unsigned int requestId; // Required. The Id of this request
  4410. unsigned char retries; // Optional. This specifies how many times the Charging Station must try to upload the log before giving up. If this field is not present, it is left to Charging Station to decide how many times it wants to retry.
  4411. unsigned int retryInterval; // Optional. The interval in seconds after which a retry may be attempted. If this field is not present, it is left to Charging Station to decide how long to wait between attempts.
  4412. struct LogParametersType log; // Required. This field specifies the requested log and the location to which the log should be sent.
  4413. unsigned char Response_status[20]; // Required. This field indicates whether the Charging Station was able to accept the request.
  4414. unsigned char Response_filename[255]; // Optional. This contains the name of the log file that will be uploaded. This field is not present when no logging information is available.
  4415. unsigned char guid[37]; // Save guid from server request
  4416. };
  4417. struct GetMonitoringReport_20 {
  4418. unsigned int requestId; // Required. The Id of the request.
  4419. unsigned char monitoringCriteria[3][32]; // Optional. This field contains criteria for components for which a monitoring report is requested
  4420. struct ComponentVariableType componentVariable[10]; // Optional. This field specifies the components and variables for which a monitoring report is requested.
  4421. unsigned char Response_status[20]; // Required. This field indicates whether the Charging Station was able to accept the request.
  4422. unsigned char guid[37]; // Save guid from server request
  4423. };
  4424. struct GetReport_20 {
  4425. unsigned int requestId; // Required. The Id of the request.
  4426. unsigned char componentCriteria[4][16]; // Optional. This field contains criteria for components for which a report is requested
  4427. struct ComponentVariableType componentVariable[10]; // Optional. This field specifies the components and variables for which a report is requested.
  4428. unsigned char Response_status[20]; // Required. This field indicates whether the Charging Station was able to accept the request.
  4429. unsigned char guid[37]; // Save guid from server request
  4430. };
  4431. struct GetTransactionStatus_20 {
  4432. unsigned char transactionId[36]; // Optional. The Id of the transaction for which the status is requested.
  4433. unsigned char Response_ongoingIndicator; // Optional. Whether the transaction is still ongoing.
  4434. unsigned char Response_messagesInQueue; // Required. Whether there are still message to be delivered.
  4435. unsigned char guid[37]; // Save guid from server request
  4436. };
  4437. struct GetVariables_20 {
  4438. struct GetVariableDataType getVariableData[CtrlrVariable_CNT]; // Required. List of requested variables.
  4439. struct GetVariableResultType Response_getVariableResult[CtrlrVariable_CNT]; // Required. List of requested variables and their values.
  4440. unsigned char guid[37]; // Save guid from server request
  4441. };
  4442. struct Heartbeat_20 {
  4443. unsigned char Response_currentTime[28]; // Required. Contains the current time of the CSMS.
  4444. };
  4445. struct InstallCertificate_20 {
  4446. unsigned char certificateType[32]; // Required. Indicates the certificate type that is sent.
  4447. unsigned char certificate[5500]; // Required. A X.509 certificate, first DER encoded into binary, and then Base64 encoded.
  4448. unsigned char Response_status[16]; // Required. Charging Station indicates if installation was successful.
  4449. unsigned char guid[37]; // Save guid from server request
  4450. };
  4451. struct LogStatusNotification_20 {
  4452. unsigned char status[32]; // Required. This contains the status of the log upload.
  4453. unsigned int requestId; // Optional. The request id that was provided in GetLogRequest that started this log upload. This field is mandatory, unless the message was triggered by a TriggerMessageRequest AND there is no log upload ongoing.
  4454. };
  4455. struct MeterValues_20 {
  4456. unsigned int evseId; // Required. This contains a number (>0) designating an EVSE of the Charging Station. ????(zero) is used to designate the main power meter.
  4457. struct MeterValueType meterValue[1]; // Required. The sampled meter values with timestamps.
  4458. };
  4459. struct NotifyChargingLimit_20 {
  4460. unsigned int evseId; // Optional. The charging schedule contained in this notification applies to an EVSE. evseId must be > 0.
  4461. struct ChargingLimitType chargingLimit; // Required. This contains the source of the charging limit and whether it is grid critical.
  4462. struct ChargingScheduleType chargingSchedule[1]; // Optional. Contains limits for the available power or current over time, as set by the external source.
  4463. };
  4464. struct NotifyCustomerInformation_20 {
  4465. unsigned char data[512]; // Required. (Part of) the requested data. No format specified in which the data is returned. Should be human readable.
  4466. unsigned char tbc; // Optional. ?�to be continued??indicator. Indicates whether another part of the monitoringData follows in an upcoming notifyMonitoringReportRequest message. Default value when omitted is false.
  4467. unsigned int seqNo; // Required. Sequence number of this message. First message starts at 0.
  4468. unsigned char generatedAt[28]; // Required. Timestamp of the moment this message was generated at the Charging Station.
  4469. unsigned int requestId; // Required. The Id of the request.
  4470. };
  4471. struct NotifyDisplayMessages_20 {
  4472. unsigned int requestId; // Required. The id of the GetDisplayMessagesRequest that requested this message.
  4473. unsigned char tbc; // Optional. "to be continued" indicator. Indicates whether another part of the report follows in an upcoming NotifyDisplayMessagesRequest message. Default value when omitted is false.
  4474. struct MessageInfoType messageInfo[10]; // Optional. The requested display message as configured in the Charging Station.
  4475. };
  4476. struct NotifyEVChargingNeeds_20 {
  4477. unsigned int maxScheduleTuples; // Optional. Contains the maximum schedule tuples the car supports per SASchedule (both Pmax and Tariff).
  4478. unsigned int evseId; // Required. Defines the EVSE and connector to which the EV is connected. EvseId may not be 0.
  4479. struct ChargingNeedsType chargingNeeds; // Required. The characteristics of the energy delivery required.
  4480. unsigned char Response_status[16]; // Required. Returns whether the CSMS has been able to process the message successfully. It does not imply that the evChargingNeeds can be met with the current charging profile.
  4481. };
  4482. struct NotifyEVChargingSchedule_20 {
  4483. unsigned char timeBase[28]; // Required. Periods contained in the charging profile are relative to this point in time.
  4484. unsigned int evseId; // Required. The charging schedule contained in this notification applies to an EVSE. EvseId must be > 0.
  4485. struct ChargingScheduleType chargingSchedule; // Required. Planned energy consumption of the EV over time. Always relative to timeBase.
  4486. unsigned char Response_status[16]; // Required. Returns whether the CSMS has been able to process the message successfully. It does not imply any approval of the charging schedule.
  4487. };
  4488. struct NotifyEvent_20 {
  4489. unsigned char generatedAt[28]; // Required. Timestamp of the moment this message was generated at the Charging Station.
  4490. unsigned char tbc; // Optional. ?�to be continued??indicator. Indicates whether another part of the report follows in an upcoming notifyEventRequest message. Default value when omitted is false.
  4491. unsigned int seqNo; // Required. Sequence number of this message. First message starts at 0.
  4492. struct EventDataType eventData[10]; // Required. List of EventData.
  4493. };
  4494. struct NotifyMonitoringReport_20 {
  4495. unsigned int requestId; // Required. The id of the GetMonitoringRequest that requested this report.
  4496. unsigned char tbc; // Optional. ?�to be continued??indicator.
  4497. unsigned int seqNo; // Required. Sequence number of this message. First message starts at 0.
  4498. unsigned char generatedAt[28]; // Required. Timestamp of the moment this message was generated at the Charging Station.
  4499. struct MonitoringDataType monitor[10]; // Optional. List of MonitoringData containing monitoring settings.
  4500. };
  4501. struct NotifyReport_20 {
  4502. unsigned int requestId; // Required. The id of the GetReportRequest or GetBaseReportRequest that requested this report
  4503. unsigned char generatedAt[28]; // Required. Timestamp of the moment this message was generated at the Charging Station.
  4504. unsigned char tbc; // Optional. ?�to be continued??indicator.
  4505. unsigned int seqNo; // Required. Sequence number of this message. First message starts at 0.
  4506. struct ReportDataType reportData[10]; // Optional. List of ReportData.
  4507. };
  4508. struct PublishFirmware_20 {
  4509. unsigned char location[512]; // Required. This contains a string containing a URI pointing to a location from which to retrieve the firmware.
  4510. unsigned char retries; // Optional. This specifies how many times Charging Station must try to download the firmware before giving up. If this field is not present, it is left to Charging Station to decide how many times it wants to retry.
  4511. unsigned char checksum[32]; // Required. The MD5 checksum over the entire firmware file as a hexadecimal string of length 32.
  4512. unsigned int requestId; // Required. The Id of the request.
  4513. unsigned int retryInterval; // Optional. The interval in seconds after which a retry may be attempted. If this field is not present, it is left to Charging Station to decide how long to wait between attempts.
  4514. unsigned char Response_status[16]; // Required. Indicates whether the request was accepted.
  4515. unsigned char guid[37]; // Save guid from server request
  4516. };
  4517. struct PublishFirmwareStatusNotification_20 {
  4518. unsigned char status[32]; // Required. This contains the progress status of the publishfirmware installation.
  4519. unsigned char location[10][512]; // Optional. Required if status is Published. Can be multiple URI’s, if the Local Controller supports e.g. HTTP, HTTPS, and FTP.
  4520. unsigned int requestId; // Optional. The request id that was provided in the PublishFirmwareRequest which triggered this action.
  4521. };
  4522. struct ReportChargingProfiles_20 {
  4523. unsigned int requestId; // Required. Id used to match the GetChargingProfilesRequest message with the resulting ReportChargingProfilesRequest messages
  4524. unsigned char chargingLimitSource[8]; // Required. Source that has installed this charging profile.
  4525. unsigned char tbc; // Optional. To Be Continued. Default value when omitted: false. false indicates that there are no further messages as part of this report.
  4526. unsigned int evseId; // Required. The evse to which the charging profile applies. If evseId = 0, the message contains an overall limit for the Charging Station.
  4527. struct ChargingProfileType chargingProfile[3]; // Required. The charging profile as configured in the Charging Station.
  4528. };
  4529. struct RequestStartTransaction_20 {
  4530. unsigned int evseId; // Optional. Number of the EVSE on which to start the transaction. EvseId SHALL be > 0
  4531. unsigned int remoteStartId; // Required. Id given by the server to this start request.
  4532. struct IdTokenType idToken; // Required. The identifier that the Charging Station must use to start a transaction.
  4533. struct ChargingProfileType chargingProfile; // Optional. Charging Profile to be used by the Charging Station for the requested transaction.
  4534. struct IdTokenType groupIdToken; // Optional. The group identifier that the Charging Station must use to start a transaction.
  4535. unsigned char Response_status[16]; // Required. Status indicating whether the Charging Station accepts the request to start a transaction.
  4536. unsigned char Response_transactionId[36]; // Optional. When the transaction was already started by the Charging Station before the RequestStartTransactionRequest was received, for example: cable plugged in first. This contains the transactionId of the already started transaction.
  4537. unsigned char guid[37]; // Save guid from server request
  4538. };
  4539. struct RequestStopTransaction_20 {
  4540. unsigned char transactionId[36]; // Required. The identifier of the transaction which the Charging Station is requested to stop.
  4541. unsigned char Response_status[16]; // Required. Status indicating whether Charging Station accepts the request to stop a transaction.
  4542. unsigned char guid[37]; // Save guid from server request
  4543. };
  4544. struct ReservationStatusUpdate_20 {
  4545. int reservationId; // Required. The ID of the reservation.
  4546. unsigned char reservationUpdateStatus[8]; // Required. The updated reservation status.
  4547. };
  4548. struct ReserveNow_20 {
  4549. unsigned int id; // Required. Id of reservation.
  4550. unsigned char expiryDateTime[28]; // Required. Date and time at which the reservation expires.
  4551. unsigned char connectorType[16]; // Optional. This field specifies the connector type.
  4552. unsigned int evseId; // Optional. This contains ID of the evse to be reserved.
  4553. struct IdTokenType idToken; // Required. The identifier for which the reservation is made.
  4554. struct IdTokenType groupIdToken; // Optional. The group identifier for which the reservation is made.
  4555. unsigned char Response_status[16]; // Required. This indicates the success or failure of the reservation.
  4556. unsigned char guid[37]; // Save guid from server request
  4557. };
  4558. struct Reset_20 {
  4559. unsigned char type[16]; // Required. This contains the type of reset that the Charging Station or EVSE should perform.
  4560. unsigned int evseId; // Optional. This contains the ID of a specific EVSE that needs to be reset, instead of the entire Charging Station.
  4561. unsigned char Response_status[16]; // Required. This indicates whether the Charging Station is able to perform the reset.
  4562. unsigned char guid[37]; // Save guid from server request
  4563. };
  4564. struct SecurityEventNotification_20 {
  4565. unsigned char type[50]; // Required. Type of the security event. This value should be taken from the Security events list.
  4566. unsigned char timestamp[28]; // Required. Date and time at which the event occurred.
  4567. unsigned char techinfo[255]; // Optional. Additional information about the occurred security event.
  4568. };
  4569. struct SendLocalList_20 {
  4570. unsigned int versionNumber; // Required. In case of a full update this is the versio number of the full list. In case of a differential update it i the version number of the list after the update has bee applied.
  4571. unsigned char updateType[32]; // Required. This contains the type of update (full or differential) of this request.
  4572. struct AuthorizationData localAuthorizationList[500]; // Optional. This contains the Local Authorization List entries.
  4573. unsigned char Response_status[16]; // Required. This indicates whether the Charging Station has successfully received and applied the update of the Local Authorization List.
  4574. unsigned char guid[37]; // Save guid from server request
  4575. };
  4576. struct SetChargingProfile_20 {
  4577. unsigned int evseId; // Required. The EVSE to which the charging profile applies. If evseId = 0, the message contains an overall limit for the Charging Station.
  4578. struct ChargingProfileType chargingProfile; // Required. The charging profile to be set at the Charging Station.
  4579. unsigned char Response_status[16]; // Required. Returns whether the Charging Station has been able to process the message successfully. This does not guarantee the schedule will be followed to the letter. There might be other constraints the Charging Station may need to take into account.
  4580. unsigned char guid[37]; // Save guid from server request
  4581. };
  4582. struct SetDisplayMessage_20 {
  4583. struct MessageInfoType message; // Required. Message to be configured in the Charging Station, to be displayed.
  4584. unsigned char Response_status[32]; // Required. This indicates whether the Charging Station is able to display the message.
  4585. unsigned char guid[37]; // Save guid from server request
  4586. };
  4587. struct SetMonitoringBase_20 {
  4588. unsigned char monitoringBase[16]; // Required. Specify which monitoring base will be set
  4589. unsigned char Response_status[16]; // Required. Indicates whether the Charging Station was able to accept the request.
  4590. unsigned char guid[37]; // Save guid from server request
  4591. };
  4592. struct SetMonitoringLevel_20 {
  4593. unsigned int severity; // Required. The Charging Station SHALL only report events with a severity number lower than or equal to this severity.
  4594. unsigned char Response_status[16]; // Required. Indicates whether the Charging Station was able to accept the request.
  4595. unsigned char guid[37]; // Save guid from server request
  4596. };
  4597. struct SetNetworkProfile_20 {
  4598. unsigned int configurationSlot; // Required. Slot in which the configuration should be stored.
  4599. struct NetworkConnectionProfileType connectionData; // Required. Connection details.
  4600. unsigned char Response_status[16]; // Required. Result of operation.
  4601. unsigned char guid[37]; // Save guid from server request
  4602. };
  4603. struct SetVariableMonitoring_20 {
  4604. struct SetMonitoringDataType setMonitoringData[10]; // Required. List of MonitoringData containing monitoring settings.
  4605. struct SetMonitoringResultType Response_setMonitoringResult[10];// Required. List of result statuses per monitor.
  4606. unsigned char guid[37]; // Save guid from server request
  4607. };
  4608. struct SetVariables_20 {
  4609. struct SetVariableDataType setVariableData[CtrlrVariable_CNT]; // Required. List of Component-Variable pairs and attribute values to set.
  4610. struct SetVariableResultType Response_setVariableResult[CtrlrVariable_CNT]; // Required. List of result statuses per Component-Variable.
  4611. unsigned char guid[37]; // Save guid from server request
  4612. };
  4613. struct SignCertificate_20 {
  4614. unsigned char csr[5500]; // Required. The Charging Station SHALL send the public key in form of a Certificate Signing Request (CSR) as described in RFC 2986 [22] using the SignCertificateRequest message.
  4615. unsigned char certificateType[32]; // Optional. Indicates the type of certificate that is to be signed. When omitted the certificate is to be used for both the 15118 connection (if implemented) and the Charging Station to CSMS connection.
  4616. unsigned char Response_status[16]; // Required. Specifies whether the CSMS can process the request.
  4617. };
  4618. struct StatusNotification_20 {
  4619. unsigned char timestamp[28]; // Required. The time for which the status is reported. If absent time of receipt of the message will be assumed.
  4620. unsigned char connectorStatus[16]; // Required. This contains the current status of the Connector.
  4621. unsigned int evseId; // Required. The id of the EVSE to which the connector belongs for which the the status is reported.
  4622. unsigned char connectorId; // Required. The id of the connector within the EVSE for which the status is reported.
  4623. };
  4624. struct TransactionEvent_20 {
  4625. unsigned char eventType[16]; // Required. This contains the type of this event. The first TransactionEvent of a transaction SHALL contain: "Started" The last TransactionEvent of a transaction SHALL contain: "Ended" All others SHALL contain: "Updated"
  4626. unsigned char timestamp[28]; // Required. The date and time at which this transaction event occurred.
  4627. unsigned char triggerReason[32]; // Required. Reason the Charging Station sends this message to the CSMS
  4628. unsigned int seqNo; // Required. Incremental sequence number, helps with determining if all messages of a transaction have been received.
  4629. unsigned char offline; // Optional. Indication that this transaction event happened when the Charging Station was offline. Default = false, meaning: the event occurred when the Charging Station was online.
  4630. unsigned char numberOfPhasesUsed; // Optional. If the Charging Station is able to report the number of phases used, then it SHALL provide it. When omitted the CSMS may be able to determine the number of phases used via device management.
  4631. float cableMaxCurrent; // Optional. The maximum current of the connected cable in Ampere (A).
  4632. int reservationId; // Optional. This contains the Id of the reservation that terminates as a result of this transaction.
  4633. struct TransactionType transactionInfo; // Required. Contains transaction specific information.
  4634. struct IdTokenType idToken; // Optional. This contains the identifier for which a transaction has to be/was started.
  4635. struct EVSEType evse; // Optional. This identifies which evse (and connector) of the Charging Station is used.
  4636. struct MeterValueType meterValue[1]; // Optional. This contains the relevant meter values.
  4637. float Response_totalCost; // Optional. SHALL only be sent when charging has ended. Final total cost of this transaction, including taxes.
  4638. int Response_chargingPriority; // Optional. Priority from a business point of view. Default priority is 0,
  4639. struct IdTokenInfoType Response_idTokenInfo; // Optional. This contains information about authorization status, expiry and group id. Is required when the transactionEventRequest contained an idToken.
  4640. struct MessageContentType Response_updatedPersonalMessage; // Optional. This can contain updated personal message that can be shown to the EV Driver. This can be used to provide updated tariff information
  4641. };
  4642. struct TriggerMessage_20 {
  4643. unsigned char requestedMessage[32]; // Required. Type of message to be triggered.
  4644. struct EVSEType evse; // Optional. Can be used to specifiy the EVSE and Connector if required for the message which needs to be sent.
  4645. unsigned char Response_status[16]; // Required. Indicates whether the Charging Station will send the requested notification or not.
  4646. unsigned char guid[37]; // Save guid from server request
  4647. };
  4648. struct UnlockConnector_20 {
  4649. unsigned int evseId; // Required. This contains the identifier of the EVSE for which a connector needs to be unlocked.
  4650. unsigned char connectorId; // Required. This contains the identifier of the connector that needs to be unlocked.
  4651. unsigned char Response_status[32]; // Required. This indicates whether the Charging Station has unlocked the connector.
  4652. unsigned char guid[37]; // Save guid from server request
  4653. };
  4654. struct UnpublishFirmware_20 {
  4655. unsigned char checksum[32]; // Required. The MD5 checksum over the entire firmware file as a hexadecimal string of length 32.
  4656. unsigned char Response_status[16]; // Required. Indicates whether the Local Controller succeeded in unpublishing the firmware.
  4657. unsigned char guid[37]; // Save guid from server request
  4658. };
  4659. struct UpdateFirmware_20 {
  4660. unsigned char retries; // Optional. This specifies how many times Charging Station must try to download the firmware before giving up. If this field is not present, it is left to Charging Station to decide how many times it wants to retry.
  4661. unsigned int retryInterval; // Optional. The interval in seconds after which a retry may be attempted. If this field is not present, it is left to Charging Station to decide how long to wait between attempts.
  4662. unsigned int requestId; // Required. The Id of this request
  4663. struct FirmwareType firmware; // Required. Specifies the firmware to be updated on the Charging Station.
  4664. unsigned char Response_status[32]; // Required. This field indicates whether the Charging Station was able to accept the request.
  4665. unsigned char guid[37]; // Save guid from server request
  4666. };
  4667. struct OCPP20Data {
  4668. 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"
  4669. unsigned char ChargeBoxId[128];
  4670. unsigned char OcppConnStatus; //0: disconnected, 1: connected
  4671. unsigned int Timeout_Secs;
  4672. unsigned short Ping_Pong_Interval;
  4673. struct ReportDataType ControllerComponentVariable[CtrlrVariable_CNT];
  4674. union {
  4675. //Operations Initiated by Charge Point
  4676. unsigned char CpMsgValue[CONNECTOR_QUANTITY];
  4677. struct {
  4678. unsigned char DataTransferReq: 1;
  4679. unsigned char DataTransferConf: 1;
  4680. unsigned char ReservationStatusUpdateReq : 1;
  4681. unsigned char ReservationStatusUpdateConf : 1;
  4682. unsigned char TransactionEventReq : 1;
  4683. unsigned char TransactionEventConf : 1;
  4684. unsigned char : 2; //bit 6,7 , reserved
  4685. } bits[CONNECTOR_QUANTITY];
  4686. } CpMsg;
  4687. union {
  4688. //Operations Initiated by Sequence Point
  4689. unsigned char SpMsgValue[4];
  4690. struct {
  4691. unsigned char BootNotificationReq : 1; //bit 0,
  4692. unsigned char BootNotificationConf : 1; //bit 1,
  4693. unsigned char AuthorizeReq : 1; //bit 2,
  4694. unsigned char AuthorizeConf : 1; //bit 3,
  4695. unsigned char FirmwareStatusNotificationReq : 1; //bit 6,
  4696. unsigned char FirmwareStatusNotificationConf : 1; //bit 7,
  4697. unsigned char Get15118EVCertificateReq : 1;
  4698. unsigned char Get15118EVCertificateConf : 1;
  4699. unsigned char GetCertificateStatusReq : 1;
  4700. unsigned char GetCertificateStatusConf : 1;
  4701. unsigned char LogStatusNotificationReq : 1;
  4702. unsigned char LogStatusNotificationConf : 1;
  4703. unsigned char NotifyChargingLimitReq : 1;
  4704. unsigned char NotifyChargingLimitConf : 1;
  4705. unsigned char NotifyDisplayMessagesReq : 1;
  4706. unsigned char NotifyDisplayMessagesConf : 1;
  4707. unsigned char NotifyEVChargingNeedsReq : 1;
  4708. unsigned char NotifyEVChargingNeedsConf : 1;
  4709. unsigned char NotifyEVChargingScheduleReq : 1;
  4710. unsigned char NotifyEVChargingScheduleConf : 1;
  4711. unsigned char NotifyEventReq : 1;
  4712. unsigned char NotifyEventConf : 1;
  4713. unsigned char NotifyMonitoringReportReq : 1;
  4714. unsigned char NotifyMonitoringReportConf : 1;
  4715. unsigned char NotifyReportReq : 1;
  4716. unsigned char NotifyReportConf : 1;
  4717. unsigned char ReportChargingProfilesReq : 1;
  4718. unsigned char ReportChargingProfilesConf : 1;
  4719. unsigned char SecurityEventNotificationReq : 1;
  4720. unsigned char SecurityEventNotificationConf : 1;
  4721. unsigned char SignCertificateReq : 1;
  4722. unsigned char SignCertificateConf : 1;
  4723. } bits;
  4724. } SpMsg;
  4725. union {
  4726. //Operations Initiated by Central System
  4727. unsigned char CsMsgValue[3 * (CONNECTOR_QUANTITY)];
  4728. struct {
  4729. unsigned char CancelReservationReq : 1; //bit 0,
  4730. unsigned char CancelReservationConf : 1; //bit 1,
  4731. unsigned char ChangeAvailabilityReq : 1; //bit 2,
  4732. unsigned char ChangeAvailabilityConf : 1; //bit 3,
  4733. unsigned char ClearChargingProfileReq : 1; //bit 0,
  4734. unsigned char ClearChargingProfileConf : 1; //bit 1,
  4735. unsigned char DataTransferReq : 1; //bit 2,
  4736. unsigned char DataTransferConf : 1; //bit 3,
  4737. unsigned char PublishFirmwareStatusNotificationReq : 1;
  4738. unsigned char PublishFirmwareStatusNotificationConf : 1;
  4739. unsigned char RequestStartTransactionReq : 1;
  4740. unsigned char RequestStartTransactionConf : 1;
  4741. unsigned char RequestStopTransactionReq : 1;
  4742. unsigned char RequestStopTransactionConf : 1;
  4743. unsigned char ReserveNowReq : 1; //bit 4,
  4744. unsigned char ReserveNowConf : 1; //bit 5,
  4745. unsigned char TriggerMessageReq : 1; //bit 0,
  4746. unsigned char TriggerMessageConf : 1; //bit 1,
  4747. unsigned char UnlockConnectorReq : 1; //bit 2,
  4748. unsigned char UnlockConnectorConf : 1; //bit 3,
  4749. unsigned char : 4; //bit 6,7 , reserved
  4750. } bits[CONNECTOR_QUANTITY];
  4751. } CsMsg;
  4752. union {
  4753. //Operations Initiated by Main System
  4754. unsigned char MsMsgValue[8];
  4755. struct {
  4756. //CsMsgValue[0]
  4757. unsigned char CertificateSignedReq : 1;
  4758. unsigned char CertificateSignedConf : 1;
  4759. unsigned char ClearCacheReq : 1; //bit 2,
  4760. unsigned char ClearCacheConf : 1; //bit 3,
  4761. unsigned char ClearDisplayMessageReq : 1;
  4762. unsigned char ClearDisplayMessageConf : 1;
  4763. unsigned char ClearedChargingLimitReq : 1;
  4764. unsigned char ClearedChargingLimitConf : 1;
  4765. unsigned char ClearVariableMonitoringReq : 1;
  4766. unsigned char ClearVariableMonitoringConf : 1;
  4767. unsigned char CostUpdatedReq : 1;
  4768. unsigned char CostUpdatedConf : 1;
  4769. unsigned char CustomerInformationReq : 1;
  4770. unsigned char CustomerInformationConf : 1;
  4771. unsigned char DeleteCertificateReq : 1;
  4772. unsigned char DeleteCertificateConf : 1;
  4773. unsigned char GetBaseReportReq : 1;
  4774. unsigned char GetBaseReportConf : 1;
  4775. unsigned char GetChargingProfilesReq : 1;
  4776. unsigned char GetChargingProfilesConf : 1;
  4777. unsigned char GetCompositeScheduleReq : 1; //bit 4,
  4778. unsigned char GetCompositeScheduleConf : 1; //bit 5,
  4779. unsigned char GetDisplayMessagesReq : 1;
  4780. unsigned char GetDisplayMessagesConf : 1;
  4781. unsigned char GetInstalledCertificateIdsReq : 1;
  4782. unsigned char GetInstalledCertificateIdsConf : 1;
  4783. unsigned char GetLocalListVersionReq : 1; //bit 2,
  4784. unsigned char GetLocalListVersionConf : 1; //bit 3,
  4785. unsigned char GetLogReq : 1;
  4786. unsigned char GetLogConf : 1;
  4787. unsigned char GetMonitoringReportReq : 1;
  4788. unsigned char GetMonitoringReportConf : 1;
  4789. unsigned char GetReportReq : 1;
  4790. unsigned char GetReportConf : 1;
  4791. unsigned char GetTransactionStatusReq : 1;
  4792. unsigned char GetTransactionStatusConf : 1;
  4793. unsigned char GetVariablesReq : 1;
  4794. unsigned char GetVariablesConf : 1;
  4795. unsigned char InstallCertificateReq : 1;
  4796. unsigned char InstallCertificateConf : 1;
  4797. unsigned char PublishFirmwareReq : 1;
  4798. unsigned char PublishFirmwareConf : 1;
  4799. unsigned char ResetReq : 1; //bit 4,
  4800. unsigned char ResetConf : 1; //bit 5,
  4801. unsigned char SendLocalListReq : 1; //bit 6,
  4802. unsigned char SendLocalListConf : 1; //bit 7,
  4803. unsigned char SetChargingProfileReq : 1; //bit 6,
  4804. unsigned char SetChargingProfileConf : 1; //bit 7,
  4805. unsigned char SetDisplayMessageReq : 1;
  4806. unsigned char SetDisplayMessageConf : 1;
  4807. unsigned char SetMonitoringBaseReq : 1;
  4808. unsigned char SetMonitoringBaseConf : 1;
  4809. unsigned char SetMonitoringLevelReq : 1;
  4810. unsigned char SetMonitoringLevelConf : 1;
  4811. unsigned char SetNetworkProfileReq : 1;
  4812. unsigned char SetNetworkProfileConf : 1;
  4813. unsigned char SetVariableMonitoringReq : 1;
  4814. unsigned char SetVariableMonitoringConf : 1;
  4815. unsigned char SetVariablesReq : 1;
  4816. unsigned char SetVariablesConf : 1;
  4817. unsigned char UnpublishFirmwareReq : 1;
  4818. unsigned char UnpublishFirmwareConf : 1;
  4819. unsigned char UpdateFirmwareReq : 1; //bit 6,
  4820. unsigned char UpdateFirmwareConf : 1; //bit 7,
  4821. } bits;
  4822. } MsMsg;
  4823. union {
  4824. //Operations triggered by CSU
  4825. unsigned char CSUMsgValue[CONNECTOR_QUANTITY];
  4826. struct {
  4827. //CSUMsgValue[0]
  4828. unsigned char ChargingProfileReq: 1; //bit 0,
  4829. unsigned char ChargingProfileConf: 1; //bit 0,
  4830. unsigned char : 6; //bit 1,2,3,4,5,6,7 , reserved
  4831. } bits[CONNECTOR_QUANTITY];
  4832. } CSUMsg;
  4833. struct Authorize_20 Authorize;
  4834. struct BootNotification_20 BootNotification;
  4835. struct CancelReservation_20 CancelReservation[CONNECTOR_QUANTITY];
  4836. struct CertificateSigned_20 CertificateSigned;
  4837. struct ChangeAvailability_20 ChangeAvailability[CONNECTOR_QUANTITY];
  4838. struct ClearCache_20 ClearCache;
  4839. struct ClearChargingProfile_20 ClearChargingProfile[CONNECTOR_QUANTITY];
  4840. struct ClearDisplayMessage_20 ClearDisplayMessage;
  4841. struct ClearedChargingLimit_20 ClearedChargingLimit[CONNECTOR_QUANTITY];
  4842. struct ClearVariableMonitoring_20 ClearVariableMonitoring;
  4843. struct CostUpdated_20 CostUpdated;
  4844. struct CustomerInformation_20 CustomerInformation;
  4845. struct DataTransfer_20 DataTransfer[CONNECTOR_QUANTITY];
  4846. struct DeleteCertificate_20 DeleteCertificate;
  4847. struct FirmwareStatusNotification_20 FirmwareStatusNotification;
  4848. struct Get15118EVCertificate_20 Get15118EVCertificate;
  4849. struct GetBaseReport_20 GetBaseReport;
  4850. struct GetCertificateStatus_20 GetCertificateStatus;
  4851. struct GetChargingProfiles_20 GetChargingProfiles[CONNECTOR_QUANTITY];
  4852. struct GetCompositeSchedule_20 GetCompositeSchedule[CONNECTOR_QUANTITY];
  4853. struct GetDisplayMessages_20 GetDisplayMessages;
  4854. struct GetInstalledCertificateIds_20 GetInstalledCertificateIds;
  4855. struct GetLocalListVersion_20 GetLocalListVersion;
  4856. struct GetLog_20 GetLog;
  4857. struct GetMonitoringReport_20 GetMonitoringReport;
  4858. struct GetReport_20 GetReport;
  4859. struct GetTransactionStatus_20 GetTransactionStatus[CONNECTOR_QUANTITY];
  4860. struct GetVariables_20 GetVariables;
  4861. struct Heartbeat_20 Heartbeat;
  4862. struct InstallCertificate_20 InstallCertificate;
  4863. struct LogStatusNotification_20 LogStatusNotification;
  4864. struct MeterValues_20 MeterValues[CONNECTOR_QUANTITY];
  4865. struct NotifyChargingLimit_20 NotifyChargingLimit[CONNECTOR_QUANTITY];
  4866. struct NotifyCustomerInformation_20 NotifyCustomerInformation;
  4867. struct NotifyDisplayMessages_20 NotifyDisplayMessages;
  4868. struct NotifyEVChargingNeeds_20 NotifyEVChargingNeeds[CONNECTOR_QUANTITY];
  4869. struct NotifyEVChargingSchedule_20 NotifyEVChargingSchedule[CONNECTOR_QUANTITY];
  4870. struct NotifyEvent_20 NotifyEvent;
  4871. struct NotifyMonitoringReport_20 NotifyMonitoringReport;
  4872. struct NotifyReport_20 NotifyReport;
  4873. struct PublishFirmware_20 PublishFirmware;
  4874. struct PublishFirmwareStatusNotification_20 PublishFirmwareStatusNotificatio;
  4875. struct ReportChargingProfiles_20 ReportChargingProfiles[CONNECTOR_QUANTITY];
  4876. struct RequestStartTransaction_20 RequestStartTransaction[CONNECTOR_QUANTITY];
  4877. struct RequestStopTransaction_20 RequestStopTransaction[CONNECTOR_QUANTITY];
  4878. struct ReservationStatusUpdate_20 ReservationStatusUpdate[CONNECTOR_QUANTITY];
  4879. struct ReserveNow_20 ReserveNow[CONNECTOR_QUANTITY];
  4880. struct Reset_20 Reset;
  4881. struct SecurityEventNotification_20 SecurityEventNotification;
  4882. struct SendLocalList_20 SendLocalList;
  4883. struct SetChargingProfile_20 SetChargingProfile[CONNECTOR_QUANTITY];
  4884. struct SetDisplayMessage_20 SetDisplayMessage;
  4885. struct SetMonitoringBase_20 SetMonitoringBase;
  4886. struct SetMonitoringLevel_20 SetMonitoringLevel;
  4887. struct SetNetworkProfile_20 SetNetworkProfile;
  4888. struct SetVariableMonitoring_20 SetVariableMonitoring;
  4889. struct SetVariables_20 SetVariables;
  4890. struct SignCertificate_20 SignCertificate;
  4891. struct StatusNotification_20 StatusNotification[CONNECTOR_QUANTITY];
  4892. struct TransactionEvent_20 TransactionEvent[CONNECTOR_QUANTITY];
  4893. struct TriggerMessage_20 TriggerMessage;
  4894. struct UnlockConnector_20 UnlockConnector[CONNECTOR_QUANTITY];
  4895. struct UnpublishFirmware_20 UnpublishFirmware;
  4896. struct UpdateFirmware_20 UpdateFirmware;
  4897. struct ChargingProfileType SmartChargingProfile[CONNECTOR_QUANTITY];
  4898. };
  4899. #endif // DEFINE_H_