define.h 255 KB

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