123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238 |
- #ifndef DEFINE_H_
- #define DEFINE_H_
- /**************************************************************************************/
- /*********************************NAND Flash mapping *****************************/
- /**************************************************************************************/
- /*
- sector size 512 KiB
- Page size 4096 b
- OOB size 224 b
- Erase size 524288 b
- -------------------------------------------------------------------------------------------------------------------------------
- Segment Physical address Size
- -------------------------------------------------------------------------------------------------------------------------------
- MLO 0x00000000-0x0007FFFF 512 KB
- Primary u-boot 0x00080000-0x0017FFFF 1 MB
- Environment 0x00180000-0x001FFFFF 512 KB
- Secondary u-boot 0x00200000-0x002FFFFF 1 MB
- Primary dtb 0x00300000-0x0037FFFF 512 KB
- Secondary dtb 0x00380000-0x003FFFFF 512 KB
- Primary kernel 0x00400000-0x00DFFFFF 10 MB
- Secondary Kernel 0x00E00000-0x017FFFFF 10 MB
- Primary root file system 0x03000000-0x05FFFFFF 48 MB
- Secondary root file system 0x06000000-0x08FFFFFF 48 MB
- Primary user configuration 0x09000000-0x095FFFFF 6 MB
- Secondary user configuration 0x09600000-0x09BFFFFF 6 MB
- Factory default configuration 0x09C00000-0x0A1FFFFF 6 MB
- Storage 0x0A200000-0x7FFFFFFF 1886 MB
- */
- /**************************************************************************************/
- /*********************************System Limitation**********************************/
- /**************************************************************************************/
- /*Rating outout power and current*/
- #define RATED_POWER 25 //kW
- #define RATED_CURRENT 350 //Amp, it depend on the capacity of charging connector
- /*relevant to Quantity */
- #ifdef AWRegular
- #define MAX_PSU_QUANTITY 62
- #define CHAdeMO_QUANTITY 1
- #define CCS_QUANTITY 1
- #define GB_QUANTITY 0
- #define AC_QUANTITY 1
- #define PSU_QUANTITY 2
- #define ONE_CONNECTOR_USE 0
- #elif BYTONGB
- #define MAX_PSU_QUANTITY 62
- #define CHAdeMO_QUANTITY 1
- #define CCS_QUANTITY 1
- #define GB_QUANTITY 0
- #define AC_QUANTITY 1
- #define PSU_QUANTITY 2
- #define ONE_CONNECTOR_USE 0
- #elif DW30
- #define MAX_PSU_QUANTITY 62
- #define CHAdeMO_QUANTITY 0
- #define CCS_QUANTITY 1
- #define GB_QUANTITY 0
- #define AC_QUANTITY 0
- #define PSU_QUANTITY 2
- #define ONE_CONNECTOR_USE 0
- #elif DM30
- #define MAX_PSU_QUANTITY 62
- #define CHAdeMO_QUANTITY 0
- #define CCS_QUANTITY 1
- #define GB_QUANTITY 0
- #define AC_QUANTITY 0
- #define PSU_QUANTITY 2
- #define ONE_CONNECTOR_USE 0
- #elif DS60120
- #define MAX_PSU_QUANTITY 62
- #define CHAdeMO_QUANTITY 1
- #define CCS_QUANTITY 1
- #define GB_QUANTITY 0
- #define AC_QUANTITY 0
- #define PSU_QUANTITY 2
- #define ONE_CONNECTOR_USE 0
- #elif DS60210
- #define MAX_PSU_QUANTITY 62
- #define CHAdeMO_QUANTITY 1
- #define CCS_QUANTITY 1
- #define GB_QUANTITY 0
- #define AC_QUANTITY 0
- #define PSU_QUANTITY 2
- #define ONE_CONNECTOR_USE 0
- #elif PlugIt360
- #define MAX_PSU_QUANTITY 62
- #define CHAdeMO_QUANTITY 0
- #define CCS_QUANTITY 1
- #define GB_QUANTITY 0
- #define AC_QUANTITY 0
- #define PSU_QUANTITY 2
- #define ONE_CONNECTOR_USE 0
- #else
- #define MAX_PSU_QUANTITY 62
- #define CHAdeMO_QUANTITY 1
- #define CCS_QUANTITY 1
- #define GB_QUANTITY 0
- #define AC_QUANTITY 1
- #define PSU_QUANTITY 2
- #define ONE_CONNECTOR_USE 0
- #endif
- /*SystemLog message*/
- #define SystemLogMessage //for debug info save to log file
- #define ConsloePrintLog //for debug info print to console
- /**************************************************************************************/
- /*****************************share memory key information*****************************/
- /**************************************************************************************/
- #define ShmSysConfigAndInfoKey 1001
- #define ShmPsuKey 1002
- #define ShmCHAdeMOCommKey 1003
- #define ShmCcsCommKey 1004
- #define ShmStatusCodeKey 1005
- #define ShmPrimaryMcuKey 1006
- #define ShmFanBdKey 1007
- #define ShmRelayBdKey 1008
- #define ShmOcppModuleKey 1009
- #define ShmGBTCommKey 1010
- #define ShmLedBdKey 1011
- #define ShmATEKey 1020
- /**************************************************************************************/
- /****************** Share memory configuration value constant define ******************/
- /**************************************************************************************/
- enum SYSTEM_STATUS
- {
- SYS_MODE_BOOTING = 0,
- SYS_MODE_IDLE = 1,
- SYS_MODE_AUTHORIZING = 2,
- SYS_MODE_MODE_REASSIGN_CHECK = 3,
- SYS_MODE_REASSIGN = 4,
- SYS_MODE_PREPARING = 5,
- SYS_MODE_PREPARE_FOR_EV = 6,
- SYS_MODE_PREPARE_FOR_EVSE = 7,
- SYS_MODE_CHARGING = 8,
- SYS_MODE_TERMINATING = 9,
- SYS_MODE_COMPLETE = 10,
- SYS_MODE_ALARM = 11,
- SYS_MODE_FAULT = 12,
- SYS_MODE_RESERVATION = 13,
- SYS_MODE_BOOKING = 14,
- SYS_MODE_MAINTAIN = 15,
- SYS_MODE_DEBUG = 16,
- SYS_MODE_CCS_PRECHARGE_STEP0 = 17,
- SYS_MODE_CCS_PRECHARGE_STEP1 = 18,
- SYS_MODE_UPDATE = 19
- };
- enum AUTHORIZATION_MODE
- {
- AUTH_MODE_ENABLE = 0,
- AUTH_MODE_DISABLE = 1
- };
- enum LCD_LANGUAGE
- {
- LCD_LANG_ENGLISH = 0,
- LCD_LANG_CHT = 1,
- LCD_LANG_CHS = 2,
- LCD_LANG_JAPANESE = 3,
- LCD_LANG_FRENCH = 4,
- LCD_LANG_ITALIAN = 5,
- LCD_LANG_SPANISH = 6,
- LCD_LANG_GERMAN = 7,
- LCD_LANG_DUTCH = 8,
- LCD_LANG_NORWEGIAN = 9,
- LCD_LANG_FINNISH = 10,
- LCD_LANG_SWEDISH = 11,
- LCD_LANG_SLOVENIAN = 12,
- LCD_LANG_THAI = 13,
- };
- enum RFID_ENDIAN
- {
- RFID_ENDIAN_LITTLE = 0,
- RFID_ENDIAN_BIG = 1
- };
- enum PHASE_LOSS_POLICY
- {
- LOSS_POLICY_CHARGING = 0,
- LOSS_POLICY_STOP = 1
- };
- enum CCS_AUTHPRIZATION_MODE
- {
- CCS_AUTH_MODE_EIM = 0,
- CCS_AUTH_MODE_MIXED = 1
- };
- enum OFF_LINE_POLICY
- {
- OFF_POLICY_LOCALLIST = 0,
- OFF_POLICY_PH_RFID = 1,
- OFF_POLICY_FREE = 2,
- OFF_POLICY_NOCHARGE = 3
- };
- /*Configuration enum*/
- enum CoreProfile {
- AllowOfflineTxForUnknownId=0,
- AuthorizationCacheEnabled,
- AuthorizeRemoteTxRequests,
- BlinkRepeat,
- ClockAlignedDataInterval,
- ConnectionTimeOut,
- GetConfigurationMaxKeys,
- HeartbeatInterval,
- LightIntensity,
- LocalAuthorizeOffline,
- LocalPreAuthorize,
- MaxEnergyOnInvalidId,
- MeterValuesAlignedData,
- MeterValuesAlignedDataMaxLength,
- MeterValuesSampledData,
- MeterValuesSampledDataMaxLength,
- MeterValueSampleInterval,
- MinimumStatusDuration,
- NumberOfConnectors,
- ResetRetries,
- ConnectorPhaseRotation,
- ConnectorPhaseRotationMaxLength,
- StopTransactionOnEVSideDisconnect,
- StopTransactionOnInvalidId,
- StopTxnAlignedData,
- StopTxnAlignedDataMaxLength,
- StopTxnSampledData,
- StopTxnSampledDataMaxLength,
- SupportedFeatureProfiles,
- SupportedFeatureProfilesMaxLength,
- TransactionMessageAttempts,
- TransactionMessageRetryInterval,
- UnlockConnectorOnEVSideDisconnect,
- WebSocketPingInterval,
- QueueOffLineStartTransactionMessage,
- _CoreProfile_CNT
- };
- /**************************************************************************************/
- /****structure SysConfigData => shall store the data to NAND flash****************/
- /****structure SysInfoData => shall NOT store the data to NAND flash***************/
- /****according to System Configuration and Information Table.xlsx Rev.0.2 *******/
- /**************************************************************************************/
- struct NoneUse
- {
- unsigned char unknown; // None use struct
- };
- struct EthConfigData
- {
- unsigned char EthDhcpClient; //0: enable,1: disable
- unsigned char EthMacAddress[18]; //default: Null
- unsigned char EthIpAddress[16]; //Eth0 default:192.168.0.10 ,Eth1 default:192.168.1.10
- unsigned char EthSubmaskAddress[16]; //Eth0 default:255.255.255.0 ,Eth1 default:255.255.255.0
- unsigned char EthGatewayAddress[16]; //Eth0 default:192.168.0.254 ,Eth1 default:192.168.1.254
- };
- struct WifiConfigData
- {
- unsigned char WifiMode; //0: disable, 1: Infrastructure client, 2: Infrastructure server, 3: Ad-Hoc
- unsigned char WifiSsid[256]; //default: Null
- unsigned char WifiPassword[256]; //default: Null
- int WifiRssi; //dbm
- unsigned char WifiDhcpServer; //0: enable, 1: disable
- unsigned char WifiDhcpClient; //0: enable, 1: disable
- unsigned char WifiMacAddress[18]; //default: Null
- unsigned char WifiIpAddress[16]; //default:192.168.2.10
- unsigned char WifiSubmaskAddress[16]; //default:255.255.255.0
- unsigned char WifiGatewayAddress[16]; //default:192.168.2.254
- unsigned char WifiNetworkConn; //0: disconnected, 1: connected
- };
- struct TeleConfigData
- {
- unsigned char TelcomModelName[64]; //default: Null
- unsigned char TelcomSoftwareVer[64]; //default: Null
- unsigned char TelcomApn[256]; //default: Null
- int TelcomRssi; //dbm
- unsigned char TelcomChapPapId[256]; //default: Null
- unsigned char TelcomChapPapPwd[256]; //default: Null
- unsigned char TelcomModemImei[16]; //default: Null
- unsigned char TelcomSimImsi[16]; //default: Null
- unsigned char TelcomSimIccid[22]; //default: Null
- unsigned char TelcomSimStatus; //0: no SIM card is found, 1: valid SIM card, 2: invalid SIM card
- unsigned char TelcomModemMode; //0: No services, 1: CDMA, 2: GSM/GPRS, 3: WCDMA, 4: GSM/WCDMA, 5: TD_SCDMA mode, 6: Unknow
- unsigned char TelcomIpAddress[16]; //default: Null
- unsigned char TelcomNetworkConn; //0: disconnected, 1: connected
- };
- struct BtConfigData
- {
- unsigned char LoginCentralID[64]; //default: Null
- unsigned char isLogin; //0: Central device non-login 1: Central device login
- unsigned char isRequestStart; //0: no action 1: request start charging
- unsigned char isRequestStop; //0: no action 1: request stop charging
- };
- struct BillingConfigData
- {
- unsigned char isBilling; //0:not for business 1:for business
- unsigned char Currency; //
- float Fee[24]; //fee for 24 hours
- float Cur_fee; // display current fee
- };
- struct LED
- {
- unsigned char Intensity; // LED bar intensity 0: Darkest 1: Medium 2: Brightest
- unsigned char Red[3]; // Red color 0~100, element 0: IDLE 1: CHARGING 2: FAULT
- unsigned char Green[3]; // Green color 0~100, element 0: IDLE 1: CHARGING 2: FAULT
- unsigned char Blue[3]; // Blue color 0~100, element 0: IDLE 1: CHARGING 2: FAULT
- };
- struct SysConfigData
- {
- /**************System***************/
- unsigned char CsuBootLoadFwRev[32]; //CSU board bootloader firmware version
- unsigned char ModelName[64]; //charger model name
- unsigned char AcModelName[64]; //for third gun (DC + AC)
- unsigned char SerialNumber[64]; //charger system serial number
- unsigned char SystemId[128]; //charger system ID
- unsigned char SystemDateTime[32]; //charger system date and time
- unsigned char AcPhaseCount; //AC EVSE power phase quantity, 1: One phase 3: Three phase
- unsigned char AuthorisationMode; //0: enable, 1: disable
- unsigned char DefaultLanguage; //
- unsigned char RfidCardNumEndian; //0: little endian, 1: big endian
- unsigned short AcPlugInTimes; //0~65535
- unsigned short GbPlugInTimes; //0~65535
- unsigned short Ccs1PlugInTime; //0~65535
- unsigned short Ccs2PlugInTimes; //0~65535
- unsigned short ChademoPlugInTimes; //0~65535
- unsigned char PsuAcInputType; //0: 220, 1: 277
- unsigned short RatingCurrent; //0: Depend on Model name, 1 ~ rating value amp
- unsigned short AcRatingCurrent; //for third gun; 0: Depend on Model name, 1 ~ rating value amp
- unsigned char isAPP; //for AuthorisationMode=0; 0:false, 1:true
- unsigned char isQRCode; //for AuthorisationMode=0; 0:false, 1:true
- unsigned char isRFID; //for AuthorisationMode=0; 0:false, 1:true
- unsigned char QRCodeMadeMode; //for isQRCode=1 ; 0: default 1:customized
- unsigned char QRCodeContent[128]; //for QRCodeMadeMode=1
- unsigned char TotalConnectorCount; //Connector count
- unsigned char AcConnectorCount; // For DC type
- unsigned char SwitchDebugFlag; // Console Debug
- unsigned char AlwaysGfdFlag;
- /**************Charging***************/
- unsigned short MaxChargingEnergy; //0: no limit, 1 ~ 65535 kWh
- unsigned short MaxChargingPower; //0: rating value, 1 ~ RATING_POWER kW
- unsigned short MaxChargingCurrent; //0: rating value, 1 ~ RATING_CURRENT amp
- unsigned short AcMaxChargingCurrent; //for third gun; 0: rating value, 1 ~ RATING_CURRENT amp
- unsigned short MaxChargingDuration; //0: no limit, 1 ~ 65535 minutes
- unsigned char PhaseLossPolicy; //0: charging, 1: stop charging
- unsigned char LocalWhiteCard[10][32]; //Max. card quantity is 10
- unsigned char UserId[32]; //the user use this ID to trigger charging event, it can be RFID card number, OCPP IdTag, etc.
- struct BillingConfigData BillingData;
- /**************Network***************/
- unsigned char FtpServer[256]; //the ftp server for Phihong server to do data transimission
- struct EthConfigData Eth0Interface;
- struct EthConfigData Eth1Interface;
- struct WifiConfigData AthInterface;
- struct TeleConfigData TelecomInterface;
- struct BtConfigData Bluetooth;
- /**************Backend***************/
- unsigned int BackendConnTimeout; //default : 300s
- unsigned char OfflinePolicy; //0: local list, 1: Phihong RFID tag, 2: free charging, 3: no charging
- unsigned short OfflineMaxChargeEnergy; //0: same as MaxChargingEnergy, 1 ~ 65535 kWh
- unsigned short OfflineMaxChargeDuration; //0: same as MaxChargeDuration, 1 ~ 65535 minutes
- 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"
- unsigned char ChargeBoxId[128];
- unsigned char chargePointVendor[20]; //the Vendor of the ChargePoint
- unsigned int Checksum; //4 bytes checksum
- struct LED LedInfo; // LED configuration info
- };
- struct ChargingInfoData
- {
- unsigned char Index;
- unsigned char slotsIndex;
- unsigned char Type; // 0 : Chademo, 1 : CCS, 2: GB
- unsigned char type_index;
- unsigned char Evboard_id; // for EV board
- unsigned char StopChargeFlag; // for EV board
- unsigned char SystemStatus; //0: Booting, 1: idle, 2: authorizing, 3: preparing, 4: charging, 5: terminating, 6: alarm, 7: fault
- unsigned char PreviousSystemStatus; // 0: Booting, 1: idle, 2: authorizing, 3: preparing, 4: charging, 5: terminating, 6: alarm, 7: fault
- unsigned char ATEStatus;
- unsigned char PreviousATEStatus;
- unsigned char ATEState;
- unsigned char PreviousATEState;
- int ReservationId;
- unsigned char IsAvailable;
- float MaximumChargingVoltage; //0~6553.5 volt
- float AvailableChargingCurrent; //0~6553.5 amp
- float AvailableChargingPower; //0~6553.5 kW
- float DividChargingCurrent; //0~6553.5 amp
- float DeratingChargingCurrent; //0~6553.5 amp
- float DeratingChargingPower; //0~6553.5 kW
- float FuseChargingVoltage; //0~6553.5 volt
- float FireChargingVoltage; //0~6553.5 volt
- float PresentChargingVoltage; //0~6553.5 volt
- float PresentChargingCurrent; //0~6553.5 amp
- float PresentChargingPower; //0~6553.5 kW
- float PresentChargedEnergy; //0~6553.5 kWh
- int PresentChargedDuration; // second
- int RemainChargingDuration; // second
- float EvBatteryMaxVoltage; // 0~6553.5 volt
- float EvBatterytargetVoltage; // 0~6553.5 volt
- float EvBatterytargetCurrent; //102.3 0~200(A) (unit:1A)
- int EvBatterySoc; // 0~100%
- unsigned char ConnectorPlugIn; //0: unplug, 1: Plug-in
- unsigned char GunLocked; //0: unlocked 1: locked
- float PilotVoltage;
- 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
- unsigned char PilotDuty; // 0~100%
- unsigned char StartUserId[32]; // This ID is trigger start charging event user by RFID、back-end、BLE.
- unsigned char StartDateTime[32]; // Charging cycle start date time
- unsigned char StopDateTime[32]; // Charging cycle stop date time
- unsigned char StartMethod;
- float ChargingFee;
- // Connector Temp
- unsigned char ConnectorTemp; //0x00: -60¢XC ~ 0xFE: 194
- // Charging Status
- unsigned char GroundFaultStatus; // for GFD result => 0x00 : None, 0x01 : Can Start Charging, 0x02 : Stop Charging
- unsigned short RealRatingPower;
- unsigned char RelayWeldingCheck; // 0 : No Comp., 1 : Comp.
- unsigned char PrechargeStatus; // for ccs precharge => 0x00 : None defined, 0x01 : Accepted
- float PowerConsumption; // This contains the meter value (Power Consumption) kWh
- unsigned char RelayK1K2Status; // 0x00 : open, 0x01 : close
- unsigned char RelayKPK2Status; // 0x00 : open, 0x01 : close
- unsigned char TimeoutFlag; // 0 : none,
- struct timeval TimeoutTimer;
- unsigned char MaxChargeEnable;
- unsigned char IsReadyToCharging;
- unsigned char CcsAuthentication; // 0:EIM, 1:EIM & PnC mixed
- unsigned char AcCcsChargingMode; // 0:BC (PWM) only, 1:BC & PLC mixed
- unsigned short SampleChargingCur[2];
- /**************Alston for AC***************/
- unsigned char SelfTest_Comp;
- unsigned char version[16];
- unsigned char IsModeChagned;
- unsigned char IsCharging;
- unsigned char IsErrorOccur;
- float RealMaxVoltage;
- float RealMaxCurrent;
- float RealMaxPower;
- unsigned char ConnectorWarningCode[7];
- unsigned char ConnectorAlarmCode[7];
- unsigned char EvConnAlarmCode[7];
- float ChargingProfileCurrent; //0~6553.5 amp
- float ChargingProfilePower; //0~6553.5 kW
- float PresentChargingVoltageL2; //0~6553.5 volt
- float PresentChargingVoltageL3; //0~6553.5 volt
- float PresentChargingCurrentL2; //0~6553.5 amp
- float PresentChargingCurrentL3; //0~6553.5 amp
- char RemoteStartFlag;
- unsigned char MaxChargingToAverPassFlag;
- int PlugPresentStatusDuration; // second
- int DutyCycleDuration; // second
- };
- struct SysInfoData
- {
- /**************System***************/
- unsigned char BootingStatus; // 0 : booting, 1 : Initializing Complete.
- unsigned char AuthorizeFlag; // 0 : None, 1 : Authorizing
- unsigned char FactoryConfiguration; //0: normal, 1: trigger, charger will return the configuration to factory default if trigger
- float InputVoltageR; //0~655.35 volt
- float InputVoltageS; //0~655.35 volt
- float InputVoltageT; //0~655.35 volt
- unsigned int SystemFanRotaSpeed; //0 ~ 65535 RPM
- unsigned int PsuFanRotaSpeed; //0 ~ 65535 RPM
- unsigned char AuxPower5V; //0 ~ 255 volt
- unsigned char AuxPower12V; //0 ~ 255 volt
- unsigned char AuxPower24V; //0 ~ 255 volt
- unsigned char AuxPower48V; //0 ~ 255 volt
- unsigned char CsuHwRev[32]; //CSU board hardware version
- unsigned char CsuBootLoadFwRev[32]; //CSU board bootloader firmware version
- unsigned char CsuKernelFwRev[32];//CSU board OS kernel firmware version
- unsigned char CsuRootFsFwRev[32];//CSU board root file system firmware version
- unsigned char CsuPrimFwRev[32]; //CSU board root file system firmware version
- unsigned char LcmHwRev[32]; //LCM module hardware version
- unsigned char LcmFwRev[32]; //LCM module firmware version
- unsigned char PsuHwRev[32]; //PSU hardware version
- unsigned char PsuPrimFwRev[32]; //PSU primary firmware version
- unsigned char PsuSecFwRev[32]; //PSU secondary firmware version
- unsigned char AuxPwrHwRev[32]; //Aux. power module hardware version
- unsigned char AuxPwrFwRev[32]; //Aux. power module firmware version
- unsigned char FanModuleHwRev[32]; //Fan module hardware version
- unsigned char FanModuleFwRev[32]; //Fan module firmware version
- unsigned char RelayModuleHwRev[32]; //Relay control module hardware version
- unsigned char RelayModuleFwRev[32]; //Relay control module firmware version
- unsigned char TelcomModemFwRev[32]; //the 3G/4G modem firmware version
- unsigned char LedModuleFwRev[32]; //LED control module firmware version
- unsigned char Connector1FwRev[32]; //Connector1 module firmware version
- unsigned char Connector2FwRev[32]; //Connector2 module firmware version
- int SystemAmbientTemp; // -40 ~ 215 degree C
- int SystemCriticalTemp; // -40 ~ 215 degree C
- int CcsConnectorTemp; // -40 ~ 215 degree C
- int PsuAmbientTemp; // -40 ~ 215 degree C
- /**************Charging***************/
- struct ChargingInfoData ChademoChargingData[CHAdeMO_QUANTITY];
- struct ChargingInfoData CcsChargingData[CCS_QUANTITY];
- struct ChargingInfoData GbChargingData[GB_QUANTITY];
- struct ChargingInfoData AcChargingData[AC_QUANTITY];
- unsigned char CurGunSelected;
- unsigned char CurGunSelectedByAc;
- /**************Network***************/
- unsigned char InternetConn; //0: disconnected, 1: connected
- /**************Backend***************/
- unsigned char OcppConnStatus; //0: disconnected, 1: connected
- char OrderCharging;
- /**************Alston***************/
- unsigned char WaitForPlugit; //0: none scan, 1: scanning
- unsigned char PageIndex; //0 : Initialize
- //1 : idle
- //4 : Authorizing
- //5 : Authorizing complete
- //6 : Authorizing fail
- //7 : Wait for Plug
- //8 : Pre-charge
- //9 : Charging
- unsigned char SelfTestSeq; //
- unsigned char ReAssignedFlag; //
- unsigned char CanAverageCharging;
- unsigned char MainChargingMode; // 0 : Max, 1 : Average
- unsigned char BridgeRelayStatus;
- unsigned char FirmwareUpdate; // 0 : none, 1 : update.
- unsigned char AcContactorStatus; // 0: disconnected, 1: connected
- unsigned char SystemTimeoutFlag; // 0 : none, 1 : self test
- struct timeval SystemTimeoutTimer;
- unsigned char SystemPage;
- unsigned char ConnectorPage;
- unsigned char IsAlternatvieConf; // 0 : normal, 1 : alternative
- unsigned char StartToChargingFlag; // 0 : Stop, 1 : Start for modbus
- unsigned char ChargerType; // 0 : IEC, 1 : UL
- };
- struct WARNING_CODE_INFO
- {
- unsigned char WarningCount;
- unsigned char PageIndex;
- unsigned char WarningCode[10][7];
- unsigned char Level;
- unsigned char ExtraErrProcess; // 0 : none, 1 : input uvp..
- };
- struct STOP_CHARGING_ALARM_CODE
- {
- unsigned char Level;
- unsigned char StopCode[4][7];
- };
- //VCCU
- struct VCCU_InternalVoltageStatus_DATA1
- {
- u_int16_t VCCU_Internal_VCC_12V_Voltage:16;
- };
- struct VCCU_InternalVoltageStatus_DATA2
- {
- u_int16_t VCCU_Internal_VCC_KL15_Voltage:16;
- };
- struct VCCU_InternalVoltageStatus_DATA3
- {
- u_int16_t VCCU_Internal_VCC_SS_Voltage:16;
- };
- struct VCCU_InternalVoltageStatus_DATA4
- {
- u_int16_t VCCU_Internal_VCC_KL30_Voltage:16;
- };
- struct VCCU_InternalVoltageStatus_DATA
- {
- u_int16_t VCCU_Internal_VCC_12V_Voltage;
- u_int16_t VCCU_Internal_VCC_KL15_Voltage;
- u_int16_t VCCU_Internal_VCC_SS_Voltage;
- u_int16_t VCCU_Internal_VCC_KL30_Voltage;
- };
- struct TD_DATA
- {
- u_int8_t Seconds;
- u_int8_t Minutes;
- u_int8_t Hours;
- u_int8_t Month;
- u_int8_t Day;
- u_int8_t Year;
- u_int8_t LocalMinuteOffset;
- u_int8_t LocalHourOffset;
- };
- /*
- * VCCU_InletStatus2
- * id:18FF1A80h
- */
- /*
- typedef struct __attribute__ ((packed))
- {
- u_int16_t VCCU_PlugPresent_Voltage:16;
- }VCCU_InletStatus2_DATA1;
- */
- struct VCCU_InletStatus2_DATA
- {
- u_int16_t VCCU_PlugPresent_Voltage;
- };
- struct VCCU_InternalVoltageRawValues_DATA
- {
- u_int16_t VCCU_Internal_VCC_12V_Raw;
- u_int16_t VCCU_Internal_VCC_KL15_Raw;
- u_int16_t VCCU_Internal_VCC_KL30_Raw;
- u_int16_t VCCU_Internal_VCC_SS_Raw;
- };
- struct VCCU_V2G_DepartureTime_DATA
- {
- u_int32_t VCCU_V2G_DepartureTime_Value;
- u_int8_t VCCU_V2G_DepartureTimeFlag;
- };
- struct VCCU_V2G_StateM_DATA
- {
- struct{
- u_int8_t VCCU_V2G_StateM_InternetAvaila :1;
- u_int8_t VCCU_V2G_Appl_SccChargeModeReq :3;
- u_int8_t VCCU_V2G_Appl_SccFuncModeReq :2;
- }bits;
- };
- struct VCCU_V2G_StateM_StateMachineSt
- {
- struct{
- u_int8_t value:8;
- }bits;
- };
- struct VCCU_V2G_StateM
- {
- u_int8_t VCCU_V2G_StateM_EnergyTransfer;
- u_int8_t VCCU_V2G_StateM_StateMachineEr;
- u_int8_t VCCU_V2G_StateM_StateMachineMe;
- u_int8_t VCCU_V2G_StateM_StateMachineSt;
- struct VCCU_V2G_StateM_DATA DATA;
- };
- struct VCCU_V2G_Core_DATA7
- {
- u_int8_t VCCU_V2G_Core_CyclicMsgRcvd :1;
- u_int8_t VCCU_V2G_Core_CyclicMsgTrig :1;
- u_int8_t VCCU_V2G_Core_IPAssigned :1;
- u_int8_t VCCU_V2G_Core_TrcvLinkState :1;
- u_int8_t VCCU_V2G_EthTrcv_TrcvLinkState :1;
- };
- struct VCCU_V2G_Core_DATA
- {
- u_int8_t VCCU_V2G_Core_MsgState;
- u_int8_t VCCU_V2G_Core_MsgStatus;
- u_int8_t VCCU_V2G_Core_SAPResponseCode;
- u_int8_t VCCU_V2G_Core_SAPSchemaID;
- u_int8_t VCCU_V2G_Core_SDPSecurityTx;
- u_int8_t VCCU_V2G_Core_StackError;
- struct VCCU_V2G_Core_DATA7 DATA7;
- };
- /*
- * VCCU_V2G_EVSEPresentVoltage
- * id:18FF5A80h
- */
- struct VCCU_V2G_EVSEPresentVoltage_DATA1
- {
- u_int8_t VCCU_V2G_EVSEPresentVoltage_Un :4;
- };
- struct VCCU_V2G_EVSEPresentVoltage
- {
- struct VCCU_V2G_EVSEPresentVoltage_DATA1 DATA1;
- u_int8_t VCCU_V2G_EVSEPresentVoltage_Mu;
- u_int16_t VCCU_V2G_EVSEPresentVoltage_Va;
- u_int8_t VCCU_V2G_EVSEPresentVolta_0000;
- };
- struct VCCU_V2G_DateTimeNow_DATA
- {
- u_int64_t VCCU_V2G_DateTimeNow;
- };
- struct VCCU_V2G_EVSEPresentCurrent_DATA1
- {
- u_int8_t VCCU_V2G_EVSEPresentCurrent_Un :4;
- };
- struct VCCU_V2G_EVSEPresentCurrent_DATA2
- {
- u_int8_t VCCU_V2G_EVSEPresentCurrent_Mu :8;
- };
- struct VCCU_V2G_EVSEPresentCurrent_DATA3
- {
- u_int16_t VCCU_V2G_EVSEPresentCurrent_Va :16;
- };
- struct VCCU_V2G_EVSEPresentCurrent_DATA4
- {
- u_int8_t VCCU_V2G_EVSEPresentCurre_0000 :8;
- };
- struct VCCU_V2G_EVSEPresentCurrent_DATA
- {
- struct VCCU_V2G_EVSEPresentCurrent_DATA1 DATA1;
- u_int8_t VCCU_V2G_EVSEPresentCurrent_Mu;
- u_int16_t VCCU_V2G_EVSEPresentCurrent_Va;
- u_int8_t VCCU_V2G_EVSEPresentCurre_0000;
- };
- struct VCCU_V2G_EVSEPeakCurrentRipple_DATA1
- {
- u_int8_t VCCU_V2G_EVSEPeakCurrentRipple :4;
- };
- struct VCCU_V2G_EVSEPeakCurrentRipple_DATA
- {
- struct VCCU_V2G_EVSEPeakCurrentRipple_DATA1 DATA1;
- u_int8_t VCCU_V2G_EVSEPeakCurrentR_0001;
- u_int16_t VCCU_V2G_EVSEPeakCurrentR_0002;
- u_int8_t VCCU_V2G_EVSEPeakCurrentR_0000;
- };
- struct VCCU_V2G_EVSEMinimumVoltageLim_DATA1
- {
- u_int8_t VCCU_V2G_EVSEMinimumVoltageLim :4;
- };
- struct VCCU_V2G_EVSEMinimumVoltageLim_DATA
- {
- struct VCCU_V2G_EVSEMinimumVoltageLim_DATA1 DATA1;
- u_int8_t VCCU_V2G_EVSEMinimumVolta_0001;
- u_int16_t VCCU_V2G_EVSEMinimumVolta_0002;
- u_int8_t VCCU_V2G_EVSEMinimumVolta_0000;
- };
- struct VCCU_V2G_EVSEMinimumCurrentLim_DATA1
- {
- u_int8_t VCCU_V2G_EVSEMinimumCurrentLim :4;
- };
- struct VCCU_V2G_EVSEMinimumCurrentLim_DATA
- {
- struct VCCU_V2G_EVSEMinimumCurrentLim_DATA1 DATA1;
- u_int8_t VCCU_V2G_EVSEMinimumCurre_0001;
- u_int16_t VCCU_V2G_EVSEMinimumCurre_0002;
- u_int8_t VCCU_V2G_EVSEMinimumCurre_0000;
- };
- struct VCCU_V2G_EVSEMaximumVoltageLim_DATA1
- {
- u_int8_t VCCU_V2G_EVSEMaximumVolta_0000 :4;
- u_int8_t VCCU_V2G_EVSEMaximumVoltageLim :2;
- };
- struct VCCU_V2G_EVSEMaximumVoltageLim_DATA
- {
- struct VCCU_V2G_EVSEMaximumVoltageLim_DATA1 DATA1;
- u_int8_t VCCU_V2G_EVSEMaximumVolta_0002;
- u_int16_t VCCU_V2G_EVSEMaximumVolta_0003;
- u_int8_t VCCU_V2G_EVSEMaximumVolta_0001;
- };
- struct VCCU_V2G_EVSEMaximumPowerLimit_DATA1
- {
- u_int8_t VCCU_V2G_EVSEMaximumPower_0000 :4;
- u_int8_t VCCU_V2G_EVSEMaximumPowerLimit :2;
- };
- struct VCCU_V2G_EVSEMaximumPowerLimit_DATA
- {
- struct VCCU_V2G_EVSEMaximumPowerLimit_DATA1 DATA1;
- u_int8_t VCCU_V2G_EVSEMaximumPower_0002;
- u_int16_t VCCU_V2G_EVSEMaximumPower_0003;
- u_int8_t VCCU_V2G_EVSEMaximumPower_0001;
- };
- struct VCCU_V2G_EVSEMaximumCurrentLim_DATA
- {
- u_int8_t VCCU_V2G_EVSEMaximumCurre_0002 :4;
- u_int8_t VCCU_V2G_EVSEMaximumCurrentLim :2;
- };
- struct VCCU_V2G_EVSEMaximumCurrentLim
- {
- struct VCCU_V2G_EVSEMaximumCurrentLim_DATA DATA;
- u_int8_t VCCU_V2G_EVSEMaximumCurre_0003;
- u_int16_t VCCU_V2G_EVSEMaximumCurre_0000;
- u_int8_t VCCU_V2G_EVSEMaximumCurre_0001;
- };
- struct VCCU_V2G_EVSEEnergyToBeDeliver_DATA1
- {
- u_int8_t VCCU_V2G_EVSEEnergyToBeDe_0002 :4;
- u_int8_t VCCU_V2G_EVSEEnergyToBeDeliver :2;
- };
- struct VCCU_V2G_EVSEEnergyToBeDeliver_DATA
- {
- struct VCCU_V2G_EVSEEnergyToBeDeliver_DATA1 DATA1;
- u_int8_t VCCU_V2G_EVSEEnergyToBeDe_0003;
- u_int16_t VCCU_V2G_EVSEEnergyToBeDe_0000;
- u_int8_t VCCU_V2G_EVSEEnergyToBeDe_0001;
- };
- struct VCCU_V2G_EVSECurrentRegulation_DATA1
- {
- u_int8_t VCCU_V2G_EVSECurrentRegul_0002 :4;
- u_int8_t VCCU_V2G_EVSECurrentRegulation :2;
- };
- struct VCCU_V2G_EVSECurrentRegulation_DATA
- {
- struct VCCU_V2G_EVSECurrentRegulation_DATA1 DATA1;
- u_int8_t VCCU_V2G_EVSECurrentRegul_0003;
- u_int16_t VCCU_V2G_EVSECurrentRegul_0000;
- u_int8_t VCCU_V2G_EVSECurrentRegul_0001;
- };
- struct VCCU_V2G_EVMaximumVoltageLimit_DATA1
- {
- u_int8_t VCCU_V2G_EVMaximumVoltage_0002 :4;//VCCU_V2G_EVMaximumVoltageLimit_Unit V
- u_int8_t VCCU_V2G_EVMaximumVoltageLimit :2;//VCCU_V2G_EVMaximumVoltageLimitFlag true
- };
- struct VCCU_V2G_EVMaximumVoltageLimit
- {
- struct VCCU_V2G_EVMaximumVoltageLimit_DATA1 DATA1;
- struct{
- u_int8_t value:8;
- }VCCU_V2G_EVMaximumVoltage_0003;
- struct{
- u_int16_t value:16;
- }VCCU_V2G_EVMaximumVoltage_0000;
- struct{
- u_int8_t value:8;
- }VCCU_V2G_EVMaximumVoltage_0001;
- };
- struct VCCU_V2G_EVMaximumPowerLimit_DATA1
- {
- u_int8_t VCCU_V2G_EVMaximumPowerLi_0000 :4;
- u_int8_t VCCU_V2G_EVMaximumPowerLimitFl :2;
- };
- struct VCCU_V2G_EVMaximumPowerLimit_DATA
- {
- struct VCCU_V2G_EVMaximumPowerLimit_DATA1 DATA;
- u_int8_t VCCU_V2G_EVMaximumPowerLimit_M;
- u_int16_t VCCU_V2G_EVMaximumPowerLimit_V;
- u_int8_t VCCU_V2G_EVMaximumPowerLimit_U;
- };
- struct VCCU_V2G_EVMaximumCurrentLimit_DATA1
- {
- u_int8_t VCCU_V2G_EVMaximumCurrent_0000 :4;//VCCU_V2G_EVMaximumCurrentLimit_Unit A
- u_int8_t VCCU_V2G_EVMaximumCurrentLimit :2;//VCCU_V2G_EVMaximumCurrentLimitFlag
- };
- struct VCCU_V2G_EVMaximumCurrentLimit
- {
- struct VCCU_V2G_EVMaximumCurrentLimit_DATA1 DATA1;
- struct{
- u_int8_t value:8;
- }VCCU_V2G_EVMaximumCurrent_0002;
- struct{
- u_int16_t value:16;
- }VCCU_V2G_EVMaximumCurrent_0003;
- struct{
- u_int8_t value:8;
- }VCCU_V2G_EVMaximumCurrent_0001;
- };
- struct VCCU_V2G_EVEnergyRequest_DATA1
- {
- u_int8_t VCCU_V2G_EVEnergyRequest_Unit :4;
- u_int8_t VCCU_V2G_EVEnergyRequestFlag :2;
- };
- struct VCCU_V2G_EVEnergyRequest_DATA
- {
- struct VCCU_V2G_EVEnergyRequest_DATA1 DATA1;
- u_int8_t VCCU_V2G_EVEnergyRequest_Multi;
- u_int16_t VCCU_V2G_EVEnergyRequest_Value;
- u_int8_t VCCU_V2G_EVEnergyRequest_UnitF;
- };
- struct VCCU_V2G_EVEnergyCapacity_DATA1
- {
- u_int8_t VCCU_V2G_EVEnergyCapacity_Unit :4;
- u_int8_t VCCU_V2G_EVEnergyCapacityFlag :2;
- };
- struct VCCU_V2G_EVEnergyCapacity_DATA
- {
- struct VCCU_V2G_EVEnergyCapacity_DATA1 DATA1;
- u_int8_t VCCU_V2G_EVEnergyCapacity_Mult;
- u_int16_t VCCU_V2G_EVEnergyCapacity_Valu;
- u_int8_t VCCU_V2G_EVEnergyCapacity_0000;
- };
- struct VCCU_V2G_EVSEStatus_DATA1
- {
- u_int8_t VCCU_V2G_EVSECurrentLimitAchie :2;
- u_int8_t VCCU_V2G_EVSEIsolationStatus :3;
- u_int8_t VCCU_V2G_EVSEIsolationStatusFl :2;
- };
- struct VCCU_V2G_EVSEStatus_DATA2
- {
- u_int8_t VCCU_V2G_EVSENotification :2;
- u_int8_t VCCU_V2G_EVSEProcessing :2;
- u_int8_t VCCU_V2G_EVSEStatusCode :4;
- };
- struct VCCU_V2G_EVSEStatus_DATA3
- {
- u_int8_t VCCU_V2G_EVSEVoltageLimitAchie :2;
- u_int8_t VCCU_V2G_EVSEPowerLimitAchieve :2;
- u_int8_t VCCU_V2G_DateTimeNowFlag :2;
- };
- struct VCCU_V2G_EVSEStatus_DATA4
- {
- u_int8_t VCCU_V2G_DateTimeNowFlag :5;
- };
- struct VCCU_V2G_EVSEStatus_DATA
- {
- struct VCCU_V2G_EVSEStatus_DATA1 DATA1;
- struct VCCU_V2G_EVSEStatus_DATA2 DATA2;
- struct VCCU_V2G_EVSEStatus_DATA3 DATA3;
- struct VCCU_V2G_EVSEStatus_DATA4 DATA4;
- u_int32_t VCCU_V2G_NotificationMaxDelay;
- };
- struct VCCU_V2G_EVTargetCurrent_DATA4
- {
- u_int8_t VCCU_V2G_EVTargetCurrent_Unit :4;//VCCU_V2G_EVTargetCurrent_Unit A
- };
- struct VCCU_V2G_EVTargetCurrent
- {
- struct{
- u_int16_t value:16;
- }VCCU_V2G_EVTargetCurrent_Value;
- struct{
- u_int8_t value:8;
- }VCCU_V2G_EVTargetCurrent_Multi;
- struct{
- u_int8_t value:8;
- }VCCU_V2G_EVTargetCurrent_UnitF;
- struct{
- u_int8_t value :4;//VCCU_V2G_EVTargetCurrent_Unit A
- }VCCU_V2G_EVTargetCurrent_Unit;
- };
- struct VCCU_V2G_EVTargetVoltage_DATA4
- {
- u_int8_t VCCU_V2G_EVTargetVoltage_Unit :4;//VCCU_V2G_EVTargetVoltage_Unit V
- };
- struct VCCU_V2G_EVTargetVoltage
- {
- struct{
- u_int16_t value :16;
- }VCCU_V2G_EVTargetVoltage_Value;
- struct{
- u_int8_t value :8;
- }VCCU_V2G_EVTargetVoltage_Multi;
- struct{
- u_int8_t value :8;
- }VCCU_V2G_EVTargetVoltage_UnitF;
- struct{
- u_int8_t value :4;//VCCU_V2G_EVTargetVoltage_Unit V
- }VCCU_V2G_EVTargetVoltage_Unit;
- };
- struct VCCU_V2G_RemainingTimeToBulkSO_DATA4
- {
- u_int8_t VCCU_V2G_RemainingTimeToB_0002 :4;
- u_int8_t VCCU_V2G_RemainingTimeToBulkSO :2;
- };
- struct VCCU_V2G_RemainingTimeToBulkSO_DATA
- {
- u_int16_t VCCU_V2G_RemainingTimeToB_0000;
- u_int8_t VCCU_V2G_RemainingTimeToB_0003;
- u_int8_t VCCU_V2G_RemainingTimeToB_0001;
- struct VCCU_V2G_RemainingTimeToBulkSO_DATA4 DATA4;
- };
- struct VCCU_V2G_RemainingTimeToFullSO_DATA
- {
- u_int8_t VCCU_V2G_RemainingTimeToF_0002 :4;
- u_int8_t VCCU_V2G_RemainingTimeToFullSO :2;
- };
- struct VCCU_V2G_RemainingTimeToFullSO
- {
- struct{
- u_int16_t value:16;
- }VCCU_V2G_RemainingTimeToB_0000;
- struct{
- u_int8_t value:8;
- }VCCU_V2G_RemainingTimeToB_0003;
- struct{
- u_int8_t value:8;
- }VCCU_V2G_RemainingTimeToB_0001;
- struct VCCU_V2G_RemainingTimeToFullSO_DATA DATA;
- };
- struct VCCU_V2G_VehicleStatus_DATA1
- {
- u_int8_t VCCU_V2G_EVErrorCode :4;//VCCU_V2G_EVErrorCode
- u_int8_t VCCU_V2G_BulkChargingComplete :2;
- u_int8_t VCCU_V2G_BulkChargingCompleteF :2;
- };
- struct VCCU_V2G_VehicleStatus_DATA2
- {
- u_int8_t VCCU_V2G_BulkSOCFlag :2;
- u_int8_t VCCU_V2G_FullSOCFlag :2;
- u_int8_t VCCU_V2G_ChargingComplete :2;
- u_int8_t VCCU_V2G_EVCabinConditioning :2;
- };
- struct VCCU_V2G_VehicleStatus_DATA3
- {
- u_int8_t VCCU_V2G_EVCabinConditioningFl :2;
- u_int8_t VCCU_V2G_EVReady :2;//VCCU_V2G_EVReady
- u_int8_t VCCU_V2G_EVRESSConditioning :2;
- u_int8_t VCCU_V2G_EVRESSConditioningFla :2;
- };
- struct VCCU_V2G_VehicleStatus_DATA4
- {
- u_int8_t VCCU_V2G_EVPowerDeliveryParame :2;
- u_int8_t VCCU_V2G_StateM_EnergyTra_0000 :4;//VCCU_V2G_StateM_EnergyTransferMode 3
- };
- struct VCCU_V2G_VehicleStatus
- {
- struct VCCU_V2G_VehicleStatus_DATA1 DATA1;
- struct VCCU_V2G_VehicleStatus_DATA2 DATA2;
- struct VCCU_V2G_VehicleStatus_DATA3 DATA3;
- struct VCCU_V2G_VehicleStatus_DATA4 DATA4;
- struct{
- u_int8_t value:8;
- }VCCU_V2G_BulkSOC;
- struct{
- u_int8_t value:8;
- }VCCU_V2G_FullSOC;
- struct{
- u_int8_t value:8;
- }VCCU_V2G_EVRESSSOC;
- };
- struct VCCU_ChargeFromVehicle_DATA
- {
- struct{
- u_int8_t VCCU_Vehicle_IsolationMeasurem:2;//VCCU_Vehicle_IsolationMeasurementStatus
- u_int8_t VCCU_Vehicle_PlugLockPermissio:2;//VCCU_Vehicle_PlugLockPermission
- u_int8_t VCCU_Vehicle_PlugUnlockPermiss:2;//VCCU_Vehicle_PlugUnlockPermission
- u_int8_t VCCU_Vehicle_ChargePermission:2;//VCCU_Vehicle_ChargePermission
- }bits;
- };
- struct VCCU_ChargeFromVehicle_DATA4
- {
- u_int8_t VCCU_Vehicle_ContactorStatus:2;
- };
- struct VCCU_ChargeFromVehicle
- {
- u_int16_t VCCU_Vehicle_ContactorVoltage;//VCCU_Vehicle_ContactorVoltage
- u_int16_t VCCU_Vehicle_LinkVoltage;//VCCU_Vehicle_LinkVoltage
- struct VCCU_ChargeFromVehicle_DATA DATA;
- struct{
- u_int8_t VCCU_Vehicle_ContactorStatus:2;//VCCU_Vehicle_ContactorStatus 3 "SNA" 2 "Stuck" 1 "Closed" 0 "Opened"
- u_int8_t VCCU_Vehicle_StopCharge:2;
- u_int8_t VCCU_Vehicle_ChargeSelection:2;
- }bits;
- };
- struct VCCU_Requests
- {
- u_int8_t VCCU_LED0_Request;//0.0
- u_int8_t VCCU_LED1_Request;//0.0
- u_int8_t VCCU_LED2_Request;//0.0
- struct{
- u_int8_t VCCU_HighSideOut0_Request:2;//3 0:Disable 1:Enable 2:Resvrved 3:SNA
- u_int8_t VCCU_HighSideOut1_Request:2;//3 0:Disable 1:Enable 2:Resvrved 3:SNA
- u_int8_t VCCU_HighSideOut2_Request:2;//3 0:Disable 1:Enable 2:Resvrved 3:SNA
- u_int8_t VCCU_HighSideOut3_Request:2;//3 0:Disable 1:Enable 2:Resvrved 3:SNA
- }byte3;
- struct{
- u_int8_t VCCU_HighSideOut4_Request:2;//3 0:Disable 1: Enable 2:Resvrved 3:SNA
- u_int8_t VCCU_RTC_TimerRequest:2;//3 0:Not_requested 1:Requested 2:Resvrved 3:SNA
- u_int8_t VCCU_PlugLock_MotorRequest:3;//7 0:Stop 1:DirectionA 2:DirectionB 3:Measurement 4:Reserved1 5:Reserved2 6:Reserved3 7:SNA
- }byte4;
- u_int8_t VCCU_RTC_TimerValue;//0
- struct{
- u_int8_t VCCU_ControlPilot_ChargeModeRe:3;//7 0:ModeB 1:ModeC 2:ModeD 3:Reserved1 4:Reserved2 5:Reserved3 6:Error 7:SNA
- u_int8_t VCCU_ChargeUnit_Request:2;//3 0:Disable 1:Enable 2:EnableVentilation 3:SNA
- u_int8_t VCCU_Inlet_MotorRequest:2;//3 0:Lock 1:Unlock 2:Reserved 3:SNA
- }byte6;
- };
- struct VCCU_ChargeToVehicle
- {
- struct{
- u_int8_t VCCU_Vehicle_IsolationMea_0000:2;//VCCU_Vehicle_IsolationMeasurementRequest
- u_int8_t VCCU_Vehicle_ContactorRequest:2;//VCCU_Vehicle_ContactorRequest
- }bits;
- };
- struct VCCU_RTCStatus_DATA1
- {
- u_int8_t VCCU_RTC_TimerStatus:2;
- u_int8_t VCCU_RTC_Wakeup:2;
- };
- struct VCCU_RTCStatus_DATA
- {
- struct VCCU_RTCStatus_DATA1 DATA1;
- };
- struct VCCU_OutputStatus_DATA1
- {
- u_int8_t VCCU_HighSideOut0_SelfDiagnost:3;
- u_int8_t VCCU_HighSideOut1_SelfDiagnost:3;
- };
- struct VCCU_OutputStatus_DATA2
- {
- u_int8_t VCCU_HighSideOut2_SelfDiagnost:3;
- u_int8_t VCCU_HighSideOut3_SelfDiagnost:3;
- };
- struct VCCU_OutputStatus_DATA3
- {
- u_int8_t VCCU_HighSideOut4_SelfDiagnost:3;
- u_int8_t VCCU_LED0_SelfDiagnosticStatus:3;
- };
- struct VCCU_OutputStatus_DATA4
- {
- u_int8_t VCCU_LED1_SelfDiagnosticStatus:3;
- u_int8_t VCCU_LED2_SelfDiagnosticStatus:3;
- };
- struct VCCU_OutputStatus_DATA5
- {
- u_int8_t VCCU_HighSideOut0_Input_Deboun:2;
- u_int8_t VCCU_HighSideOut0_Input_Status:2;
- u_int8_t VCCU_HighSideOut1_Input_Deboun:2;
- u_int8_t VCCU_HighSideOut1_Input_Status:2;
- };
- struct VCCU_OutputStatus_DATA6
- {
- u_int8_t VCCU_HighSideOut2_Input_Deboun:2;
- u_int8_t VCCU_HighSideOut2_Input_Status:2;
- u_int8_t VCCU_HighSideOut3_Input_Deboun:2;
- u_int8_t VCCU_HighSideOut3_Input_Status:2;
- };
- struct VCCU_OutputStatus_DATA7
- {
- u_int8_t VCCU_HighSideOut4_Input_Deboun:2;
- u_int8_t VCCU_HighSideOut4_Input_Status:2;
- u_int8_t VCCU_HighSideOut3_Input_Wakeup:2;
- };
- struct VCCU_OutputStatus_DATA
- {
- struct VCCU_OutputStatus_DATA1 DATA1;
- struct VCCU_OutputStatus_DATA2 DATA2;
- struct VCCU_OutputStatus_DATA3 DATA3;
- struct VCCU_OutputStatus_DATA4 DATA4;
- struct VCCU_OutputStatus_DATA5 DATA5;
- struct VCCU_OutputStatus_DATA6 DATA16;
- struct VCCU_OutputStatus_DATA7 DATA17;
- };
- struct VCCU_ControlPilotStatus_DATA
- {
- struct{
- u_int8_t VCCU_ControlPilot_Wakeup:2;
- u_int8_t VCCU_ChargeUnit_Mode:3;//VCCU_ChargeUnit_Mode
- u_int8_t VCCU_ChargeUnit_State:3;//VCCU_ChargeUnit_State
- }bits;
- };
- struct VCCU_ControlPilot_Frequency
- {
- struct{
- u_int16_t VCCU_ControlPilot_Frequency:16;
- }bits;
- };
- struct VCCU_ControlPilot_DutyCycle
- {
- struct{
- u_int8_t value:8;
- }bits;
- };
- struct VCCU_ControlPilot_Voltage
- {
- struct{
- u_int16_t value:16;
- }bits;
- };
- struct VCCU_ChargeUnit_MaxCurrent
- {
- struct{
- u_int8_t value:8;
- }bits;
- };
- struct VCCU_ControlPilotStatus
- {
- struct VCCU_ControlPilot_Frequency ControlPilot_Frequency;
- struct VCCU_ControlPilot_DutyCycle ControlPilot_DutyCycle;
- struct VCCU_ControlPilot_Voltage ControlPilot_Voltage;
- struct VCCU_ControlPilotStatus_DATA DATA;
- u_int8_t ChargeUnit_MaxCurrent;
- };
- struct VCCU_InletStatus_DATA2
- {
- u_int8_t VCCU_PlugPresent_SelfDiagnosti:3;
- u_int8_t VCCU_PlugPresent_Resistance:3;
- u_int8_t VCCU_PlugPresent_Status:2;//VCCU_PlugPresent_Status
- };
- struct VCCU_InletStatus_DATA3
- {
- u_int8_t VCCU_PlugPresent_Wakeup:2;
- u_int8_t VCCU_POSFeedback_SelfDiagnosti:3;
- u_int8_t VCCU_PlugLock_MotorStatus:3;
- };
- struct VCCU_InletStatus_DATA4
- {
- u_int8_t VCCU_PlugLock_Output0_SelfDiag:3;
- u_int8_t VCCU_PlugLock_Output1_SelfDiag:3;
- u_int8_t VCCU_Inlet_HWVariant:2;
- };
- struct VCCU_InletStatus_DATA5
- {
- struct{
- u_int8_t VCCU_DigitalInput_Status:2;
- u_int8_t VCCU_DigitalInput_Wakeup:2;
- u_int8_t VCCU_Inlet_MotorStatus:3;//VCCU_Inlet_MotorStatus
- }bits;
- };
- struct VCCU_InletStatus_DATA7
- {
- struct{
- u_int8_t VCCU_DigitalInput_DebouncedSta:2;//VCCU_DigitalInput_DebouncedStatus
- u_int8_t VCCU_Inlet_ConnectionStatus:2;//VCCU_Inlet_ConnectionStatus
- u_int8_t VCCU_S3Switch_Status:2;//S3_Switch
- u_int8_t VCCU_S3Switch_DebouncedStatus:2;
- }bits;
- };
- struct VCCU_InletStatus
- {
- u_int16_t VCCU_POSFeedback_Voltage;
- struct VCCU_InletStatus_DATA2 DATA2;
- struct VCCU_InletStatus_DATA3 DATA3;
- struct VCCU_InletStatus_DATA4 DATA4;
- struct VCCU_InletStatus_DATA5 DATA5;
- u_int8_t VCCU_Inlet_MaxCurrent;
- struct VCCU_InletStatus_DATA7 DATA7;
- };
- struct VCCU_PTC2_DATA4
- {
- u_int8_t VCCU_PTC2_SelfDiagnosticStatus:3;
- };
- struct VCCU_PTC2_DATA
- {
- u_int16_t VCCU_PTC2_Raw;
- u_int16_t VCCU_PTC2_Resistance;
- u_int16_t VCCU_PTC2_Temperature;
- struct VCCU_PTC2_DATA4 DATA4;
- };
- struct VCCU_PTC1_DATA
- {
- u_int8_t VCCU_PTC1_SelfDiagnosticStatus:3;
- };
- struct VCCU_PTC1
- {
- struct{
- u_int16_t value :16;
- }VCCU_PTC1_Raw;
- struct{
- u_int16_t value :16;
- }VCCU_PTC1_Resistance;
- struct{
- u_int16_t value :16;
- }VCCU_PTC1_Temperature;
- struct VCCU_PTC1_DATA DATA;
- };
- struct DM13_DATA1
- {
- u_int8_t J1939Network1:2;
- u_int8_t SAE_J1922:2;
- u_int8_t SAE_J1587:2;
- u_int8_t CurrentDataLink:2;
- };
- struct DM13_DATA2
- {
- u_int8_t ManufacturerSpecificPort:2;
- u_int8_t SAE_J1850:2;
- u_int8_t ISO9141:2;
- u_int8_t J1939Network2:2;
- };
- struct DM13_DATA3
- {
- u_int8_t J1939Network4:2;
- u_int8_t ProprietaryNetwork2:2;
- u_int8_t ProprietaryNetwork1:2;
- u_int8_t J1939Network3:2;
- };
- struct DM13_DATA4
- {
- u_int8_t SuspendSignal:4;
- u_int8_t HoldSignal :4;
- };
- struct DM13_DATA
- {
- struct DM13_DATA1 DATA1;
- struct DM13_DATA2 DATA2;
- struct DM13_DATA3 DATA3;
- struct DM13_DATA4 DATA4;
- u_int16_t SuspendDuration;
- };
- struct NM_CGW_DATA
- {
- u_int8_t WakeupRsn_CGW;
- };
- struct DIAG_REQ_GLOBAL_DATA
- {
- u_int64_t DIAG_REQ_GLOBAL;
- };
- struct DIAG_REQ_VCCU_DATA
- {
- u_int64_t DIAG_REQ_VCCU;
- };
- struct XCP_RESP_VCCU_DATA
- {
- u_int64_t XCP_RESP_VCCU;
- };
- struct XCP_REQ_VCCU_DATA
- {
- u_int64_t XCP_REQ_VCCU;
- };
- struct DIAG_RESP_VCCU_DATA
- {
- u_int64_t DIAG_RESP_VCCU;
- };
- struct NM_VCCU_DATA
- {
- u_int8_t Awake_Diag_Actv_VCCU:1;
- u_int8_t Awake_ChargeCom_Actv_VCCU:1;
- u_int8_t Awake_Clamp15_Actv_VCCU:1;
- };
- struct NM_VCCU
- {
- struct{
- u_int8_t value:8;//VCCU_Vehicle_ContactorStatus 3 "SNA" 2 "Stuck" 1 "Closed" 0 "Opened"
- }WakeupRsn_VCCU;
- struct NM_VCCU_DATA DATA;
- };
- struct VCCU_PTC0_DATA
- {
- u_int8_t VCCU_PTC0_SelfDiagnosticStatus:3;
- };
- struct VCCU_PTC0
- {
- struct{
- u_int16_t value :16;
- }VCCU_PTC0_Raw;
- struct{
- u_int16_t value :16;
- }VCCU_PTC0_Resistance;
- struct{
- u_int16_t value :16;
- }VCCU_PTC0_Temperature;
- struct VCCU_PTC0_DATA DATA;
- };
- struct VCCU
- {
- struct VCCU_ChargeToVehicle chargeToVehicle;
- struct VCCU_V2G_StateM v2g_StateM;
- struct VCCU_ControlPilotStatus controlPilotStatus;
- struct VCCU_ChargeFromVehicle chargeFromVehicle;
- struct VCCU_InletStatus inletStatus;
- struct VCCU_V2G_VehicleStatus v2g_VehicleStatus;
- struct VCCU_V2G_EVMaximumVoltageLimit v2g_EVMaximumVoltageLimit;
- struct VCCU_V2G_EVMaximumCurrentLimit v2g_EVMaximumCurrentLimit;
- struct VCCU_V2G_EVTargetCurrent v2g_EVTargetCurrent;
- struct VCCU_V2G_EVTargetVoltage v2g_EVTargetVoltage;
- struct VCCU_V2G_EVSEPresentVoltage v2g_EVSEPresentVoltage;
- struct VCCU_V2G_EVSEMaximumCurrentLim v2g_EVSEMaximumCurrentLim;
- struct VCCU_PTC0 ptc0;
- struct VCCU_PTC1 ptc1;
- struct VCCU_Requests requests;
- };
- enum MOTHERBOARD_MSG_TYPE{
- MOTHERBOARD_MSG_ID01_DC_ID_ASSIGNMENT_REQ = 0,
- MOTHERBOARD_MSG_ID03_DC_STATUS_NOTIFICATION,
- MOTHERBOARD_MSG_ID04_DC_FW_VER_ACK,
- MOTHERBOARD_MSG_ID05_DC_HW_VER_ACK,
- MOTHERBOARD_MSG_ID09_DC_EV_REQUIREMENT_ACK,
- MOTHERBOARD_MSG_ID0A_DC_EV_BATTINFO_ACK,
- MOTHERBOARD_MSG_ID0B_DC_EV_STOP,
- MOTHERBOARD_MSG_ID0D_DC_MISCINFO_ACK,
- MOTHERBOARD_MSG_ID0E_DC_FW_DOWNLOAD_ACK,
- MOTHERBOARD_MSG_ID0F_DC_START_BLOCK_TRANSFER_ACK,
- MOTHERBOARD_MSG_ID11_DC_FW_DOWNLOAD_FINISH_ACK,
- MOTHERBOARD_MSG_ID12_DC_ISOLATION_RESULT_ACK,
- MOTHERBOARD_MSG_ID13_DC_EVSE_INFO_ACK,
- MOTHERBOARD_MSG_ID02_CSU_ID_ASSIGNMENT_ACK,
- MOTHERBOARD_MSG_ID04_CSU_FW_VER_REQ,
- MOTHERBOARD_MSG_ID05_CSU_HW_VER_REQ,
- MOTHERBOARD_MSG_ID06_CSU_PERMISSION,
- MOTHERBOARD_MSG_ID07_CSU_OUTPUT_POWER,
- MOTHERBOARD_MSG_ID08_CSU_OUTPUT_CAPACITY,
- MOTHERBOARD_MSG_ID09_CSU_EV_REQUIREMENT_REQ,
- MOTHERBOARD_MSG_ID0A_CSU_EV_BATTINFO_REQ,
- MOTHERBOARD_MSG_ID0C_CSU_EVSE_STOP,
- MOTHERBOARD_MSG_ID0D_CSU_MISCINFO_REQ,
- MOTHERBOARD_MSG_ID0E_CSU_FW_DOWNLOAD_REQ,
- MOTHERBOARD_MSG_ID0F_CSU_START_BLOCK_TRANSFER_REQ,
- MOTHERBOARD_MSG_ID10_CSU_DATA_TRANSFER,
- MOTHERBOARD_MSG_ID11_CSU_FW_DOWNLOAD_FINISH_REQ,
- MOTHERBOARD_MSG_ID12_CSU_ISOLATION_RESULT_REQ,
- MOTHERBOARD_MSG_ID13_CSU_EVSE_INFO_REQ
- };
- //------------------------------------------------------------
- #define ATE_ID03_DC_STATUS_NOTIFICATION_PRIORITY 6
- #define ATE_ID03_DC_STATUS_NOTIFICATION_INTERVAL 500
- #define ATE_ID03_DC_STATUS_NOTIFICATION_PF 0x0300
- #define ATE_ID03_DC_STATUS_NOTIFICATION_LENGTH 8
- #define ATE_ID03_DC_STATUS_NOTIFICATION_TIMEOUT 1000
- struct ATE_ID03_DC_STATUS_NOTIFICATION_DATA
- {
- u_int8_t ProximitySignal; //0 = connector un-plugged , 1 = connector plug-in
- u_int8_t PilotVoltage; //chademo and GB = 0
- u_int8_t state;
- u_int8_t AlarmCode2;
- u_int8_t AlarmCode3;
- u_int8_t AlarmCode4;
- u_int8_t AlarmCode5;
- u_int8_t AlarmCode6;
- };
- //------------------------------------------------------------
- #define ATE_ID04_CSU_FW_VER_REQ_PRIORITY 6
- #define ATE_ID04_CSU_FW_VER_REQ_INTERVAL 100
- #define ATE_ID04_CSU_FW_VER_REQ_PF 0x0400
- #define ATE_ID04_CSU_FW_VER_REQ_LENGTH 8
- #define ATE_ID04_CSU_FW_VER_REQ_TIMEOUT 1000
- struct ATE_ID04_CSU_FW_VER_REQ_DATA
- {
- u_int32_t res;
- u_int32_t res2;
- };
- //------------------------------------------------------------
- #define ATE_ID04_DC_FW_VER_ACK_PRIORITY 6
- #define ATE_ID04_DC_FW_VER_ACK_INTERVAL 100
- #define ATE_ID04_DC_FW_VER_ACK_PF 0x0400
- #define ATE_ID04_DC_FW_VER_ACK_LENGTH 8
- #define ATE_ID04_DC_FW_VER_ACK_TIMEOUT 1000
- struct ATE_ID04_DC_FW_VER_ACK_DATA
- {
- u_int32_t FirmwareVersion1;
- u_int32_t FirmwareVersion2;
- };
- //------------------------------------------------------------
- #define ATE_ID06_CSU_PERMISSION_PRIORITY 6
- #define ATE_ID06_CSU_PERMISSION_INTERVAL 100
- #define ATE_ID06_CSU_PERMISSION_PF 0x0600
- #define ATE_ID06_CSU_PERMISSION_LENGTH 8
- #define ATE_ID06_CSU_PERMISSION_TIMEOUT 1000
- struct ATE_ID06_CSU_PERMISSION_DATA
- {
- u_int8_t Permission; //1 = start , 0 = stop
- u_int16_t TotalBatteryCapacity; //0.1
- u_int16_t MaximumBatteryCurrent; //0.1
- u_int16_t MaximumBatteryVoltage; //0.1
- u_int8_t MaxChargingTimeMin;
- };
- //------------------------------------------------------------
- #define ATE_ID07_CSU_INPUT_POWER_PRIORITY 6
- #define ATE_ID07_CSU_INPUT_POWER_INTERVAL 100
- #define ATE_ID07_CSU_INPUT_POWER_PF 0x0700
- #define ATE_ID07_CSU_INPUT_POWER_LENGTH 8
- #define ATE_ID07_CSU_INPUT_POWER_TIMEOUT 1000
- struct ATE_ID07_CSU_INPUT_POWER_DATA
- {
- u_int16_t PresentInputVoltage; //目前relay火線輸入電壓
- u_int16_t PresentInputCurrent; //目前relay火線電流
- u_int16_t res0; //0.1
- u_int16_t res1; //0.1
- };
- //------------------------------------------------------------
- #define ATE_ID08_CSU_INPUT_REQUIREMENT_PRIORITY 6
- #define ATE_ID08_CSU_INPUT_REQUIREMENT_INTERVAL 100
- #define ATE_ID08_CSU_INPUT_REQUIREMENT_PF 0x0800
- #define ATE_ID08_CSU_INPUT_REQUIREMENT_LENGTH 8
- #define ATE_ID08_CSU_INPUT_REQUIREMENT_TIMEOUT 1000
- struct ATE_ID08_CSU_INPUT_REQUIREMENT_DATA
- {
- u_int16_t RequireVoltage; //0.1 需求電壓預設500V
- u_int16_t RequireCurrent; //0.1 需求電流預設60A
- u_int16_t PresentBattVoltage; //0.1 電池電壓預設192V
- u_int8_t MinimumChargeCurrent; //0.1 最小測電流2A //Only CHAdeMO 1.2
- u_int8_t ChargeAllow; //0.1 充電允許固定為1 //Only CHAdeMO 1.2
- };
- //------------------------------------------------------------
- #define ATE_ID09_CSU_EVSE_OUTPUT_STATUS_REQ_PRIORITY 6
- #define ATE_ID09_CSU_EVSE_OUTPUT_STATUS_REQ_INTERVAL 100
- #define ATE_ID09_CSU_EVSE_OUTPUT_STATUS_REQ_PF 0x0900
- #define ATE_ID09_CSU_EVSE_OUTPUT_STATUS_REQ_LENGTH 8
- #define ATE_ID09_CSU_EVSE_OUTPUT_STATUS_REQ_TIMEOUT 1000
- struct ATE_ID09_CSU_EVSE_OUTPUT_STATUS_REQ_DATA
- {
- u_int32_t res;
- u_int32_t res2;
- };
- //------------------------------------------------------------
- #define ATE_ID09_DC_EVSE_OUTPUT_STATUS_ACK_PRIORITY 6
- #define ATE_ID09_DC_EVSE_OUTPUT_STATUS_ACK_INTERVAL 100
- #define ATE_ID09_DC_EVSE_OUTPUT_STATUS_ACK_PF 0x0900
- #define ATE_ID09_DC_EVSE_OUTPUT_STATUS_ACK_LENGTH 8
- #define ATE_ID09_DC_EVSE_OUTPUT_STATUS_ACK_TIMEOUT 100
- struct ATE_ID09_DC_EVSE_OUTPUT_STATUS_ACK_DATA
- {
- u_int8_t DcEvState;
- u_int8_t ChargingMode;
- u_int16_t EvsePresentOutputVoltage;
- u_int16_t EvsePresentOutputCurrent;
- u_int16_t RemainingTimeSec;
- };
- //------------------------------------------------------------
- #define ATE_ID0A_CSU_EVSE_CAPACIYT_REQ_PRIORITY 6
- #define ATE_ID0A_CSU_EVSE_CAPACIYT_REQ_INTERVAL 100
- #define ATE_ID0A_CSU_EVSE_CAPACIYT_REQ_PF 0x0A00
- #define ATE_ID0A_CSU_EVSE_CAPACIYT_REQ_LENGTH 8
- #define ATE_ID0A_CSU_EVSE_CAPACIYT_REQ_TIMEOUT 300
- struct ATE_ID0A_CSU_EVSE_CAPACIYT_REQ_DATA
- {
- u_int32_t res;
- u_int32_t res2;
- };
- //------------------------------------------------------------
- #define ATE_ID0A_DC_EVSE_CAPACIYT_ACK_PRIORITY 6
- #define ATED_ID0A_DC_EVSE_CAPACIYT_ACK_INTERVAL 100
- #define ATE_ID0A_DC_EVSE_CAPACIYT_ACK_PF 0x0A00
- #define ATE_ID0A_DC_EVSE_CAPACIYT_ACK_LENGTH 8
- #define ATE_ID0A_DC_EVSE_CAPACIYT_ACK_TIMEOUT 100
- struct ATE_ID0A_DC_EVSE_CAPACIYT_ACK_DATA
- {
- u_int16_t EvseMaxChargeVoltage;
- u_int16_t EvseMaxChargeCurrent;
- u_int16_t EvseMinChargeVoltage;
- u_int16_t EvseMinChargeCurrent;
- u_int8_t res;
- };
- //------------------------------------------------------------
- #define ATE_ID0B_DC_EV_STOP_PRIORITY 6
- #define ATE_ID0B_DC_EV_STOP_INTERVAL 100
- #define ATE_ID0B_DC_EV_STOP_PF 0x0B00
- #define ATE_ID0B_DC_EV_STOP_LENGTH 8
- #define ATE_ID0B_DC_EV_STOP_TIMEOUT 50
- struct ATE_ID0B_DC_EV_STOP_DATA
- {
- u_int8_t EvStopReason; //0 = EV normal stop , 1 = EV emergency stop
- u_int8_t AlarmCode1;
- u_int8_t AlarmCode2;
- u_int8_t AlarmCode3;
- u_int8_t AlarmCode4;
- u_int8_t AlarmCode5;
- u_int8_t AlarmCode6;
- u_int8_t res;
- };
- //------------------------------------------------------------
- #define ATE_ID0C_CSU_EVSE_STOP_PRIORITY 6
- #define ATE_ID0C_CSU_EVSE_STOP_INTERVAL 100
- #define ATE_ID0C_CSU_EVSE_STOP_PF 0x0C00
- #define ATE_ID0C_CSU_EVSE_STOP_LENGTH 8
- #define ATE_ID0C_CSU_EVSE_STOP_TIMEOUT 300
- struct ATE_ID0C_CSU_EVSE_STOP_DATA
- {
- u_int8_t EvseStopReason; //0 = EVSE normal stop , 1 = EVSE emergency stop
- u_int8_t AlarmCode1;
- u_int8_t AlarmCode2;
- u_int8_t AlarmCode3;
- u_int8_t AlarmCode4;
- u_int8_t AlarmCode5;
- u_int8_t AlarmCode6;
- u_int8_t res;
- };
- //------------------------------------------------------------
- #define ATE_ID0D_CSU_MISCINFO_REQ_PRIORITY 6
- #define ATE_ID0D_CSU_MISCINFO_REQ_INTERVAL 100
- #define ATE_ID0D_CSU_MISCINFO_REQ_PF 0x0D00
- #define ATE_ID0D_CSU_MISCINFO_REQ_LENGTH 8
- #define ATE_ID0D_CSU_MISCINFO_REQ_TIMEOUT 1000
- struct ATE_ID0D_CSU_MISCINFO_REQ_DATA
- {
- u_int8_t K1K2Status; //0 = Off / 1 = ON
- u_int8_t Soc;
- u_int16_t res0;
- u_int16_t res1;
- u_int16_t res2;
- };
- //------------------------------------------------------------
- #define ATE_ID0D_DC_MISCINFO_ACK_PRIORITY 6
- #define ATE_ID0D_DC_MISCINFO_ACK_INTERVAL 100
- #define ATE_ID0D_DC_MISCINFO_ACK_PF 0x0D00
- #define ATE_ID0D_DC_MISCINFO_ACK_LENGTH 8
- #define ATE_ID0D_DC_MISCINFO_ACK_TIMEOUT 100
- struct ATE_ID0D_DC_MISCINFO_ACK_DATA
- {
- u_int8_t ConnectorLockStatus; //0 = released , 1 = locked
- u_int8_t ConnectorTmp1;
- u_int8_t ConnectorTmp2;
- u_int8_t PilotVoltage; //CHAdeMO and GB = 0
- u_int8_t K1K2OnOff;
- u_int8_t Res2;
- u_int8_t Res3;
- u_int8_t soc;
- };
- struct CHADEMO
- {
- struct ATE_ID03_DC_STATUS_NOTIFICATION_DATA id03;
- struct ATE_ID04_CSU_FW_VER_REQ_DATA id04_req;
- struct ATE_ID04_DC_FW_VER_ACK_DATA id04_ack;
- struct ATE_ID06_CSU_PERMISSION_DATA id06;
- struct ATE_ID07_CSU_INPUT_POWER_DATA id07;
- struct ATE_ID08_CSU_INPUT_REQUIREMENT_DATA id08;
- struct ATE_ID09_CSU_EVSE_OUTPUT_STATUS_REQ_DATA id09_req;
- struct ATE_ID09_DC_EVSE_OUTPUT_STATUS_ACK_DATA id09_ack;
- struct ATE_ID0A_CSU_EVSE_CAPACIYT_REQ_DATA id0A_req;
- struct ATE_ID0A_DC_EVSE_CAPACIYT_ACK_DATA id0A_ack;
- struct ATE_ID0B_DC_EV_STOP_DATA id0B;
- struct ATE_ID0C_CSU_EVSE_STOP_DATA id0C;
- struct ATE_ID0D_CSU_MISCINFO_REQ_DATA id0D_req;
- struct ATE_ID0D_DC_MISCINFO_ACK_DATA id0D_ack;
- int relaystatus;
- int PresentChargedDuration;
- int RemainChargingDuration;
- };
- struct Boot_Notification
- {
- u_int32_t boo1;//0x02
- u_int32_t boo2;//0x03
- };
- struct ATE_Connector_1
- {
- u_int16_t TargetVoltage;//0x02
- u_int16_t TargetCurrent;//0x03
- u_int16_t PresentVoltage;//0x03
- u_int16_t PresentCurrent;//0x03
- };
- struct ATE_Connector_2
- {
- u_int16_t TargetVoltage;//0x02
- u_int16_t TargetCurrent;//0x03
- u_int16_t PresentVoltage;//0x03
- u_int16_t PresentCurrent;//0x03
- };
- struct EVStatus
- {
- u_int8_t data;//Idle:0x01, Preparing:0x02, Charging:0x03, Charging termination:0x04, Fault:0x05
- };
- struct CHROMA
- {
- struct Boot_Notification bootNotification;
- struct ATE_Connector_1 ate_Connector_1;
- struct ATE_Connector_2 ate_Connector_2;
- struct EVStatus evstaus;
- };
- struct ATE
- {
- unsigned char ATEStatus;
- struct VCCU vccu;
- struct CHADEMO chademo;
- struct CHROMA chroma;
- int status;
- int ATEState;//0 none 1 vccu 2 gb
- int targetCurrent_Value;
- int targetVoltage_Value;
- int chademoTargetCurrent_Value;
- int chademoTargetVoltage_Value;
- int maximumCurrent_value;
- int maximumVoltage_value;
- int linkVoltage;
- int contactorVoltage;
- int RequireVoltage; //0.1
- int RequireCurrent; //0.1
- int PresentBattVoltage; //0.1
- int MinimumChargeCurrent;
- int Permission; //1 = start , 0 = stop
- int TotalBatteryCap; //0.1
- int MaxBatteryCurrent; //0.1
- int MaxBatteryVoltage; //0.1
- int MaxChargingTimeMin;
- unsigned char cATEStatus;
- int cstatus;
- int ctargetCurrent_Value;
- int ctargetVoltage_Value;
- int cmaximumCurrent_value;
- int cmaximumVoltage_value;
- int clinkVoltage;
- int ccontactorVoltage;
- int cRequireVoltage; //0.1
- int cRequireCurrent; //0.1
- int cPresentBattVoltage; //0.1
- int cMinimumChargeCurrent;
- int cPermission; //1 = start , 0 = stop
- int cTotalBatteryCap; //0.1
- int cMaxBatteryCurrent; //0.1
- int cMaxBatteryVoltage; //0.1
- int cMaxChargingTimeMin;
- int testMode;//測試模式
- int ateMode;//ATE模式 0 VCCU 1 GB
- int ateStatus;
- int atePreviousStatus;
- };
- struct SysConfigAndInfo
- {
- struct SysConfigData SysConfig;
- struct SysInfoData SysInfo;
- struct WARNING_CODE_INFO SysWarningInfo;
- struct STOP_CHARGING_ALARM_CODE SysStopChargingAlarmCode;
- struct ATE ate;
- };
- char Currency[54][3]=
- {
- "AED", // - Emirati Dirham
- "ARS", // - Argentine Peso
- "AUD", // - Australian Dollar
- "BGN", // - Bulgarian Lev
- "BHD", // - Bahraini Dinar
- "BND", // - Bruneian Dollar
- "BRL", // - Brazilian Real
- "BWP", // - Botswana Pula
- "CAD", // - Canadian Dollar
- "CHF", // - Swiss Franc
- "CLP", // - Chilean Peso
- "CNY", // - Chinese Yuan Renminbi
- "COP", // - Colombian Peso
- "CZK", // - Czech Koruna
- "DKK", // - Danish Krone
- "EUR", // - Euro
- "GBP", // - British Pound
- "HKD", // - Hong Kong Dollar
- "HRK", // - Croatian Kuna
- "HUF", // - Hungarian Forint
- "IDR", // - Indonesian Rupiah
- "ILS", // - Israeli Shekel
- "INR", // - Indian Rupee
- "IRR", // - Iranian Rial
- "ISK", // - Icelandic Krona
- "JPY", // - Japanese Yen
- "KRW", // - South Korean Won
- "KWD", // - Kuwaiti Dinar
- "KZT", // - Kazakhstani Tenge
- "LKR", // - Sri Lankan Rupee
- "LYD", // - Libyan Dinar
- "MUR", // - Mauritian Rupee
- "MXN", // - Mexican Peso
- "MYR", // - Malaysian Ringgit
- "NOK", // - Norwegian Krone
- "NPR", // - Nepalese Rupee
- "NZD", // - New Zealand Dollar
- "OMR", // - Omani Rial
- "PHP", // - Philippine Peso
- "PKR", // - Pakistani Rupee
- "PLN", // - Polish Zloty
- "QAR", // - Qatari Riyal
- "RON", // - Romanian New Leu
- "RUB", // - Russian Ruble
- "SAR", // - Saudi Arabian Riyal
- "SEK", // - Swedish Krona
- "SGD", // - Singapore Dollar
- "THB", // - Thai Baht
- "TRY", // - Turkish Lira
- "TTD", // - Trinidadian Dollar
- "TWD", // - Taiwan New Dollar
- "USD", // - US Dollar
- "VEF", // - Venezuelan Bolivar
- "ZAR" // - South African Rand
- };
- /**************************************************************************************/
- /**************************Alarm Share memory**************************************/
- /***************************************************************************************
- Status Code A B C D E F
- 0: Issue 1: From EVSE 1: Fault (unrecoverable) 001 ~ 999 serial number
- e.g., hardware broken, system latch
- 1: Recovered 2: From EV 2: Alarm (recoverable)
- e.g., OTP, OVP
- 3: From Backend 3: Information
- e.g., swipe card to stop charging
- according to XXX.Revxx
- ***************************************************************************************/
- /**************************************************************************************/
- char FaultStatusCode[40][6]=
- {
- "011001", //CHAdeMO output fuse blew
- "011002", //CCS output fuse blew
- "011003", //GB output fuse blew
- "011004", //RCD/CCID self-test fail
- "011005", //AC input contactor 1 welding
- "011006", //AC input contactor 1 driving fault
- "011007", //AC input contactor 2 welding
- "011008", //AC input contactor 2 driving fault
- "011009", //AC output relay welding
- "011010", //AC output relay driving fault
- "011011", //CHAdeMO output relay welding
- "011012", //CHAdeMO output relay driving fault
- "011013", //CCS output relay welding
- "011014", //CCS output relay driving fault
- "011015", //GB output relay welding
- "011016", //GB output relay driving fault
- "011017", //AC connector temperature sensor broken
- "011018", //CHAdeMO connector temperature sensor broken
- "011019", //CCS connector temperature sensor broken
- "011020", //GB connector temperature sensor broken
- "011021", //WiFi module broken
- "011022", //3G/4G module broken
- "011023", //Aux. power module broken
- "011024", //Relay control module /smart box broken
- "011025", //CHAdeMO connector lock fail
- "011026", //GB connector lock fail
- "011027", //AC connector lock fail
- "011028", //CHAdeMO module broken
- "011029", //CCS module broken
- "011030", //GBT module broken
- "011031", //PSU module broken
- "011032", //RCD/CCID module broken
- "011033", //Maximum Output Current setup error
- "011034", //Shutter fault
- "011035", //Ble module broken
- "011036", //Rotary switch fault
- "011037", //Reserved
- "011038", //Reserved
- "011039", //Reserved
- "011040" //Reserved
- };
- struct FaultCodeData
- {
- unsigned char PreviousFaultVal[5];
- union
- {
- unsigned char FaultVal[5];
- struct
- {
- //FaultVal[0]
- unsigned char ChademoOutputFuseBlew:1; //bit 0
- unsigned char CcsOutputFuseBlew:1; //bit 1
- unsigned char GbOutputFuseBlew:1; //bit 2
- unsigned char RcdSelfTestFail:1; //bit 3
- unsigned char AcInputContactor1Welding:1; //bit 4
- unsigned char AcInputContactor1DrivingFault:1; //bit 5
- unsigned char AcInputContactor2Welding:1; //bit 6
- unsigned char AcInputContactor2DrivingFault:1; //bit 7
- //FaultVal[1]
- unsigned char AcOutputRelayWelding:1; //bit 0
- unsigned char AcOutputRelayDrivingFault:1; //bit 1
- unsigned char ChademoOutputRelayWelding:1; //bit 2
- unsigned char ChademoOutputRelayDrivingFault:1; //bit 3
- unsigned char CcsOutputRelayWelding:1; //bit 4
- unsigned char CcsOutputRelayDrivingFault:1; //bit 5
- unsigned char GbOutputRelayWelding:1; //bit 6
- unsigned char GbOutputRelayDrivingFault:1; //bit 7
- //FaultVal[2]
- unsigned char AcConnectorTempSensorBroken:1; //bit 0
- unsigned char ChademoConnectorTempSensorBroken:1; //bit 1
- unsigned char CcsConnectorTempSensorBroken:1; //bit 2
- unsigned char GbConnectorTempSensorBroken:1; //bit 3
- unsigned char WiFiModuleBroken:1; //bit 4
- unsigned char Telecom4GModuleBroken:1; //bit 5
- unsigned char AuxPowerModuleBroken:1; //bit 6
- unsigned char RelayControlModuleBroken :1; //bit 7
- //FaultVal[3]
- unsigned char ChademoConnectorLockFail:1; //bit 0
- unsigned char GbConnectorLockFail:1; //bit 1
- unsigned char AcConnectorLockFail:1; //bit 2
- unsigned char ChademoModuleBroken:1; //bit 3
- unsigned char CcsModuleBroken:1; //bit 4
- unsigned char GbModuleBroken:1; //bit 5
- unsigned char PsuModuleBroken:1; //bit 6
- unsigned char RcdCcidModuleBroken:1; //bit 7
- //FaultVal[4]
- unsigned char MaximumOutputCurrentSetupError:1; //bit 0
- unsigned char ShutterFault:1; //bit 1
- unsigned char BleModuleBroken:1; //bit 2
- unsigned char RotarySwitchFault:1; //bit 3
- unsigned char :4; //bit 4 ~ 7 reserved
- }bits;
- }FaultEvents;
- };
- char AlarmStatusCode[128][6]=
- {
- "012200", //System L1 input OVP
- "012201", //System L2 input OVP
- "012202", //System L3 input OVP
- "012203", //System L1 input UVP
- "012204", //System L2 input UVP
- "012205", //System L3 input UVP
- "012206", //PSU L1 input OVP
- "012207", //PSU L2 input OVP
- "012208", //PSU L3 input OVP
- "012209", //PSU L1 input UVP
- "012210", //PSU L2 input UVP
- "012211", //PSU L3 input UVP
- "012212", //System L1 input drop
- "012213", //System L2 input drop
- "012214", //System L3 input drop
- "012215", //System AC output OVP
- "012216", //System AC output OCP L1
- "012217", //System CHAdeMO output OVP
- "012218", //System CHAdeMO output OCP
- "012219", //System CCS output OVP
- "012220", //System CCS output OCP
- "012221", //System GB output OVP
- "012222", //System GB output OCP
- "012223", //System ambient/inlet OTP
- "012224", //System critical point OTP
- "012225", //PSU ambient/inlet OTP
- "012226", //PSU critical point OTP
- "012227", //Aux. power module OTP
- "012228", //Relay board/smart box OTP
- "012229", //CHAdeMO connector OTP
- "012230", //CCS connector OTP
- "012231", //GB connector OTP
- "012232", //AC connector OTP
- "012233", //RCD/CCID trip
- "012234", //CHAdeMO GFD trip
- "012235", //CCS GFD trip
- "012236", //GB GFD trip
- "012237", //SPD trip
- "012238", //Main power breaker trip
- "012239", //Aux. power breaker trip
- "012240", //PSU communication fail
- "012241", //WiFi module communication fail
- "012242", //3G/4G module communication fail
- "012243", //RFID module communication fail
- "012244", //Bluetooth module communication fail
- "012245", //LCM module communication fail
- "012246", //Aux. power module communication fail
- "012247", //Relay control boaed/smart box communication fail
- "012248", //CCS module communication fail
- "012249", //CHAdeMO module communication fail
- "012250", //GBT module communication fail
- "012251", //Emergency stop
- "012252", //Door open
- "012253", //System fan decay
- "012254", //Fail to create share memory
- "012255", //CSU initialization failed
- "012256", //AC Ground Fault
- "012257", //MCU self-test Fault
- "012258", //Relay self-test Fault
- "012259", //CHAdeMO groundfault detection timeout (GFD)
- "012260", //CCS groundfault detection timeout (GFD)
- "012261", //GB groundfault detection timeout (GFD)
- "012262", //Circuit Short L1
- "012263", // PSU Duplicate ID
- "012264", // PSU Output Short Circuit
- "012265", // PSU Discharge Abnormal
- "012266", // PSU Dc Side ShutDown
- "012267", // PSU Failure Alarm
- "012268", // PSU Protection Alarm
- "012269", // PSU FanFailure Alarm
- "012270", // PSU Input UVP
- "012271", // PSU Input OVP
- "012272", // PSU WalkIn State
- "012273", // PSU Power Limited State
- "012274", // PSU Id Repeat
- "012275", // PSU Severe Uneven Current
- "012276", // PSU Three Phase Input Inadequate
- "012277", // PSU Three Phase Onput Imbalance
- "012278", // PSU Ffc Side ShutDown
- "012279", // NO PSU Resource
- "012280", // Self test Failed due to communication of Relayboard failure
- "012281", // Self test Failed due to communication of Fanboard failure
- "012282", // Self test Failed due to communication of Primary failure
- "012283", // Self test Failed due to communication of Chademoboard failure
- "012284", // Self test Failed due to communication of CCSboard failure
- "012285", // Self test Failed due to AC Contact failure
- "012286", // Self test Failed due to communication of PSU failure
- "012287", // Self test Failed due to Model name is none match
- "012288", // CCS output UVP
- "012289", // Chademo output UVP
- "012290", // GBT output UVP
- "012291", // Self test Failed due to communication of GBTboard failure
- "012292", // Self test Failed due to communication of AC failure
- "012293", // Self test Failed due to communication of Ledboard failure
- "012294", // Ac input OVP
- "012295", // Ac input UVP
- "012296", // CHAdeMO groundfault detection - warning
- "012297", // CCS groundfault detection - warning
- "012298", // GB groundfault detection - warning
- "012299", //System AC output OCP L2
- "012300", //System AC output OCP L3
- "012301", //Circuit Short L2
- "012302", //Circuit Short L3
- };
- struct AlarmCodeData
- {
- unsigned char PreviousAlarmVal[13];
- union
- {
- unsigned char AlarmVal[13];
- struct
- {
- //AlarmVal[0]
- unsigned char SystemL1InputOVP:1; //bit 0
- unsigned char SystemL2InputOVP:1; //bit 1
- unsigned char SystemL3InputOVP:1; //bit 2
- unsigned char SystemL1InputUVP:1; //bit 3
- unsigned char SystemL2InputUVP:1; //bit 4
- unsigned char SystemL3InputUVP:1; //bit 5
- unsigned char PsuL1InputOVP:1; //bit 6
- unsigned char PsuL2InputOVP:1; //bit 7
- //AlarmVal[1]
- unsigned char PsuL3InputOVP:1; //bit 0
- unsigned char PsuL1InputUVP:1; //bit 1
- unsigned char PsuL2InputUVP:1; //bit 2
- unsigned char PsuL3InputUVP :1; //bit 3
- unsigned char SystemL1InputDrop:1; //bit 4
- unsigned char SystemL2InputDrop:1; //bit 5
- unsigned char SystemL3InputDrop:1; //bit 6
- unsigned char SystemAcOutputOVP:1; //bit 7
- //AlarmVal[2]
- unsigned char SystemAcOutputOCP:1; //bit 0
- unsigned char SystemChademoOutputOVP:1; //bit 1
- unsigned char SystemChademoOutputOCP:1; //bit 2
- unsigned char SystemCcsOutputOVP:1; //bit 3
- unsigned char SystemCcsOutputOCP:1; //bit 4
- unsigned char SystemGbOutputOVP:1; //bit 5
- unsigned char SystemGbOutputOCP:1; //bit 6
- unsigned char SystemAmbientOTP :1; //bit 7
- //AlarmVal[3]
- unsigned char SystemCriticalPointOTP:1; //bit 0
- unsigned char PsuAmbientOTP:1; //bit 1
- unsigned char PsuCriticalPointOTP:1; //bit 2
- unsigned char AuxPowerModuleOTP:1; //bit 3
- unsigned char RelayBoardOTP:1; //bit 4
- unsigned char ChademoConnectorOTP:1; //bit 5
- unsigned char CcsConnectorOTP:1; //bit 6
- unsigned char GbConnectorOTP:1; //bit 7
- //AlarmVal[4]
- unsigned char AcConnectorOTP:1; //bit 0
- unsigned char RcdTrip:1; //bit 1
- unsigned char ChademoGfdTrip:1; //bit 2
- unsigned char CcsGfdTrip:1; //bit 3
- unsigned char GbGfdTrip:1; //bit 4
- unsigned char SpdTrip:1; //bit 5
- unsigned char MainPowerBreakerTrip:1; //bit 6
- unsigned char AuxPowerBreakerTrip:1; //bit 7
- //AlarmVal[5]
- unsigned char PsuCommunicationFail:1; //bit 0
- unsigned char WiFiModuleCommFail:1; //bit 1
- unsigned char Telecom4GModuleCommFail:1; //bit 2
- unsigned char RfidModuleCommFail:1; //bit 3
- unsigned char BluetoothModuleCommFail:1; //bit 4
- unsigned char LcmModuleCommFail:1; //bit 5
- unsigned char AuxPowerModuleCommFail:1; //bit 6
- unsigned char RelayBoardCommFail:1; //bit 7
- //AlarmVal[6]
- unsigned char CcsModuleCommFail:1; //bit 0
- unsigned char ChademoModuleCommFail:1; //bit 1
- unsigned char GbModuleCommFail:1; //bit 2
- unsigned char EmergencyStopTrip:1; //bit 3
- unsigned char DoorOpen:1; //bit 4
- unsigned char SystemFanDecay:1; //bit 5
- unsigned char FailToCreateShareMemory:1; //bit 6
- unsigned char CsuInitFailed:1; //bit 7
- //AlarmVal[7]
- unsigned char AcGroundfaultFail:1; //bit 0
- unsigned char McuSelftestFail:1; //bit 1
- unsigned char RelaySelftestFail:1; //bit 2
- unsigned char ChademoGroundfaultTimeout:1; //bit 3
- unsigned char CcsGroundfaultTimeout:1; //bit 4
- unsigned char GbGroundfaultTimeout:1; //bit 5
- unsigned char CircuitShort:1; //bit 6
- unsigned char PsuDuplicateID:1; //bit 7
- //AlarmVal[8]
- unsigned char PsuOutputShortCircuit :1; //bit 0
- unsigned char PsuDischargeAbnormal :1; //bit 1
- unsigned char PsuDcSideShutDown :1; //bit 2
- unsigned char PsuFailureAlarm :1; //bit 3
- unsigned char PsuProtectionAlarm :1; //bit 4
- unsigned char PsuFanFailureAlarm :1; //bit 5
- unsigned char PsuInputUVP:1; //bit 6
- unsigned char PsuInputOVP:1; //bit 7
- //AlarmVal[9]
- unsigned char PsuWalkInState :1; //bit 0
- unsigned char PsuPowerLimitedState :1; //bit 1
- unsigned char PsuIdRepeat :1; //bit 2
- unsigned char PsuSevereUnevenCurrent :1; //bit 3
- unsigned char PsuThreePhaseInputInadequate :1; //bit 4
- unsigned char PsuThreePhaseOnputImbalance :1; //bit 5
- unsigned char PsuFfcSideShutDown :1; //bit 6
- unsigned char PsuNoResource:1; //bit 7
- //AlarmVal[10]
- unsigned char RelayboardStestFail :1; //bit 0
- unsigned char FanboardStestFail :1; //bit 1
- unsigned char PrimaryStestFail :1; //bit 2
- unsigned char ChademoboardStestFail :1; //bit 3
- unsigned char CCSboardStestFail :1; //bit 4
- unsigned char AcContactStestFail :1; //bit 5
- unsigned char PsuModuleStestFail :1; //bit 6
- unsigned char ModelNameNoneMatchStestFail:1; //bit 7
- //AlarmVal[11]
- unsigned char CcsOutputUVPFail :1; //bit 0
- unsigned char ChademoOutputUVPFail :1; //bit 1
- unsigned char GbtOutputUVPFail :1; //bit 2
- unsigned char GbtboardStestFail :1; //bit 3
- unsigned char AcConnectorStestFail:1; //bit 4
- unsigned char LedboardStestFail:1; //bit 5
- unsigned char AcSystemInputOVP:1; //bit 6
- unsigned char AcSystemInputUVP:1; //bit 7
- //AlarmVal[12]
- unsigned char ChademoGroundWarning :1; //bit 0
- unsigned char CcsGroundfaultWarning :1; //bit 1
- unsigned char GbGroundfaultWarning :1; //bit 2
- unsigned char SystemAcOutputOCPL2:1; //bit 3
- unsigned char SystemAcOutputOCPL3:1; //bit 4
- unsigned char CircuitShortL2:1; //bit 5
- unsigned char CircuitShortL3:1; //bit 6
- unsigned char :1; //bit 7
- }bits;
- }AlarmEvents;
- };
- char InfoStatusCode[384][6]=
- {
- //Information comes from EVSE
- "013600", //Normal stop charging by user
- "013601", //Charging Time's up
- "013602", //Replace system air filter
- "013603", //Reach to CHAdeMO max. plugging times.
- "013604", //Reach to CCS max. plugging times.
- "013605", //Reach to GB max. plugging times.
- "013606", //Reach to AC max. plugging times.
- "013607", //CSU fimrware update fail
- "013608", //CHAdeMO Module fimrware update fail
- "013609", //CCS Module fimrware update fail
- "013610", //GB Module fimrware update fail
- "013611", //Aux. power module fimrware update fail
- "013612", //Relay control module fimrware update fail
- "013613", //LCM module fimrware update fail
- "013614", //Bluetooth module fimrware update fail
- "013615", //WiFi module fimrware update fail
- "013616", //3G/4G module fimrware update fail
- "013617", //SMR fimrware update fail
- "013618", //RFID module fimrware update fail
- "013619", //configured by USB flash drive
- "013620", //configured by backend
- "013621", //configured by webpage
- "013622", //disconnected from Internet through Ethernet
- "013623", //disconnected from Internet through WiFi
- "013624", //disconnected from Internet through 3G/4G
- "013625", //disconnected from AP through WiFi
- "013626", //disconnected from APN through 3G/4G
- "013627", //Reserved
- "013628", //Reserved
- "013629", //Reserved
- "013630", //Reserved
- "013631", //Reserved
- //Information comes from EV
- "023700", //CHAdeMO EV communication Fail
- "023701", //CCS EV communication Fail
- "023702", //GB EV communication Fail
- "023703", //AC: pilot fault
- "023704", //CHAdeMO: battery malfunction
- "023705", //CHAdeMO: no charging permission
- "023706", //CHAdeMO: battery incompatibility
- "023707", //CHAdeMO: battery OVP
- "023708", //CHAdeMO: battery UVP
- "023709", //CHAdeMO: battery OTP
- "023710", //CHAdeMO: battery current difference
- "023711", //CHAdeMO: battery voltage difference
- "023712", //CHAdeMO: shift position
- "023713", //CHAdeMO: battery other fault
- "023714", //CHAdeMO: charging system error
- "023715", //CHAdeMO: EV normal stop
- "023716", //CHAdeMO: connector temperature sensor broken
- "023717", //CHAdeMO: connector lock fail
- "023718", //CHAdeMO: D1 ON No Receive
- "023719", //CHAdeMO: BMS K to J Timeout
- "023720", //CHAdeMO: BMS Charge Allow Timeout
- "023721", //CHAdeMO: Wait GroundFault Timeout
- "023722", //CHAdeMO: BMS EV Relay Timeout
- "023723", //CHAdeMO: BMS Request Current Timeout
- "023724", //CHAdeMO: BMS K to J OFF Timeout
- "023725", //CHAdeMO: BMS EV Relay OFF Timeout
- "023726", //CHAdeMO: ADC More Than 10V
- "023727", //CHAdeMO: ADC More Than 20V
- "023728", //CHAdeMO: BMS Charge Before Stop
- "023729", //CHAdeMO: Charger Get Normal Stop
- "023730", //CHAdeMO: Charger Get Emergency Stop
- "023731", //CHAdeMO: Isolation Result Fail
- "023732", //CHAdeMO: Miss Link With MotherBoard
- "023733", //CHAdeMO: Output Voltage More Than Limit
- "023734", //CHAdeMO: Request Current More Than Limit
- "023735", //CHAdeMO: Re Cap BMS Eqr Current Exceed
- "023736", //CHAdeMO: Charge Remain Count Down
- "023737", //CCS:CCS_EVCC_EVErrorCode_FAILED_RESSTemperatureInhibit
- "023738", //CCS:CCS_EVCC_EVErrorCode_FAILED_EVShiftPosition
- "023739", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargerConnectorLockFault
- "023740", //CCS:CCS_EVCC_EVErrorCode_FAILED_EVRESSMalfunction
- "023741", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargingCurrentdifferential
- "023742", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargingVoltageOutOfRange
- "023743", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargingSystemIncompatibility
- "023744", //CCS:CCS_EVCC_EVErrorCode_FAILED_EmergencyEvent
- "023745", //CCS:CCS_EVCC_EVErrorCode_FAILED_Breaker
- "023746", //CCS:CCS_EVCC_EVErrorCode_FAILED_NoData
- "023747", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_DIN_A
- "023748", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_DIN_B
- "023749", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_DIN_C
- "023750", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_ISO_1
- "023751", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_ISO_2
- "023752", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_ISO_3
- "023753", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_1
- "023754", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_2
- "023755", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_3
- "023756", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_4
- "023757", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_5
- "023758", //CCS:CCS_SECC_ResponseCode_FAILED_SequenceError
- "023759", //CCS:CCS_SECC_ResponseCode_FAILED_SignatureError
- "023760", //CCS:CCS_SECC_ResponseCode_FAILED_UnknownSession
- "023761", //CCS:CCS_SECC_ResponseCode_FAILED_ServiceIDInvalid
- "023762", //CCS:CCS_SECC_ResponseCode_FAILED_Payment SelectionInvalid
- "023763", //CCS:CCS_SECC_ResponseCode_FAILED_IdentificationSelectionInvalid
- "023764", //CCS:CCS_SECC_ResponseCode_FAILED_ServiceSelectionInvalid
- "023765", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateExpired
- "023766", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateNotYetValid
- "023767", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateRevoked
- "023768", //CCS:CCS_SECC_ResponseCode_FAILED_NoCertificateAvailable
- "023769", //CCS:CCS_SECC_ResponseCode_FAILED_CertChainError
- "023770", //CCS:CCS_SECC_ResponseCode_FAILED_CertValidationError
- "023771", //CCS:CCS_SECC_ResponseCode_FAILED_CertVerificationError
- "023772", //CCS:CCS_SECC_ResponseCode_FAILED_ContractCanceled
- "023773", //CCS:CCS_SECC_ResponseCode_FAILED_ChallengeInvalid
- "023774", //CCS:CCS_SECC_ResponseCode_FAILED_WrongEnergyTransferMode
- "023775", //CCS:CCS_SECC_ResponseCode_FAILED_WrongChargeParameter
- "023776", //CCS:CCS_SECC_ResponseCode_FAILED_ChargingProfileInvalid
- "023777", //CCS:CCS_SECC_ResponseCode_FAILED_TariffSelectionInvalid
- "023778", //CCS:CCS_SECC_ResponseCode_FAILED_EVSEPresentVoltageToLow
- "023779", //CCS:CCS_SECC_ResponseCode_FAILED_PowerDeliveryNotApplied
- "023780", //CCS:CCS_SECC_ResponseCode_FAILED_MeteringSignatureNotValid
- "023781", //CCS:CCS_SECC_ResponseCode_FAILED_NoChargeServiceSelected
- "023782", //CCS:CCS_SECC_ResponseCode_FAILED_ContactorError
- "023783", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateNotAllowedAtThisEVSE
- "023784", //CCS:CCS_SECC_ResponseCode_FAILED_GAChargeStop
- "023785", //CCS:CCS_SECC_ResponseCode_FAILED_AlignmentError
- "023786", //CCS:CCS_SECC_ResponseCode_FAILED_ACDError
- "023787", //CCS:CCS_SECC_ResponseCode_FAILED_AssociationError
- "023788", //CCS:CCS_SECC_ResponseCode_FAILED_EVSEChargeAbort
- "023789", //CCS:CCS_SECC_ResponseCode_FAILED_NoSupportedApp-Protocol-Protocol
- "023790", //CCS:CCS_SECC_ResponseCode_FAILED_ContractNotAccepted
- "023791", //CCS:CCS_SECC_ResponseCode_FAILED_MOUnknown
- "023792", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_Prov_CertificateRevoke
- "023793", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_SubCA1_CertificateRevoked
- "023794", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_SubCA2_CertificateRevoked
- "023795", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_RootCA_CertificateRevoked
- "023796", //CCS:CCS_SECC_ResponseCode_FAILED_MO_Prov_CertificateRevoked
- "023797", //CCS:CCS_SECC_ResponseCode_FAILED_MO_SubCA1_CertificateRevoked
- "023798", //CCS:CCS_SECC_ResponseCode_FAILED_MO_SubCA2_CertificateRevoked
- "023799", //CCS:CCS_SECC_ResponseCode_FAILED_MO_RootCA_CertificateRevoked
- "023800", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_Prov_CertificateRevoked
- "023801", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_SubCA1_CertificateRevoked
- "023802", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_SubCA2_CertificateRevoked
- "023803", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_RootCA_CertificateRevoked
- "023804", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_1
- "023805", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_2
- "023806", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_3
- "023807", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_4
- "023808", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_5
- "023809", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_SLAC_init
- "023810", //CCS:CCS_SECC_TIMEOUT_SLAC_TP_match_response
- "023811", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_match_sequence
- "023812", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_match_MNBC
- "023813", //CCS:CCS_SECC_TIMEOUT_SLAC_TP_EVSE_avg_atten_calc
- "023814", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_match_response
- "023815", //CCS:CCS_SECC_TIMEOUT_SLAC_TP_EVSE_match_session
- "023816", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_assoc_session
- "023817", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_vald_toggle
- "023818", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_1
- "023819", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_2
- "023820", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_3
- "023821", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_4
- "023822", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_5
- "023823", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_UDP_TT_match_join
- "023824", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_TCP_TT_match_join
- "023825", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_TP_amp_map_exchange
- "023826", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_TP_link_ready_notification
- "023827", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_1
- "023828", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_2
- "023829", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_3
- "023830", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_4
- "023831", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_5
- "023832", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_SupportedAppProtocolRes
- "023833", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_SessionSetupRes
- "023834", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ServiceDiscoveryRes
- "023835", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ServicePaymentSelectionRes
- "023836", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ContractAuthenticationRes
- "023837", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ChargeParameterDiscoveryRes
- "023838", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_PowerDeliveryRes
- "023839", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_CableCheckRes
- "023840", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_PreChargeRes
- "023841", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_CurrentDemandRes
- "023842", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_WeldingDetectionRes
- "023843", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_SessionStopRes
- "023844", //CCS:CCS_SECC_TIMEOUT_V2G_Sequence_Time
- "023845", //CCS:CCS_SECC_TIMEOUT_V2G_ReadyToCharge_Performance_Time
- "023846", //CCS:CCS_SECC_TIMEOUT_V2G_CommunicationSetup_Performance_Time
- "023847", //CCS:CCS_SECC_TIMEOUT_V2G_CableCheck_Performance_Time
- "023848", //CCS:CCS_SECC_TIMEOUT_V2G_CPState_Detection_Time
- "023849", //CCS:CCS_SECC_TIMEOUT_V2G_CPOscillator_Retain_Time
- "023850", //CCS:CCS_SECC_TIMEOUT_V2G_PreCharge_Performace_Time
- "023851", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_2
- "023852", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_3
- "023853", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_4
- "023854", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_5
- "023855", //CCS:CCS_CAN_TIMEOUT_TP_GET_EV_TARGET_INFO
- "023856", //CCS:CCS_CAN_TIMEOUT_TT_GET_EV_TARGET_INFO
- "023857", //CCS:CCS_CAN_TIMEOUT_TP_GET_EV_BATTERY_INFO
- "023858", //CCS:CCS_CAN_TIMEOUT_TT_GET_EV_BATTERY_INFO
- "023859", //CCS:CCS_CAN_TIMEOUT_TP_EV_STOP_EVENT
- "023860", //CCS:CCS_CAN_TIMEOUT_TT_EV_STOP_EVENT
- "023861", //CCS:CCS_CAN_TIMEOUT_TP_EVSE_STOP_EVENT
- "023862", //CCS:CCS_CAN_TIMEOUT_TT_EVSE_STOP_EVENT
- "023863", //CCS:CCS_CAN_TIMEOUT_TP_GET_MISC_INFO
- "023864", //CCS:CCS_CAN_TIMEOUT_TT_GET_MISC_INFO
- "023865", //CCS:CCS_CAN_TIMEOUT_TP_DOWNLOAD_REQUEST
- "023866", //CCS:CCS_CAN_TIMEOUT_TT_DOWNLOAD_REQUEST
- "023867", //CCS:CCS_CAN_TIMEOUT_TP_START_BLOCK_TRANSFER
- "023868", //CCS:CCS_CAN_TIMEOUT_TT_START_BLOCK_TRANSFER
- "023869", //CCS:CCS_CAN_TIMEOUT_TP_DATA_TRANSFER
- "023870", //CCS:CCS_CAN_TIMEOUT_TT_DATA_TRANSFER
- "023871", //CCS:CCS_CAN_TIMEOUT_TP_DOWNLOAD_FINISH
- "023872", //CCS:CCS_CAN_TIMEOUT_TT_DOWNLOAD_FINISH
- "023873", //CCS:CCS_CAN_TIMEOUT_TP_ISOLATION_STATUS
- "023874", //CCS:CCS_CAN_TIMEOUT_TT_ISOLATION_STATUS
- "023875", //CCS:CCS_CAN_TIMEOUT_TP_CONNECTOR_INFO
- "023876", //CCS:CCS_CAN_TIMEOUT_TT_CONNECTOR_INFO
- "023877", //CCS:CCS_CAN_TIMEOUT_TT_RTC_INFO
- "023878", //CCS:CCS_CAN_TIMEOUT_TP_RTC_INFO
- "023879", //CCS:CCS_CAN_TIMEOUT_TP_EVSE_PRECHARGE_INFO
- "023880", //CCS:CCS_CAN_TIMEOUT_TT_EVSE_PRECHARGE_INFO
- "023881", //CCS:CCS_CAN_TIMEOUT_MSG_Sequence
- "023882", //CCS:CCS_CAN_MSG_Unrecognized_CMD_ID
- "023883", //CCS:CCS_SECC_DIN_Msg_Decode_Error
- "023884", //CCS:CCS_SECC_DIN_Msg_Encode_Error
- "023885", //CCS:CCS_SECC_ISO1_Msg_Decode_Error
- "023886", //CCS:CCS_SECC_ISO1_Msg_Encode_Error
- "023887", //CCS:CCS_SECC_ISO2_Msg_Decode_Error
- "023888", //CCS:CCS_SECC_ISO2_Msg_Encode_Error
- "023889", //CCS:CCS_SECC_CP_STATUS_Error
- "023890", //CCS:CCS_SECC_Unexpected_60V_Before_Charing_Error
- "023891", //CCS:CCS_SECC_Not_Ready_For_Charging
- "023892", //CCS:CCS_SECCC_TIMEOUT_QCA7000_COMM (The firmware code of QCA7000 may not be installed, yet)
- "023893", //Reserved
- "023894", //Reserved
- "023895", //Reserved
- "023896", //Reserved
- "023897", //Reserved
- "023898", //Reserved
- "023899", //Reserved
- "023900", //GBT: ERROR_CODE_GBT_LOS_CC1
- "023901", //GBT: ERROR_CODE_GBT_CONNECTOR_LOCK_FAIL
- "023902", //GBT: ERROR_CODE_GBT_BATTERY_INCOMPATIBLE
- "023903", //GBT: ERROR_CODE_GBT_BMS_BROAA_TIMEOUT
- "023904", //GBT: ERROR_CODE_GBT_CSU_PRECHARGE_TIMEOUT
- "023905", //GBT: ERROR_CODE_GBT_BMS_PRESENT_VOLTAGE_FAULT
- "023906", //GBT: ERROR_CODE_GBT_BMS_VOLTAGE_OVER_RANGE
- "023907", //GBT: ERROR_CODE_GBT_BSM_CHARGE_ALLOW_00_10MIN_COUUNTDONE
- "023908", //GBT: ERROR_CODE_GBT_WAIT_GROUNDFAULT_TIMEOUT
- "023909", //GBT: ERROR_CODE_GBT_ADC_MORE_THAN_10V
- "023910", //GBT: ERROR_CODE_GBT_ADC_MORE_THAN_60V
- "023911", //GBT: ERROR_CODE_GBT_CHARGER_GET_NORMAL_STOP_CMD
- "023912", //GBT: ERROR_CODE_GBT_CHARGER_GET_EMERGENCY_STOP_CMD
- "023913", //GBT: ERROR_CODE_GBT_ISOLATION_RESULT_FAIL
- "023914", //GBT: ERROR_CODE_GBT_MOTHER_BOARD_MISS_LINK
- "023915", //GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_LIMIT
- "023916", //GBT: ERROR_CODE_GBT_REQ_CURRENT_MORE_THAN_LIMIT
- "023917", //GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_10_PERCENT
- "023918", //GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_DIFF_BCS_5_PERCENT
- "023919", //GBT: ERROR_CODE_GBT_STOP_ADC_MORE_THAN_10V
- "023920", // Reserved
- "023921", // Reserved
- "023922", // Reserved
- "023923", // Reserved
- "023924", // Reserved
- "023925", // Reserved
- "023926", // Reserved
- "023927", // Reserved
- "023928", // Reserved
- "023929", // Reserved
- "023930", //GBT: ERROR_CODE_CEM_BHM_TIMEOUT
- "023931", //GBT: ERROR_CODE_CEM_BRM_TIMEOUT
- "023932", //GBT: ERROR_CODE_CEM_BCP_TIMEOUT
- "023933", //GBT: ERROR_CODE_CEM_BRO_TIMEOUT
- "023934", //GBT: ERROR_CODE_CEM_BCL_TIMEOUT
- "023935", //GBT: ERROR_CODE_CEM_BCS_TIMEOUT
- "023936", //GBT: ERROR_CODE_CEM_BSM_TIMEOUT
- "023937", //GBT: ERROR_CODE_CEM_BST_TIMEOUT
- "023938", //GBT: ERROR_CODE_CEM_BSD_TIMEOUT
- "023939", //GBT: ERROR_CODE_CEM_BEM_OTHER_TIMEOUT
- "023940", //GBT: ERROR_CODE_BEM_CRM_TIMEOUT
- "023941", //GBT: ERROR_CODE_BEM_CRMAA_TIMEOUT
- "023942", //GBT: ERROR_CODE_BEM_CTS_CML_TIMEOUT
- "023943", //GBT: ERROR_CODE_BEM_CRO_TIMEOUT
- "023944", //GBT: ERROR_CODE_BEM_CCS_TIMEOUT
- "023945", //GBT: ERROR_CODE_BEM_CST_TIMEOUT
- "023946", //GBT: ERROR_CODE_BEM_CSD_TIMEOUT
- "023947", //GBT: ERROR_CODE_BEM_BEM_OTHER_TIMEOUT
- "023948", // Reserved
- "023949", // Reserved
- "023950", //GBT: ERROR_CODE_BST_SOC_GOAL
- "023951", //GBT: ERROR_CODE_BST_TOTAL_VOLTAGE_GOAL
- "023952", //GBT: ERROR_CODE_BST_CELL_VOLTAGE_GOAL
- "023953", //GBT: ERROR_CODE_BST_GET_CST
- "023954", //GBT: ERROR_CODE_BST_ISOLATION
- "023955", //GBT: ERROR_CODE_BST_OUTPUT_CONNECTOR_OTP
- "023956", //GBT: ERROR_CODE_BST_COMPONENT
- "023957", //GBT: ERROR_CODE_BST_CHARGE_CONNECTOR
- "023958", //GBT: ERROR_CODE_BST_OTP
- "023959", //GBT: ERROR_CODE_BST_OTHER
- "023960", //GBT: ERROR_CODE_BST_HIGH_V
- "023961", //GBT: ERROR_CODE_BST_CC2
- "023962", //GBT: ERROR_CODE_BST_CURRENT
- "023963", //GBT: ERROR_CODE_BST_VOLTAGE
- "023964", //GBT: ERROR_CODE_GET_BST_NO_REASON
- "023965", // Reserved
- "023966", // Reserved
- "023967", // Reserved
- "023968", // Reserved
- "023969", // Reserved
- "023970", //GBT: ERROR_CODE_BSM_CELL_OVER_VOLTAGE
- "023971", //GBT: ERROR_CODE_BSM_CELL_UNDER_VOLTAGE
- "023972", //GBT: ERROR_CODE_BSM_OVER_SOC
- "023973", //GBT: ERROR_CODE_BSM_UNDER_SOC
- "023974", //GBT: ERROR_CODE_BSM_CURRENT
- "023975", //GBT: ERROR_CODE_BSM_TEMPERATURE
- "023976", //GBT: ERROR_CODE_BSM_ISOLATE
- "023977", //GBT: ERROR_CODE_BSM_OUTPUT_CONNECTOR
- "023978", // Reserved
- "023979", // Reserved
- "033900", //disconnected from backend through Ethernet
- "033901", //disconnected from backend through WiFi
- "033902", //disconnected from backend through 3G/4G
- "033903", //Remote start charging by backend
- "033904", //Remote stop charging by backend
- "033905", //Remote reset by backend
- "033906", //Reserved
- "033907", //Reserved
- };
- struct InfoCodeData
- {
- unsigned char PreviousInfoVal[40];
- union
- {
- unsigned char InfoVal[40];
- struct
- {
- //InfoVal[0]
- unsigned char NormalStopChargingByUser:1; //bit 0
- unsigned char ChargingTimesUp:1; //bit 1
- unsigned char ReplaceSystemAirFilter:1; //bit 2
- unsigned char ReachChademoMaxPluggingTimes:1; //bit 3
- unsigned char ReachCcsMaxPluggingTimes:1; //bit 4
- unsigned char ReachGbMaxPluggingTimes:1; //bit 5
- unsigned char ReachAcMaxPluggingTimes:1; //bit 6
- unsigned char CsuFimrwareUpdateFail:1; //bit 7
- //InfoVal[1]
- unsigned char ChademoModuleFimrwareUpdateFail:1; //bit 0
- unsigned char CcsModuleFimrwareUpdateFail:1; //bit 1
- unsigned char GbModuleFimrwareUpdateFail:1; //bit 2
- unsigned char AuxPowerModuleFimrwareUpdateFail:1; //bit 3
- unsigned char RelayBoardFimrwareUpdateFail:1; //bit 4
- unsigned char LcmModuleFimrwareUpdateFail:1; //bit 5
- unsigned char BluetoothModuleFimrwareUpdateFail:1; //bit 6
- unsigned char WiFiModuleFimrwareUpdateFail:1; //bit 7
- //InfoVal[2]
- unsigned char Telocom4GModuleFimrwareUpdateFail:1; //bit 0
- unsigned char PsuFimrwareUpdateFail:1; //bit 1
- unsigned char RfidModuleFimrwareUpdateFail:1; //bit 2
- unsigned char ConfiguredByUsbFlashDrive:1; //bit 3
- unsigned char ConfiguredByBackend:1; //bit 4
- unsigned char ConfiguredByWebpage:1; //bit 5
- unsigned char InternetDisconnectViaEthernet:1; //bit 6
- unsigned char InternetDisconnectViaWiFi :1; //bit 7
- //InfoVal[3]
- unsigned char InternetDisconnectVia4Gi:1; //bit 0
- unsigned char ApDisconnectViaWiFi:1; //bit 1
- unsigned char ApnDisconnectVia4Gi:1; //bit 2
- unsigned char :5; //bit 3~7 reserved
- //InfoVal[4]
- unsigned char ChademoEvCommFail:1; //bit 0
- unsigned char CcsEvCommFail:1; //bit 1
- unsigned char GbEvCommFail:1; //bit 2
- unsigned char PilotFault:1; //bit 3
- unsigned char ChademoBatteryMalfun:1; //bit 4
- unsigned char ChademoNoPermission:1; //bit 5
- unsigned char ChademoBatteryIncompatibility:1; //bit 6
- unsigned char ChademoBatteryOVP:1; //bit 7
- //InfoVal[5]
- unsigned char ChademoBatteryUVP:1; //bit 0
- unsigned char ChademoBatteryOTP:1; //bit 1
- unsigned char ChademoBatteryCurrentDiff:1; //bit 2
- unsigned char ChademoBatteryVoltageDiff:1; //bit 3
- unsigned char ChademoShiftPosition:1; //bit 4
- unsigned char ChademoBatteryOtherFault:1; //bit 5
- unsigned char ChademoChargingSystemError:1; //bit 6
- unsigned char ChademoEvNormalStop:1; //bit 7
- //InfoVal[6]
- unsigned char ChademoTempSensorBroken:1; //bit 0
- unsigned char ChademoConnectorLockFail:1; //bit 1
- unsigned char ChademoD1OnNoReceive:1; //bit 2
- unsigned char ChademoBmsKtoJTimeout:1; //bit 3
- unsigned char ChademoBmsChargeAllowTimeout:1; //bit 4
- unsigned char ChademoWaitGfdTimeout:1; //bit 5
- unsigned char ChademoBmsEvRelayTimeout:1; //bit 6
- unsigned char ChademoBmsReqCurrentTimeout:1; //bit 7
- //InfoVal[7]
- unsigned char ChademoBmsKtoJOffTimeout :1; //bit 0
- unsigned char ChademoBmsEvRelayOffTimeout :1; //bit 1
- unsigned char ChademoAdcMoreThan10V :1; //bit 2
- unsigned char ChademoAdcMoreThan20V :1; //bit 3
- unsigned char ChademoBmsChargeBeforeStop :1; //bit 4
- unsigned char ChademoChargerGetNormalStop :1; //bit 5
- unsigned char ChademoChargerGetEmergencyStop :1; //bit 6
- unsigned char ChademoIsolationResultFail :1; //bit 7
- //InfoVal[8]
- unsigned char ChademoMissLinkWithMotherBoard :1; //bit 0
- unsigned char ChademoOutputVolMoreThanLimit :1; //bit 1
- unsigned char ChademoReqCurrentMoreThanLimit :1; //bit 2
- unsigned char ChademoReCapBmsEqrCurrentExceed :1; //bit 3
- unsigned char ChademoChargeRemainCountDown :1; //bit 4
- unsigned char CcsRESTemperatureInhibit:1; //bit 5
- unsigned char CcsEVShiftPosition:1; //bit 6
- unsigned char CcsChargerConnectorLockFault:1; //bit 7
- //InfoVal[9]
- unsigned char CcsEVRESSMalfunction:1; //bit 0
- unsigned char CcsChargingCurrentdifferential:1; //bit 1
- unsigned char CcsChargingVoltageOutOfRange:1; //bit 2
- unsigned char CcsChargingSystemIncompatibility:1; //bit 3
- unsigned char CcsEmergencyEvent:1; //bit 4
- unsigned char CcsBreaker:1; //bit 5
- unsigned char CcsNoData:1; //bit 6
- unsigned char Ccsreserved_by_DIN_A:1; //bit 7
- //InfoVal[10]
- unsigned char Ccsreserved_by_DIN_B:1; //bit 0
- unsigned char Ccsreserved_by_DIN_C:1; //bit 1
- unsigned char Ccsreserved_by_ISO_1:1; //bit 2
- unsigned char Ccsreserved_by_ISO_2:1; //bit 3
- unsigned char Ccsreserved_by_ISO_3:1; //bit 4
- unsigned char Ccsreserved_by_OEM_1:1; //bit 5
- unsigned char Ccsreserved_by_OEM_2:1; //bit 6
- unsigned char Ccsreserved_by_OEM_3:1; //bit 7
- //InfoVal[11]
- unsigned char Ccsreserved_by_OEM_4:1; //bit 0
- unsigned char Ccsreserved_by_OEM_5:1; //bit 1
- unsigned char CcsSequenceError:1; //bit 2
- unsigned char CcsSignatureError:1; //bit 3
- unsigned char CcsUnknownSession:1; //bit 4
- unsigned char CcsServiceIDInvalid:1; //bit 5
- unsigned char CcsPaymentSelectionInvalid:1; //bit 6
- unsigned char CcsIdentificationSelectionInvalid:1; //bit 7
- //InfoVal[12]
- unsigned char CcsServiceSelectionInvalid:1; //bit 0
- unsigned char CcsCertificateExpired:1; //bit 1
- unsigned char CcsCertificateNotYetValid:1; //bit 2
- unsigned char CcsCertificateRevoked:1; //bit 3
- unsigned char CcsNoCertificateAvailable:1; //bit 4
- unsigned char CcsCertChainError:1; //bit 5
- unsigned char CcsCertValidationError:1; //bit 6
- unsigned char CcsCertVerificationError:1; //bit 7
- //InfoVal[13]
- unsigned char CcsContractCanceled:1; //bit 0
- unsigned char CcsChallengeInvalid:1; //bit 1
- unsigned char CcsWrongEnergyTransferMode:1; //bit 2
- unsigned char CcsWrongChargeParameter:1; //bit 3
- unsigned char CcsChargingProfileInvalid:1; //bit 4
- unsigned char CcsTariffSelectionInvalid:1; //bit 5
- unsigned char CcsEVSEPresentVoltageToLow:1; //bit 6
- unsigned char CcsPowerDeliveryNotApplied:1; //bit 7
- //InfoVal[14]
- unsigned char CcsMeteringSignatureNotValid:1; //bit 0
- unsigned char CcsNoChargeServiceSelected:1; //bit 1
- unsigned char CcsContactorError:1; //bit 2
- unsigned char CcsCertificateNotAllowedAtThisEVSE:1; //bit 3
- unsigned char CcsGAChargeStop:1; //bit 4
- unsigned char CcsAlignmentError:1; //bit 5
- unsigned char CcsACDError:1; //bit 6
- unsigned char CcsAssociationError:1; //bit 7
- //InfoVal[15]
- unsigned char CcsEVSEChargeAbort:1; //bit 0
- unsigned char CcsNoSupportedAppProtocol:1; //bit 1
- unsigned char CcsContractNotAccepted:1; //bit 2
- unsigned char CcsMOUnknown:1; //bit 3
- unsigned char CcsOEM_Prov_CertificateRevoke:1; //bit 4
- unsigned char CcsOEM_SubCA1_CertificateRevoked:1; //bit 5
- unsigned char CcsOEM_SubCA2_CertificateRevoked:1; //bit 6
- unsigned char CcsOEM_RootCA_CertificateRevoked:1; //bit 7
- //InfoVal[16]
- unsigned char CcsMO_Prov_CertificateRevoked:1; //bit 0
- unsigned char CcsMO_SubCA1_CertificateRevoked:1; //bit 1
- unsigned char CcsMO_SubCA2_CertificateRevoked:1; //bit 2
- unsigned char CcsMO_RootCA_CertificateRevoked:1; //bit 3
- unsigned char CcsCPS_Prov_CertificateRevoked:1; //bit 4
- unsigned char CcsCPS_SubCA1_CertificateRevoked:1; //bit 5
- unsigned char CcsCPS_SubCA2_CertificateRevoked:1; //bit 6
- unsigned char CcsCPS_RootCA_CertificateRevoked:1; //bit 7
- //InfoVal[17]
- unsigned char :5; //bit 0~4 reserved
- unsigned char CcsTT_EVSE_SLAC_init:1; //bit 5
- unsigned char CcsTP_match_response:1; //bit 6
- unsigned char CcsTT_match_sequence:1; //bit 7
- //InfoVal[18]
- unsigned char CcsTT_EVSE_match_MNBC:1; //bit 0
- unsigned char CcsTP_EVSE_avg_atten_calc:1; //bit 1
- unsigned char CcsTT_match_response:1; //bit 2
- unsigned char CcsTP_EVSE_match_session:1; //bit 3
- unsigned char CcsTT_EVSE_assoc_session:1; //bit 4
- unsigned char CcsTT_EVSE_vald_toggle:1; //bit 5
- unsigned char :2; //bit 6~7 reserved
- //InfoVal[19]
- unsigned char :3; //bit 0~2 reserved
- unsigned char CcsUDP_TT_match_join:1; //bit 3
- unsigned char CcsTCP_TT_match_join:1; //bit 4
- unsigned char CcsTP_amp_map_exchange:1; //bit 5
- unsigned char CcsTP_link_ready_notification:1; //bit 6
- unsigned char :1; //bit 7 resetved
- //InfoVal[20]
- unsigned char :4; //bit 0~3 reserved
- unsigned char CcsSupportedAppProtocolRes:1; //bit 4
- unsigned char CcsSessionSetupRes:1; //bit 5
- unsigned char CcsServiceDiscoveryRes:1; //bit 6
- unsigned char CcsServicePaymentSelectionRes:1; //bit 7
- //InfoVal[21]
- unsigned char CcsContractAuthenticationRes:1; //bit 0
- unsigned char CcsChargeParameterDiscoveryRes:1; //bit 1
- unsigned char CcsPowerDeliveryRes:1; //bit 2
- unsigned char CcsCableCheckRes:1; //bit 3
- unsigned char CcsPreChargeRes:1; //bit 4
- unsigned char CcsCurrentDemandRes:1; //bit 5
- unsigned char CcsWeldingDetectionRes:1; //bit 6
- unsigned char CcsSessionStopRes:1; //bit 7
- //InfoVal[22]
- unsigned char CcsSequence_Time:1; //bit 0
- unsigned char CcsReadyToCharge_Performance_Time:1; //bit 1
- unsigned char CcsCommunicationSetup_Performance_Time:1; //bit 2
- unsigned char CcsCableCheck_Performance_Time:1; //bit 3
- unsigned char CcsCPState_Detection_Time:1; //bit 4
- unsigned char CcsCPOscillator_Retain_Time:1; //bit 5
- unsigned char CcsSeccTimeoutV2GPreChargePerformaceTime:1; //bit 6
- unsigned char :1; //bit 7 reserved
- //InfoVal[23]
- unsigned char :3; //bit 0~2 reserved
- unsigned char CcsTP_GET_EV_TARGET_INFO:1; //bit 3
- unsigned char CcsTT_GET_EV_TARGET_INFO:1; //bit 4
- unsigned char CcsTP_GET_EV_BATTERY_INFO:1; //bit 5
- unsigned char CcsTT_GET_EV_BATTERY_INFO:1; //bit 6
- unsigned char CcsTP_EV_STOP_EVENT:1; //bit 7
- //InfoVal[24]
- unsigned char CcsTT_EV_STOP_EVENT:1; //bit 0
- unsigned char CcsTP_EVSE_STOP_EVENT:1; //bit 1
- unsigned char CcsTT_EVSE_STOP_EVENT:1; //bit 2
- unsigned char CcsTP_GET_MISC_INFO:1; //bit 3
- unsigned char CcsTT_GET_MISC_INFO:1; //bit 4
- unsigned char CcsTP_DOWNLOAD_REQUEST:1; //bit 5
- unsigned char CcsTT_DOWNLOAD_REQUEST:1; //bit 6
- unsigned char CcsTP_START_BLOCK_TRANSFER:1; //bit 7
- //InfoVal[25]
- unsigned char CcsTT_START_BLOCK_TRANSFER:1; //bit 0
- unsigned char CcsTP_DATA_TRANSFER:1; //bit 1
- unsigned char CcsTT_DATA_TRANSFER:1; //bit 2
- unsigned char CcsTP_DOWNLOAD_FINISH:1; //bit 3
- unsigned char CcsTT_DOWNLOAD_FINISH:1; //bit 4
- unsigned char CcsTP_ISOLATION_STATUS:1; //bit 5
- unsigned char CcsTT_ISOLATION_STATUS:1; //bit 6
- unsigned char CcsTP_CONNECTOR_INFO:1; //bit 7
- //InfoVal[26]
- unsigned char CcsTT_CONNECTOR_INFO:1; //bit 0
- unsigned char CcsTT_RTC_INFO:1; //bit 1
- unsigned char CcsTP_RTC_INFO:1; //bit 2
- unsigned char CcsTP_EVSE_PRECHARGE_INFO:1; //bit 3
- unsigned char CcsTT_EVSE_PRECHARGE_INFO:1; //bit 4
- unsigned char CcsMSG_Sequence:1; //bit 5
- unsigned char CcsCAN_MSG_Unrecognized_CMD_ID:1; //bit 6
- unsigned char CcsDIN_Msg_Decode_Error:1; //bit 7
- //InfoVal[27]
- unsigned char CcsDIN_Msg_Encode_Error:1; //bit 0
- unsigned char CcsISO1_Msg_Decode_Error:1; //bit 1
- unsigned char CcsISO1_Msg_Encode_Error:1; //bit 2
- unsigned char CcsISO2_Msg_Decode_Error:1; //bit 3
- unsigned char CcsISO2_Msg_Encode_Error:1; //bit 4
- unsigned char CcsCpStatus_Error:1; //bit 5
- unsigned char CcsUnexpectVolBeforeCharing_Error:1; //bit 6
- unsigned char CcsSeccNotReadyForCharging:1; //bit 7 reserved
- //InfoVal[28]
- unsigned char CcsSeccTimeoutQCA7000Comm:1; //bit 0
- unsigned char :7; //bit 1~7 reserved
- //InfoVal[29]
- unsigned char ERROR_CODE_GBT_LOS_CC1 :1; //bit 0
- unsigned char ERROR_CODE_GBT_CONNECTOR_LOCK_FAIL :1; //bit 1
- unsigned char ERROR_CODE_GBT_BATTERY_INCOMPATIBLE :1; //bit 2
- unsigned char ERROR_CODE_GBT_BMS_BROAA_TIMEOUT :1; //bit 3
- unsigned char ERROR_CODE_GBT_CSU_PRECHARGE_TIMEOUT :1; //bit 4
- unsigned char ERROR_CODE_GBT_BMS_PRESENT_VOLTAGE_FAULT :1; //bit 5
- unsigned char ERROR_CODE_GBT_BMS_VOLTAGE_OVER_RANGE :1; //bit 6
- unsigned char ERROR_CODE_GBT_BSM_CHARGE_ALLOW_00_10MIN_COUUNTDONE :1; //bit 7
- //InfoVal[30]
- unsigned char ERROR_CODE_GBT_WAIT_GROUNDFAULT_TIMEOUT :1; //bit 0
- unsigned char ERROR_CODE_GBT_ADC_MORE_THAN_10V :1; //bit 1
- unsigned char ERROR_CODE_GBT_ADC_MORE_THAN_60V :1; //bit 2
- unsigned char ERROR_CODE_GBT_CHARGER_GET_NORMAL_STOP_CMD :1; //bit 3
- unsigned char ERROR_CODE_GBT_CHARGER_GET_EMERGENCY_STOP_CMD :1; //bit 4
- unsigned char ERROR_CODE_GBT_ISOLATION_RESULT_FAIL :1; //bit 5
- unsigned char ERROR_CODE_GBT_MOTHER_BOARD_MISS_LINK :1; //bit 6
- unsigned char ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_LIMIT :1; //bit 7
- //InfoVal[31]
- unsigned char ERROR_CODE_GBT_REQ_CURRENT_MORE_THAN_LIMIT :1; //bit 0
- unsigned char ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_10_PERCENT :1; //bit 1
- unsigned char ERROR_CODE_GBT_OUTPUT_VOLTAGE_DIFF_BCS_5_PERCENT :1; //bit 2
- unsigned char ERROR_CODE_GBT_STOP_ADC_MORE_THAN_10V :1; //bit 3
- unsigned char :4; //bit 4 ~ 7 reserved
- //InfoVal[32]
- unsigned char :6; //bit 0 ~ 5 reserved
- unsigned char ERROR_CODE_CEM_BHM_TIMEOUT :1; //bit 6
- unsigned char ERROR_CODE_CEM_BRM_TIMEOUT :1; //bit 7
- //InfoVal[33]
- unsigned char ERROR_CODE_CEM_BCP_TIMEOUT :1; //bit 0
- unsigned char ERROR_CODE_CEM_BRO_TIMEOUT :1; //bit 1
- unsigned char ERROR_CODE_CEM_BCL_TIMEOUT :1; //bit 2
- unsigned char ERROR_CODE_CEM_BCS_TIMEOUT :1; //bit 3
- unsigned char ERROR_CODE_CEM_BSM_TIMEOUT :1; //bit 4
- unsigned char ERROR_CODE_CEM_BST_TIMEOUT :1; //bit 5
- unsigned char ERROR_CODE_CEM_BSD_TIMEOUT :1; //bit 6
- unsigned char ERROR_CODE_CEM_BEM_OTHER_TIMEOUT :1; //bit 7
- //InfoVal[34]
- unsigned char ERROR_CODE_BEM_CRM_TIMEOUT :1; //bit 0
- unsigned char ERROR_CODE_BEM_CRMAA_TIMEOUT :1; //bit 1
- unsigned char ERROR_CODE_BEM_CTS_CML_TIMEOUT :1; //bit 2
- unsigned char ERROR_CODE_BEM_CRO_TIMEOUT :1; //bit 3
- unsigned char ERROR_CODE_BEM_CCS_TIMEOUT :1; //bit 4
- unsigned char ERROR_CODE_BEM_CST_TIMEOUT :1; //bit 5
- unsigned char ERROR_CODE_BEM_CSD_TIMEOUT :1; //bit 6
- unsigned char ERROR_CODE_BEM_BEM_OTHER_TIMEOUT :1; //bit 7
- //InfoVal[35]
- unsigned char :2; //bit 0 ~ 1
- unsigned char ERROR_CODE_BST_SOC_GOAL :1; //bit 2
- unsigned char ERROR_CODE_BST_TOTAL_VOLTAGE_GOAL :1; //bit 3
- unsigned char ERROR_CODE_BST_CELL_VOLTAGE_GOAL :1; //bit 4
- unsigned char ERROR_CODE_BST_GET_CST :1; //bit 5
- unsigned char ERROR_CODE_BST_ISOLATION :1; //bit 6
- unsigned char ERROR_CODE_BST_OUTPUT_CONNECTOR_OTP :1; //bit 7
- //InfoVal[36]
- unsigned char ERROR_CODE_BST_COMPONENT :1; //bit 0
- unsigned char ERROR_CODE_BST_CHARGE_CONNECTOR :1; //bit 1
- unsigned char ERROR_CODE_BST_OTP :1; //bit 2
- unsigned char ERROR_CODE_BST_OTHER :1; //bit 3
- unsigned char ERROR_CODE_BST_HIGH_V :1; //bit 4
- unsigned char ERROR_CODE_BST_CC2 :1; //bit 5
- unsigned char ERROR_CODE_BST_CURRENT :1; //bit 6
- unsigned char ERROR_CODE_BST_VOLTAGE :1; //bit 7
- //InfoVal[37]
- unsigned char ERROR_CODE_GET_BST_NO_REASON :1; //bit 0
- unsigned char :5; //bit 1 ~ 5 reserved
- unsigned char ERROR_CODE_BSM_CELL_OVER_VOLTAGE :1; //bit 6
- unsigned char ERROR_CODE_BSM_CELL_UNDER_VOLTAGE :1; //bit 7
- //InfoVal[38]
- unsigned char ERROR_CODE_BSM_OVER_SOC :1; //bit 0
- unsigned char ERROR_CODE_BSM_UNDER_SOC :1; //bit 1
- unsigned char ERROR_CODE_BSM_CURRENT :1; //bit 2
- unsigned char ERROR_CODE_BSM_TEMPERATURE :1; //bit 3
- unsigned char ERROR_CODE_BSM_ISOLATE :1; //bit 4
- unsigned char ERROR_CODE_BSM_OUTPUT_CONNECTOR :1; //bit 5
- unsigned char :2; //bit 6 ~ 7 reserved
- //InfoVal[39]
- unsigned char BackendDisconnectedViaEthernet:1; //bit 0
- unsigned char BackendDisconnectViaWiFi:1; //bit 1
- unsigned char BackendDisconnectVia4G:1; //bit 2
- unsigned char BackendRemoteStart:1; //bit 3
- unsigned char BackendRemoteStop:1; //bit 4
- unsigned char BackendRemoteReset:1; //bit 5
- unsigned char :2; //bit 6 ~ 7 reserved
- }bits;
- }InfoEvents;
- };
- struct StatusCodeData
- {
- struct FaultCodeData FaultCode;
- struct AlarmCodeData AlarmCode;
- struct InfoCodeData InfoCode;
- };
- /**************************************************************************************/
- /**************************PSU Share memory***************************************/
- /**************************************************************************************/
- struct PsuModuleVer
- {
- unsigned char FwPrimaryVersion[16];
- unsigned char FwSecondVersion[16];
- };
- /*Following are the information for each PSU module*/
- struct PsuModuleData
- {
- unsigned char AssignID;
- unsigned char PhysicalID;
- unsigned char GroupID;
- unsigned char Address;
- unsigned char FireWireIndex;
- unsigned char FwVersion[16];
- unsigned char SerialNumber[32];
- unsigned char StateMachine; //0: Identification, 1:Operation, 2: Alarm, 3: Failure, s4:Upgrade
- unsigned char OutputPowerSwitch; //0: D.D normal OFF, 1: D.D emergency OFF, 2: D.D ON
- unsigned short FanSpeed_1; //RPM
- unsigned short FanSpeed_2; //RPM
- unsigned short FanSpeed_3; //RPM
- unsigned short FanSpeed_4; //RPM
- unsigned short InputVoltage_Type; //0x00 = Line to Line Vol, 0x01 = Line to Neutral Vol
- unsigned short InputVoltageL1; //abcd=abc.d volt
- unsigned short InputVoltageL2; //abcd=abc.d volt
- unsigned short InputVoltageL3; //abcd=abc.d volt
- unsigned short InputCurrentL1; //abcd=abc.d amp
- unsigned short InputCurrentL2; //abcd=abc.d amp
- unsigned short InputCurrentL3; //abcd=abc.d amp
- unsigned short PresentOutputVoltage; //abcd=abc.d volt
- unsigned short PresentOutputCurrent; //abcd=abc.d amp
- unsigned short AvailableCurrent; //abcd=abc.d amp
- unsigned int AvailablePower; //Watt
- char CriticalTemp1; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
- char CriticalTemp2; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
- char CriticalTemp3; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
- char ExletTemp; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
- char InletTemp_1; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
- char InletTemp_2; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
- char InletTemp; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
- char OutletTemp; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
- unsigned int AlarmCode;
- unsigned int FaultCode; //
- unsigned int IAvailableCurrent; //abcd=abc.d amp
- };
- /*Following are the information for each PSU Group*/
- struct PsuGroupData
- {
- unsigned char GroupPresentPsuQuantity;
- unsigned char GroupOutputPowerSwitch; //0: D.D normal OFF, 1: D.D emergency OFF, 2: D.D ON
- unsigned short GroupTargetOutputVoltage; //abcd=abc.d volt
- unsigned short GroupTargetOutputCurrent; //abcd=abc.d amp
- unsigned short GroupAvailableCurrent; //abcd=abc.d amp
- unsigned int GroupAvailablePower; //Watt
- unsigned short GroupPresentOutputVoltage; //abcd=abc.d volt
- unsigned short GroupPresentOutputCurrent; //abcd=abc.d Amps
- unsigned int GroupPresentOutputPower; //Watt
- struct PsuModuleData PsuModule[MAX_PSU_QUANTITY];
- };
- /*Following is the information for system all PSU*/
- struct PsuData
- {
- unsigned char SystemPresentPsuQuantity;
- unsigned short SystemAvailableCurrent; //abcd=abc.d amp
- unsigned int SystemAvailablePower; //Watt
- struct PsuGroupData PsuGroup[4];
- unsigned char GroupCount;
- unsigned char Work_Step;
- struct PsuModuleVer PsuVersion[MAX_PSU_QUANTITY];
- };
- /************************************************************************************/
- /**************************CHAdeMO protocol Share memory*********************/
- /**************************************************************************************/
- struct CHAdeMOEvData
- {
- unsigned char SupportDynamicControl; //110.0
- // bit0=1:supported
- unsigned char SupportHighCurrent; //110.0
- // bit1=1:supported
- unsigned char MiniChargeCurrent; //100.0 0~200(A) (unit:1A)
- // 0x00: request for current equivalent to 1.5kW
- // 0x01: no request
- // 0x02: request of 1A and following are the same rule
- unsigned short MaxiBatteryVoltage; //100.5,100.4 0~600(V) (unit:1V)
- unsigned short MaxiChargingTime; //101.2,101.1 10(sec.)~255(min.) (Unit:sec)
- // Set 0xFF to 101.1 (Unit: 10sec) in case 101.2 (Unit: 1min) is used
- unsigned char EstimatChargingTime; //101.3 0~254(min.) (Unit:sec)
- // Display Only
- unsigned short TotalBatteryCapacity; //101.6,101.5 0.1~6553.5(kWh) (unit:0.1 kWh)
- unsigned char ProtocolVersion; //102.0 0~255
- // 0x02: CHAdeMO specification ver.1.2
- unsigned short TargetBatteryVoltage; //102.2,102.1 0~600(V) (unit:1V)
- unsigned short ChargingCurrentRequest; //102.3 0~200(A) (unit:1A)
- //110.2,110.1 0~1023(A) (unit:1A)
- unsigned char BatteryAlarm; //102.4 >0:alarm
- // bit0=1:Battery overvoltage
- // bit1=1:Battery undervoltage
- // bit2=1:Battery current deviation error
- // bit3=1:High battery temperature
- // bit4=1:Battery voltage deviation error
- unsigned char EvDetection; //102.5
- // bit0=0:Vehicle charging disabled, (stop charging)
- // bit0=1:Vehicle charging enabled,
- // bit1=0:¡§Parking¡¨ position
- // bit1=1:other position (stop charging)
- // bit2=0:Charging system normal
- // bit2=1:Charging system error (stop charging)
- // bit3=0:EV contactor close or during welding detection
- // bit3=1:EV contactor open or termination of welding detection (stop charging)
- // bit4=0:No stop request before charging
- // bit4=1:Normal stop request before charging (stop charging)
- unsigned char SOC; //102.6 0~100(%) (unit:%)
- // Display Only
- unsigned char Communicating; // it is true if receive EV CAN message within every 1500ms
- unsigned char PresentMsgFlowStatus; //
- };
- struct CHAdeMOEvseData
- {
- unsigned char SelfTest_Comp;
- unsigned char version[16]; //Chademo firmware version
- unsigned char SupportDynamicControl; //118.0
- // bit0=1:supported
- unsigned char SupportHighCurrent; //118.0
- // bit1=1:supported
- unsigned short AvailableOutputVoltage; //108.2,108.1 0~600(V) (unit:1V)
- unsigned short AvailableOutputCurrent; //108.3 0~255(A) (unit:1A)
- //118.2,118.1 0~1023(A) (unit:1A)
- unsigned short ThresholdVoltage; //108.5,108.4 0~600(V) (unit:1V)
- unsigned char ConnectorTemperatureP; //108.6 -40~215(degC) (unit:degC) //value 0=-40 [NISSAN customized]
- unsigned char ConnectorTemperatureN; //108.7 -40~215(degC) (unit:degC) //value 0=-40 [NISSAN customized]
- unsigned char ProtocolVersion; //109.0 0~255
- // 0x00: CHAdeMO specification 0.9 and earlier
- // 0x01: CHAdeMO specification 0.9 and 0.9.1
- // 0x02: CHAdeMO specification 1.0.0, 1.0.1, 1.1 and 1.2
- unsigned short PresentOutputVoltage; //109.2,109.1 0~600(V) (unit:1V)
- unsigned short PresentOutputCurrent; //109.3 0~255(A) (unit:1A)
- //118.4,118.3 0~1023(A) (unit:1A)
- unsigned char EvseDetection; //109.5
- // bit0=0:not charging state now
- // bit0=1:charging state now
- // bit1=0:EVSE normal
- // bit1=1:EVSE error
- // bit2=0:Not Energizing state
- // bit2=1:Energizing state
- // bit3=0:No Battery incompatibility
- // bit3=1:Battery incompatibility
- // bit4=0:No Charging system error
- // bit4=1:Charging system error
- // bit5=0:No Charging stop control
- // bit5=1:Charging stop control
- unsigned short RemainChargingTime; //109.7,109.6 10(sec.)~255(min.) (Unit:sec)
- // Set 0xFF to 109.6 (Unit: 10sec) in case 109.7 (Unit: 1min) is used
- unsigned char HighPowerCondition; //118.5
- // bit0=0:Present charging current H¡¦118.3,H¡¦118.4¡¨ is less than or equal to rated current of a charging cable
- // bit0=1:Present charging current H¡¦118.3,H¡¦118.4¡¨ is exceeds to rated current of a charging cable
- // bit1=1:charging cable Cooling function Operating Installed
- // bit2=1:charging cable Current limiting function
- // bit3=1:charging connector Cooling function Operating
- // bit4=1:charging connector Current limiting function Installed
- // bit5=1:charging connector Over-temperature protection Installed
- // bit6=1:Functional safety Applied
- unsigned int MaxiGroupPower; // XXXXXXXX (Unit:Watt)depend on which group to be used
- unsigned int MaxiGroupCurrent; // XXXXXXXX (unit:1A)depend on which group to be used
- unsigned short ApplyOutputVoltage; // 0~600(V) (unit:1V)
- unsigned short ElapseChargingTime; // (Unit:sec)
- unsigned short ElapseEnergy; // (Unit:10xkWh)
- unsigned char EvboardStatus; // 0 : init
- };
- struct CHAdeMOData
- {
- struct CHAdeMOEvData ev[CHAdeMO_QUANTITY];
- struct CHAdeMOEvseData evse[CHAdeMO_QUANTITY];
- };
- /************************************************************************************/
- /**************************GBT protocol Share memory*********************/
- /**************************************************************************************/
- struct GBTEvData
- {
- unsigned short MaxiBatteryVoltage; // 0~600(V) (unit:1V)
- unsigned short MaxiChargingTime; // 10(sec.)~255(min.) (Unit:sec)
- unsigned char EstimatChargingTime; // 0~254(min.) (Unit:sec)
- unsigned short TotalBatteryCapacity; // 0.1~6553.5(kWh) (unit:0.1 kWh)
- unsigned char ProtocolVersion; // 0~255
- unsigned short TargetBatteryVoltage; // 0~600(V) (unit:1V)
- unsigned short ChargingCurrentRequest; // 0~200(A) (unit:1A)
- // 0~1023(A) (unit:1A)
- unsigned char EvDetection; //102.5
- // bit0=0:Vehicle charging disabled, (stop charging)
- // bit0=1:Vehicle charging enabled,
- // bit1=0:¡§Parking¡¨ position
- // bit1=1:other position (stop charging)
- // bit2=0:Charging system normal
- // bit2=1:Charging system error (stop charging)
- // bit3=0:EV contactor close or during welding detection
- // bit3=1:EV contactor open or termination of welding detection (stop charging)
- // bit4=0:No stop request before charging
- // bit4=1:Normal stop request before charging (stop charging)
- unsigned char SOC; //102.6 0~100(%) (unit:%)
- // Display Only
- unsigned char PresentMsgFlowStatus; //
- };
- struct GBTEvseData
- {
- unsigned char SelfTest_Comp;
- unsigned char version[16]; // GBT firmware version
- unsigned short AvailableOutputVoltage; // 0~600(V) (unit:1V)
- unsigned short AvailableOutputCurrent; // 0~255(A) (unit:1A)
- unsigned char ConnectorTemperatureP; // -40~215(degC) (unit:degC) //value 0=-40 [NISSAN customized]
- unsigned char ConnectorTemperatureN; // -40~215(degC) (unit:degC) //value 0=-40 [NISSAN customized]
- unsigned short PresentOutputVoltage; // 0~600(V) (unit:1V)
- unsigned short PresentOutputCurrent; // 0~255(A) (unit:1A)
- unsigned short RemainChargingTime; //109.7,109.6 10(sec.)~255(min.) (Unit:sec)
- unsigned char EvboardStatus; // 0 : init
- };
- struct GBTData
- {
- struct GBTEvData ev[GB_QUANTITY];
- struct GBTEvseData evse[GB_QUANTITY];
- };
- /************************************************************************************/
- /**************************CCS protocol Share memory***************************/
- /**************************DIN70121: 201412***************************************/
- /**************************ISO15118_2014: 2014************************************/
- /**************************ISO15118_2018: 2018************************************/
- /************************************************************************************/
- typedef enum boolean { FALSE, TRUE } BOOL;
- enum ResponseCodeType_DIN70121 { OK_DIN70121 = 0, OK_NewSessionEstablished_DIN70121 = 1, OK_OldSessionJoined_DIN70121 = 2, OK_CertificateExpiresSoon_DIN70121 = 3,
- FAILED_DIN70121 = 4, FAILED_SequenceError_DIN70121 = 5, FAILED_ServiceIDInvalid_DIN70121 = 6, FAILED_UnknownSession_DIN70121 = 7,
- FAILED_ServiceSelectionInvalid_DIN70121 = 8, FAILED_PaymentSelectionInvalid_DIN70121 = 9, FAILED_CertificateExpired_DIN70121 = 10,
- FAILED_SignatureError_DIN70121 = 11, FAILED_NoCertificateAvailable_DIN70121 = 12, FAILED_CertChainError_DIN70121 = 13, FAILED_ChallengeInvalid_DIN70121 = 14,
- FAILED_ContractCanceled_DIN70121 = 15, FAILED_WrongChargeParameter_DIN70121 = 16, FAILED_PowerDeliveryNotApplied_DIN70121 = 17,
- FAILED_TariffSelectionInvalid_DIN70121 = 18, FAILED_ChargingProfileInvalid_DIN70121 = 19, FAILED_EVSEPresentVoltageToLow_DIN70121 = 20,
- FAILED_MeteringSignatureNotValid_DIN70121 = 21, FAILED_WrongEnergyTransferType_DIN70121 = 22};
- enum ResponseCodeType_ISO15118_2014 { OK_ISO15118_2014 = 0, OK_NewSessionEstablished_ISO15118_2014 = 1, OK_OldSessionJoined_ISO15118_2014 = 2, OK_CertificateExpiresSoon_ISO15118_2014 = 3,
- FAILED_ISO15118_2014 = 4, FAILED_SequenceError_ISO15118_2014 = 5, FAILED_ServiceIDInvalid_ISO15118_2014 = 6, FAILED_UnknownSession_ISO15118_2014 = 7,
- FAILED_ServiceSelectionInvalid_ISO15118_2014 = 8, FAILED_PaymentSelectionInvalid_ISO15118_2014 = 9, FAILED_CertificateExpired_ISO15118_2014 = 10,
- FAILED_SignatureError_ISO15118_2014 = 11, FAILED_NoCertificateAvailable_ISO15118_2014 = 12, FAILED_CertChainError_ISO15118_2014 = 13, FAILED_ChallengeInvalid_ISO15118_2014 = 14,
- FAILED_ContractCanceled_ISO15118_2014 = 15, FAILED_WrongChargeParameter_ISO15118_2014 = 16, FAILED_PowerDeliveryNotApplied_ISO15118_2014 = 17,
- FAILED_TariffSelectionInvalid_ISO15118_2014 = 18, FAILED_ChargingProfileInvalid_ISO15118_2014 = 19, FAILED_MeteringSignatureNotValid_ISO15118_2014 = 20,
- FAILED_NoChargeServiceSelected_ISO15118_2014 = 21, FAILED_WrongEnergyTransferMode_ISO15118_2014 = 22, FAILED_ContactorError_ISO15118_2014 = 23,
- FAILED_CertificateNotAllowedAtThisEVSE_ISO15118_2014 = 24, FAILED_CertificateRevoked_ISO15118_2014 = 25 };
- enum ResponseCodeType_ISO15118_2018 { OK_ISO15118_2018 = 0, OK_NewSessionEstablished_ISO15118_2018 = 1, OK_OldSessionJoined_ISO15118_2018 = 2, OK_CertificateExpiresSoon_ISO15118_2018 = 3,
- OK_IsolationValid_ISO15118_2018 = 4, OK_IsolationWarning_ISO15118_2018 = 5, WARNING_CertificateExpired_ISO15118_2018 = 6, WARNING_NoCertificateAvailable_ISO15118_2018 = 7,
- WARNING_CertValidationError_ISO15118_2018 = 8, WARNING_CertVerificationError_ISO15118_2018 = 9, WARNING_ContractCanceled_ISO15118_2018 = 10,
- FAILED_ISO15118_2018 = 11, FAILED_SequenceError_ISO15118_2018 = 12, FAILED_ServiceIDInvalid_ISO15118_2018 = 13, FAILED_UnknownSession_ISO15118_2018 = 14,
- FAILED_ServiceSelectionInvalid_ISO15118_2018 = 15, FAILED_SignatureError_ISO15118_2018 = 16, FAILED_IdentificationSelectionInvalid_ISO15118_2018 = 17,
- FAILED_ChallengeInvalid_ISO15118_2018 = 18, FAILED_WrongChargeParameter_ISO15118_2018 = 19, FAILED_IsolationFault_ISO15118_2018 = 20,
- FAILED_PowerDeliveryNotApplied_ISO15118_2018 = 21, FAILED_TariffSelectionInvalid_ISO15118_2018 = 22, FAILED_ChargingProfileInvalid_ISO15118_2018 = 23,
- FAILED_MeteringSignatureNotValid_ISO15118_2018 = 24, FAILED_NoChargeServiceSelected_ISO15118_2018 = 25, FAILED_WrongEnergyTransferMode_ISO15118_2018 = 26,
- FAILED_ContactorError_ISO15118_2018 = 27, FAILED_CertificateRevoked_ISO15118_2018 = 28, FAILED_CertificateNotYetValid_ISO15118_2018 = 29 };
- enum EVSENotificationType { None = 0, StopCharging = 1, ReNegotiation = 2};
- enum ServiceCategoryType { EVCharging = 0, Internet = 1, ContractCertificate = 2, OtherCustom = 3};
- enum PaymentOptionType { Contract = 0, ExternalPayment = 1};
- /*enum EVSESupportedEnergyTransferType { AC_single_phase_core = 0, AC_three_phase_core = 1, DC_core = 2, DC_extended = 3,
- DC_combo_core = 4, DC_dual = 5, AC_core1p_DC_extended = 6, AC_single_DC_core = 7,
- AC_single_phase_three_phase_core_DC_extended = 8, AC_core3p_DC_extended = 9};*/
- enum EnergyTransferModeType { AC_single_phase_core = 0, AC_three_phase_core = 1, DC_core = 2, DC_extended = 3,
- DC_combo_core = 4, DC_unique = 5};
- //enum identificationOptionType { Contract = 0, ExternalIdentification = 1};
- 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};
- 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};
- enum ProcessingType { Finished = 0, Ongoing = 1, Ongoing_WaitingForCustomerInteraction = 2};
- enum EVSEProcessingType_DIN70121 { Finished_DIN70121 = 0, Ongoing_DIN70121 = 1};
- enum EVSEProcessingType_ISO15118_2014 { Finished_ISO15118_2014 = 0, Ongoing_ISO15118_2014 = 1, Ongoing_WaitingForCustomerInteraction_ISO15118_2014=2 };
- enum DC_EVErrorCodeType { NO_ERROR = 0, FAILED_RESSTemperatureInhibit = 1, FAILED_EVShiftPosition = 2, FAILED_ChargerConnectorLockFault = 3,
- FAILED_EVRESSMalfunction = 4, FAILED_ChargingCurrentdifferential = 5, FAILED_ChargingVoltageOutOfRange = 6,
- Reserved_A = 7, Reserved_B = 8, Reserved_C = 9, FAILED_ChargingSystemIncompatibility = 10, NoData = 11};
- enum IsolationLevelType_DIN70121 { Invalid_DIN70121 = 0, Valid_DIN70121 = 1, Warning_DIN70121 = 2, Fault_DIN70121 = 3};
- 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};
- enum DC_EVSEStatusCodeType { EVSE_NotReady = 0, EVSE_Ready = 1, EVSE_Shutdown = 2, EVSE_UtilityInterruptEvent = 3,
- EVSE_IsolationMonitoringActive = 4, EVSE_EmergencyShutdown = 5, EVSE_Malfunction = 6,
- Reserved_8 = 7, Reserved_9 = 8};
- enum ScheduleOriginType { EV = 0, SA = 1};
- enum ChargeProgressType_ISO15118_2014 {start_ISO15118_2014 = 0, Stop_ISO15118_2014 = 1, Renegotiate_ISO15118_2014 = 2};
- enum ChargeProgressType_ISO15118_2018 {start_ISO15118_2018 = 0, Renegotiate_ISO15118_2018 = 1, Standby_ISO15118_2018 = 2, Stop_ISO15118_2018 = 3};
- enum evOperationType {Charge = 0, Discharge = 1, Standby = 2};
- enum mechanicalChargingDeviceStatusType {Home = 0, Moving = 1, EndPosition = 2};
- enum EV_CP_StatusType {A = 0, B = 1, C = 2, D = 3, E = 4, F = 5};
- enum EV_Error_Status_CodeType { No_EV_Error = 0, EV_FAILED_EmergencyEvent = 1, EV_FAILED_Breaker = 2, EV_FAILED_RESSTemperatureInhibit = 3,
- EV_FAILED_RESS = 4, EV_FAILED_ChargingCurrentDifferential = 5, EV_FAILED_ChargingVoltageOutOfRange = 6,
- Reserved_by_ISO_1 = 7, Reserved_by_ISO_2 = 8, Reserved_by_ISO_3 = 9, OEM1 = 10,
- OEM2 = 11, OEM3 = 12, OEM4 = 13};
- enum IsolationStatusType { Invalid = 0, Safe = 1, Warning = 2, Fault = 3};
- enum ChargingSessionType { Terminate = 0, Pause = 1};
- enum CostKindType { relativePricePercentage = 0, RenewableGenerationPercentage = 1, CarbonDioxideEmission = 2};
- struct PhysicalValueType_DIN70121 //The final physical value is determined by: Value * 10 ^ Multiplier [Unit]
- {
- int Multiplier; //range: -3..+3
- enum unitSymbolType_DIN70121 Unit;
- short Value;
- };
- struct PhysicalValueType_ISO15118_2014 //The final physical value is determined by: Value * 10 ^ Multiplier [Unit]
- {
- int Multiplier; //range: -3..+3
- enum unitSymbolType_ISO15118_2014 Unit;
- short Value;
- };
- struct PhysicalValueType_ISO15118_2018 //The final physical value is determined by: Value * 10 ^ Exponent [Unit]
- {
- int Exponent; //range: -3..+3
- short Value;
- };
- struct AppProtocolType
- {
- unsigned char ProtocolNamespace[100];
- unsigned int VersionNumberMajor;
- unsigned int VersionNumberMinor;
- unsigned char SchemaID;
- unsigned char Priority; //range 1..20
- };
- struct ACD_SSEnergyTransferModeType
- {
- unsigned char EVID[20];
- };
- struct EVSEStatusType
- {
- unsigned short NotificationMaxDelay; //in seconds
- enum EVSENotificationType EVSENotification;
- };
- struct ServiceIDListType
- {
- unsigned short ServiceID[10]; //refer to chapter 8.6.2.1 Table 192
- };
- struct PaymentOptionListType
- {
- enum PaymentOptionType PaymentOption[2];
- };
- struct ServiceTagType
- {
- unsigned short ServiceID;
- unsigned char ServiceName[32];//Optional Element
- enum ServiceCategoryType ServiceCategory;
- unsigned char ServiceScope[32];//Optional Element
- };
- struct ServiceType_DIN70121
- {
- struct ServiceTagType ServiceTag;
- BOOL FreeService;
- };
- struct ServiceType_ISO15118_2014
- {
- unsigned short ServiceID;
- unsigned char ServiceName[32]; //Optional
- enum ServiceCategoryType ServiceCategory;
- unsigned char ServiceScope[64]; //Optional
- BOOL FreeService;
- };
- /*struct ServiceType_ISO15118_2018
- {
- unsigned short ServiceID;
- BOOL FreeService;
- }; */
- struct SupportedEnergyTransferModeType
- {
- enum EnergyTransferModeType EnergyTransferMode[6];
- };
- struct ServiceChargeType
- {
- struct ServiceType_DIN70121 Services;
- //enum EVSESupportedEnergyTransferType EnergyTransferType;
- enum EnergyTransferModeType EnergyTransferType;
- };
- struct ChargeServiceType
- {
- struct ServiceType_ISO15118_2014 Services;
- struct SupportedEnergyTransferModeType SupportedEnergyTransferMode;
- };
- struct ServiceListType
- {
- struct ServiceType_ISO15118_2014 Service[8];
- };
- struct IdentificationOptionListType
- {
- enum PaymentOptionType IdentificationOption[2];
- };
- struct ParameterType
- {
- unsigned char Name[32];
- struct PhysicalValueType_ISO15118_2014 PhysicalValue_ISO15118_2014;
- struct PhysicalValueType_ISO15118_2018 PhysicalValue_ISO15118_2018;
- };
- struct ParameterSetType
- {
- short ParameterSetID;
- struct ParameterType Parameter[16];
- };
- struct ServiceParameterListType
- {
- struct ParameterSetType ParameterSet[255];
- };
- struct WPT_SDlEnergyTransferModeType
- {
- struct ServiceParameterListType ServiceParameterList;
- };
- struct SelectedServiceType
- {
- unsigned short ServiceID;
- short ParameterSetID;
- };
- struct SelectedServiceListType
- {
- struct SelectedServiceType SelectedService[16];
- };
- struct CertificateChainType
- {
- unsigned char Id[32]; //Optional
- unsigned char Certificate[800]; //check size again
- unsigned char SubCertificates[4][800]; //Optional, check size again
- };
- struct PNC_AReqIdentificationModeType
- {
- unsigned char GenChallenge[16]; //DIN70121=> None, ISO15118_2014=>None, ISO15118_2018=>Optional
- unsigned char Id[32]; //DIN70121=> None, ISO15118_2014=>None, ISO15118_2018=>Optional
- };
- struct AC_EVChargeParameterType
- {
- unsigned int DepartureTime; //Optional
- struct PhysicalValueType_ISO15118_2014 EAmount;
- struct PhysicalValueType_ISO15118_2014 EVMaxVoltage;
- struct PhysicalValueType_ISO15118_2014 EVMaxCurrent;
- struct PhysicalValueType_ISO15118_2014 EVMinCurrent;
- };
- struct DC_EVStatusType_DIN70121
- {
- BOOL EVReady;
- BOOL EVCabinConditioning;
- BOOL EVRESSConiditioning;
- enum DC_EVErrorCodeType EVErrorCode;
- unsigned char EVRESSSOC; /*0-100 percentage*/
- };
- struct DC_EVChargeParameterType_DIN70121
- {
- struct DC_EVStatusType_DIN70121 DC_EVStatus;
- struct PhysicalValueType_DIN70121 EVMaximumCurrentLimit;
- struct PhysicalValueType_DIN70121 EVMaximumPowerLimit; //Optional
- struct PhysicalValueType_DIN70121 EVMaximumVoltageLimit;
- struct PhysicalValueType_DIN70121 EVEnergyCapacity; //Optional
- struct PhysicalValueType_DIN70121 EVEnergyRequest; //Optional
- unsigned char FullSOC;/*0-100 percentage*/ //Optional
- unsigned char BulkSOC;/*0-100 percentage*/ //Optional
- };
- struct DC_EVStatusType_ISO15118_2014
- {
- BOOL EVReady;
- enum DC_EVErrorCodeType EVErrorCode;
- unsigned char EVRESSSOC; /*0-100 percentage*/
- };
- struct DC_EVChargeParameterType_ISO15118_2014
- {
- unsigned int DepartureTime; //Optional
- struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
- struct PhysicalValueType_ISO15118_2014 EVMaximumCurrentLimit;
- struct PhysicalValueType_ISO15118_2014 EVMaximumPowerLimit; //Optional
- struct PhysicalValueType_ISO15118_2014 EVMaximumVoltageLimit;
- struct PhysicalValueType_ISO15118_2014 EVEnergyCapacity; //Optional
- struct PhysicalValueType_ISO15118_2014 EVEnergyRequest; //Optional
- unsigned char FullSOC;/*0-100 percentage*/ //Optional
- unsigned char BulkSOC;/*0-100 percentage*/ //Optional
- };
- struct Dynamic_CPDReqControlModeType
- {
- unsigned int DepartureTime;
- };
- struct RelativeTimeIntervalType
- {
- unsigned int duration; //Optional
- unsigned int start;
- };
- struct PMaxScheduleEntryType
- {
- struct RelativeTimeIntervalType RelativeTimeInterval;
- unsigned short PMax;
- };
- struct PMaxScheduleType
- {
- unsigned short PMaxScheduleID; //no this itme in ISO15118_2014
- struct PMaxScheduleEntryType PMaxScheduleEntry[1024];
- };
- struct CostType
- {
- unsigned int amount;
- enum CostKindType costKind;
- int amountMultiplier; //Optional , range: -3..+3
- };
- struct ConsumptionCostType
- {
- struct CostType Cost[3];
- struct PhysicalValueType_ISO15118_2014 startValue;
- };
- struct SalesTariffEntryType
- {
- struct RelativeTimeIntervalType RelativeTimeInterval;
- unsigned char EPriceLevel; //Optional
- struct ConsumptionCostType ConsumptionCost[3]; //Optional
- };
- struct SalesTariffType
- {
- unsigned char Id[32]; //Optional
- short SalesTariffID;
- unsigned char SalesTariffDescription[32]; //Optional
- unsigned char NumEPriceLevels; //Optional
- struct SalesTariffEntryType SalesTariffEntry[1024];
- };
- struct SAScheduleTupleType
- {
- short SAScheduleTupleID;
- struct PMaxScheduleType PMaxSchedule;
- struct SalesTariffType SalesTariff; //Optional
- };
- struct ScheduleListType
- {
- enum ScheduleOriginType ScheduleOrigin;
- struct SAScheduleTupleType ScheduleTuple[3];
- };
- struct Scheduled_CPDReqControlModeType
- {
- enum ProcessingType EVProcessing;
- unsigned int DepartureTime; //Optional
- unsigned short MaxSupportingPoints;
- struct ScheduleListType ScheduleList; //Optional
- };
- struct AC_CPDReqEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
- struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
- struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
- };
- struct DC_CPDReqEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower; //Optional
- struct PhysicalValueType_ISO15118_2018 EVMinimumChargePower; //Optional
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
- struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
- struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
- struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
- unsigned char TargetSOC; //Optional
- unsigned char BulkSOC; //Optional
- };
- struct BPT_AC_CPDReqEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
- struct PhysicalValueType_ISO15118_2018 EVMaximumDischargePower;
- struct PhysicalValueType_ISO15118_2018 EVMinimumDischargePower;
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMaximumDischargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMinimumDischargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
- struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
- struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
- struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
- };
- struct BPT_DC_CPDReqEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
- struct PhysicalValueType_ISO15118_2018 EVMinimumChargePower;
- struct PhysicalValueType_ISO15118_2018 EVMaximumDischargePower;
- struct PhysicalValueType_ISO15118_2018 EVMinimumDischargePower;
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMaximumDischargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMinimumDischargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
- struct PhysicalValueType_ISO15118_2018 EVMinimumVoltage;
- struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest;
- unsigned char TargetSOC; //Optional
- unsigned char BulkSOC; //Optional
- };
- struct WPT_CPDReqEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVMaximumPower; //Optional
- struct PhysicalValueType_ISO15118_2018 EVMinimumPower; //Optional
- struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
- struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
- struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
- };
- struct ACD_CPDReqEnergyTransferModeType
- {
- //cannot be found in standard
- };
- struct SAScheduleListType
- {
- struct SAScheduleTupleType SAScheduleTuple[3];
- };
- struct DC_EVSEStatusType_DIN70121
- {
- enum IsolationLevelType_DIN70121 EVSEIsolationStatus; //Optional
- enum DC_EVSEStatusCodeType EVSEStatusCode;
- unsigned int NotificationMaxDelay;
- enum EVSENotificationType EVSENotification;
- };
- struct DC_EVSEChargeParameterType_DIN70121
- {
- struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
- struct PhysicalValueType_DIN70121 EVSEMaximumCurrentLimit;
- struct PhysicalValueType_DIN70121 EVSEMaximumPowerLimit; //Optional
- struct PhysicalValueType_DIN70121 EVSEMaximumVoltageLimit;
- struct PhysicalValueType_DIN70121 EVSEMinimumCurrentLimit;
- struct PhysicalValueType_DIN70121 EVSEMinimumVoltageLimit;
- struct PhysicalValueType_DIN70121 EVSECurrentRegulationTolerance; //Optional
- struct PhysicalValueType_DIN70121 EVSEPeakCurrentRipple;
- struct PhysicalValueType_DIN70121 EVSEEnergyToBeDelivered; //Optional
- };
- struct AC_EVSEStatusType
- {
- BOOL RCD;
- unsigned short NotificationMaxDelay;
- enum EVSENotificationType EVSENotification; //need to be confirmed
- };
- struct AC_EVSEChargeParameterType
- {
- struct AC_EVSEStatusType AC_EVSEStatus;
- struct PhysicalValueType_ISO15118_2014 EVSENominalVoltage;
- struct PhysicalValueType_ISO15118_2014 EVSEMaxCurrent;
- };
- struct DC_EVSEStatusType_ISO15118_2014
- {
- unsigned short NotificationMaxDelay;
- enum EVSENotificationType EVSENotification;
- enum IsolationLevelType_ISO15118_2014 EVSEIsolationStatus; //Optional
- enum DC_EVSEStatusCodeType DC_EVSEStatusCode;
- };
- struct DC_EVSEChargeParameterType_ISO15118_2014
- {
- struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
- struct PhysicalValueType_ISO15118_2014 EVSEMaximumCurrentLimit;
- struct PhysicalValueType_ISO15118_2014 EVSEMaximumPowerLimit;
- struct PhysicalValueType_ISO15118_2014 EVSEMaximumVoltageLimit;
- struct PhysicalValueType_ISO15118_2014 EVSEMinimumCurrentLimit;
- struct PhysicalValueType_ISO15118_2014 EVSEMinimumVoltageLimit;
- struct PhysicalValueType_ISO15118_2014 EVSECurrentRegulationTolerance; //Optional
- struct PhysicalValueType_ISO15118_2014 EVSEPeakCurrentRipple;
- struct PhysicalValueType_ISO15118_2014 EVSEEnergyToBeDelivered; //Optional
- };
- struct Scheduled_CPDResControlModeType
- {
- struct ScheduleListType ScheduleList;
- };
- struct AC_CPDResEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent[3];
- struct PhysicalValueType_ISO15118_2018 EVSENominalVoltage;
- struct PhysicalValueType_ISO15118_2018 EVSENominalFrequency;
- };
- struct DC_CPDResEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower;
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVSEMinimumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumVoltage;
- struct PhysicalValueType_ISO15118_2018 EVSEMinimumVoltage;
- };
- struct BPT_AC_CPDResEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent[3];
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumDischargeCurrent[3];
- struct PhysicalValueType_ISO15118_2018 EVSENominalVoltage;
- struct PhysicalValueType_ISO15118_2018 EVSENominalFrequency;
- };
- struct BPT_DC_CPDResEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower;
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumDischargePower;
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumDischargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVSEMinimumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVSEMinimumDischargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumVoltage;
- struct PhysicalValueType_ISO15118_2018 EVSEMinimumVoltage;
- };
- struct WPT_CPDResEnergyTransferModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumPower;
- struct PhysicalValueType_ISO15118_2018 EVSEMinimumPower;
- };
- struct ACD_CPDResEnergyTransferModeType
- {
- //not found in ISO15118_2018
- };
- struct ProfileEntryType_DIN70121
- {
- unsigned int ChargingProfileEntryStart;
- short ChargingProfileEntryMaxPower;
- };
- struct ChargingProfileType_DIN70121
- {
- short SAScheduleTupleID;
- struct ProfileEntryType_DIN70121 ProfileEntry[24];
- };
- struct DC_EVPowerDeliveryParameterType_DIN70121
- {
- struct DC_EVStatusType_DIN70121 DC_EVStatus;
- BOOL BulkChargingComplete; //Optional
- BOOL ChargingComplete;
- };
- struct ProfileEntryType_ISO15118_2014
- {
- unsigned int ChargingProfileEntryStart;
- struct PhysicalValueType_ISO15118_2018 ChargingProfileEntryMaxPower;
- unsigned char ChargingProfileEntryMaxNumberOfPhasesInUse; //Optional
- };
- struct ChargingProfileType_ISO15118_2014
- {
- struct ProfileEntryType_ISO15118_2014 ProfileEntry[24];
- };
- struct DC_EVPowerDeliveryParameterType_ISO15118_2014
- {
- struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
- BOOL BulkChargingComplete; //Optional
- BOOL ChargingComplete;
- };
- struct TimeInterval
- {
- unsigned int start;
- unsigned int duration; //Optional
- };
- struct PowerScheduleEntryType
- {
- struct TimeInterval TimeInterval;
- struct PhysicalValueType_ISO15118_2018 Power[3];
- };
- struct EVPowerProfileType
- {
- struct PowerScheduleEntryType EVPowerProfileEntry[2048];
- };
- struct Scheduled_PDReqControlModeType
- {
- unsigned char ScheduleTupleID;
- struct EVPowerProfileType EVPowerProfile;
- };
- struct BPT_Scheduled_PDReqControlModeType
- {
- unsigned char ScheduleTupleID;
- struct EVPowerProfileType EVPowerProfile; //Optional
- enum evOperationType EVOperation;
- };
- struct ListOfRootCertificateIDsType
- {
- unsigned char RootCertificateID[20][40];
- };
- struct ContractSignatureEncryptedPrivateKeyType
- {
- unsigned char Id[32];
- };
- struct DiffieHellmanPublickeyType
- {
- unsigned char Id[32];
- };
- struct ContractCertificateEncryptedPrivateKeyType
- {
- unsigned char Id[32];
- };
- struct EVTechnicalStatusType
- {
- BOOL EV_Status_ReadyToCharge;
- BOOL EV_Status_ImmobilizationRequest; //Optional
- BOOL EV_Status_Immobilized;
- struct PhysicalValueType_ISO15118_2018 EV_Status_WLAN_Strength;
- enum EV_CP_StatusType EV_CP_Status;
- unsigned char EV_Status_RESSSOC; //0~100%
- enum EV_Error_Status_CodeType EV_Error_Status_Code;
- BOOL EVSE_Timeout;
- };
- struct MeterInfoType_ISO15118_2014
- {
- unsigned char MeterID[32];
- unsigned long MeterReading; //Optional
- unsigned char SigMeterReading[64]; //Optional
- short MeterStatus; //Optional
- short TMeter; //Optional
- };
- struct Scheduled_MRReqControlModeType
- {
- unsigned char ScheduleTupleID;
- };
- struct MeterInfoType_ISO15118_2018
- {
- unsigned char MeterID[32];
- unsigned long MeterReadingWhCharged; //Optional
- unsigned long MeterReadingWhDischarged; //Optional
- unsigned long MeterReadingVARhLeading; //Optional
- unsigned long MeterReadingVARhLagging; //Optional
- unsigned char SignatureMeterReading[64]; //Optional
- short MeterStatus; //Optional
- short TimeStampMeter; //Optional
- BOOL ReceiptRequired; //Optional
- };
- struct PnC_CLReqIdentificationModeType
- {
- BOOL MeteringReceiptRequested;
- };
- struct Dynamic_CSReqControlModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest;
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
- struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
- };
- struct Scheduled_CSReqControlModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
- struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
- struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
- BOOL Standby;
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower; //Optional
- struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent; //Optional
- struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent; //Optional
- };
- struct DisplayParametersType
- {
- unsigned short CurrentRange;
- unsigned char CurrentSOC; //0~100%
- unsigned char MinimumSOC; //0~100%
- struct PhysicalValueType_ISO15118_2018 RemainingTimeToMaximumSOC;
- struct PhysicalValueType_ISO15118_2018 RemainingTimeToTargetSOC;
- struct PhysicalValueType_ISO15118_2018 RemainingTimeToBulkSOC;
- struct PhysicalValueType_ISO15118_2018 RemainingTimeToMinimumSOC;
- BOOL ChargingComplete;
- BOOL BulkChargingComplete;
- BOOL InletHot;
- };
- struct PnC_CLResIdentificationModeType
- {
- struct MeterInfoType_ISO15118_2018 MeterInfo;
- };
- struct Dynamic_CSResControlModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVSETargetActivePower;
- };
- struct Scheduled_CDResControlModeType
- {
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower; //Optional
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent; //Optional
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumVoltage; //Optional
- };
- struct LFA_EVFinePositioningSetupParametersType
- {
- unsigned char NumberOfSensors;
- //NOT complete yet, to be continue.....
- };
- /****SupportedAppProtocolRequest****/
- struct SupportedAppProtocolRequest_DIN70121
- {
- struct AppProtocolType AppProtocol[20];
- };
- struct SupportedAppProtocolRequest_ISO15118_2014
- {
- struct AppProtocolType AppProtocol[20];
- };
- struct SupportedAppProtocolRequest_ISO15118_2018
- {
- struct AppProtocolType AppProtocol[20];
- };
- /****SupportedAppProtocolResponse****/
- struct SupportedAppProtocolResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- unsigned char SchemaID; //Optional
- };
- struct SupportedAppProtocolResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- unsigned char SchemaID; //Optional
- };
- struct SupportedAppProtocolResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- unsigned char SchemaID; //Optional
- };
- /****SessionSetupRequest****/
- struct SessionSetupRequest_DIN70121
- {
- unsigned char EVCCID[8]; //the MAC address of the EVCC in Hex
- };
- struct SessionSetupRequest_ISO15118_2014
- {
- unsigned char EVCCID[8]; //the MAC address of the EVCC in Hex
- };
- struct SessionSetupRequest_ISO15118_2018
- {
- unsigned char EVCCID[8]; //the MAC address of the EVCC in Hex
- struct ACD_SSEnergyTransferModeType ACD_SSEnergyTransferMode; //For ACD mandatory, optional for rest
- };
- /****SessionSetupResponse****/
- struct SessionSetupResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
- unsigned int EVSETimeStamp; //EPOCH format, Optional
- };
- struct SessionSetupResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
- unsigned int EVSETimeStamp; //EPOCH format, Optional
- };
- struct SessionSetupResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
- struct EVSEStatusType EVSEStatus; //Optional
- };
- /****ServiceDiscoveryRequest****/
- struct ServiceDiscoveryRequest_DIN70121
- {
- unsigned char ServiceScope[32]; //Optional
- enum ServiceCategoryType ServiceCategory; //Optional
- };
- struct ServiceDiscoveryRequest_ISO15118_2014
- {
- unsigned char ServiceScope[32]; //Optional
- enum ServiceCategoryType ServiceCategory; //Optional
- };
- struct ServiceDiscoveryRequest_ISO15118_2018
- {
- struct ServiceIDListType SupportedServiceIDs; //Optional
- };
- /****ServiceDiscoveryResponse****/
- struct ServiceDiscoveryResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- struct PaymentOptionListType PaymentOptions;
- struct ServiceChargeType ChargeService_DIN70121;
- };
- struct ServiceDiscoveryResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct PaymentOptionListType PaymentOptions;
- struct ChargeServiceType ChargeService;
- struct ServiceListType ServiceList; //Optional
- };
- struct ServiceDiscoveryResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus; //Optional
- struct IdentificationOptionListType IdentificationOptionList;
- struct ServiceListType EnergyTransferServiceList;
- struct ServiceListType VASList; //Optional
- };
- /****ServiceDetailRequest****/
- //Only in ISO15118_2014 and ISO15118_2018
- struct ServiceDetailRequest_ISO15118_2014
- {
- unsigned short ServiceID;
- };
- struct ServiceDetailRequest_ISO15118_2018
- {
- unsigned short ServiceID;
- struct WPT_SDlEnergyTransferModeType WPT_SDlEnergyTransferMode;
- };
- /****ServiceDetailResponse****/
- struct ServiceDetailResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- unsigned short ServiceID;
- struct ServiceParameterListType ServiceParameterList;
- };
- struct ServiceDetailResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- unsigned short ServiceID;
- struct ServiceParameterListType ServiceParameterList;
- struct EVSEStatusType EVSEStatus; //Optional
- };
- /****ServiceAndPaymentSelectionRequest / ServiceSelectionRequest****/
- struct ServiceAndPaymentSelectionRequest_DIN70121
- {
- enum PaymentOptionType SelectedPaymentOption;
- struct SelectedServiceListType SelectedServiceList;
- };
- struct ServiceAndPaymentSelectionRequest_ISO15118_2014
- {
- enum PaymentOptionType SelectedPaymentOption;
- struct SelectedServiceListType SelectedServiceList;
- };
- struct ServiceSelectionRequest_ISO15118_2018
- {
- enum PaymentOptionType SelectedPaymentOption;
- struct SelectedServiceType SelectedEnergyTransferService;
- struct SelectedServiceListType SelectedVASList;
- enum ProcessingType EVProcessing;
- };
- /****ServiceAndPaymentSelectionResponse / ServiceSelectionResponse****/
- struct ServiceAndPaymentSelectionResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- };
- struct ServiceAndPaymentSelectionResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- };
- struct ServiceSelectionResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus; //Optional
- };
- /****PaymentDetailsRequest / IdentificationDetailsRequest****/
- struct PaymentDetailsRequest_ISO15118_2014
- {
- unsigned char eMAID[16];
- struct CertificateChainType ContractSignatureCertChain;
- };
- struct IdentificationDetailsRequest_ISO15118_2018
- {
- struct CertificateChainType ContractSignatureCertChain;
- };
- /****PaymentDetailsResponse / IdentificationDetailsResponse ****/
- struct PaymentDetailsResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- unsigned char GenChallenge[16];
- long EVSETimeStamp;
- };
- struct IdentificationDetailsResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus; //Optional
- unsigned char GenChallenge[16];
- enum ProcessingType EVSEProcessing;
- };
- /****ContractAuthenticationRequest / AuthorizationRequest****/
- struct ContractAuthenticationRequest_DIN70121
- {
- //None
- };
- struct AuthorizationRequest_ISO15118_2014
- {
- unsigned char GenChallenge[16]; //Optional
- unsigned char Id[32]; //Optional
- };
- struct AuthorizationRequest_ISO15118_2018
- {
- struct PNC_AReqIdentificationModeType PNC_AReqIdentificationMode; //Optional
- };
- /****ContractAuthenticationResponse / AuthorizationResponse****/
- struct ContractAuthenticationResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- enum EVSEProcessingType_DIN70121 EVSEProcessing;
- };
- struct AuthorizationResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- enum EVSEProcessingType_ISO15118_2014 EVSEProcessing;
- };
- struct AuthorizationResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- enum ProcessingType EVSEProcessing;
- struct EVSEStatusType EVSEStatus; //Optional
- };
- /****ChargeParameterDiscoveryRequest****/
- struct ChargeParameterDiscoveryRequest_DIN70121
- {
- enum EnergyTransferModeType EVRequestedEnergyTransferType;
- struct DC_EVChargeParameterType_DIN70121 DC_EVChargeParameter;
- };
- struct ChargeParameterDiscoveryRequest_ISO15118_2014
- {
- unsigned short MaxEntriesSAScheduleTuple; //Optional
- enum EnergyTransferModeType RequestedEnergyTransferMode;
- struct AC_EVChargeParameterType AC_EVChargeParameter;
- struct DC_EVChargeParameterType_ISO15118_2014 DC_EVChargeParameter;
- };
- struct ChargeParameterDiscoveryRequest_ISO15118_2018
- {
- struct Dynamic_CPDReqControlModeType Dynamic_CPDReqControlMode;
- struct Scheduled_CPDReqControlModeType Scheduled_CPDReqControlMode;
- struct AC_CPDReqEnergyTransferModeType AC_CPDReqEnergyTransferMode;
- struct DC_CPDReqEnergyTransferModeType DC_CPDReqEnergyTransferMode;
- struct BPT_AC_CPDReqEnergyTransferModeType BPT_AC_CPDReqEnergyTransferMode;
- struct BPT_DC_CPDReqEnergyTransferModeType BPT_DC_CPDReqEnergyTransferMode;
- struct WPT_CPDReqEnergyTransferModeType WPT_CPDReqEnergyTransferMode;
- struct ACD_CPDReqEnergyTransferModeType ACD_CPDReqEnergyTransferMode;
- };
- /****ChargeParameterDiscoveryResponse****/
- struct ChargeParameterDiscoveryResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- enum EVSEProcessingType_DIN70121 EVSEProcessing;
- struct SAScheduleListType SAScheduleList;
- struct DC_EVSEChargeParameterType_DIN70121 DC_EVSEChargeParameter;
- };
- struct ChargeParameterDiscoveryResponse_ISO15118_2014
- {
- enum EVSEProcessingType_ISO15118_2014 EVSEProcessing;
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct SAScheduleListType SAScheduleList;
- struct AC_EVSEChargeParameterType AC_EVSEChargeParameter;
- struct DC_EVSEChargeParameterType_ISO15118_2014 DC_EVSEChargeParameter;
- };
- struct ChargeParameterDiscoveryResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus; //Optional
- enum ProcessingType EVSEProcessing;
- struct Scheduled_CPDResControlModeType Scheduled_CPDResControlMode; //Optional
- struct AC_CPDResEnergyTransferModeType AC_CPDResEnergyTransferMode;
- struct DC_CPDResEnergyTransferModeType DC_CPDResEnergyTransferMode;
- struct BPT_AC_CPDResEnergyTransferModeType BPT_AC_CPDResEnergyTransferMode;
- struct BPT_DC_CPDResEnergyTransferModeType BPT_DC_CPDResEnergyTransferMode;
- struct WPT_CPDResEnergyTransferModeType WPT_CPDResEnergyTransferMode;
- struct ACD_CPDResEnergyTransferModeType ACD_CPDResEnergyTransferMode;
- };
- /****PowerDeliveryRequest****/
- struct PowerDeliveryRequest_DIN70121
- {
- BOOL ReadyToChargeState;
- struct ChargingProfileType_DIN70121 ChargingProfile;
- struct DC_EVPowerDeliveryParameterType_DIN70121 DC_EVPowerDeliveryParameter;
- };
- struct PowerDeliveryRequest_ISO15118_2014
- {
- enum ChargeProgressType_ISO15118_2014 ChargeProgress;
- short SAScheduleTupleID;
- struct ChargingProfileType_ISO15118_2014 ChargingProfile;
- struct DC_EVPowerDeliveryParameterType_ISO15118_2014 DC_EVPowerDeliveryParameter;
- };
- struct PowerDeliveryRequest_ISO15118_2018
- {
- enum ChargeProgressType_ISO15118_2018 ChargeProgress;
- struct Scheduled_PDReqControlModeType Scheduled_PDReqControlMode;
- struct BPT_Scheduled_PDReqControlModeType BPT_Scheduled_PDReqControlMode;
- };
- /****PowerDeliveryResponse****/
- struct PowerDeliveryResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
- };
- struct PowerDeliveryResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct AC_EVSEStatusType AC_EVSEStatus;
- struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
- };
- struct PowerDeliveryResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus; //Optional
- };
- /****CertificateUpdateRequest****/
- struct CertificateUpdateRequest_ISO15118_2014
- {
- unsigned char Id[32];
- struct CertificateChainType ContractSignatureCertChain;
- unsigned char eMAID[16];
- struct ListOfRootCertificateIDsType ListOfRootCertificateIDs;
- };
- /****CertificateUpdateResponse****/
- struct CertificateUpdateResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct CertificateChainType SAProvisioningCertificateChain;
- struct CertificateChainType ContractSignatureCertChain;
- struct ContractSignatureEncryptedPrivateKeyType ContractSignatureEncryptedPrivateKey;
- struct DiffieHellmanPublickeyType DHpublickey;
- unsigned char eMAID[16];
- short RetryCounter; //Optional
- };
- /****CertificateInstallationRequest****/
- struct CertificateInstallationRequest_ISO15118_2014
- {
- unsigned char Id[32];
- unsigned char OEMProvisioningCert[800];
- struct ListOfRootCertificateIDsType ListOfRootCertificateIDs;
- };
- struct CertificateInstallationRequest_ISO15118_2018
- {
- unsigned char Id[32];
- struct CertificateChainType OEMProvisioningCertChain;
- struct ListOfRootCertificateIDsType ListOfRootCertificateIDs;
- unsigned short MaxSupportedCerts;
- };
- /****CertificateInstallationResponse****/
- struct CertificateInstallationResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct CertificateChainType SAProvisioningCertificateChain;
- struct CertificateChainType ContractSignatureCertChain;
- struct ContractSignatureEncryptedPrivateKeyType ContractSignatureEncryptedPrivateKey;
- struct DiffieHellmanPublickeyType DHpublickey;
- unsigned char eMAID[16];
- };
- struct CertificateInstallationResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus; //Optional
- struct CertificateChainType SAProvisioningCertificateChain;
- struct CertificateChainType ContractCertificateChain;
- struct ContractCertificateEncryptedPrivateKeyType ContractEncryptedPrivateKey;
- struct DiffieHellmanPublickeyType DHpublickey;
- enum ProcessingType EVSEProcessing;
- unsigned short RemainingContractCertificateChains;
- };
- /****SystemStatusRequest****/
- struct SystemStatusRequest_ISO15118_2018
- {
- enum mechanicalChargingDeviceStatusType EVMechanicalChargingDeviceStatus;
- struct EVTechnicalStatusType EVTechnicalStatus;
- unsigned char EV_OEMStatus[800]; //Optional
- };
- /****SystemStatusResponse****/
- struct SystemStatusResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- enum mechanicalChargingDeviceStatusType EVSEMechanicalChargingDeviceStatus;
- BOOL EVSE_ReadyToCharge;
- enum IsolationStatusType EVSE_IsolationStatus;
- BOOL EVSE_Disabled;
- BOOL EVSE_UtilityInterruptEvent;
- BOOL EVSE_EmergencyShutdown;
- BOOL EVSE_Malfunction;
- BOOL EV_InChargePosition;
- BOOL EV_AssociationStatus;
- };
- /****SessionStopRequest****/
- struct SessionStopRequest_DIN70121
- {
- //No member in standard
- };
- struct SessionStopRequest_ISO15118_2014
- {
- enum ChargingSessionType ChargingSession;
- };
- struct SessionStopRequest_ISO15118_2018
- {
- enum ChargingSessionType ChargingSession;
- };
- /****SessionStopResponse****/
- struct SessionStopResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- };
- struct SessionStopResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- };
- struct SessionStopResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus; //Optional
- };
- /****MeteringReceiptRequest****/
- struct MeteringReceiptRequest_ISO15118_2014
- {
- unsigned char Id[32]; //Optional
- unsigned char SessionID[8];
- short SAScheduleTupleID; //Optional
- struct MeterInfoType_ISO15118_2014 MeterInfo;
- };
- struct MeteringReceiptRequest_ISO15118_2018
- {
- unsigned char Id[32]; //Optional
- unsigned char SessionID[8];
- struct Scheduled_MRReqControlModeType Schedule_MRReqControlMode;
- struct MeterInfoType_ISO15118_2018 MeterInfo;
- };
- /****MeteringReceiptResponse****/
- struct MeteringReceiptResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct AC_EVSEStatusType AC_EVSEStatus;
- struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
- };
- struct MeteringReceiptResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus; //Optional
- };
- /****ChargingStatusRequest (AC Only)****/
- struct ChargingStatusRequest_ISO15118_2014
- {
- //No member in standard
- };
- struct ChargingStatusRequest_ISO15118_2018
- {
- struct PnC_CLReqIdentificationModeType PnC_CLReqIdentificationMode;
- struct Dynamic_CSReqControlModeType Dynamic_CSReqControlMode;
- struct Scheduled_CSReqControlModeType Scheduled_CSReqControlMode;
- struct DisplayParametersType DisplayParameters;
- };
- /****ChargingStatusResponse (AC Only)****/
- struct ChargingStatusResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
- short SAScheduleTupleID;
- struct PhysicalValueType_ISO15118_2014 EVSEMaxCurrent; //Optional
- struct MeterInfoType_ISO15118_2014 MeterInfo; //Optional
- BOOL ReceiptRequired; //Optional
- struct AC_EVSEStatusType AC_EVSEStatus;
- };
- struct ChargingStatusResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus; //Optional
- unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
- struct PhysicalValueType_ISO15118_2018 EVSETargetFrequency; //Optional
- struct PnC_CLResIdentificationModeType PnC_CLResIdentificationMode;
- struct Dynamic_CSResControlModeType Dynamic_CSResControlMode;
- struct Scheduled_CSReqControlModeType Scheduled_CSReqControlMode;
- };
- /****CableCheckRequest (DC Only)****/
- struct CableCheckRequest_DIN70121
- {
- struct DC_EVStatusType_DIN70121 DC_EVStatus;
- };
- struct CableCheckRequest_ISO15118_2014
- {
- struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
- };
- struct CableCheckRequest_ISO15118_2018
- {
- //No member in standard
- };
- /****CableCheckResponse (DC Only)****/
- struct CableCheckResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
- enum EVSEProcessingType_DIN70121 EVSEProcessing;
- };
- struct CableCheckResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
- enum EVSEProcessingType_ISO15118_2014 EVSEProcessing;
- };
- struct CableCheckResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus; //Optional
- enum ProcessingType EVSEProcessing;
- };
- /****PreChargeRequest (DC Only)****/
- struct PreChargeRequest_DIN70121
- {
- struct DC_EVStatusType_DIN70121 DC_EVStatus;
- struct PhysicalValueType_DIN70121 EVTargetVoltage;
- struct PhysicalValueType_DIN70121 EVTargetCurrent;
- };
- struct PreChargeRequest_ISO15118_2014
- {
- struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
- struct PhysicalValueType_ISO15118_2014 EVTargetVoltage;
- struct PhysicalValueType_ISO15118_2014 EVTargetCurrent;
- };
- struct PreChargeRequest_ISO15118_2018
- {
- struct PhysicalValueType_ISO15118_2018 EVTargetVoltage;
- struct PhysicalValueType_ISO15118_2018 EVTargetCurrent;
- };
- /****PreChargeResponse (DC Only)****/
- struct PreChargeResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
- struct PhysicalValueType_DIN70121 EVSEPresentVoltage;
- };
- struct PreChargeResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
- struct PhysicalValueType_ISO15118_2014 EVSEPresentVoltage;
- };
- struct PreChargeResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus; //Optional
- struct PhysicalValueType_ISO15118_2018 EVSEPresentVoltage;
- };
- /****CurrentDemandRequest (DC Only)****/
- struct CurrentDemandRequest_DIN70121
- {
- struct DC_EVStatusType_DIN70121 DC_EVStatus;
- struct PhysicalValueType_DIN70121 EVTargetCurrent;
- struct PhysicalValueType_DIN70121 EVMaximumVoltageLimit; //Optional
- struct PhysicalValueType_DIN70121 EVMaximumCurrentLimit; //Optional
- struct PhysicalValueType_DIN70121 EVMaximumPowerLimit; //Optional
- BOOL BulkChargingComplete; //Optional
- BOOL ChargingComplete;
- struct PhysicalValueType_DIN70121 RemainingTimeToFullSoC; //Optional
- struct PhysicalValueType_DIN70121 RemainingTimeToBulkSoC; //Optional
- struct PhysicalValueType_DIN70121 EVTargetVoltage;
- };
- struct CurrentDemandRequest_ISO15118_2014
- {
- struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
- struct PhysicalValueType_ISO15118_2014 EVTargetCurrent;
- struct PhysicalValueType_ISO15118_2014 EVMaximumVoltageLimit; //Optional
- struct PhysicalValueType_ISO15118_2014 EVMaximumCurrentLimit; //Optional
- struct PhysicalValueType_ISO15118_2014 EVMaximumPowerLimit; //Optional
- BOOL BulkChargingComplete; //Optional
- BOOL ChargingComplete;
- struct PhysicalValueType_ISO15118_2014 RemainingTimeToFullSoC; //Optional
- struct PhysicalValueType_ISO15118_2014 RemainingTimeToBulkSoC; //Optional
- struct PhysicalValueType_ISO15118_2014 EVTargetVoltage;
- };
- struct CurrentDemandRequest_ISO15118_2018
- {
- struct DisplayParametersType DisplayParameters; //Optional
- struct PnC_CLReqIdentificationModeType PnC_CLReqIdentificationMode;
- struct Dynamic_CSReqControlModeType Dynamic_CDReqControlMode;
- struct Scheduled_CSReqControlModeType Scheduled_CDReqControlMode;
- };
- /****CurrentDemandResponse (DC Only)****/
- struct CurrentDemandResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
- struct PhysicalValueType_DIN70121 EVSEPresentVoltage;
- struct PhysicalValueType_DIN70121 EVSEPresentCurrent;
- BOOL EVSECurrentLimitAchieved;
- BOOL EVSEVoltageLimitAchieved;
- BOOL EVSEPowerLimitAchieved;
- struct PhysicalValueType_DIN70121 EVSEMaximumVoltageLimit; //Optional
- struct PhysicalValueType_DIN70121 EVSEMaximumCurrentLimit; //Optional
- struct PhysicalValueType_DIN70121 EVSEMaximumPowerLimit; //Optional
- };
- struct CurrentDemandResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
- struct PhysicalValueType_ISO15118_2014 EVSEPresentVoltage;
- struct PhysicalValueType_ISO15118_2014 EVSEPresentCurrent;
- BOOL EVSECurrentLimitAchieved;
- BOOL EVSEVoltageLimitAchieved;
- BOOL EVSEPowerLimitAchieved;
- struct PhysicalValueType_ISO15118_2014 EVSEMaximumVoltageLimit; //Optional
- struct PhysicalValueType_ISO15118_2014 EVSEMaximumCurrentLimit; //Optional
- struct PhysicalValueType_ISO15118_2014 EVSEMaximumPowerLimit; //Optional
- unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
- short SAScheduleTupleID;
- struct MeterInfoType_ISO15118_2014 MeterInfo; //Optional
- BOOL ReceiptRequired; //Optional
- };
- struct CurrentDemandResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus; //Optional
- struct PhysicalValueType_ISO15118_2018 EVSEPresentVoltage;
- struct PhysicalValueType_ISO15118_2018 EVSEPresentCurrent;
- BOOL EVSECurrentLimitAchieved;
- BOOL EVSEVoltageLimitAchieved;
- BOOL EVSEPowerLimitAchieved;
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeVoltage; //Optional
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent; //Optional
- struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower; //Optional
- unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
- struct PnC_CLResIdentificationModeType PnC_CLResIdentificationMode;
- struct Scheduled_CDResControlModeType Scheduled_CDResControlMode;
- };
- /****WeldingDetectionRequest (DC Only)*****/
- struct WeldingDetectionRequest_DIN70121
- {
- struct DC_EVStatusType_DIN70121 DC_EVStatus;
- };
- struct WeldingDetectionRequest_ISO15118_2014
- {
- struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
- };
- struct WeldingDetectionRequest_ISO15118_2018
- {
- //No member in Standard
- };
- /****WeldingDetectionResponse (DC Only)****/
- struct WeldingDetectionResponse_DIN70121
- {
- enum ResponseCodeType_DIN70121 ResponseCode;
- struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
- struct PhysicalValueType_DIN70121 EVSEPresentVoltage;
- };
- struct WeldingDetectionResponse_ISO15118_2014
- {
- enum ResponseCodeType_ISO15118_2014 ResponseCode;
- struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
- struct PhysicalValueType_ISO15118_2014 EVSEPresentVoltage;
- };
- struct WeldingDetectionResponse_ISO15118_2018
- {
- enum ResponseCodeType_ISO15118_2018 ResponseCode;
- struct EVSEStatusType EVSEStatus; //Optional
- struct PhysicalValueType_ISO15118_2018 EVSEPresentVoltage;
- };
- /****FinePositioningSetupRequest (WPT Only)****/
- struct FinePositioningSetupRequest_ISO15118_2018
- {
- struct LFA_EVFinePositioningSetupParametersType LFA_EVFinePositioningSetupParameters; //Optional
- };
- /****FinePositioningSetupResponse (WPT Only)****/
- struct FinePositioningSetupResponse_ISO15118_2018
- {
- //NOT complete yet, to be continue.....
- };
- struct V2GMessageType_DIN70121
- {
- unsigned char SelfTest_Comp;
- unsigned char version[16];
- unsigned char PresentMsgFlowStatus;
- /* 0: Idle(wait B2 state), 1: CM_SLAC_PARM.REQ, 2: CM_SLAC_PARM.CNF, 3: CM_START_ATTEN_CHAR.IND
- 4: CM_MNBC_SOUND.IND, 5: CM_ATTEN_CHAR.IND, 6: CM_ATTEN_CHAR.RSP, 7: CM_VALIDATE.REQ
- 8: CM_VALIDATE.CNF, 9: CM_SLAC_MATCH.REQ, 10: CM_SLAC_MATCH.CNF, 11: CM_AMP_MAP.REQ
- 12: CM_AMP_MAP.CNF, 13: SLACC/SDP/TCP connection,
- 16: SupportedAppProtocolRequest, 17: SupportedAppProtocolResponse, 18: SessionSetupRequest
- 19: SessionSetupResponse, 20: ServiceDiscoveryRequest, 21: ServiceDiscoveryResponse
- 22: ServiceDetailRequest, 23: ServiceDetailResponse
- 24: ServiceAndPaymentSelectionRequest/ServiceSelectionRequest, 25: ServiceAndPaymentSelectionResponse/ServiceSelectionResponse
- 26: PaymentDetailsRequest/IdentificationDetailsRequest;, 27: PaymentDetailsResponse/IdentificationDetailsResponse,
- 28: AuthorizationRequest, 29: AuthorizationResponse,
- 30: CertificateUpdateRequest, 31: CertificateUpdateResponse, 32:CertificateInstallationRequest, 33: CertificateInstallationResponse
- 34: ChargeParameterDiscoveryRequest, 35: ChargeParameterDiscoveryResponse
- 36: CableCheckRequest, 37: CableCheckResponse, 38: PreChargeRequest, 39: PreChargeResponse
- 40: PowerDeliveryRequest start, 41: PowerDeliveryResponse start, 42: ChargingStatusRequest, 43: ChargingStatusResponse
- 44: CurrentDemandRequest, 45: CurrentDemandResponse, 46: MeteringReceiptRequest, 47: MeteringReceiptResponse
- 48: PowerDeliveryRequest end, 49: PowerDeliveryRequest end, 50: WeldingDetectionRequest, 51: WeldingDetectionResponse,
- 52: SessionStopRequest, 53: SessionStopResponse
- 253: Performance Timeout, 254: Sequence Timeout, 255: Fault
- */
- struct SupportedAppProtocolRequest_DIN70121 SupportedAppProtocolRequest;
- struct SupportedAppProtocolResponse_DIN70121 SupportedAppProtocolResponse;
- struct SessionSetupRequest_DIN70121 SessionSetupRequest;
- struct SessionSetupResponse_DIN70121 SessionSetupResponse;
- struct ServiceDiscoveryRequest_DIN70121 ServiceDiscoveryRequest;
- struct ServiceDiscoveryResponse_DIN70121 ServiceDiscoveryResponse;
- struct ServiceAndPaymentSelectionRequest_DIN70121 ServiceAndPaymentSelectionRequest;
- struct ServiceAndPaymentSelectionResponse_DIN70121 ServiceAndPaymentSelectionResponse;
- struct ContractAuthenticationRequest_DIN70121 ContractAuthenticationRequest;
- struct ContractAuthenticationResponse_DIN70121 ContractAuthenticationResponse;
- struct ChargeParameterDiscoveryRequest_DIN70121 ChargeParameterDiscoveryRequest;
- struct ChargeParameterDiscoveryResponse_DIN70121 ChargeParameterDiscoveryResponse;
- struct CableCheckRequest_DIN70121 CableCheckRequest;
- struct CableCheckResponse_DIN70121 CableCheckResponse;
- struct PreChargeRequest_DIN70121 PreChargeRequest;
- struct PreChargeResponse_DIN70121 PreChargeResponse;
- struct PowerDeliveryRequest_DIN70121 PowerDeliveryRequest;
- struct PowerDeliveryResponse_DIN70121 PowerDeliveryResponse;
- struct CurrentDemandRequest_DIN70121 CurrentDemandRequest;
- struct CurrentDemandResponse_DIN70121 CurrentDemandResponse;
- struct WeldingDetectionRequest_DIN70121 WeldingDetectionRequest;
- struct WeldingDetectionResponse_DIN70121 WeldingDetectionResponse;
- struct SessionStopRequest_DIN70121 SessionStopRequest;
- struct SessionStopResponse_DIN70121 SessionStopResponse;
- };
- struct V2GMessageType_ISO15118_2014
- {
- unsigned char PresentMsgFlowStatus;
- /* 0: Idle(wait B2 state), 1: CM_SLAC_PARM.REQ, 2: CM_SLAC_PARM.CNF, 3: CM_START_ATTEN_CHAR.IND
- 4: CM_MNBC_SOUND.IND, 5: CM_ATTEN_CHAR.IND, 6: CM_ATTEN_CHAR.RSP, 7: CM_VALIDATE.REQ
- 8: CM_VALIDATE.CNF, 9: CM_SLAC_MATCH.REQ, 10: CM_SLAC_MATCH.CNF, 11: CM_AMP_MAP.REQ
- 12: CM_AMP_MAP.CNF, 13: SLACC/SDP/TCP connection,
- 16: SupportedAppProtocolRequest, 17: SupportedAppProtocolResponse, 18: SessionSetupRequest
- 19: SessionSetupResponse, 20: ServiceDiscoveryRequest, 21: ServiceDiscoveryResponse
- 22: ServiceDetailRequest, 23: ServiceDetailResponse
- 24: ServiceAndPaymentSelectionRequest/ServiceSelectionRequest, 25: ServiceAndPaymentSelectionResponse/ServiceSelectionResponse
- 26: PaymentDetailsRequest/IdentificationDetailsRequest;, 27: PaymentDetailsResponse/IdentificationDetailsResponse,
- 28: AuthorizationRequest, 29: AuthorizationResponse,
- 30: CertificateUpdateRequest, 31: CertificateUpdateResponse, 32:CertificateInstallationRequest, 33: CertificateInstallationResponse
- 34: ChargeParameterDiscoveryRequest, 35: ChargeParameterDiscoveryResponse
- 36: CableCheckRequest, 37: CableCheckResponse, 38: PreChargeRequest, 39: PreChargeResponse
- 40: PowerDeliveryRequest start, 41: PowerDeliveryResponse start, 42: ChargingStatusRequest, 43: ChargingStatusResponse
- 44: CurrentDemandRequest, 45: CurrentDemandResponse, 46: MeteringReceiptRequest, 47: MeteringReceiptResponse
- 48: PowerDeliveryRequest end, 49: PowerDeliveryRequest end, 50: WeldingDetectionRequest, 51: WeldingDetectionResponse,
- 52: SessionStopRequest, 53: SessionStopResponse
- 253: Performance Timeout, 254: Sequence Timeout, 255: Fault
- */
- struct SupportedAppProtocolRequest_ISO15118_2014 SupportedAppProtocolRequest;
- struct SupportedAppProtocolResponse_ISO15118_2014 SupportedAppProtocolResponse;
- struct SessionSetupRequest_ISO15118_2014 SessionSetupRequest;
- struct SessionSetupResponse_ISO15118_2014 SessionSetupResponse;
- struct ServiceDiscoveryRequest_ISO15118_2014 ServiceDiscoveryRequest;
- struct ServiceDiscoveryResponse_ISO15118_2014 ServiceDiscoveryResponse;
- struct ServiceDetailRequest_ISO15118_2014 ServiceDetailRequest;
- struct ServiceDetailResponse_ISO15118_2014 ServiceDetailResponse;
- struct ServiceAndPaymentSelectionRequest_ISO15118_2014 ServiceAndPaymentSelectionRequest;
- struct ServiceAndPaymentSelectionResponse_ISO15118_2014 ServiceAndPaymentSelectionResponse;
- struct PaymentDetailsRequest_ISO15118_2014 PaymentDetailsRequest;
- struct PaymentDetailsResponse_ISO15118_2014 PaymentDetailsResponse;
- struct AuthorizationRequest_ISO15118_2014 AuthorizationRequest;
- struct AuthorizationResponse_ISO15118_2014 AuthorizationResponse;
- struct CertificateUpdateRequest_ISO15118_2014 CertificateUpdateRequest;
- struct CertificateUpdateResponse_ISO15118_2014 CertificateUpdateResponse;
- struct CertificateInstallationRequest_ISO15118_2014 CertificateInstallationRequest;
- struct CertificateInstallationResponse_ISO15118_2014 CertificateInstallationResponse;
- struct ChargeParameterDiscoveryRequest_ISO15118_2014 ChargeParameterDiscoveryRequest;
- struct ChargeParameterDiscoveryResponse_ISO15118_2014 ChargeParameterDiscoveryResponse;
- struct CableCheckRequest_ISO15118_2014 CableCheckRequest;
- struct CableCheckResponse_ISO15118_2014 CableCheckResponse;
- struct PreChargeRequest_ISO15118_2014 PreChargeRequest;
- struct PreChargeResponse_ISO15118_2014 PreChargeResponse;
- struct PowerDeliveryRequest_ISO15118_2014 PowerDeliveryRequest;
- struct PowerDeliveryResponse_ISO15118_2014 PowerDeliveryResponse;
- struct ChargingStatusRequest_ISO15118_2014 ChargingStatusRequest;
- struct ChargingStatusResponse_ISO15118_2014 ChargingStatusResponse;
- struct CurrentDemandRequest_ISO15118_2014 CurrentDemandRequest;
- struct CurrentDemandResponse_ISO15118_2014 CurrentDemandResponse;
- struct MeteringReceiptRequest_ISO15118_2014 MeteringReceiptRequest;
- struct MeteringReceiptResponse_ISO15118_2014 MeteringReceiptResponse;
- struct WeldingDetectionRequest_ISO15118_2014 WeldingDetectionRequest;
- struct WeldingDetectionResponse_ISO15118_2014 WeldingDetectionResponse;
- struct SessionStopRequest_ISO15118_2014 SessionStopRequest;
- struct SessionStopResponse_ISO15118_2014 SessionStopResponse;
- };
- struct V2GMessageType_ISO15118_2018
- {
- unsigned char PresentMsgFlowStatus;
- /* 0: Idle(wait B2 state), 1: CM_SLAC_PARM.REQ, 2: CM_SLAC_PARM.CNF, 3: CM_START_ATTEN_CHAR.IND
- 4: CM_MNBC_SOUND.IND, 5: CM_ATTEN_CHAR.IND, 6: CM_ATTEN_CHAR.RSP, 7: CM_VALIDATE.REQ
- 8: CM_VALIDATE.CNF, 9: CM_SLAC_MATCH.REQ, 10: CM_SLAC_MATCH.CNF, 11: CM_AMP_MAP.REQ
- 12: CM_AMP_MAP.CNF, 13: SLACC/SDP/TCP connection,
- 16: SupportedAppProtocolRequest, 17: SupportedAppProtocolResponse, 18: SessionSetupRequest
- 19: SessionSetupResponse, 20: ServiceDiscoveryRequest, 21: ServiceDiscoveryResponse
- 22: ServiceDetailRequest, 23: ServiceDetailResponse
- 24: ServiceAndPaymentSelectionRequest/ServiceSelectionRequest, 25: ServiceAndPaymentSelectionResponse/ServiceSelectionResponse
- 26: PaymentDetailsRequest/IdentificationDetailsRequest;, 27: PaymentDetailsResponse/IdentificationDetailsResponse,
- 28: AuthorizationRequest, 29: AuthorizationResponse,
- 30: CertificateUpdateRequest, 31: CertificateUpdateResponse, 32:CertificateInstallationRequest, 33: CertificateInstallationResponse
- 34: ChargeParameterDiscoveryRequest, 35: ChargeParameterDiscoveryResponse
- 36: CableCheckRequest, 37: CableCheckResponse, 38: PreChargeRequest, 39: PreChargeResponse
- 40: PowerDeliveryRequest start, 41: PowerDeliveryResponse start, 42: ChargingStatusRequest, 43: ChargingStatusResponse
- 44: CurrentDemandRequest, 45: CurrentDemandResponse, 46: MeteringReceiptRequest, 47: MeteringReceiptResponse
- 48: PowerDeliveryRequest end, 49: PowerDeliveryRequest end, 50: WeldingDetectionRequest, 51: WeldingDetectionResponse,
- 52: SessionStopRequest, 53: SessionStopResponse
- 253: Performance Timeout, 254: Sequence Timeout, 255: Fault
- */
- struct SupportedAppProtocolRequest_ISO15118_2018 SupportedAppProtocolRequest;
- struct SupportedAppProtocolResponse_ISO15118_2018 SupportedAppProtocolResponse;
- struct SessionSetupRequest_ISO15118_2018 SessionSetupRequest;
- struct SessionSetupResponse_ISO15118_2018 SessionSetupResponse;
- struct ServiceDiscoveryRequest_ISO15118_2018 ServiceDiscoveryRequest;
- struct ServiceDiscoveryResponse_ISO15118_2018 ServiceDiscoveryResponse;
- struct ServiceDetailRequest_ISO15118_2018 ServiceDetailRequest;
- struct ServiceDetailResponse_ISO15118_2018 ServiceDetailResponse;
- struct ServiceSelectionRequest_ISO15118_2018 ServiceSelectionRequest;
- struct ServiceSelectionResponse_ISO15118_2018 ServiceSelectionResponse;
- struct IdentificationDetailsRequest_ISO15118_2018 IdentificationDetailsRequest;
- struct IdentificationDetailsResponse_ISO15118_2018 IdentificationDetailsResponse;
- struct AuthorizationRequest_ISO15118_2018 AuthorizationRequest;
- struct AuthorizationResponse_ISO15118_2018 AuthorizationResponse;
- struct CertificateInstallationRequest_ISO15118_2018 CertificateInstallationRequest;
- struct CertificateInstallationResponse_ISO15118_2018 CertificateInstallationResponse;
- struct ChargeParameterDiscoveryRequest_ISO15118_2018 ChargeParameterDiscoveryRequest;
- struct ChargeParameterDiscoveryResponse_ISO15118_2018 ChargeParameterDiscoveryResponse;
- struct CableCheckRequest_ISO15118_2018 CableCheckRequest;
- struct CableCheckResponse_ISO15118_2018 CableCheckResponse;
- struct PreChargeRequest_ISO15118_2018 PreChargeRequest;
- struct PreChargeResponse_ISO15118_2018 PreChargeResponse;
- struct PowerDeliveryRequest_ISO15118_2018 PowerDeliveryRequest;
- struct PowerDeliveryResponse_ISO15118_2018 PowerDeliveryResponse;
- struct ChargingStatusRequest_ISO15118_2018 ChargingStatusRequest;
- struct ChargingStatusResponse_ISO15118_2018 ChargingStatusResponse;
- struct CurrentDemandRequest_ISO15118_2018 CurrentDemandRequest;
- struct CurrentDemandResponse_ISO15118_2018 CurrentDemandResponse;
- struct MeteringReceiptRequest_ISO15118_2018 MeteringReceiptRequest;
- struct MeteringReceiptResponse_ISO15118_2018 MeteringReceiptResponse;
- struct WeldingDetectionRequest_ISO15118_2018 WeldingDetectionRequest;
- struct WeldingDetectionResponse_ISO15118_2018 WeldingDetectionResponse;
- struct SessionStopRequest_ISO15118_2018 SessionStopRequest;
- struct SessionStopResponse_ISO15118_2018 SessionStopResponse;
- };
- struct CcsData
- {
- unsigned char CommProtocol; // 1: V2GMessage_DIN70121, 2:V2GMessage_ISO15118_2014, 3:V2GMessage_ISO15118_2018
- struct V2GMessageType_DIN70121 V2GMessage_DIN70121[CCS_QUANTITY];
- struct V2GMessageType_ISO15118_2014 V2GMessage_ISO15118_2014[CCS_QUANTITY];
- struct V2GMessageType_ISO15118_2018 V2GMessage_ISO15118_2018[CCS_QUANTITY];
- };
- /**************************************************************************************/
- /***************STM32F407 Communication Share memory**************************/
- /**************************************************************************************/
- struct PrimaryMcuData
- {
- unsigned char SelfTest_Comp;
- unsigned char version[16]; //STM32F407 firmware version
- unsigned int InputVoltage; //value comes from external meter
- unsigned int InputCurrent; //value comes from external meter
- union
- {
- unsigned char OutputDrvValue[1];
- struct
- {
- //OutputDrvValue[0]
- unsigned char AcContactorDrv:1; //bit 0, H: ON, L:OFF
- unsigned char Button1LedDrv:1; //bit 1, H: ON, L:OFF
- unsigned char Button2LedDrv:1; //bit 2, H: ON, L:OFF
- unsigned char SystemLed1Drv:1; //bit 3, H: ON, L:OFF
- unsigned char SystemLed2Drv:1; //bit 4, H: ON, L:OFF
- unsigned char SystemLed3Drv:1; //bit 5, H: ON, L:OFF
- unsigned char SystemLed4Drv:1; //bit 6, H: ON, L:OFF
- unsigned char:1; //bit 7 reserved
- }bits;
- }OutputDrv;
- union
- {
- unsigned char InputDetValue[2];
- struct
- {
- //InputDetValue[0]
- unsigned char AcContactorDetec:1; //bit 0, H: ON, L:OFF
- unsigned char AcMainBreakerDetec:1; //bit 1, H: ON, L:OFF
- unsigned char SpdDetec:1; //bit 2, H: ON, L:OFF
- unsigned char DoorOpen:1; //bit 3, H: Open, L:Close
- unsigned char Gfd1:1; //bit 4, H: Trigger, L:Normal
- unsigned char Gfd2:1; //bit 5, H: Trigger, L:Normal
- unsigned char Button1:1; //bit 6 , H: Push, L:Release
- unsigned char Button2:1; //bit 7, H: Push, L:Release
- //InputDetValue[1]
- unsigned char EmergencyButton:1; //bit 0, H: Push, L:Release
- unsigned char :7; //bit 1~7, Reserved
- }bits;
- }InputDet;
- };
- /**************************************************************************************/
- /*************Fan power module Communication Share memory******************/
- /**************************************************************************************/
- struct FanModuleData
- {
- unsigned char SelfTest_Comp;
- unsigned char version[16]; //fan power module firmware version
- unsigned short PresentFan1Speed; //RPM
- unsigned short PresentFan2Speed; //RPM
- unsigned short PresentFan3Speed; //RPM
- unsigned short PresentFan4Speed; //RPM
- unsigned short SetFan1Speed; //RPM
- unsigned short SetFan2Speed; //RPM
- unsigned short SetFan3Speed; //RPM
- unsigned short SetFan4Speed; //RPM
- unsigned short TestFanSpeed; //RPM
- unsigned char DiffOfAirPressure; //pa
- unsigned char UpdateFW; //1:do update
- };
- /**************************************************************************************/
- /***********Relay control module Communication Share memory******************/
- /**************************************************************************************/
- struct RelayModuleData
- {
- unsigned char SelfTest_Comp;
- unsigned char version[16]; //relay module firmware version
- unsigned short InputL1Volt; //XXXXX.x volt
- unsigned short InputL2Volt; //XXXXX.x volt
- unsigned short InputL3Volt; //XXXXX.x volt
- unsigned short Gun1FuseOutputVolt; //XXXXX.x volt
- unsigned short Gun2FuseOutputVolt; //XXXXX.x volt
- unsigned short Gun1RelayOutputVolt; //XXXXX.x volt
- unsigned short Gun2RelayOutputVolt; //XXXXX.x volt
- unsigned short Gun1OutputCurrent; //XXXXX.x amp
- unsigned short Gun2OutputCurrent; //XXXXX.x amp
- unsigned char UpdateFW; //1:do update
- };
- /**************************************************************************************/
- /***********Led control module Communication Share memory******************/
- /**************************************************************************************/
- struct LedModuleData
- {
- unsigned char SelfTest_Comp;
- unsigned char version[16]; //led module firmware version
- unsigned short Connect_1_Status; // Idle : 0, Charging : 1, Alarm : 2
- unsigned short Connect_2_Status; // Idle : 0, Charging : 1, Alarm : 2
- unsigned short EnableFunc; // reserved
- };
- /**************************************************************************************/
- /************************OCPP Share memory***************************************/
- /**************************************************************************************/
- struct StructIdTagInfo
- {
- unsigned char ExpiryDate[28];
- unsigned char ParentIdTag[20];
- unsigned char Status[16]; //Accepted, Blocked, Expired, Invalid, ConcurrentTx
- };
- struct StructLocalAuthorizationList
- {
- unsigned char IdTag[20];
- struct StructIdTagInfo IdTagInfo;
- };
- struct StructSampledValue
- {
- unsigned char Value[128];
- unsigned char Context[30];//Interruption.Begin, Interruption.End, Sample.Clock, Sample.Periodic, Transaction.Begin, Transaction.End, Trigger, Other
- unsigned char Format[16];//Raw,SignedData
- unsigned char Measurand[40];/* "Energy.Active.Export.Register",
- "Energy.Active.Import.Register",
- "Energy.Reactive.Export.Register",
- "Energy.Reactive.Import.Register",
- "Energy.Active.Export.Interval",
- "Energy.Active.Import.Interval",
- "Energy.Reactive.Export.Interval",
- "Energy.Reactive.Import.Interval",
- "Power.Active.Export",
- "Power.Active.Import",
- "Power.Offered",
- "Power.Reactive.Export",
- "Power.Reactive.Import",
- "Power.Factor",
- "Current.Import",
- "Current.Export",
- "Current.Offered",
- "Voltage",
- "Frequency",
- "Temperature",
- "SoC",
- "RPM"
- */
- unsigned char Phase[10]; /* "L1",
- "L2",
- "L3",
- "N",
- "L1-N",
- "L2-N",
- "L3-N",
- "L1-L2",
- "L2-L3",
- "L3-L1"
- */
- unsigned char Location[10]; //Cable,EV,Inlet,Outlet,Body
- unsigned char Unit[20]; /* "Wh",
- "kWh",
- "varh",
- "kvarh",
- "W",
- "kW",
- "VA",
- "kVA",
- "var",
- "kvar",
- "A",
- "V",
- "K",
- "Celcius",
- "Fahrenheit",
- "Percent"
- */
- };
- struct StructMeterValue
- {
- unsigned char TimeStamp[28];
- struct StructSampledValue SampledValue[10];
- };
- struct StructConfigurationKeyItems
- {
- unsigned char Item[50];
- };
- struct StructConfigurationKey
- {
- unsigned char Key[50];
- unsigned char ReadOnly[8]; //boolean
- unsigned char Value[500];
- };
- struct StructChargingSchedulePeriod
- {
- int StartPeriod;
- float Limit;//0.1;
- int NumberPhases;
- };
- struct StructChargingSchedule
- {
- int Duration;
- unsigned char StartSchedule[28];
- unsigned char ChargingRateUnit[4]; //A, W
- struct StructChargingSchedulePeriod ChargingSchedulePeriod[10];
- float MinChargingRate; //0.1;
- };
- struct StructChargingProfile
- {
- int ChargingProfileId;
- int TransactionId;
- int StackLevel;
- unsigned char ChargingProfilePurpose[24]; //ChargePointMaxProfile, TxDefaultProfile, TxProfile
- unsigned char ChargingProfileKind[12]; //Absolute, Recurring, Relative
- unsigned char RecurrencyKind[8]; //Daily, Weekly
- unsigned char ValidFrom[28];
- unsigned char ValidTo[28];
- struct StructChargingSchedule ChargingSchedule;
- };
- struct StructBootNotification
- {
- unsigned char CpVendor[20]; //chargePointVendor //mandatory
- unsigned char CpModel[20]; //chargePointModel //mandatory
- unsigned char CpSN[25]; //chargePointSerialNumber
- unsigned char CbSN[25]; //chargeBoxSerialNumber
- unsigned char CpFwVersion[50]; //firmwareVersion
- unsigned char CpIccid[22]; //iccid
- unsigned char CpImsi[20]; //imsi
- unsigned char CpMeterType[25]; //meterType
- unsigned char CpMeterSerialNumber[25]; //meterSerialNumber
- unsigned char ResponseStatus[16]; //Accepted, Pending, Rejected
- unsigned char ResponseCurrentTime[28]; //currentTime //mandatory
- int ResponseHeartbeatInterval; //interval //mandatory
- };
- struct StructHeartbeat
- {
- unsigned char ResponseCurrentTime[28];
- };
- struct StructAuthorize
- {
- unsigned char IdTag[20];
- struct StructIdTagInfo ResponseIdTagInfo;
- };
- struct StructStartTransaction
- {
- int ConnectorId;
- unsigned char IdTag[20];
- int MeterStart;
- int ReservationId;
- unsigned char Timestamp[28];
- struct StructIdTagInfo ResponseIdTagInfo;
- int ResponseTransactionId;
- };
- struct StructStopTransaction
- {
- unsigned char IdTag[20];
- int MeterStop;
- unsigned char Timestamp[28];
- int TransactionId;
- unsigned char StopReason[20]; /* "EmergencyStop",
- "EVDisconnected",
- "HardReset",
- "Local",
- "Other",
- "PowerLoss",
- "Reboot",
- "Remote",
- "SoftReset",
- "UnlockCommand",
- "DeAuthorized"
- */
- struct StructMeterValue TransactionData[1];
- struct StructIdTagInfo ResponseIdTagInfo;
- };
- struct StructStatusNotification
- {
- int ConnectorId;
- unsigned char ErrorCode[25]; /* "ConnectorLockFailure",
- "EVCommunicationError",
- "GroundFailure",
- "HighTemperature",
- "InternalError",
- "LocalListConflict",
- "NoError",
- "OtherError",
- "OverCurrentFailure",
- "PowerMeterFailure",
- "PowerSwitchFailure",
- "ReaderFailure",
- "ResetFailure",
- "UnderVoltage",
- "OverVoltage",
- "WeakSignal"
- */
- unsigned char Info[50];
- unsigned char Status[20]; /* "Available",
- "Preparing",
- "Charging",
- "SuspendedEVSE",
- "SuspendedEV",
- "Finishing",
- "Reserved",
- "Unavailable",
- "Faulted"
- */
- unsigned char Timestamp[28];
- unsigned char VendorId[256];
- unsigned char VendorErrorCode[50];
- };
- struct StructCancelReservation
- {
- int ReservationId;
- unsigned char ResponseStatus[16]; //Accepted, Rejected
- unsigned char guid[37];
- };
- struct StructChangeAvailability
- {
- int ConnectorId;
- unsigned char Type[16]; //Inoperative, Operative
- unsigned char ResponseStatus[16]; //Accepted, Rejected, Scheduled
- unsigned char guid[37];
- };
- struct StructChangeConfiguration
- {
- unsigned char Key[50];
- unsigned char Value[500];
- unsigned char ResponseStatus[16]; //Accepted, Rejected, RebootRequired, NotSupported
- };
- struct StructClearCache
- {
- unsigned char ResponseStatus[16]; //Accepted, Rejected
- };
- struct StructClearChargingProfile
- {
- int Id;
- int ConnectorId;
- unsigned char ChargingProfilePurpose[24]; //ChargePointMaxProfile, TxDefaultProfile, TxProfile
- int StackLevel;
- unsigned char ResponseStatus[16]; //Accepted, Unknown
- };
- struct StructDataTransfer
- {
- unsigned char VendorId[256];
- unsigned char MessageId[52];
- unsigned char Data[512];
- unsigned char ResponseStatus[18]; //Accepted, Rejected,UnknownMessageId,UnknownVendorId
- unsigned char ResponseData[256];
- };
- struct StructDiagnosticsStatusNotification
- {
- unsigned char Status[16]; //Idle,Uploaded,UploadFailed,Uploading
- };
- struct StructFirmwareStatusNotification
- {
- unsigned char Status[20]; //Downloaded,DownloadFailed,Downloading,Idle,InstallationFailed,Installing,Installed
- };
- struct StructGetCompositeSchedule
- {
- int ConnectorId;
- int Duration;
- unsigned char ChargingRateUnit[4]; //A,W
- unsigned char ResponseStatus[12]; //Accepted,Rejected
- int ResponseConnectorId;
- unsigned char ResponseScheduleStart[28];
- struct StructChargingSchedule ResponseChargingSchedule;
- };
- struct StructGetConfiguration
- {
- struct StructConfigurationKeyItems *Key;
- struct StructConfigurationKey *ResponseConfigurationKey;
- struct StructConfigurationKeyItems *ResponseUnknownKey;
- };
- struct StructGetDiagnostics
- {
- unsigned char Location[256];
- int Retries;
- int RetryInterval;
- unsigned char StartTime[28];
- unsigned char StopTime[28];
- unsigned char ResponseFileName[256];
- };
- struct StructGetLocalListVersion
- {
- int ResponseListVersion;
- };
- struct StructMeterValues
- {
- int ConnectorId;
- int TransactionId;
- struct StructMeterValue MeterValue[0];
- };
- struct StructRemoteStartTransaction
- {
- int ConnectorId;
- unsigned char IdTag[20];
- struct StructChargingProfile ChargingProfile;
- unsigned char ResponseStatus[10]; //Accepted, Rejected
- unsigned char guid[37];
- };
- struct StructRemoteStopTransaction
- {
- int TransactionId;
- unsigned char ResponseStatus[10]; //Accepted, Rejected
- };
- struct StructReserveNow
- {
- int ConnectorId;
- unsigned char ExpiryDate[28];
- unsigned char IdTag[20];
- unsigned char ParentIdTag[20];
- int ReservationId;
- unsigned char ResponseStatus[12]; //Accepted, Faulted, Occupied, Rejected, Unavailable
- unsigned char guid[37]; //OCPP Server request message uuid
- };
- struct StructReset
- {
- unsigned char Type[8]; //Hard, Soft
- unsigned char ResponseStatus[10]; //Accepted, Rejected
- unsigned char guid[37]; //OCPP Server request message uuid
- };
- struct StructSendLocalList
- {
- int ListVersion;
- unsigned char UpdateType[16]; //Differential, Full
- struct StructLocalAuthorizationList *LocalAuthorizationList;
- unsigned char ResponseStatus[16]; //Accepted, Failed, NotSupported, VersionMismatch
- };
- struct StructSetChargingProfile
- {
- int ConnectorId;
- struct StructChargingProfile ChargingProfile;
- unsigned char ResponseStatus[16]; //Accepted, Rejected, NotSupported
- };
- struct StructTriggerMessage
- {
- unsigned char RequestedMessage[32]; /*
- "BootNotification",
- "DiagnosticsStatusNotification",
- "FirmwareStatusNotification",
- "Heartbeat",
- "MeterValues",
- "StatusNotification"
- */
- int ConnectorId;
- unsigned char ResponseStatus[16]; //Accepted, Rejected, NotImplemented
- };
- struct StructUnlockConnector
- {
- int ConnectorId;
- unsigned char ResponseStatus[16]; //Unlocked, UnlockFailed, NotSupported
- unsigned char guid[37]; //OCPP Server request message uuid
- };
- struct StructUpdateFirmware
- {
- unsigned char Location[256];
- int Retries;
- unsigned char RetrieveDate[28];
- int RetryInterval;
- };
- struct OCPP16ConfigurationItem
- {
- unsigned char ItemName[64];
- unsigned char ItemAccessibility;//0:RO, 1:RW
- unsigned char ItemData[128];
- };
- struct OCPP16ConfigurationTable
- {
- //please refer to OCPP 1.6 chapter 9
- struct OCPP16ConfigurationItem CoreProfile[35];
- struct OCPP16ConfigurationItem LocalAuthListManagementProfile[3];
- struct OCPP16ConfigurationItem ReservationProfile[1];
- struct OCPP16ConfigurationItem SmartChargingProfile[5];
- };
- struct OCPP16Data
- {
- 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"
- unsigned char ChargeBoxId[128];
- unsigned char OcppConnStatus; //0: disconnected, 1: connected
- unsigned int Timeout_Secs;
- unsigned short Ping_Pong_Interval;
- union
- {
- //Operations Initiated by Charge Point
- unsigned char CpMsgValue[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- struct
- {
- //CpMsgValue[0]
- unsigned char DataTransferReq:1; //bit 0,
- unsigned char DataTransferConf:1; //bit 1,
- unsigned char StartTransactionReq:1; //bit 2,
- unsigned char StartTransactionConf:1; //bit 3,
- unsigned char StopTransactionReq:1; //bit 4,
- unsigned char StopTransactionConf:1; //bit 5,
- unsigned char :2; //bit 6,7 , reserved
- } bits[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- }CpMsg;
- union
- {
- //Operations Initiated by Sequence Point
- unsigned char SpMsgValue[1];
- struct
- {
- //SpMsgValue[0]
- unsigned char BootNotificationReq :1; //bit 0,
- unsigned char BootNotificationConf :1; //bit 1,
- unsigned char AuthorizeReq :1; //bit 2,
- unsigned char AuthorizeConf :1; //bit 3,
- unsigned char DiagnosticsStatusNotificationReq :1; //bit 4,
- unsigned char DiagnosticsStatusNotificationConf :1; //bit 5,
- unsigned char FirmwareStatusNotificationReq :1; //bit 6,
- unsigned char FirmwareStatusNotificationConf :1; //bit 7,
- } bits;
- } SpMsg;
- union
- {
- //Operations Initiated by Central System
- unsigned char CsMsgValue[3 * (CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY)];
- struct
- {
- //CsMsgValue[0]
- unsigned char CancelReservationReq :1; //bit 0,
- unsigned char CancelReservationConf :1; //bit 1,
- unsigned char ChangeAvailabilityReq :1; //bit 2,
- unsigned char ChangeAvailabilityConf :1; //bit 3,
- unsigned char ReserveNowReq :1; //bit 4,
- unsigned char ReserveNowConf :1; //bit 5,
- unsigned char SetChargingProfileReq :1; //bit 6,
- unsigned char SetChargingProfileConf :1; //bit 7,
- //CsMsgValue[1]
- unsigned char TriggerMessageReq :1; //bit 0,
- unsigned char TriggerMessageConf :1; //bit 1,
- unsigned char UnlockConnectorReq :1; //bit 2,
- unsigned char UnlockConnectorConf :1; //bit 3,
- unsigned char RemoteStartTransactionReq :1; //bit 4,
- unsigned char RemoteStartTransactionConf :1; //bit 5,
- unsigned char RemoteStopTransactionReq :1; //bit 6,
- unsigned char RemoteStopTransactionConf :1; //bit 7,
- //CsMsgValue[2]
- unsigned char ClearChargingProfileReq :1; //bit 0,
- unsigned char ClearChargingProfileConf :1; //bit 1,
- unsigned char DataTransferReq :1; //bit 2,
- unsigned char DataTransferConf :1; //bit 3,
- unsigned char GetCompositeScheduleReq :1; //bit 4,
- unsigned char GetCompositeScheduleConf :1; //bit 5,
- unsigned char :2; //bit 6,7
- } bits[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- }CsMsg;
- union
- {
- //Operations Initiated by Main System
- unsigned char MsMsgValue[2];
- struct
- {
- //CsMsgValue[0]
- unsigned char ChangeConfigurationReq :1; //bit 0,
- unsigned char ChangeConfigurationConf :1; //bit 1,
- unsigned char ClearCacheReq :1; //bit 2,
- unsigned char ClearCacheConf :1; //bit 3,
- unsigned char GetConfigurationReq :1; //bit 4,
- unsigned char GetConfigurationConf :1; //bit 5,
- unsigned char UpdateFirmwareReq :1; //bit 6,
- unsigned char UpdateFirmwareConf :1; //bit 7,
- //CsMsgValue[1]
- unsigned char GetDiagnosticsReq :1; //bit 0,
- unsigned char GetDiagnosticsConf :1; //bit 1,
- unsigned char GetLocalListVersionReq :1; //bit 2,
- unsigned char GetLocalListVersionConf :1; //bit 3,
- unsigned char ResetReq :1; //bit 4,
- unsigned char ResetConf :1; //bit 5,
- unsigned char SendLocalListReq :1; //bit 6,
- unsigned char SendLocalListConf :1; //bit 7,
- } bits;
- } MsMsg;
- union
- {
- //Operations triggered by CSU
- unsigned char CSUMsgValue[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- struct
- {
- //CSUMsgValue[0]
- unsigned char ChargingProfileReq:1; //bit 0,
- unsigned char ChargingProfileConf:1; //bit 0,
- unsigned char :6; //bit 1,2,3,4,5,6,7 , reserved
- } bits[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- }CSUMsg;
- struct StructBootNotification BootNotification;
- struct StructHeartbeat Heartbeat;
- struct StructAuthorize Authorize;
- struct StructStartTransaction StartTransaction[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- struct StructStopTransaction StopTransaction[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- struct StructStatusNotification StatusNotification[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- struct StructCancelReservation CancelReservation[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- struct StructChangeAvailability ChangeAvailability[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- struct StructChangeConfiguration ChangeConfiguration;
- struct StructClearCache ClearCache;
- struct StructClearChargingProfile ClearChargingProfile[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- struct StructDataTransfer DataTransfer[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- struct StructDiagnosticsStatusNotification DiagnosticsStatusNotification;
- struct StructFirmwareStatusNotification FirmwareStatusNotification;
- struct StructGetCompositeSchedule GetCompositeSchedule[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- struct StructGetConfiguration GetConfiguration;
- struct StructGetDiagnostics GetDiagnostics;
- struct StructGetLocalListVersion GetLocalListVersion;
- struct StructMeterValues MeterValues[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- struct StructRemoteStartTransaction RemoteStartTransaction[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- struct StructRemoteStopTransaction RemoteStopTransaction[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- struct StructReserveNow ReserveNow[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- struct StructReset Reset;
- struct StructSendLocalList SendLocalList;
- struct StructSetChargingProfile SetChargingProfile[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- struct StructTriggerMessage TriggerMessage[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- struct StructUnlockConnector UnlockConnector[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- struct StructUpdateFirmware UpdateFirmware;
- struct OCPP16ConfigurationTable ConfigurationTable;
- struct StructChargingProfile SmartChargingProfile[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
- };
- #endif // DEFINE_H_
|