define.h 282 KB

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