define.h 255 KB

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