define.h 168 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962
  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. #else
  93. #define MAX_PSU_QUANTITY 62
  94. #define CHAdeMO_QUANTITY 1
  95. #define CCS_QUANTITY 1
  96. #define GB_QUANTITY 0
  97. #define AC_QUANTITY 1
  98. #define PSU_QUANTITY 2
  99. #define ONE_CONNECTOR_USE 0
  100. #endif
  101. /*SystemLog message*/
  102. #define SystemLogMessage //for debug info save to log file
  103. #define ConsloePrintLog //for debug info print to console
  104. /**************************************************************************************/
  105. /*****************************share memory key information*****************************/
  106. /**************************************************************************************/
  107. #define ShmSysConfigAndInfoKey 1001
  108. #define ShmPsuKey 1002
  109. #define ShmCHAdeMOCommKey 1003
  110. #define ShmCcsCommKey 1004
  111. #define ShmStatusCodeKey 1005
  112. #define ShmPrimaryMcuKey 1006
  113. #define ShmFanBdKey 1007
  114. #define ShmRelayBdKey 1008
  115. #define ShmOcppModuleKey 1009
  116. #define ShmGBTCommKey 1010
  117. #define ShmLedBdKey 1011
  118. /**************************************************************************************/
  119. /****************** Share memory configuration value constant define ******************/
  120. /**************************************************************************************/
  121. enum SYSTEM_STATUS
  122. {
  123. SYS_MODE_BOOTING = 0,
  124. SYS_MODE_IDLE = 1,
  125. SYS_MODE_AUTHORIZING = 2,
  126. SYS_MODE_MODE_REASSIGN_CHECK = 3,
  127. SYS_MODE_REASSIGN = 4,
  128. SYS_MODE_PREPARING = 5,
  129. SYS_MODE_PREPARE_FOR_EV = 6,
  130. SYS_MODE_PREPARE_FOR_EVSE = 7,
  131. SYS_MODE_CHARGING = 8,
  132. SYS_MODE_TERMINATING = 9,
  133. SYS_MODE_COMPLETE = 10,
  134. SYS_MODE_ALARM = 11,
  135. SYS_MODE_FAULT = 12,
  136. SYS_MODE_RESERVATION = 13,
  137. SYS_MODE_BOOKING = 14,
  138. SYS_MODE_MAINTAIN = 15,
  139. SYS_MODE_DEBUG = 16,
  140. SYS_MODE_CCS_PRECHARGE_STEP0 = 17,
  141. SYS_MODE_CCS_PRECHARGE_STEP1 = 18,
  142. SYS_MODE_UPDATE = 19
  143. };
  144. enum AUTHORIZATION_MODE
  145. {
  146. AUTH_MODE_ENABLE = 0,
  147. AUTH_MODE_DISABLE = 1
  148. };
  149. enum LCD_LANGUAGE
  150. {
  151. LCD_LANG_ENGLISH = 0,
  152. LCD_LANG_CHT = 1,
  153. LCD_LANG_CHS = 2,
  154. LCD_LANG_JAPANESE = 3,
  155. LCD_LANG_FRENCH = 4,
  156. LCD_LANG_ITALIAN = 5,
  157. LCD_LANG_SPANISH = 6,
  158. LCD_LANG_GERMAN = 7,
  159. LCD_LANG_DUTCH = 8,
  160. LCD_LANG_NORWEGIAN = 9,
  161. LCD_LANG_FINNISH = 10,
  162. LCD_LANG_SWEDISH = 11,
  163. LCD_LANG_SLOVENIAN = 12,
  164. LCD_LANG_THAI = 13,
  165. };
  166. enum RFID_ENDIAN
  167. {
  168. RFID_ENDIAN_LITTLE = 0,
  169. RFID_ENDIAN_BIG = 1
  170. };
  171. enum PHASE_LOSS_POLICY
  172. {
  173. LOSS_POLICY_CHARGING = 0,
  174. LOSS_POLICY_STOP = 1
  175. };
  176. enum CCS_AUTHPRIZATION_MODE
  177. {
  178. CCS_AUTH_MODE_EIM = 0,
  179. CCS_AUTH_MODE_MIXED = 1
  180. };
  181. enum OFF_LINE_POLICY
  182. {
  183. OFF_POLICY_LOCALLIST = 0,
  184. OFF_POLICY_PH_RFID = 1,
  185. OFF_POLICY_FREE = 2,
  186. OFF_POLICY_NOCHARGE = 3
  187. };
  188. /*Configuration enum*/
  189. enum CoreProfile {
  190. AllowOfflineTxForUnknownId=0,
  191. AuthorizationCacheEnabled,
  192. AuthorizeRemoteTxRequests,
  193. BlinkRepeat,
  194. ClockAlignedDataInterval,
  195. ConnectionTimeOut,
  196. GetConfigurationMaxKeys,
  197. HeartbeatInterval,
  198. LightIntensity,
  199. LocalAuthorizeOffline,
  200. LocalPreAuthorize,
  201. MaxEnergyOnInvalidId,
  202. MeterValuesAlignedData,
  203. MeterValuesAlignedDataMaxLength,
  204. MeterValuesSampledData,
  205. MeterValuesSampledDataMaxLength,
  206. MeterValueSampleInterval,
  207. MinimumStatusDuration,
  208. NumberOfConnectors,
  209. ResetRetries,
  210. ConnectorPhaseRotation,
  211. ConnectorPhaseRotationMaxLength,
  212. StopTransactionOnEVSideDisconnect,
  213. StopTransactionOnInvalidId,
  214. StopTxnAlignedData,
  215. StopTxnAlignedDataMaxLength,
  216. StopTxnSampledData,
  217. StopTxnSampledDataMaxLength,
  218. SupportedFeatureProfiles,
  219. SupportedFeatureProfilesMaxLength,
  220. TransactionMessageAttempts,
  221. TransactionMessageRetryInterval,
  222. UnlockConnectorOnEVSideDisconnect,
  223. WebSocketPingInterval,
  224. QueueOffLineStartTransactionMessage,
  225. _CoreProfile_CNT
  226. };
  227. /**************************************************************************************/
  228. /****structure SysConfigData => shall store the data to NAND flash****************/
  229. /****structure SysInfoData => shall NOT store the data to NAND flash***************/
  230. /****according to System Configuration and Information Table.xlsx Rev.0.2 *******/
  231. /**************************************************************************************/
  232. struct NoneUse
  233. {
  234. unsigned char unknown; // None use struct
  235. };
  236. struct EthConfigData
  237. {
  238. unsigned char EthDhcpClient; //0: enable,1: disable
  239. unsigned char EthMacAddress[18]; //default: Null
  240. unsigned char EthIpAddress[16]; //Eth0 default:192.168.0.10 ,Eth1 default:192.168.1.10
  241. unsigned char EthSubmaskAddress[16]; //Eth0 default:255.255.255.0 ,Eth1 default:255.255.255.0
  242. unsigned char EthGatewayAddress[16]; //Eth0 default:192.168.0.254 ,Eth1 default:192.168.1.254
  243. };
  244. struct WifiConfigData
  245. {
  246. unsigned char WifiMode; //0: disable, 1: Infrastructure client, 2: Infrastructure server, 3: Ad-Hoc
  247. unsigned char WifiSsid[256]; //default: Null
  248. unsigned char WifiPassword[256]; //default: Null
  249. int WifiRssi; //dbm
  250. unsigned char WifiDhcpServer; //0: enable, 1: disable
  251. unsigned char WifiDhcpClient; //0: enable, 1: disable
  252. unsigned char WifiMacAddress[18]; //default: Null
  253. unsigned char WifiIpAddress[16]; //default:192.168.2.10
  254. unsigned char WifiSubmaskAddress[16]; //default:255.255.255.0
  255. unsigned char WifiGatewayAddress[16]; //default:192.168.2.254
  256. unsigned char WifiNetworkConn; //0: disconnected, 1: connected
  257. };
  258. struct TeleConfigData
  259. {
  260. unsigned char TelcomModelName[64]; //default: Null
  261. unsigned char TelcomSoftwareVer[64]; //default: Null
  262. unsigned char TelcomApn[256]; //default: Null
  263. int TelcomRssi; //dbm
  264. unsigned char TelcomChapPapId[256]; //default: Null
  265. unsigned char TelcomChapPapPwd[256]; //default: Null
  266. unsigned char TelcomModemImei[16]; //default: Null
  267. unsigned char TelcomSimImsi[16]; //default: Null
  268. unsigned char TelcomSimIccid[22]; //default: Null
  269. unsigned char TelcomSimStatus; //0: no SIM card is found, 1: valid SIM card, 2: invalid SIM card
  270. unsigned char TelcomModemMode; //0: No services, 1: CDMA, 2: GSM/GPRS, 3: WCDMA, 4: GSM/WCDMA, 5: TD_SCDMA mode, 6: Unknow
  271. unsigned char TelcomIpAddress[16]; //default: Null
  272. unsigned char TelcomNetworkConn; //0: disconnected, 1: connected
  273. };
  274. struct BtConfigData
  275. {
  276. unsigned char LoginCentralID[64]; //default: Null
  277. unsigned char isLogin; //0: Central device non-login 1: Central device login
  278. unsigned char isRequestStart; //0: no action 1: request start charging
  279. unsigned char isRequestStop; //0: no action 1: request stop charging
  280. };
  281. struct BillingConfigData
  282. {
  283. unsigned char isBilling; //0:not for business 1:for business
  284. unsigned char Currency; //
  285. float Fee[24]; //fee for 24 hours
  286. float Cur_fee; // display current fee
  287. };
  288. struct LED
  289. {
  290. unsigned char Intensity; // LED bar intensity 0: Darkest 1: Medium 2: Brightest
  291. unsigned char Red[3]; // Red color 0~100, element 0: IDLE 1: CHARGING 2: FAULT
  292. unsigned char Green[3]; // Green color 0~100, element 0: IDLE 1: CHARGING 2: FAULT
  293. unsigned char Blue[3]; // Blue color 0~100, element 0: IDLE 1: CHARGING 2: FAULT
  294. };
  295. struct SysConfigData
  296. {
  297. /**************System***************/
  298. unsigned char CsuBootLoadFwRev[32]; //CSU board bootloader firmware version
  299. unsigned char ModelName[64]; //charger model name
  300. unsigned char AcModelName[64]; //for third gun (DC + AC)
  301. unsigned char SerialNumber[64]; //charger system serial number
  302. unsigned char SystemId[128]; //charger system ID
  303. unsigned char SystemDateTime[32]; //charger system date and time
  304. unsigned char AcPhaseCount; //AC EVSE power phase quantity, 1: One phase 3: Three phase
  305. unsigned char AuthorisationMode; //0: enable, 1: disable
  306. unsigned char DefaultLanguage; //
  307. unsigned char RfidCardNumEndian; //0: little endian, 1: big endian
  308. unsigned short AcPlugInTimes; //0~65535
  309. unsigned short GbPlugInTimes; //0~65535
  310. unsigned short Ccs1PlugInTime; //0~65535
  311. unsigned short Ccs2PlugInTimes; //0~65535
  312. unsigned short ChademoPlugInTimes; //0~65535
  313. unsigned char PsuAcInputType; //0: 220, 1: 277
  314. unsigned short RatingCurrent; //0: Depend on Model name, 1 ~ rating value amp
  315. unsigned short AcRatingCurrent; //for third gun; 0: Depend on Model name, 1 ~ rating value amp
  316. unsigned char isAPP; //for AuthorisationMode=0; 0:false, 1:true
  317. unsigned char isQRCode; //for AuthorisationMode=0; 0:false, 1:true
  318. unsigned char isRFID; //for AuthorisationMode=0; 0:false, 1:true
  319. unsigned char QRCodeMadeMode; //for isQRCode=1 ; 0: default 1:customized
  320. unsigned char QRCodeContent[128]; //for QRCodeMadeMode=1
  321. unsigned char TotalConnectorCount; //Connector count
  322. unsigned char AcConnectorCount; // For DC type
  323. unsigned char SwitchDebugFlag; // Console Debug
  324. unsigned char AlwaysGfdFlag;
  325. /**************Charging***************/
  326. unsigned short MaxChargingEnergy; //0: no limit, 1 ~ 65535 kWh
  327. unsigned short MaxChargingPower; //0: rating value, 1 ~ RATING_POWER kW
  328. unsigned short MaxChargingCurrent; //0: rating value, 1 ~ RATING_CURRENT amp
  329. unsigned short AcMaxChargingCurrent; //for third gun; 0: rating value, 1 ~ RATING_CURRENT amp
  330. unsigned short MaxChargingDuration; //0: no limit, 1 ~ 65535 minutes
  331. unsigned char PhaseLossPolicy; //0: charging, 1: stop charging
  332. unsigned char LocalWhiteCard[10][32]; //Max. card quantity is 10
  333. unsigned char UserId[32]; //the user use this ID to trigger charging event, it can be RFID card number, OCPP IdTag, etc.
  334. struct BillingConfigData BillingData;
  335. /**************Network***************/
  336. unsigned char FtpServer[256]; //the ftp server for Phihong server to do data transimission
  337. struct EthConfigData Eth0Interface;
  338. struct EthConfigData Eth1Interface;
  339. struct WifiConfigData AthInterface;
  340. struct TeleConfigData TelecomInterface;
  341. struct BtConfigData Bluetooth;
  342. /**************Backend***************/
  343. unsigned int BackendConnTimeout; //default : 300s
  344. unsigned char OfflinePolicy; //0: local list, 1: Phihong RFID tag, 2: free charging, 3: no charging
  345. unsigned short OfflineMaxChargeEnergy; //0: same as MaxChargingEnergy, 1 ~ 65535 kWh
  346. unsigned short OfflineMaxChargeDuration; //0: same as MaxChargeDuration, 1 ~ 65535 minutes
  347. 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"
  348. unsigned char ChargeBoxId[128];
  349. unsigned char chargePointVendor[20]; //the Vendor of the ChargePoint
  350. unsigned int Checksum; //4 bytes checksum
  351. struct LED LedInfo; // LED configuration info
  352. };
  353. struct ChargingInfoData
  354. {
  355. unsigned char Index;
  356. unsigned char slotsIndex;
  357. unsigned char Type; // 0 : Chademo, 1 : CCS, 2: GB
  358. unsigned char type_index;
  359. unsigned char Evboard_id; // for EV board
  360. unsigned char StopChargeFlag; // for EV board
  361. unsigned char SystemStatus; //0: Booting, 1: idle, 2: authorizing, 3: preparing, 4: charging, 5: terminating, 6: alarm, 7: fault
  362. unsigned char PreviousSystemStatus; // 0: Booting, 1: idle, 2: authorizing, 3: preparing, 4: charging, 5: terminating, 6: alarm, 7: fault
  363. int ReservationId;
  364. unsigned char IsAvailable;
  365. float MaximumChargingVoltage; //0~6553.5 volt
  366. float AvailableChargingCurrent; //0~6553.5 amp
  367. float AvailableChargingPower; //0~6553.5 kW
  368. float DividChargingCurrent; //0~6553.5 amp
  369. float DeratingChargingCurrent; //0~6553.5 amp
  370. float DeratingChargingPower; //0~6553.5 kW
  371. float FuseChargingVoltage; //0~6553.5 volt
  372. float FireChargingVoltage; //0~6553.5 volt
  373. float PresentChargingVoltage; //0~6553.5 volt
  374. float PresentChargingCurrent; //0~6553.5 amp
  375. float PresentChargingPower; //0~6553.5 kW
  376. float PresentChargedEnergy; //0~6553.5 kWh
  377. int PresentChargedDuration; // second
  378. int RemainChargingDuration; // second
  379. float EvBatteryMaxVoltage; // 0~6553.5 volt
  380. float EvBatterytargetVoltage; // 0~6553.5 volt
  381. float EvBatterytargetCurrent; //102.3 0~200(A) (unit:1A)
  382. int EvBatterySoc; // 0~100%
  383. unsigned char ConnectorPlugIn; //0: unplug, 1: Plug-in
  384. unsigned char GunLocked; //0: unlocked 1: locked
  385. float PilotVoltage;
  386. 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
  387. unsigned char PilotDuty; // 0~100%
  388. unsigned char StartUserId[32]; // This ID is trigger start charging event user by RFID、back-end、BLE.
  389. unsigned char StartDateTime[32]; // Charging cycle start date time
  390. unsigned char StopDateTime[32]; // Charging cycle stop date time
  391. unsigned char StartMethod;
  392. float ChargingFee;
  393. // Connector Temp
  394. unsigned char ConnectorTemp; //0x00: -60¢XC ~ 0xFE: 194
  395. // Charging Status
  396. unsigned char GroundFaultStatus; // for GFD result => 0x00 : None, 0x01 : Can Start Charging, 0x02 : Stop Charging
  397. unsigned short RealRatingPower;
  398. unsigned char RelayWeldingCheck; // 0 : No Comp., 1 : Comp.
  399. unsigned char PrechargeStatus; // for ccs precharge => 0x00 : None defined, 0x01 : Accepted
  400. float PowerConsumption; // This contains the meter value (Power Consumption) kWh
  401. unsigned char RelayK1K2Status; // 0x00 : open, 0x01 : close
  402. unsigned char RelayKPK2Status; // 0x00 : open, 0x01 : close
  403. unsigned char TimeoutFlag; // 0 : none,
  404. struct timeval TimeoutTimer;
  405. unsigned char MaxChargeEnable;
  406. unsigned char IsReadyToCharging;
  407. unsigned char CcsAuthentication; // 0:EIM, 1:EIM & PnC mixed
  408. unsigned char AcCcsChargingMode; // 0:BC (PWM) only, 1:BC & PLC mixed
  409. unsigned short SampleChargingCur[2];
  410. /**************Alston for AC***************/
  411. unsigned char SelfTest_Comp;
  412. unsigned char version[16];
  413. unsigned char IsModeChagned;
  414. unsigned char IsCharging;
  415. unsigned char IsErrorOccur;
  416. float RealMaxVoltage;
  417. float RealMaxCurrent;
  418. float RealMaxPower;
  419. unsigned char ConnectorWarningCode[7];
  420. unsigned char ConnectorAlarmCode[7];
  421. unsigned char EvConnAlarmCode[7];
  422. float ChargingProfileCurrent; //0~6553.5 amp
  423. float ChargingProfilePower; //0~6553.5 kW
  424. float PresentChargingVoltageL2; //0~6553.5 volt
  425. float PresentChargingVoltageL3; //0~6553.5 volt
  426. float PresentChargingCurrentL2; //0~6553.5 amp
  427. float PresentChargingCurrentL3; //0~6553.5 amp
  428. char RemoteStartFlag;
  429. unsigned char MaxChargingToAverPassFlag;
  430. };
  431. struct SysInfoData
  432. {
  433. /**************System***************/
  434. unsigned char BootingStatus; // 0 : booting, 1 : Initializing Complete.
  435. unsigned char AuthorizeFlag; // 0 : None, 1 : Authorizing
  436. unsigned char FactoryConfiguration; //0: normal, 1: trigger, charger will return the configuration to factory default if trigger
  437. float InputVoltageR; //0~655.35 volt
  438. float InputVoltageS; //0~655.35 volt
  439. float InputVoltageT; //0~655.35 volt
  440. unsigned int SystemFanRotaSpeed; //0 ~ 65535 RPM
  441. unsigned int PsuFanRotaSpeed; //0 ~ 65535 RPM
  442. unsigned char AuxPower5V; //0 ~ 255 volt
  443. unsigned char AuxPower12V; //0 ~ 255 volt
  444. unsigned char AuxPower24V; //0 ~ 255 volt
  445. unsigned char AuxPower48V; //0 ~ 255 volt
  446. unsigned char CsuHwRev[32]; //CSU board hardware version
  447. unsigned char CsuBootLoadFwRev[32]; //CSU board bootloader firmware version
  448. unsigned char CsuKernelFwRev[32];//CSU board OS kernel firmware version
  449. unsigned char CsuRootFsFwRev[32];//CSU board root file system firmware version
  450. unsigned char CsuPrimFwRev[32]; //CSU board root file system firmware version
  451. unsigned char LcmHwRev[32]; //LCM module hardware version
  452. unsigned char LcmFwRev[32]; //LCM module firmware version
  453. unsigned char PsuHwRev[32]; //PSU hardware version
  454. unsigned char PsuPrimFwRev[32]; //PSU primary firmware version
  455. unsigned char PsuSecFwRev[32]; //PSU secondary firmware version
  456. unsigned char AuxPwrHwRev[32]; //Aux. power module hardware version
  457. unsigned char AuxPwrFwRev[32]; //Aux. power module firmware version
  458. unsigned char FanModuleHwRev[32]; //Fan module hardware version
  459. unsigned char FanModuleFwRev[32]; //Fan module firmware version
  460. unsigned char RelayModuleHwRev[32]; //Relay control module hardware version
  461. unsigned char RelayModuleFwRev[32]; //Relay control module firmware version
  462. unsigned char TelcomModemFwRev[32]; //the 3G/4G modem firmware version
  463. unsigned char LedModuleFwRev[32]; //LED control module firmware version
  464. unsigned char Connector1FwRev[32]; //Connector1 module firmware version
  465. unsigned char Connector2FwRev[32]; //Connector2 module firmware version
  466. int SystemAmbientTemp; // -40 ~ 215 degree C
  467. int SystemCriticalTemp; // -40 ~ 215 degree C
  468. int CcsConnectorTemp; // -40 ~ 215 degree C
  469. int PsuAmbientTemp; // -40 ~ 215 degree C
  470. /**************Charging***************/
  471. struct ChargingInfoData ChademoChargingData[CHAdeMO_QUANTITY];
  472. struct ChargingInfoData CcsChargingData[CCS_QUANTITY];
  473. struct ChargingInfoData GbChargingData[GB_QUANTITY];
  474. struct ChargingInfoData AcChargingData[AC_QUANTITY];
  475. unsigned char CurGunSelected;
  476. unsigned char CurGunSelectedByAc;
  477. /**************Network***************/
  478. unsigned char InternetConn; //0: disconnected, 1: connected
  479. /**************Backend***************/
  480. unsigned char OcppConnStatus; //0: disconnected, 1: connected
  481. char OrderCharging;
  482. /**************Alston***************/
  483. unsigned char WaitForPlugit; //0: none scan, 1: scanning
  484. unsigned char PageIndex; //0 : Initialize
  485. //1 : idle
  486. //4 : Authorizing
  487. //5 : Authorizing complete
  488. //6 : Authorizing fail
  489. //7 : Wait for Plug
  490. //8 : Pre-charge
  491. //9 : Charging
  492. unsigned char SelfTestSeq; //
  493. unsigned char ReAssignedFlag; //
  494. unsigned char CanAverageCharging;
  495. unsigned char MainChargingMode; // 0 : Max, 1 : Average
  496. unsigned char BridgeRelayStatus;
  497. unsigned char FirmwareUpdate; // 0 : none, 1 : update.
  498. unsigned char AcContactorStatus; // 0: disconnected, 1: connected
  499. unsigned char SystemTimeoutFlag; // 0 : none, 1 : self test
  500. struct timeval SystemTimeoutTimer;
  501. unsigned char SystemPage;
  502. unsigned char ConnectorPage;
  503. unsigned char IsAlternatvieConf; // 0 : normal, 1 : alternative
  504. unsigned char StartToChargingFlag; // 0 : Stop, 1 : Start for modbus
  505. unsigned char ChargerType; // 0 : IEC, 1 : UL
  506. };
  507. struct WARNING_CODE_INFO
  508. {
  509. unsigned char WarningCount;
  510. unsigned char PageIndex;
  511. unsigned char WarningCode[10][7];
  512. unsigned char Level;
  513. unsigned char ExtraErrProcess; // 0 : none, 1 : input uvp..
  514. };
  515. struct SysConfigAndInfo
  516. {
  517. struct SysConfigData SysConfig;
  518. struct SysInfoData SysInfo;
  519. struct WARNING_CODE_INFO SysWarningInfo;
  520. };
  521. char Currency[54][3]=
  522. {
  523. "AED", // - Emirati Dirham
  524. "ARS", // - Argentine Peso
  525. "AUD", // - Australian Dollar
  526. "BGN", // - Bulgarian Lev
  527. "BHD", // - Bahraini Dinar
  528. "BND", // - Bruneian Dollar
  529. "BRL", // - Brazilian Real
  530. "BWP", // - Botswana Pula
  531. "CAD", // - Canadian Dollar
  532. "CHF", // - Swiss Franc
  533. "CLP", // - Chilean Peso
  534. "CNY", // - Chinese Yuan Renminbi
  535. "COP", // - Colombian Peso
  536. "CZK", // - Czech Koruna
  537. "DKK", // - Danish Krone
  538. "EUR", // - Euro
  539. "GBP", // - British Pound
  540. "HKD", // - Hong Kong Dollar
  541. "HRK", // - Croatian Kuna
  542. "HUF", // - Hungarian Forint
  543. "IDR", // - Indonesian Rupiah
  544. "ILS", // - Israeli Shekel
  545. "INR", // - Indian Rupee
  546. "IRR", // - Iranian Rial
  547. "ISK", // - Icelandic Krona
  548. "JPY", // - Japanese Yen
  549. "KRW", // - South Korean Won
  550. "KWD", // - Kuwaiti Dinar
  551. "KZT", // - Kazakhstani Tenge
  552. "LKR", // - Sri Lankan Rupee
  553. "LYD", // - Libyan Dinar
  554. "MUR", // - Mauritian Rupee
  555. "MXN", // - Mexican Peso
  556. "MYR", // - Malaysian Ringgit
  557. "NOK", // - Norwegian Krone
  558. "NPR", // - Nepalese Rupee
  559. "NZD", // - New Zealand Dollar
  560. "OMR", // - Omani Rial
  561. "PHP", // - Philippine Peso
  562. "PKR", // - Pakistani Rupee
  563. "PLN", // - Polish Zloty
  564. "QAR", // - Qatari Riyal
  565. "RON", // - Romanian New Leu
  566. "RUB", // - Russian Ruble
  567. "SAR", // - Saudi Arabian Riyal
  568. "SEK", // - Swedish Krona
  569. "SGD", // - Singapore Dollar
  570. "THB", // - Thai Baht
  571. "TRY", // - Turkish Lira
  572. "TTD", // - Trinidadian Dollar
  573. "TWD", // - Taiwan New Dollar
  574. "USD", // - US Dollar
  575. "VEF", // - Venezuelan Bolivar
  576. "ZAR" // - South African Rand
  577. };
  578. /**************************************************************************************/
  579. /**************************Alarm Share memory**************************************/
  580. /***************************************************************************************
  581. Status Code A B C D E F
  582. 0: Issue 1: From EVSE 1: Fault (unrecoverable) 001 ~ 999 serial number
  583. e.g., hardware broken, system latch
  584. 1: Recovered 2: From EV 2: Alarm (recoverable)
  585. e.g., OTP, OVP
  586. 3: From Backend 3: Information
  587. e.g., swipe card to stop charging
  588. according to XXX.Revxx
  589. ***************************************************************************************/
  590. /**************************************************************************************/
  591. char FaultStatusCode[40][6]=
  592. {
  593. "011001", //CHAdeMO output fuse blew
  594. "011002", //CCS output fuse blew
  595. "011003", //GB output fuse blew
  596. "011004", //RCD/CCID self-test fail
  597. "011005", //AC input contactor 1 welding
  598. "011006", //AC input contactor 1 driving fault
  599. "011007", //AC input contactor 2 welding
  600. "011008", //AC input contactor 2 driving fault
  601. "011009", //AC output relay welding
  602. "011010", //AC output relay driving fault
  603. "011011", //CHAdeMO output relay welding
  604. "011012", //CHAdeMO output relay driving fault
  605. "011013", //CCS output relay welding
  606. "011014", //CCS output relay driving fault
  607. "011015", //GB output relay welding
  608. "011016", //GB output relay driving fault
  609. "011017", //AC connector temperature sensor broken
  610. "011018", //CHAdeMO connector temperature sensor broken
  611. "011019", //CCS connector temperature sensor broken
  612. "011020", //GB connector temperature sensor broken
  613. "011021", //WiFi module broken
  614. "011022", //3G/4G module broken
  615. "011023", //Aux. power module broken
  616. "011024", //Relay control module /smart box broken
  617. "011025", //CHAdeMO connector lock fail
  618. "011026", //GB connector lock fail
  619. "011027", //AC connector lock fail
  620. "011028", //CHAdeMO module broken
  621. "011029", //CCS module broken
  622. "011030", //GBT module broken
  623. "011031", //PSU module broken
  624. "011032", //RCD/CCID module broken
  625. "011033", //Maximum Output Current setup error
  626. "011034", //Shutter fault
  627. "011035", //Ble module broken
  628. "011036", //Rotary switch fault
  629. "011037", //Reserved
  630. "011038", //Reserved
  631. "011039", //Reserved
  632. "011040" //Reserved
  633. };
  634. struct FaultCodeData
  635. {
  636. unsigned char PreviousFaultVal[5];
  637. union
  638. {
  639. unsigned char FaultVal[5];
  640. struct
  641. {
  642. //FaultVal[0]
  643. unsigned char ChademoOutputFuseBlew:1; //bit 0
  644. unsigned char CcsOutputFuseBlew:1; //bit 1
  645. unsigned char GbOutputFuseBlew:1; //bit 2
  646. unsigned char RcdSelfTestFail:1; //bit 3
  647. unsigned char AcInputContactor1Welding:1; //bit 4
  648. unsigned char AcInputContactor1DrivingFault:1; //bit 5
  649. unsigned char AcInputContactor2Welding:1; //bit 6
  650. unsigned char AcInputContactor2DrivingFault:1; //bit 7
  651. //FaultVal[1]
  652. unsigned char AcOutputRelayWelding:1; //bit 0
  653. unsigned char AcOutputRelayDrivingFault:1; //bit 1
  654. unsigned char ChademoOutputRelayWelding:1; //bit 2
  655. unsigned char ChademoOutputRelayDrivingFault:1; //bit 3
  656. unsigned char CcsOutputRelayWelding:1; //bit 4
  657. unsigned char CcsOutputRelayDrivingFault:1; //bit 5
  658. unsigned char GbOutputRelayWelding:1; //bit 6
  659. unsigned char GbOutputRelayDrivingFault:1; //bit 7
  660. //FaultVal[2]
  661. unsigned char AcConnectorTempSensorBroken:1; //bit 0
  662. unsigned char ChademoConnectorTempSensorBroken:1; //bit 1
  663. unsigned char CcsConnectorTempSensorBroken:1; //bit 2
  664. unsigned char GbConnectorTempSensorBroken:1; //bit 3
  665. unsigned char WiFiModuleBroken:1; //bit 4
  666. unsigned char Telecom4GModuleBroken:1; //bit 5
  667. unsigned char AuxPowerModuleBroken:1; //bit 6
  668. unsigned char RelayControlModuleBroken :1; //bit 7
  669. //FaultVal[3]
  670. unsigned char ChademoConnectorLockFail:1; //bit 0
  671. unsigned char GbConnectorLockFail:1; //bit 1
  672. unsigned char AcConnectorLockFail:1; //bit 2
  673. unsigned char ChademoModuleBroken:1; //bit 3
  674. unsigned char CcsModuleBroken:1; //bit 4
  675. unsigned char GbModuleBroken:1; //bit 5
  676. unsigned char PsuModuleBroken:1; //bit 6
  677. unsigned char RcdCcidModuleBroken:1; //bit 7
  678. //FaultVal[4]
  679. unsigned char MaximumOutputCurrentSetupError:1; //bit 0
  680. unsigned char ShutterFault:1; //bit 1
  681. unsigned char BleModuleBroken:1; //bit 2
  682. unsigned char RotarySwitchFault:1; //bit 3
  683. unsigned char :4; //bit 4 ~ 7 reserved
  684. }bits;
  685. }FaultEvents;
  686. };
  687. char AlarmStatusCode[128][6]=
  688. {
  689. "012200", //System L1 input OVP
  690. "012201", //System L2 input OVP
  691. "012202", //System L3 input OVP
  692. "012203", //System L1 input UVP
  693. "012204", //System L2 input UVP
  694. "012205", //System L3 input UVP
  695. "012206", //PSU L1 input OVP
  696. "012207", //PSU L2 input OVP
  697. "012208", //PSU L3 input OVP
  698. "012209", //PSU L1 input UVP
  699. "012210", //PSU L2 input UVP
  700. "012211", //PSU L3 input UVP
  701. "012212", //System L1 input drop
  702. "012213", //System L2 input drop
  703. "012214", //System L3 input drop
  704. "012215", //System AC output OVP
  705. "012216", //System AC output OCP L1
  706. "012217", //System CHAdeMO output OVP
  707. "012218", //System CHAdeMO output OCP
  708. "012219", //System CCS output OVP
  709. "012220", //System CCS output OCP
  710. "012221", //System GB output OVP
  711. "012222", //System GB output OCP
  712. "012223", //System ambient/inlet OTP
  713. "012224", //System critical point OTP
  714. "012225", //PSU ambient/inlet OTP
  715. "012226", //PSU critical point OTP
  716. "012227", //Aux. power module OTP
  717. "012228", //Relay board/smart box OTP
  718. "012229", //CHAdeMO connector OTP
  719. "012230", //CCS connector OTP
  720. "012231", //GB connector OTP
  721. "012232", //AC connector OTP
  722. "012233", //RCD/CCID trip
  723. "012234", //CHAdeMO GFD trip
  724. "012235", //CCS GFD trip
  725. "012236", //GB GFD trip
  726. "012237", //SPD trip
  727. "012238", //Main power breaker trip
  728. "012239", //Aux. power breaker trip
  729. "012240", //PSU communication fail
  730. "012241", //WiFi module communication fail
  731. "012242", //3G/4G module communication fail
  732. "012243", //RFID module communication fail
  733. "012244", //Bluetooth module communication fail
  734. "012245", //LCM module communication fail
  735. "012246", //Aux. power module communication fail
  736. "012247", //Relay control boaed/smart box communication fail
  737. "012248", //CCS module communication fail
  738. "012249", //CHAdeMO module communication fail
  739. "012250", //GBT module communication fail
  740. "012251", //Emergency stop
  741. "012252", //Door open
  742. "012253", //System fan decay
  743. "012254", //Fail to create share memory
  744. "012255", //CSU initialization failed
  745. "012256", //AC Ground Fault
  746. "012257", //MCU self-test Fault
  747. "012258", //Relay self-test Fault
  748. "012259", //CHAdeMO groundfault detection timeout (GFD)
  749. "012260", //CCS groundfault detection timeout (GFD)
  750. "012261", //GB groundfault detection timeout (GFD)
  751. "012262", //Circuit Short L1
  752. "012263", // PSU Duplicate ID
  753. "012264", // PSU Output Short Circuit
  754. "012265", // PSU Discharge Abnormal
  755. "012266", // PSU Dc Side ShutDown
  756. "012267", // PSU Failure Alarm
  757. "012268", // PSU Protection Alarm
  758. "012269", // PSU FanFailure Alarm
  759. "012270", // PSU Input UVP
  760. "012271", // PSU Input OVP
  761. "012272", // PSU WalkIn State
  762. "012273", // PSU Power Limited State
  763. "012274", // PSU Id Repeat
  764. "012275", // PSU Severe Uneven Current
  765. "012276", // PSU Three Phase Input Inadequate
  766. "012277", // PSU Three Phase Onput Imbalance
  767. "012278", // PSU Ffc Side ShutDown
  768. "012279", // NO PSU Resource
  769. "012280", // Self test Failed due to communication of Relayboard failure
  770. "012281", // Self test Failed due to communication of Fanboard failure
  771. "012282", // Self test Failed due to communication of Primary failure
  772. "012283", // Self test Failed due to communication of Chademoboard failure
  773. "012284", // Self test Failed due to communication of CCSboard failure
  774. "012285", // Self test Failed due to AC Contact failure
  775. "012286", // Self test Failed due to communication of PSU failure
  776. "012287", // Self test Failed due to Model name is none match
  777. "012288", // CCS output UVP
  778. "012289", // Chademo output UVP
  779. "012290", // GBT output UVP
  780. "012291", // Self test Failed due to communication of GBTboard failure
  781. "012292", // Self test Failed due to communication of AC failure
  782. "012293", // Self test Failed due to communication of Ledboard failure
  783. "012294", // Ac input OVP
  784. "012295", // Ac input UVP
  785. "012296", // CHAdeMO groundfault detection - warning
  786. "012297", // CCS groundfault detection - warning
  787. "012298", // GB groundfault detection - warning
  788. "012299", //System AC output OCP L2
  789. "012300", //System AC output OCP L3
  790. "012301", //Circuit Short L2
  791. "012302", //Circuit Short L3
  792. };
  793. struct AlarmCodeData
  794. {
  795. unsigned char PreviousAlarmVal[13];
  796. union
  797. {
  798. unsigned char AlarmVal[13];
  799. struct
  800. {
  801. //AlarmVal[0]
  802. unsigned char SystemL1InputOVP:1; //bit 0
  803. unsigned char SystemL2InputOVP:1; //bit 1
  804. unsigned char SystemL3InputOVP:1; //bit 2
  805. unsigned char SystemL1InputUVP:1; //bit 3
  806. unsigned char SystemL2InputUVP:1; //bit 4
  807. unsigned char SystemL3InputUVP:1; //bit 5
  808. unsigned char PsuL1InputOVP:1; //bit 6
  809. unsigned char PsuL2InputOVP:1; //bit 7
  810. //AlarmVal[1]
  811. unsigned char PsuL3InputOVP:1; //bit 0
  812. unsigned char PsuL1InputUVP:1; //bit 1
  813. unsigned char PsuL2InputUVP:1; //bit 2
  814. unsigned char PsuL3InputUVP :1; //bit 3
  815. unsigned char SystemL1InputDrop:1; //bit 4
  816. unsigned char SystemL2InputDrop:1; //bit 5
  817. unsigned char SystemL3InputDrop:1; //bit 6
  818. unsigned char SystemAcOutputOVP:1; //bit 7
  819. //AlarmVal[2]
  820. unsigned char SystemAcOutputOCP:1; //bit 0
  821. unsigned char SystemChademoOutputOVP:1; //bit 1
  822. unsigned char SystemChademoOutputOCP:1; //bit 2
  823. unsigned char SystemCcsOutputOVP:1; //bit 3
  824. unsigned char SystemCcsOutputOCP:1; //bit 4
  825. unsigned char SystemGbOutputOVP:1; //bit 5
  826. unsigned char SystemGbOutputOCP:1; //bit 6
  827. unsigned char SystemAmbientOTP :1; //bit 7
  828. //AlarmVal[3]
  829. unsigned char SystemCriticalPointOTP:1; //bit 0
  830. unsigned char PsuAmbientOTP:1; //bit 1
  831. unsigned char PsuCriticalPointOTP:1; //bit 2
  832. unsigned char AuxPowerModuleOTP:1; //bit 3
  833. unsigned char RelayBoardOTP:1; //bit 4
  834. unsigned char ChademoConnectorOTP:1; //bit 5
  835. unsigned char CcsConnectorOTP:1; //bit 6
  836. unsigned char GbConnectorOTP:1; //bit 7
  837. //AlarmVal[4]
  838. unsigned char AcConnectorOTP:1; //bit 0
  839. unsigned char RcdTrip:1; //bit 1
  840. unsigned char ChademoGfdTrip:1; //bit 2
  841. unsigned char CcsGfdTrip:1; //bit 3
  842. unsigned char GbGfdTrip:1; //bit 4
  843. unsigned char SpdTrip:1; //bit 5
  844. unsigned char MainPowerBreakerTrip:1; //bit 6
  845. unsigned char AuxPowerBreakerTrip:1; //bit 7
  846. //AlarmVal[5]
  847. unsigned char PsuCommunicationFail:1; //bit 0
  848. unsigned char WiFiModuleCommFail:1; //bit 1
  849. unsigned char Telecom4GModuleCommFail:1; //bit 2
  850. unsigned char RfidModuleCommFail:1; //bit 3
  851. unsigned char BluetoothModuleCommFail:1; //bit 4
  852. unsigned char LcmModuleCommFail:1; //bit 5
  853. unsigned char AuxPowerModuleCommFail:1; //bit 6
  854. unsigned char RelayBoardCommFail:1; //bit 7
  855. //AlarmVal[6]
  856. unsigned char CcsModuleCommFail:1; //bit 0
  857. unsigned char ChademoModuleCommFail:1; //bit 1
  858. unsigned char GbModuleCommFail:1; //bit 2
  859. unsigned char EmergencyStopTrip:1; //bit 3
  860. unsigned char DoorOpen:1; //bit 4
  861. unsigned char SystemFanDecay:1; //bit 5
  862. unsigned char FailToCreateShareMemory:1; //bit 6
  863. unsigned char CsuInitFailed:1; //bit 7
  864. //AlarmVal[7]
  865. unsigned char AcGroundfaultFail:1; //bit 0
  866. unsigned char McuSelftestFail:1; //bit 1
  867. unsigned char RelaySelftestFail:1; //bit 2
  868. unsigned char ChademoGroundfaultTimeout:1; //bit 3
  869. unsigned char CcsGroundfaultTimeout:1; //bit 4
  870. unsigned char GbGroundfaultTimeout:1; //bit 5
  871. unsigned char CircuitShort:1; //bit 6
  872. unsigned char PsuDuplicateID:1; //bit 7
  873. //AlarmVal[8]
  874. unsigned char PsuOutputShortCircuit :1; //bit 0
  875. unsigned char PsuDischargeAbnormal :1; //bit 1
  876. unsigned char PsuDcSideShutDown :1; //bit 2
  877. unsigned char PsuFailureAlarm :1; //bit 3
  878. unsigned char PsuProtectionAlarm :1; //bit 4
  879. unsigned char PsuFanFailureAlarm :1; //bit 5
  880. unsigned char PsuInputUVP:1; //bit 6
  881. unsigned char PsuInputOVP:1; //bit 7
  882. //AlarmVal[9]
  883. unsigned char PsuWalkInState :1; //bit 0
  884. unsigned char PsuPowerLimitedState :1; //bit 1
  885. unsigned char PsuIdRepeat :1; //bit 2
  886. unsigned char PsuSevereUnevenCurrent :1; //bit 3
  887. unsigned char PsuThreePhaseInputInadequate :1; //bit 4
  888. unsigned char PsuThreePhaseOnputImbalance :1; //bit 5
  889. unsigned char PsuFfcSideShutDown :1; //bit 6
  890. unsigned char PsuNoResource:1; //bit 7
  891. //AlarmVal[10]
  892. unsigned char RelayboardStestFail :1; //bit 0
  893. unsigned char FanboardStestFail :1; //bit 1
  894. unsigned char PrimaryStestFail :1; //bit 2
  895. unsigned char ChademoboardStestFail :1; //bit 3
  896. unsigned char CCSboardStestFail :1; //bit 4
  897. unsigned char AcContactStestFail :1; //bit 5
  898. unsigned char PsuModuleStestFail :1; //bit 6
  899. unsigned char ModelNameNoneMatchStestFail:1; //bit 7
  900. //AlarmVal[11]
  901. unsigned char CcsOutputUVPFail :1; //bit 0
  902. unsigned char ChademoOutputUVPFail :1; //bit 1
  903. unsigned char GbtOutputUVPFail :1; //bit 2
  904. unsigned char GbtboardStestFail :1; //bit 3
  905. unsigned char AcConnectorStestFail:1; //bit 4
  906. unsigned char LedboardStestFail:1; //bit 5
  907. unsigned char AcSystemInputOVP:1; //bit 6
  908. unsigned char AcSystemInputUVP:1; //bit 7
  909. //AlarmVal[12]
  910. unsigned char ChademoGroundWarning :1; //bit 0
  911. unsigned char CcsGroundfaultWarning :1; //bit 1
  912. unsigned char GbGroundfaultWarning :1; //bit 2
  913. unsigned char SystemAcOutputOCPL2:1; //bit 3
  914. unsigned char SystemAcOutputOCPL3:1; //bit 4
  915. unsigned char CircuitShortL2:1; //bit 5
  916. unsigned char CircuitShortL3:1; //bit 6
  917. unsigned char :1; //bit 7
  918. }bits;
  919. }AlarmEvents;
  920. };
  921. char InfoStatusCode[384][6]=
  922. {
  923. //Information comes from EVSE
  924. "013600", //Normal stop charging by user
  925. "013601", //Charging Time's up
  926. "013602", //Replace system air filter
  927. "013603", //Reach to CHAdeMO max. plugging times.
  928. "013604", //Reach to CCS max. plugging times.
  929. "013605", //Reach to GB max. plugging times.
  930. "013606", //Reach to AC max. plugging times.
  931. "013607", //CSU fimrware update fail
  932. "013608", //CHAdeMO Module fimrware update fail
  933. "013609", //CCS Module fimrware update fail
  934. "013610", //GB Module fimrware update fail
  935. "013611", //Aux. power module fimrware update fail
  936. "013612", //Relay control module fimrware update fail
  937. "013613", //LCM module fimrware update fail
  938. "013614", //Bluetooth module fimrware update fail
  939. "013615", //WiFi module fimrware update fail
  940. "013616", //3G/4G module fimrware update fail
  941. "013617", //SMR fimrware update fail
  942. "013618", //RFID module fimrware update fail
  943. "013619", //configured by USB flash drive
  944. "013620", //configured by backend
  945. "013621", //configured by webpage
  946. "013622", //disconnected from Internet through Ethernet
  947. "013623", //disconnected from Internet through WiFi
  948. "013624", //disconnected from Internet through 3G/4G
  949. "013625", //disconnected from AP through WiFi
  950. "013626", //disconnected from APN through 3G/4G
  951. "013627", //Reserved
  952. "013628", //Reserved
  953. "013629", //Reserved
  954. "013630", //Reserved
  955. "013631", //Reserved
  956. //Information comes from EV
  957. "023700", //CHAdeMO EV communication Fail
  958. "023701", //CCS EV communication Fail
  959. "023702", //GB EV communication Fail
  960. "023703", //AC: pilot fault
  961. "023704", //CHAdeMO: battery malfunction
  962. "023705", //CHAdeMO: no charging permission
  963. "023706", //CHAdeMO: battery incompatibility
  964. "023707", //CHAdeMO: battery OVP
  965. "023708", //CHAdeMO: battery UVP
  966. "023709", //CHAdeMO: battery OTP
  967. "023710", //CHAdeMO: battery current difference
  968. "023711", //CHAdeMO: battery voltage difference
  969. "023712", //CHAdeMO: shift position
  970. "023713", //CHAdeMO: battery other fault
  971. "023714", //CHAdeMO: charging system error
  972. "023715", //CHAdeMO: EV normal stop
  973. "023716", //CHAdeMO: connector temperature sensor broken
  974. "023717", //CHAdeMO: connector lock fail
  975. "023718", //CHAdeMO: D1 ON No Receive
  976. "023719", //CHAdeMO: BMS K to J Timeout
  977. "023720", //CHAdeMO: BMS Charge Allow Timeout
  978. "023721", //CHAdeMO: Wait GroundFault Timeout
  979. "023722", //CHAdeMO: BMS EV Relay Timeout
  980. "023723", //CHAdeMO: BMS Request Current Timeout
  981. "023724", //CHAdeMO: BMS K to J OFF Timeout
  982. "023725", //CHAdeMO: BMS EV Relay OFF Timeout
  983. "023726", //CHAdeMO: ADC More Than 10V
  984. "023727", //CHAdeMO: ADC More Than 20V
  985. "023728", //CHAdeMO: BMS Charge Before Stop
  986. "023729", //CHAdeMO: Charger Get Normal Stop
  987. "023730", //CHAdeMO: Charger Get Emergency Stop
  988. "023731", //CHAdeMO: Isolation Result Fail
  989. "023732", //CHAdeMO: Miss Link With MotherBoard
  990. "023733", //CHAdeMO: Output Voltage More Than Limit
  991. "023734", //CHAdeMO: Request Current More Than Limit
  992. "023735", //CHAdeMO: Re Cap BMS Eqr Current Exceed
  993. "023736", //CHAdeMO: Charge Remain Count Down
  994. "023737", //CCS:CCS_EVCC_EVErrorCode_FAILED_RESSTemperatureInhibit
  995. "023738", //CCS:CCS_EVCC_EVErrorCode_FAILED_EVShiftPosition
  996. "023739", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargerConnectorLockFault
  997. "023740", //CCS:CCS_EVCC_EVErrorCode_FAILED_EVRESSMalfunction
  998. "023741", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargingCurrentdifferential
  999. "023742", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargingVoltageOutOfRange
  1000. "023743", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargingSystemIncompatibility
  1001. "023744", //CCS:CCS_EVCC_EVErrorCode_FAILED_EmergencyEvent
  1002. "023745", //CCS:CCS_EVCC_EVErrorCode_FAILED_Breaker
  1003. "023746", //CCS:CCS_EVCC_EVErrorCode_FAILED_NoData
  1004. "023747", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_DIN_A
  1005. "023748", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_DIN_B
  1006. "023749", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_DIN_C
  1007. "023750", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_ISO_1
  1008. "023751", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_ISO_2
  1009. "023752", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_ISO_3
  1010. "023753", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_1
  1011. "023754", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_2
  1012. "023755", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_3
  1013. "023756", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_4
  1014. "023757", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_5
  1015. "023758", //CCS:CCS_SECC_ResponseCode_FAILED_SequenceError
  1016. "023759", //CCS:CCS_SECC_ResponseCode_FAILED_SignatureError
  1017. "023760", //CCS:CCS_SECC_ResponseCode_FAILED_UnknownSession
  1018. "023761", //CCS:CCS_SECC_ResponseCode_FAILED_ServiceIDInvalid
  1019. "023762", //CCS:CCS_SECC_ResponseCode_FAILED_Payment SelectionInvalid
  1020. "023763", //CCS:CCS_SECC_ResponseCode_FAILED_IdentificationSelectionInvalid
  1021. "023764", //CCS:CCS_SECC_ResponseCode_FAILED_ServiceSelectionInvalid
  1022. "023765", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateExpired
  1023. "023766", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateNotYetValid
  1024. "023767", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateRevoked
  1025. "023768", //CCS:CCS_SECC_ResponseCode_FAILED_NoCertificateAvailable
  1026. "023769", //CCS:CCS_SECC_ResponseCode_FAILED_CertChainError
  1027. "023770", //CCS:CCS_SECC_ResponseCode_FAILED_CertValidationError
  1028. "023771", //CCS:CCS_SECC_ResponseCode_FAILED_CertVerificationError
  1029. "023772", //CCS:CCS_SECC_ResponseCode_FAILED_ContractCanceled
  1030. "023773", //CCS:CCS_SECC_ResponseCode_FAILED_ChallengeInvalid
  1031. "023774", //CCS:CCS_SECC_ResponseCode_FAILED_WrongEnergyTransferMode
  1032. "023775", //CCS:CCS_SECC_ResponseCode_FAILED_WrongChargeParameter
  1033. "023776", //CCS:CCS_SECC_ResponseCode_FAILED_ChargingProfileInvalid
  1034. "023777", //CCS:CCS_SECC_ResponseCode_FAILED_TariffSelectionInvalid
  1035. "023778", //CCS:CCS_SECC_ResponseCode_FAILED_EVSEPresentVoltageToLow
  1036. "023779", //CCS:CCS_SECC_ResponseCode_FAILED_PowerDeliveryNotApplied
  1037. "023780", //CCS:CCS_SECC_ResponseCode_FAILED_MeteringSignatureNotValid
  1038. "023781", //CCS:CCS_SECC_ResponseCode_FAILED_NoChargeServiceSelected
  1039. "023782", //CCS:CCS_SECC_ResponseCode_FAILED_ContactorError
  1040. "023783", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateNotAllowedAtThisEVSE
  1041. "023784", //CCS:CCS_SECC_ResponseCode_FAILED_GAChargeStop
  1042. "023785", //CCS:CCS_SECC_ResponseCode_FAILED_AlignmentError
  1043. "023786", //CCS:CCS_SECC_ResponseCode_FAILED_ACDError
  1044. "023787", //CCS:CCS_SECC_ResponseCode_FAILED_AssociationError
  1045. "023788", //CCS:CCS_SECC_ResponseCode_FAILED_EVSEChargeAbort
  1046. "023789", //CCS:CCS_SECC_ResponseCode_FAILED_NoSupportedApp-Protocol-Protocol
  1047. "023790", //CCS:CCS_SECC_ResponseCode_FAILED_ContractNotAccepted
  1048. "023791", //CCS:CCS_SECC_ResponseCode_FAILED_MOUnknown
  1049. "023792", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_Prov_CertificateRevoke
  1050. "023793", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_SubCA1_CertificateRevoked
  1051. "023794", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_SubCA2_CertificateRevoked
  1052. "023795", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_RootCA_CertificateRevoked
  1053. "023796", //CCS:CCS_SECC_ResponseCode_FAILED_MO_Prov_CertificateRevoked
  1054. "023797", //CCS:CCS_SECC_ResponseCode_FAILED_MO_SubCA1_CertificateRevoked
  1055. "023798", //CCS:CCS_SECC_ResponseCode_FAILED_MO_SubCA2_CertificateRevoked
  1056. "023799", //CCS:CCS_SECC_ResponseCode_FAILED_MO_RootCA_CertificateRevoked
  1057. "023800", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_Prov_CertificateRevoked
  1058. "023801", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_SubCA1_CertificateRevoked
  1059. "023802", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_SubCA2_CertificateRevoked
  1060. "023803", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_RootCA_CertificateRevoked
  1061. "023804", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_1
  1062. "023805", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_2
  1063. "023806", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_3
  1064. "023807", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_4
  1065. "023808", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_5
  1066. "023809", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_SLAC_init
  1067. "023810", //CCS:CCS_SECC_TIMEOUT_SLAC_TP_match_response
  1068. "023811", //CCS:CCS_SECC_TIMEOUT_CM_START_ATTEN_CHAR_IND
  1069. "023812", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_match_MNBC
  1070. "023813", //CCS:CCS_SECC_TIMEOUT_SLAC_TP_EVSE_avg_atten_calc
  1071. "023814", //CCS:CCS_SECC_TIMEOUT_SLAC_CM_ATTEN_CHAR_RSP
  1072. "023815", //CCS:CCS_SECC_TIMEOUT_SLAC_CM_VALIDATE_REQ_1ST__CM_SLAC_MATCH_REQ
  1073. "023816", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_assoc_session
  1074. "023817", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_vald_toggle
  1075. "023818", //CCS:CCS_SECC_TIMEOUT_SLAC_CM_MNBC_SOUND_IND
  1076. "023819", //CCS:CCS_SECC_TIMEOUT_SLAC_CM_VALIDATE_REQ_2ND__CM_SLAC_MATCH_REQ
  1077. "023820", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_3
  1078. "023821", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_4
  1079. "023822", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_5
  1080. "023823", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_UDP_TT_match_join
  1081. "023824", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_TCP_TT_match_join
  1082. "023825", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_TP_amp_map_exchange
  1083. "023826", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_TP_link_ready_notification
  1084. "023827", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_1
  1085. "023828", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_2
  1086. "023829", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_3
  1087. "023830", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_4
  1088. "023831", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_5
  1089. "023832", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_SupportedAppProtocolRes
  1090. "023833", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_SessionSetupRes
  1091. "023834", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ServiceDiscoveryRes
  1092. "023835", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ServicePaymentSelectionRes
  1093. "023836", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ContractAuthenticationRes
  1094. "023837", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ChargeParameterDiscoveryRes
  1095. "023838", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_PowerDeliveryRes
  1096. "023839", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_CableCheckRes
  1097. "023840", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_PreChargeRes
  1098. "023841", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_CurrentDemandRes
  1099. "023842", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_WeldingDetectionRes
  1100. "023843", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_SessionStopRes
  1101. "023844", //CCS:CCS_SECC_TIMEOUT_V2G_Sequence_Time
  1102. "023845", //CCS:CCS_SECC_TIMEOUT_V2G_ReadyToCharge_Performance_Time
  1103. "023846", //CCS:CCS_SECC_TIMEOUT_V2G_CommunicationSetup_Performance_Time
  1104. "023847", //CCS:CCS_SECC_TIMEOUT_V2G_CableCheck_Performance_Time
  1105. "023848", //CCS:CCS_SECC_TIMEOUT_V2G_CPState_Detection_Time
  1106. "023849", //CCS:CCS_SECC_TIMEOUT_V2G_CPOscillator_Retain_Time
  1107. "023850", //CCS:CCS_SECC_TIMEOUT_V2G_PreCharge_Performace_Time
  1108. "023851", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_2
  1109. "023852", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_3
  1110. "023853", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_4
  1111. "023854", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_5
  1112. "023855", //CCS:CCS_CAN_TIMEOUT_TP_GET_EV_TARGET_INFO
  1113. "023856", //CCS:CCS_CAN_TIMEOUT_TT_GET_EV_TARGET_INFO
  1114. "023857", //CCS:CCS_CAN_TIMEOUT_TP_GET_EV_BATTERY_INFO
  1115. "023858", //CCS:CCS_CAN_TIMEOUT_TT_GET_EV_BATTERY_INFO
  1116. "023859", //CCS:CCS_CAN_TIMEOUT_TP_EV_STOP_EVENT
  1117. "023860", //CCS:CCS_CAN_TIMEOUT_TT_EV_STOP_EVENT
  1118. "023861", //CCS:CCS_CAN_TIMEOUT_TP_EVSE_STOP_EVENT
  1119. "023862", //CCS:CCS_CAN_TIMEOUT_TT_EVSE_STOP_EVENT
  1120. "023863", //CCS:CCS_CAN_TIMEOUT_TP_GET_MISC_INFO
  1121. "023864", //CCS:CCS_CAN_TIMEOUT_TT_GET_MISC_INFO
  1122. "023865", //CCS:CCS_CAN_TIMEOUT_TP_DOWNLOAD_REQUEST
  1123. "023866", //CCS:CCS_CAN_TIMEOUT_TT_DOWNLOAD_REQUEST
  1124. "023867", //CCS:CCS_CAN_TIMEOUT_TP_START_BLOCK_TRANSFER
  1125. "023868", //CCS:CCS_CAN_TIMEOUT_TT_START_BLOCK_TRANSFER
  1126. "023869", //CCS:CCS_CAN_TIMEOUT_TP_DATA_TRANSFER
  1127. "023870", //CCS:CCS_CAN_TIMEOUT_TT_DATA_TRANSFER
  1128. "023871", //CCS:CCS_CAN_TIMEOUT_TP_DOWNLOAD_FINISH
  1129. "023872", //CCS:CCS_CAN_TIMEOUT_TT_DOWNLOAD_FINISH
  1130. "023873", //CCS:CCS_CAN_TIMEOUT_TP_ISOLATION_STATUS
  1131. "023874", //CCS:CCS_CAN_TIMEOUT_TT_ISOLATION_STATUS
  1132. "023875", //CCS:CCS_CAN_TIMEOUT_TP_CONNECTOR_INFO
  1133. "023876", //CCS:CCS_CAN_TIMEOUT_TT_CONNECTOR_INFO
  1134. "023877", //CCS:CCS_CAN_TIMEOUT_TT_RTC_INFO
  1135. "023878", //CCS:CCS_CAN_TIMEOUT_TP_RTC_INFO
  1136. "023879", //CCS:CCS_CAN_TIMEOUT_TP_EVSE_PRECHARGE_INFO
  1137. "023880", //CCS:CCS_CAN_TIMEOUT_TT_EVSE_PRECHARGE_INFO
  1138. "023881", //CCS:CCS_CAN_TIMEOUT_MSG_Sequence
  1139. "023882", //CCS:CCS_CAN_MSG_Unrecognized_CMD_ID
  1140. "023883", //CCS:CCS_SECC_DIN_Msg_Decode_Error
  1141. "023884", //CCS:CCS_SECC_DIN_Msg_Encode_Error
  1142. "023885", //CCS:CCS_SECC_ISO1_Msg_Decode_Error
  1143. "023886", //CCS:CCS_SECC_ISO1_Msg_Encode_Error
  1144. "023887", //CCS:CCS_SECC_ISO2_Msg_Decode_Error
  1145. "023888", //CCS:CCS_SECC_ISO2_Msg_Encode_Error
  1146. "023889", //CCS:CCS_SECC_CP_STATUS_Error
  1147. "023890", //CCS:CCS_SECC_Unexpected_60V_Before_Charing_Error
  1148. "023891", //CCS:CCS_SECC_Not_Ready_For_Charging
  1149. "023892", //CCS:CCS_SECCC_TIMEOUT_QCA7000_COMM (The firmware code of QCA7000 may not be installed, yet)
  1150. "023893", //Reserved
  1151. "023894", //Reserved
  1152. "023895", //Reserved
  1153. "023896", //Reserved
  1154. "023897", //Reserved
  1155. "023898", //Reserved
  1156. "023899", //Reserved
  1157. "023900", //GBT: ERROR_CODE_GBT_LOS_CC1
  1158. "023901", //GBT: ERROR_CODE_GBT_CONNECTOR_LOCK_FAIL
  1159. "023902", //GBT: ERROR_CODE_GBT_BATTERY_INCOMPATIBLE
  1160. "023903", //GBT: ERROR_CODE_GBT_BMS_BROAA_TIMEOUT
  1161. "023904", //GBT: ERROR_CODE_GBT_CSU_PRECHARGE_TIMEOUT
  1162. "023905", //GBT: ERROR_CODE_GBT_BMS_PRESENT_VOLTAGE_FAULT
  1163. "023906", //GBT: ERROR_CODE_GBT_BMS_VOLTAGE_OVER_RANGE
  1164. "023907", //GBT: ERROR_CODE_GBT_BSM_CHARGE_ALLOW_00_10MIN_COUUNTDONE
  1165. "023908", //GBT: ERROR_CODE_GBT_WAIT_GROUNDFAULT_TIMEOUT
  1166. "023909", //GBT: ERROR_CODE_GBT_ADC_MORE_THAN_10V
  1167. "023910", //GBT: ERROR_CODE_GBT_ADC_MORE_THAN_60V
  1168. "023911", //GBT: ERROR_CODE_GBT_CHARGER_GET_NORMAL_STOP_CMD
  1169. "023912", //GBT: ERROR_CODE_GBT_CHARGER_GET_EMERGENCY_STOP_CMD
  1170. "023913", //GBT: ERROR_CODE_GBT_ISOLATION_RESULT_FAIL
  1171. "023914", //GBT: ERROR_CODE_GBT_MOTHER_BOARD_MISS_LINK
  1172. "023915", //GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_LIMIT
  1173. "023916", //GBT: ERROR_CODE_GBT_REQ_CURRENT_MORE_THAN_LIMIT
  1174. "023917", //GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_10_PERCENT
  1175. "023918", //GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_DIFF_BCS_5_PERCENT
  1176. "023919", //GBT: ERROR_CODE_GBT_STOP_ADC_MORE_THAN_10V
  1177. "023920", // Reserved
  1178. "023921", // Reserved
  1179. "023922", // Reserved
  1180. "023923", // Reserved
  1181. "023924", // Reserved
  1182. "023925", // Reserved
  1183. "023926", // Reserved
  1184. "023927", // Reserved
  1185. "023928", // Reserved
  1186. "023929", // Reserved
  1187. "023930", //GBT: ERROR_CODE_CEM_BHM_TIMEOUT
  1188. "023931", //GBT: ERROR_CODE_CEM_BRM_TIMEOUT
  1189. "023932", //GBT: ERROR_CODE_CEM_BCP_TIMEOUT
  1190. "023933", //GBT: ERROR_CODE_CEM_BRO_TIMEOUT
  1191. "023934", //GBT: ERROR_CODE_CEM_BCL_TIMEOUT
  1192. "023935", //GBT: ERROR_CODE_CEM_BCS_TIMEOUT
  1193. "023936", //GBT: ERROR_CODE_CEM_BSM_TIMEOUT
  1194. "023937", //GBT: ERROR_CODE_CEM_BST_TIMEOUT
  1195. "023938", //GBT: ERROR_CODE_CEM_BSD_TIMEOUT
  1196. "023939", //GBT: ERROR_CODE_CEM_BEM_OTHER_TIMEOUT
  1197. "023940", //GBT: ERROR_CODE_BEM_CRM_TIMEOUT
  1198. "023941", //GBT: ERROR_CODE_BEM_CRMAA_TIMEOUT
  1199. "023942", //GBT: ERROR_CODE_BEM_CTS_CML_TIMEOUT
  1200. "023943", //GBT: ERROR_CODE_BEM_CRO_TIMEOUT
  1201. "023944", //GBT: ERROR_CODE_BEM_CCS_TIMEOUT
  1202. "023945", //GBT: ERROR_CODE_BEM_CST_TIMEOUT
  1203. "023946", //GBT: ERROR_CODE_BEM_CSD_TIMEOUT
  1204. "023947", //GBT: ERROR_CODE_BEM_BEM_OTHER_TIMEOUT
  1205. "023948", // Reserved
  1206. "023949", // Reserved
  1207. "023950", //GBT: ERROR_CODE_BST_SOC_GOAL
  1208. "023951", //GBT: ERROR_CODE_BST_TOTAL_VOLTAGE_GOAL
  1209. "023952", //GBT: ERROR_CODE_BST_CELL_VOLTAGE_GOAL
  1210. "023953", //GBT: ERROR_CODE_BST_GET_CST
  1211. "023954", //GBT: ERROR_CODE_BST_ISOLATION
  1212. "023955", //GBT: ERROR_CODE_BST_OUTPUT_CONNECTOR_OTP
  1213. "023956", //GBT: ERROR_CODE_BST_COMPONENT
  1214. "023957", //GBT: ERROR_CODE_BST_CHARGE_CONNECTOR
  1215. "023958", //GBT: ERROR_CODE_BST_OTP
  1216. "023959", //GBT: ERROR_CODE_BST_OTHER
  1217. "023960", //GBT: ERROR_CODE_BST_HIGH_V
  1218. "023961", //GBT: ERROR_CODE_BST_CC2
  1219. "023962", //GBT: ERROR_CODE_BST_CURRENT
  1220. "023963", //GBT: ERROR_CODE_BST_VOLTAGE
  1221. "023964", //GBT: ERROR_CODE_GET_BST_NO_REASON
  1222. "023965", // Reserved
  1223. "023966", // Reserved
  1224. "023967", // Reserved
  1225. "023968", // Reserved
  1226. "023969", // Reserved
  1227. "023970", //GBT: ERROR_CODE_BSM_CELL_OVER_VOLTAGE
  1228. "023971", //GBT: ERROR_CODE_BSM_CELL_UNDER_VOLTAGE
  1229. "023972", //GBT: ERROR_CODE_BSM_OVER_SOC
  1230. "023973", //GBT: ERROR_CODE_BSM_UNDER_SOC
  1231. "023974", //GBT: ERROR_CODE_BSM_CURRENT
  1232. "023975", //GBT: ERROR_CODE_BSM_TEMPERATURE
  1233. "023976", //GBT: ERROR_CODE_BSM_ISOLATE
  1234. "023977", //GBT: ERROR_CODE_BSM_OUTPUT_CONNECTOR
  1235. "023978", // Reserved
  1236. "023979", // Reserved
  1237. "033900", //disconnected from backend through Ethernet
  1238. "033901", //disconnected from backend through WiFi
  1239. "033902", //disconnected from backend through 3G/4G
  1240. "033903", //Remote start charging by backend
  1241. "033904", //Remote stop charging by backend
  1242. "033905", //Remote reset by backend
  1243. "033906", //Reserved
  1244. "033907", //Reserved
  1245. };
  1246. struct InfoCodeData
  1247. {
  1248. unsigned char PreviousInfoVal[40];
  1249. union
  1250. {
  1251. unsigned char InfoVal[40];
  1252. struct
  1253. {
  1254. //InfoVal[0]
  1255. unsigned char NormalStopChargingByUser:1; //bit 0
  1256. unsigned char ChargingTimesUp:1; //bit 1
  1257. unsigned char ReplaceSystemAirFilter:1; //bit 2
  1258. unsigned char ReachChademoMaxPluggingTimes:1; //bit 3
  1259. unsigned char ReachCcsMaxPluggingTimes:1; //bit 4
  1260. unsigned char ReachGbMaxPluggingTimes:1; //bit 5
  1261. unsigned char ReachAcMaxPluggingTimes:1; //bit 6
  1262. unsigned char CsuFimrwareUpdateFail:1; //bit 7
  1263. //InfoVal[1]
  1264. unsigned char ChademoModuleFimrwareUpdateFail:1; //bit 0
  1265. unsigned char CcsModuleFimrwareUpdateFail:1; //bit 1
  1266. unsigned char GbModuleFimrwareUpdateFail:1; //bit 2
  1267. unsigned char AuxPowerModuleFimrwareUpdateFail:1; //bit 3
  1268. unsigned char RelayBoardFimrwareUpdateFail:1; //bit 4
  1269. unsigned char LcmModuleFimrwareUpdateFail:1; //bit 5
  1270. unsigned char BluetoothModuleFimrwareUpdateFail:1; //bit 6
  1271. unsigned char WiFiModuleFimrwareUpdateFail:1; //bit 7
  1272. //InfoVal[2]
  1273. unsigned char Telocom4GModuleFimrwareUpdateFail:1; //bit 0
  1274. unsigned char PsuFimrwareUpdateFail:1; //bit 1
  1275. unsigned char RfidModuleFimrwareUpdateFail:1; //bit 2
  1276. unsigned char ConfiguredByUsbFlashDrive:1; //bit 3
  1277. unsigned char ConfiguredByBackend:1; //bit 4
  1278. unsigned char ConfiguredByWebpage:1; //bit 5
  1279. unsigned char InternetDisconnectViaEthernet:1; //bit 6
  1280. unsigned char InternetDisconnectViaWiFi :1; //bit 7
  1281. //InfoVal[3]
  1282. unsigned char InternetDisconnectVia4Gi:1; //bit 0
  1283. unsigned char ApDisconnectViaWiFi:1; //bit 1
  1284. unsigned char ApnDisconnectVia4Gi:1; //bit 2
  1285. unsigned char :5; //bit 3~7 reserved
  1286. //InfoVal[4]
  1287. unsigned char ChademoEvCommFail:1; //bit 0
  1288. unsigned char CcsEvCommFail:1; //bit 1
  1289. unsigned char GbEvCommFail:1; //bit 2
  1290. unsigned char PilotFault:1; //bit 3
  1291. unsigned char ChademoBatteryMalfun:1; //bit 4
  1292. unsigned char ChademoNoPermission:1; //bit 5
  1293. unsigned char ChademoBatteryIncompatibility:1; //bit 6
  1294. unsigned char ChademoBatteryOVP:1; //bit 7
  1295. //InfoVal[5]
  1296. unsigned char ChademoBatteryUVP:1; //bit 0
  1297. unsigned char ChademoBatteryOTP:1; //bit 1
  1298. unsigned char ChademoBatteryCurrentDiff:1; //bit 2
  1299. unsigned char ChademoBatteryVoltageDiff:1; //bit 3
  1300. unsigned char ChademoShiftPosition:1; //bit 4
  1301. unsigned char ChademoBatteryOtherFault:1; //bit 5
  1302. unsigned char ChademoChargingSystemError:1; //bit 6
  1303. unsigned char ChademoEvNormalStop:1; //bit 7
  1304. //InfoVal[6]
  1305. unsigned char ChademoTempSensorBroken:1; //bit 0
  1306. unsigned char ChademoConnectorLockFail:1; //bit 1
  1307. unsigned char ChademoD1OnNoReceive:1; //bit 2
  1308. unsigned char ChademoBmsKtoJTimeout:1; //bit 3
  1309. unsigned char ChademoBmsChargeAllowTimeout:1; //bit 4
  1310. unsigned char ChademoWaitGfdTimeout:1; //bit 5
  1311. unsigned char ChademoBmsEvRelayTimeout:1; //bit 6
  1312. unsigned char ChademoBmsReqCurrentTimeout:1; //bit 7
  1313. //InfoVal[7]
  1314. unsigned char ChademoBmsKtoJOffTimeout :1; //bit 0
  1315. unsigned char ChademoBmsEvRelayOffTimeout :1; //bit 1
  1316. unsigned char ChademoAdcMoreThan10V :1; //bit 2
  1317. unsigned char ChademoAdcMoreThan20V :1; //bit 3
  1318. unsigned char ChademoBmsChargeBeforeStop :1; //bit 4
  1319. unsigned char ChademoChargerGetNormalStop :1; //bit 5
  1320. unsigned char ChademoChargerGetEmergencyStop :1; //bit 6
  1321. unsigned char ChademoIsolationResultFail :1; //bit 7
  1322. //InfoVal[8]
  1323. unsigned char ChademoMissLinkWithMotherBoard :1; //bit 0
  1324. unsigned char ChademoOutputVolMoreThanLimit :1; //bit 1
  1325. unsigned char ChademoReqCurrentMoreThanLimit :1; //bit 2
  1326. unsigned char ChademoReCapBmsEqrCurrentExceed :1; //bit 3
  1327. unsigned char ChademoChargeRemainCountDown :1; //bit 4
  1328. unsigned char CcsRESTemperatureInhibit:1; //bit 5
  1329. unsigned char CcsEVShiftPosition:1; //bit 6
  1330. unsigned char CcsChargerConnectorLockFault:1; //bit 7
  1331. //InfoVal[9]
  1332. unsigned char CcsEVRESSMalfunction:1; //bit 0
  1333. unsigned char CcsChargingCurrentdifferential:1; //bit 1
  1334. unsigned char CcsChargingVoltageOutOfRange:1; //bit 2
  1335. unsigned char CcsChargingSystemIncompatibility:1; //bit 3
  1336. unsigned char CcsEmergencyEvent:1; //bit 4
  1337. unsigned char CcsBreaker:1; //bit 5
  1338. unsigned char CcsNoData:1; //bit 6
  1339. unsigned char Ccsreserved_by_DIN_A:1; //bit 7
  1340. //InfoVal[10]
  1341. unsigned char Ccsreserved_by_DIN_B:1; //bit 0
  1342. unsigned char Ccsreserved_by_DIN_C:1; //bit 1
  1343. unsigned char Ccsreserved_by_ISO_1:1; //bit 2
  1344. unsigned char Ccsreserved_by_ISO_2:1; //bit 3
  1345. unsigned char Ccsreserved_by_ISO_3:1; //bit 4
  1346. unsigned char Ccsreserved_by_OEM_1:1; //bit 5
  1347. unsigned char Ccsreserved_by_OEM_2:1; //bit 6
  1348. unsigned char Ccsreserved_by_OEM_3:1; //bit 7
  1349. //InfoVal[11]
  1350. unsigned char Ccsreserved_by_OEM_4:1; //bit 0
  1351. unsigned char Ccsreserved_by_OEM_5:1; //bit 1
  1352. unsigned char CcsSequenceError:1; //bit 2
  1353. unsigned char CcsSignatureError:1; //bit 3
  1354. unsigned char CcsUnknownSession:1; //bit 4
  1355. unsigned char CcsServiceIDInvalid:1; //bit 5
  1356. unsigned char CcsPaymentSelectionInvalid:1; //bit 6
  1357. unsigned char CcsIdentificationSelectionInvalid:1; //bit 7
  1358. //InfoVal[12]
  1359. unsigned char CcsServiceSelectionInvalid:1; //bit 0
  1360. unsigned char CcsCertificateExpired:1; //bit 1
  1361. unsigned char CcsCertificateNotYetValid:1; //bit 2
  1362. unsigned char CcsCertificateRevoked:1; //bit 3
  1363. unsigned char CcsNoCertificateAvailable:1; //bit 4
  1364. unsigned char CcsCertChainError:1; //bit 5
  1365. unsigned char CcsCertValidationError:1; //bit 6
  1366. unsigned char CcsCertVerificationError:1; //bit 7
  1367. //InfoVal[13]
  1368. unsigned char CcsContractCanceled:1; //bit 0
  1369. unsigned char CcsChallengeInvalid:1; //bit 1
  1370. unsigned char CcsWrongEnergyTransferMode:1; //bit 2
  1371. unsigned char CcsWrongChargeParameter:1; //bit 3
  1372. unsigned char CcsChargingProfileInvalid:1; //bit 4
  1373. unsigned char CcsTariffSelectionInvalid:1; //bit 5
  1374. unsigned char CcsEVSEPresentVoltageToLow:1; //bit 6
  1375. unsigned char CcsPowerDeliveryNotApplied:1; //bit 7
  1376. //InfoVal[14]
  1377. unsigned char CcsMeteringSignatureNotValid:1; //bit 0
  1378. unsigned char CcsNoChargeServiceSelected:1; //bit 1
  1379. unsigned char CcsContactorError:1; //bit 2
  1380. unsigned char CcsCertificateNotAllowedAtThisEVSE:1; //bit 3
  1381. unsigned char CcsGAChargeStop:1; //bit 4
  1382. unsigned char CcsAlignmentError:1; //bit 5
  1383. unsigned char CcsACDError:1; //bit 6
  1384. unsigned char CcsAssociationError:1; //bit 7
  1385. //InfoVal[15]
  1386. unsigned char CcsEVSEChargeAbort:1; //bit 0
  1387. unsigned char CcsNoSupportedAppProtocol:1; //bit 1
  1388. unsigned char CcsContractNotAccepted:1; //bit 2
  1389. unsigned char CcsMOUnknown:1; //bit 3
  1390. unsigned char CcsOEM_Prov_CertificateRevoke:1; //bit 4
  1391. unsigned char CcsOEM_SubCA1_CertificateRevoked:1; //bit 5
  1392. unsigned char CcsOEM_SubCA2_CertificateRevoked:1; //bit 6
  1393. unsigned char CcsOEM_RootCA_CertificateRevoked:1; //bit 7
  1394. //InfoVal[16]
  1395. unsigned char CcsMO_Prov_CertificateRevoked:1; //bit 0
  1396. unsigned char CcsMO_SubCA1_CertificateRevoked:1; //bit 1
  1397. unsigned char CcsMO_SubCA2_CertificateRevoked:1; //bit 2
  1398. unsigned char CcsMO_RootCA_CertificateRevoked:1; //bit 3
  1399. unsigned char CcsCPS_Prov_CertificateRevoked:1; //bit 4
  1400. unsigned char CcsCPS_SubCA1_CertificateRevoked:1; //bit 5
  1401. unsigned char CcsCPS_SubCA2_CertificateRevoked:1; //bit 6
  1402. unsigned char CcsCPS_RootCA_CertificateRevoked:1; //bit 7
  1403. //InfoVal[17]
  1404. unsigned char :5; //bit 0~4 reserved
  1405. unsigned char CcsTT_EVSE_SLAC_init:1; //bit 5
  1406. unsigned char CcsTP_match_response:1; //bit 6
  1407. unsigned char CcsTT_match_sequence:1; //bit 7
  1408. //InfoVal[18]
  1409. unsigned char CcsTT_EVSE_match_MNBC:1; //bit 0
  1410. unsigned char CcsTP_EVSE_avg_atten_calc:1; //bit 1
  1411. unsigned char CcsTT_match_response:1; //bit 2
  1412. unsigned char CcsTP_EVSE_match_session:1; //bit 3
  1413. unsigned char CcsTT_EVSE_assoc_session:1; //bit 4
  1414. unsigned char CcsTT_EVSE_vald_toggle:1; //bit 5
  1415. unsigned char CcsSeccSlacTimeoutCmMnbcSound:1; //bit 6 reserved
  1416. unsigned char CcsSeccSlacTimeoutCmValidateReq:1; //bit 7 reserved
  1417. //InfoVal[19]
  1418. unsigned char :3; //bit 0~2 reserved
  1419. unsigned char CcsUDP_TT_match_join:1; //bit 3
  1420. unsigned char CcsTCP_TT_match_join:1; //bit 4
  1421. unsigned char CcsTP_amp_map_exchange:1; //bit 5
  1422. unsigned char CcsTP_link_ready_notification:1; //bit 6
  1423. unsigned char :1; //bit 7 resetved
  1424. //InfoVal[20]
  1425. unsigned char :4; //bit 0~3 reserved
  1426. unsigned char CcsSupportedAppProtocolRes:1; //bit 4
  1427. unsigned char CcsSessionSetupRes:1; //bit 5
  1428. unsigned char CcsServiceDiscoveryRes:1; //bit 6
  1429. unsigned char CcsServicePaymentSelectionRes:1; //bit 7
  1430. //InfoVal[21]
  1431. unsigned char CcsContractAuthenticationRes:1; //bit 0
  1432. unsigned char CcsChargeParameterDiscoveryRes:1; //bit 1
  1433. unsigned char CcsPowerDeliveryRes:1; //bit 2
  1434. unsigned char CcsCableCheckRes:1; //bit 3
  1435. unsigned char CcsPreChargeRes:1; //bit 4
  1436. unsigned char CcsCurrentDemandRes:1; //bit 5
  1437. unsigned char CcsWeldingDetectionRes:1; //bit 6
  1438. unsigned char CcsSessionStopRes:1; //bit 7
  1439. //InfoVal[22]
  1440. unsigned char CcsSequence_Time:1; //bit 0
  1441. unsigned char CcsReadyToCharge_Performance_Time:1; //bit 1
  1442. unsigned char CcsCommunicationSetup_Performance_Time:1; //bit 2
  1443. unsigned char CcsCableCheck_Performance_Time:1; //bit 3
  1444. unsigned char CcsCPState_Detection_Time:1; //bit 4
  1445. unsigned char CcsCPOscillator_Retain_Time:1; //bit 5
  1446. unsigned char CcsSeccTimeoutV2GPreChargePerformaceTime:1; //bit 6
  1447. unsigned char :1; //bit 7 reserved
  1448. //InfoVal[23]
  1449. unsigned char :3; //bit 0~2 reserved
  1450. unsigned char CcsTP_GET_EV_TARGET_INFO:1; //bit 3
  1451. unsigned char CcsTT_GET_EV_TARGET_INFO:1; //bit 4
  1452. unsigned char CcsTP_GET_EV_BATTERY_INFO:1; //bit 5
  1453. unsigned char CcsTT_GET_EV_BATTERY_INFO:1; //bit 6
  1454. unsigned char CcsTP_EV_STOP_EVENT:1; //bit 7
  1455. //InfoVal[24]
  1456. unsigned char CcsTT_EV_STOP_EVENT:1; //bit 0
  1457. unsigned char CcsTP_EVSE_STOP_EVENT:1; //bit 1
  1458. unsigned char CcsTT_EVSE_STOP_EVENT:1; //bit 2
  1459. unsigned char CcsTP_GET_MISC_INFO:1; //bit 3
  1460. unsigned char CcsTT_GET_MISC_INFO:1; //bit 4
  1461. unsigned char CcsTP_DOWNLOAD_REQUEST:1; //bit 5
  1462. unsigned char CcsTT_DOWNLOAD_REQUEST:1; //bit 6
  1463. unsigned char CcsTP_START_BLOCK_TRANSFER:1; //bit 7
  1464. //InfoVal[25]
  1465. unsigned char CcsTT_START_BLOCK_TRANSFER:1; //bit 0
  1466. unsigned char CcsTP_DATA_TRANSFER:1; //bit 1
  1467. unsigned char CcsTT_DATA_TRANSFER:1; //bit 2
  1468. unsigned char CcsTP_DOWNLOAD_FINISH:1; //bit 3
  1469. unsigned char CcsTT_DOWNLOAD_FINISH:1; //bit 4
  1470. unsigned char CcsTP_ISOLATION_STATUS:1; //bit 5
  1471. unsigned char CcsTT_ISOLATION_STATUS:1; //bit 6
  1472. unsigned char CcsTP_CONNECTOR_INFO:1; //bit 7
  1473. //InfoVal[26]
  1474. unsigned char CcsTT_CONNECTOR_INFO:1; //bit 0
  1475. unsigned char CcsTT_RTC_INFO:1; //bit 1
  1476. unsigned char CcsTP_RTC_INFO:1; //bit 2
  1477. unsigned char CcsTP_EVSE_PRECHARGE_INFO:1; //bit 3
  1478. unsigned char CcsTT_EVSE_PRECHARGE_INFO:1; //bit 4
  1479. unsigned char CcsMSG_Sequence:1; //bit 5
  1480. unsigned char CcsCAN_MSG_Unrecognized_CMD_ID:1; //bit 6
  1481. unsigned char CcsDIN_Msg_Decode_Error:1; //bit 7
  1482. //InfoVal[27]
  1483. unsigned char CcsDIN_Msg_Encode_Error:1; //bit 0
  1484. unsigned char CcsISO1_Msg_Decode_Error:1; //bit 1
  1485. unsigned char CcsISO1_Msg_Encode_Error:1; //bit 2
  1486. unsigned char CcsISO2_Msg_Decode_Error:1; //bit 3
  1487. unsigned char CcsISO2_Msg_Encode_Error:1; //bit 4
  1488. unsigned char CcsCpStatus_Error:1; //bit 5
  1489. unsigned char CcsUnexpectVolBeforeCharing_Error:1; //bit 6
  1490. unsigned char CcsSeccNotReadyForCharging:1; //bit 7 reserved
  1491. //InfoVal[28]
  1492. unsigned char CcsSeccTimeoutQCA7000Comm:1; //bit 0
  1493. unsigned char :7; //bit 1~7 reserved
  1494. //InfoVal[29]
  1495. unsigned char ERROR_CODE_GBT_LOS_CC1 :1; //bit 0
  1496. unsigned char ERROR_CODE_GBT_CONNECTOR_LOCK_FAIL :1; //bit 1
  1497. unsigned char ERROR_CODE_GBT_BATTERY_INCOMPATIBLE :1; //bit 2
  1498. unsigned char ERROR_CODE_GBT_BMS_BROAA_TIMEOUT :1; //bit 3
  1499. unsigned char ERROR_CODE_GBT_CSU_PRECHARGE_TIMEOUT :1; //bit 4
  1500. unsigned char ERROR_CODE_GBT_BMS_PRESENT_VOLTAGE_FAULT :1; //bit 5
  1501. unsigned char ERROR_CODE_GBT_BMS_VOLTAGE_OVER_RANGE :1; //bit 6
  1502. unsigned char ERROR_CODE_GBT_BSM_CHARGE_ALLOW_00_10MIN_COUUNTDONE :1; //bit 7
  1503. //InfoVal[30]
  1504. unsigned char ERROR_CODE_GBT_WAIT_GROUNDFAULT_TIMEOUT :1; //bit 0
  1505. unsigned char ERROR_CODE_GBT_ADC_MORE_THAN_10V :1; //bit 1
  1506. unsigned char ERROR_CODE_GBT_ADC_MORE_THAN_60V :1; //bit 2
  1507. unsigned char ERROR_CODE_GBT_CHARGER_GET_NORMAL_STOP_CMD :1; //bit 3
  1508. unsigned char ERROR_CODE_GBT_CHARGER_GET_EMERGENCY_STOP_CMD :1; //bit 4
  1509. unsigned char ERROR_CODE_GBT_ISOLATION_RESULT_FAIL :1; //bit 5
  1510. unsigned char ERROR_CODE_GBT_MOTHER_BOARD_MISS_LINK :1; //bit 6
  1511. unsigned char ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_LIMIT :1; //bit 7
  1512. //InfoVal[31]
  1513. unsigned char ERROR_CODE_GBT_REQ_CURRENT_MORE_THAN_LIMIT :1; //bit 0
  1514. unsigned char ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_10_PERCENT :1; //bit 1
  1515. unsigned char ERROR_CODE_GBT_OUTPUT_VOLTAGE_DIFF_BCS_5_PERCENT :1; //bit 2
  1516. unsigned char ERROR_CODE_GBT_STOP_ADC_MORE_THAN_10V :1; //bit 3
  1517. unsigned char :4; //bit 4 ~ 7 reserved
  1518. //InfoVal[32]
  1519. unsigned char :6; //bit 0 ~ 5 reserved
  1520. unsigned char ERROR_CODE_CEM_BHM_TIMEOUT :1; //bit 6
  1521. unsigned char ERROR_CODE_CEM_BRM_TIMEOUT :1; //bit 7
  1522. //InfoVal[33]
  1523. unsigned char ERROR_CODE_CEM_BCP_TIMEOUT :1; //bit 0
  1524. unsigned char ERROR_CODE_CEM_BRO_TIMEOUT :1; //bit 1
  1525. unsigned char ERROR_CODE_CEM_BCL_TIMEOUT :1; //bit 2
  1526. unsigned char ERROR_CODE_CEM_BCS_TIMEOUT :1; //bit 3
  1527. unsigned char ERROR_CODE_CEM_BSM_TIMEOUT :1; //bit 4
  1528. unsigned char ERROR_CODE_CEM_BST_TIMEOUT :1; //bit 5
  1529. unsigned char ERROR_CODE_CEM_BSD_TIMEOUT :1; //bit 6
  1530. unsigned char ERROR_CODE_CEM_BEM_OTHER_TIMEOUT :1; //bit 7
  1531. //InfoVal[34]
  1532. unsigned char ERROR_CODE_BEM_CRM_TIMEOUT :1; //bit 0
  1533. unsigned char ERROR_CODE_BEM_CRMAA_TIMEOUT :1; //bit 1
  1534. unsigned char ERROR_CODE_BEM_CTS_CML_TIMEOUT :1; //bit 2
  1535. unsigned char ERROR_CODE_BEM_CRO_TIMEOUT :1; //bit 3
  1536. unsigned char ERROR_CODE_BEM_CCS_TIMEOUT :1; //bit 4
  1537. unsigned char ERROR_CODE_BEM_CST_TIMEOUT :1; //bit 5
  1538. unsigned char ERROR_CODE_BEM_CSD_TIMEOUT :1; //bit 6
  1539. unsigned char ERROR_CODE_BEM_BEM_OTHER_TIMEOUT :1; //bit 7
  1540. //InfoVal[35]
  1541. unsigned char :2; //bit 0 ~ 1
  1542. unsigned char ERROR_CODE_BST_SOC_GOAL :1; //bit 2
  1543. unsigned char ERROR_CODE_BST_TOTAL_VOLTAGE_GOAL :1; //bit 3
  1544. unsigned char ERROR_CODE_BST_CELL_VOLTAGE_GOAL :1; //bit 4
  1545. unsigned char ERROR_CODE_BST_GET_CST :1; //bit 5
  1546. unsigned char ERROR_CODE_BST_ISOLATION :1; //bit 6
  1547. unsigned char ERROR_CODE_BST_OUTPUT_CONNECTOR_OTP :1; //bit 7
  1548. //InfoVal[36]
  1549. unsigned char ERROR_CODE_BST_COMPONENT :1; //bit 0
  1550. unsigned char ERROR_CODE_BST_CHARGE_CONNECTOR :1; //bit 1
  1551. unsigned char ERROR_CODE_BST_OTP :1; //bit 2
  1552. unsigned char ERROR_CODE_BST_OTHER :1; //bit 3
  1553. unsigned char ERROR_CODE_BST_HIGH_V :1; //bit 4
  1554. unsigned char ERROR_CODE_BST_CC2 :1; //bit 5
  1555. unsigned char ERROR_CODE_BST_CURRENT :1; //bit 6
  1556. unsigned char ERROR_CODE_BST_VOLTAGE :1; //bit 7
  1557. //InfoVal[37]
  1558. unsigned char ERROR_CODE_GET_BST_NO_REASON :1; //bit 0
  1559. unsigned char :5; //bit 1 ~ 5 reserved
  1560. unsigned char ERROR_CODE_BSM_CELL_OVER_VOLTAGE :1; //bit 6
  1561. unsigned char ERROR_CODE_BSM_CELL_UNDER_VOLTAGE :1; //bit 7
  1562. //InfoVal[38]
  1563. unsigned char ERROR_CODE_BSM_OVER_SOC :1; //bit 0
  1564. unsigned char ERROR_CODE_BSM_UNDER_SOC :1; //bit 1
  1565. unsigned char ERROR_CODE_BSM_CURRENT :1; //bit 2
  1566. unsigned char ERROR_CODE_BSM_TEMPERATURE :1; //bit 3
  1567. unsigned char ERROR_CODE_BSM_ISOLATE :1; //bit 4
  1568. unsigned char ERROR_CODE_BSM_OUTPUT_CONNECTOR :1; //bit 5
  1569. unsigned char :2; //bit 6 ~ 7 reserved
  1570. //InfoVal[39]
  1571. unsigned char BackendDisconnectedViaEthernet:1; //bit 0
  1572. unsigned char BackendDisconnectViaWiFi:1; //bit 1
  1573. unsigned char BackendDisconnectVia4G:1; //bit 2
  1574. unsigned char BackendRemoteStart:1; //bit 3
  1575. unsigned char BackendRemoteStop:1; //bit 4
  1576. unsigned char BackendRemoteReset:1; //bit 5
  1577. unsigned char :2; //bit 6 ~ 7 reserved
  1578. }bits;
  1579. }InfoEvents;
  1580. };
  1581. struct StatusCodeData
  1582. {
  1583. struct FaultCodeData FaultCode;
  1584. struct AlarmCodeData AlarmCode;
  1585. struct InfoCodeData InfoCode;
  1586. };
  1587. /**************************************************************************************/
  1588. /**************************PSU Share memory***************************************/
  1589. /**************************************************************************************/
  1590. struct PsuModuleVer
  1591. {
  1592. unsigned char FwPrimaryVersion[16];
  1593. unsigned char FwSecondVersion[16];
  1594. };
  1595. /*Following are the information for each PSU module*/
  1596. struct PsuModuleData
  1597. {
  1598. unsigned char AssignID;
  1599. unsigned char PhysicalID;
  1600. unsigned char GroupID;
  1601. unsigned char Address;
  1602. unsigned char FireWireIndex;
  1603. unsigned char FwVersion[16];
  1604. unsigned char SerialNumber[32];
  1605. unsigned char StateMachine; //0: Identification, 1:Operation, 2: Alarm, 3: Failure, s4:Upgrade
  1606. unsigned char OutputPowerSwitch; //0: D.D normal OFF, 1: D.D emergency OFF, 2: D.D ON
  1607. unsigned short FanSpeed_1; //RPM
  1608. unsigned short FanSpeed_2; //RPM
  1609. unsigned short FanSpeed_3; //RPM
  1610. unsigned short FanSpeed_4; //RPM
  1611. unsigned short InputVoltage_Type; //0x00 = Line to Line Vol, 0x01 = Line to Neutral Vol
  1612. unsigned short InputVoltageL1; //abcd=abc.d volt
  1613. unsigned short InputVoltageL2; //abcd=abc.d volt
  1614. unsigned short InputVoltageL3; //abcd=abc.d volt
  1615. unsigned short InputCurrentL1; //abcd=abc.d amp
  1616. unsigned short InputCurrentL2; //abcd=abc.d amp
  1617. unsigned short InputCurrentL3; //abcd=abc.d amp
  1618. unsigned short PresentOutputVoltage; //abcd=abc.d volt
  1619. unsigned short PresentOutputCurrent; //abcd=abc.d amp
  1620. unsigned short AvailableCurrent; //abcd=abc.d amp
  1621. unsigned int AvailablePower; //Watt
  1622. char CriticalTemp1; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1623. char CriticalTemp2; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1624. char CriticalTemp3; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1625. char ExletTemp; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1626. char InletTemp_1; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1627. char InletTemp_2; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1628. char InletTemp; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1629. char OutletTemp; //0x00: -60¢XC ~ 0xFE: 194¢XC, resolution: 1¢XC, offset: -60¢XC, 0xFF: invalid
  1630. unsigned int AlarmCode;
  1631. unsigned int FaultCode; //
  1632. unsigned int IAvailableCurrent; //abcd=abc.d amp
  1633. };
  1634. /*Following are the information for each PSU Group*/
  1635. struct PsuGroupData
  1636. {
  1637. unsigned char GroupPresentPsuQuantity;
  1638. unsigned char GroupOutputPowerSwitch; //0: D.D normal OFF, 1: D.D emergency OFF, 2: D.D ON
  1639. unsigned short GroupTargetOutputVoltage; //abcd=abc.d volt
  1640. unsigned short GroupTargetOutputCurrent; //abcd=abc.d amp
  1641. unsigned short GroupAvailableCurrent; //abcd=abc.d amp
  1642. unsigned int GroupAvailablePower; //Watt
  1643. unsigned short GroupPresentOutputVoltage; //abcd=abc.d volt
  1644. unsigned short GroupPresentOutputCurrent; //abcd=abc.d Amps
  1645. unsigned int GroupPresentOutputPower; //Watt
  1646. struct PsuModuleData PsuModule[MAX_PSU_QUANTITY];
  1647. };
  1648. /*Following is the information for system all PSU*/
  1649. struct PsuData
  1650. {
  1651. unsigned char SystemPresentPsuQuantity;
  1652. unsigned short SystemAvailableCurrent; //abcd=abc.d amp
  1653. unsigned int SystemAvailablePower; //Watt
  1654. struct PsuGroupData PsuGroup[4];
  1655. unsigned char GroupCount;
  1656. unsigned char Work_Step;
  1657. struct PsuModuleVer PsuVersion[MAX_PSU_QUANTITY];
  1658. };
  1659. /************************************************************************************/
  1660. /**************************CHAdeMO protocol Share memory*********************/
  1661. /**************************************************************************************/
  1662. struct CHAdeMOEvData
  1663. {
  1664. unsigned char SupportDynamicControl; //110.0
  1665. // bit0=1:supported
  1666. unsigned char SupportHighCurrent; //110.0
  1667. // bit1=1:supported
  1668. unsigned char MiniChargeCurrent; //100.0 0~200(A) (unit:1A)
  1669. // 0x00: request for current equivalent to 1.5kW
  1670. // 0x01: no request
  1671. // 0x02: request of 1A and following are the same rule
  1672. unsigned short MaxiBatteryVoltage; //100.5,100.4 0~600(V) (unit:1V)
  1673. unsigned short MaxiChargingTime; //101.2,101.1 10(sec.)~255(min.) (Unit:sec)
  1674. // Set 0xFF to 101.1 (Unit: 10sec) in case 101.2 (Unit: 1min) is used
  1675. unsigned char EstimatChargingTime; //101.3 0~254(min.) (Unit:sec)
  1676. // Display Only
  1677. unsigned short TotalBatteryCapacity; //101.6,101.5 0.1~6553.5(kWh) (unit:0.1 kWh)
  1678. unsigned char ProtocolVersion; //102.0 0~255
  1679. // 0x02: CHAdeMO specification ver.1.2
  1680. unsigned short TargetBatteryVoltage; //102.2,102.1 0~600(V) (unit:1V)
  1681. unsigned short ChargingCurrentRequest; //102.3 0~200(A) (unit:1A)
  1682. //110.2,110.1 0~1023(A) (unit:1A)
  1683. unsigned char BatteryAlarm; //102.4 >0:alarm
  1684. // bit0=1:Battery overvoltage
  1685. // bit1=1:Battery undervoltage
  1686. // bit2=1:Battery current deviation error
  1687. // bit3=1:High battery temperature
  1688. // bit4=1:Battery voltage deviation error
  1689. unsigned char EvDetection; //102.5
  1690. // bit0=0:Vehicle charging disabled, (stop charging)
  1691. // bit0=1:Vehicle charging enabled,
  1692. // bit1=0:¡§Parking¡¨ position
  1693. // bit1=1:other position (stop charging)
  1694. // bit2=0:Charging system normal
  1695. // bit2=1:Charging system error (stop charging)
  1696. // bit3=0:EV contactor close or during welding detection
  1697. // bit3=1:EV contactor open or termination of welding detection (stop charging)
  1698. // bit4=0:No stop request before charging
  1699. // bit4=1:Normal stop request before charging (stop charging)
  1700. unsigned char SOC; //102.6 0~100(%) (unit:%)
  1701. // Display Only
  1702. unsigned char Communicating; // it is true if receive EV CAN message within every 1500ms
  1703. unsigned char PresentMsgFlowStatus; //
  1704. };
  1705. struct CHAdeMOEvseData
  1706. {
  1707. unsigned char SelfTest_Comp;
  1708. unsigned char version[16]; //Chademo firmware version
  1709. unsigned char SupportDynamicControl; //118.0
  1710. // bit0=1:supported
  1711. unsigned char SupportHighCurrent; //118.0
  1712. // bit1=1:supported
  1713. unsigned short AvailableOutputVoltage; //108.2,108.1 0~600(V) (unit:1V)
  1714. unsigned short AvailableOutputCurrent; //108.3 0~255(A) (unit:1A)
  1715. //118.2,118.1 0~1023(A) (unit:1A)
  1716. unsigned short ThresholdVoltage; //108.5,108.4 0~600(V) (unit:1V)
  1717. unsigned char ConnectorTemperatureP; //108.6 -40~215(degC) (unit:degC) //value 0=-40 [NISSAN customized]
  1718. unsigned char ConnectorTemperatureN; //108.7 -40~215(degC) (unit:degC) //value 0=-40 [NISSAN customized]
  1719. unsigned char ProtocolVersion; //109.0 0~255
  1720. // 0x00: CHAdeMO specification 0.9 and earlier
  1721. // 0x01: CHAdeMO specification 0.9 and 0.9.1
  1722. // 0x02: CHAdeMO specification 1.0.0, 1.0.1, 1.1 and 1.2
  1723. unsigned short PresentOutputVoltage; //109.2,109.1 0~600(V) (unit:1V)
  1724. unsigned short PresentOutputCurrent; //109.3 0~255(A) (unit:1A)
  1725. //118.4,118.3 0~1023(A) (unit:1A)
  1726. unsigned char EvseDetection; //109.5
  1727. // bit0=0:not charging state now
  1728. // bit0=1:charging state now
  1729. // bit1=0:EVSE normal
  1730. // bit1=1:EVSE error
  1731. // bit2=0:Not Energizing state
  1732. // bit2=1:Energizing state
  1733. // bit3=0:No Battery incompatibility
  1734. // bit3=1:Battery incompatibility
  1735. // bit4=0:No Charging system error
  1736. // bit4=1:Charging system error
  1737. // bit5=0:No Charging stop control
  1738. // bit5=1:Charging stop control
  1739. unsigned short RemainChargingTime; //109.7,109.6 10(sec.)~255(min.) (Unit:sec)
  1740. // Set 0xFF to 109.6 (Unit: 10sec) in case 109.7 (Unit: 1min) is used
  1741. unsigned char HighPowerCondition; //118.5
  1742. // bit0=0:Present charging current H¡¦118.3,H¡¦118.4¡¨ is less than or equal to rated current of a charging cable
  1743. // bit0=1:Present charging current H¡¦118.3,H¡¦118.4¡¨ is exceeds to rated current of a charging cable
  1744. // bit1=1:charging cable Cooling function Operating Installed
  1745. // bit2=1:charging cable Current limiting function
  1746. // bit3=1:charging connector Cooling function Operating
  1747. // bit4=1:charging connector Current limiting function Installed
  1748. // bit5=1:charging connector Over-temperature protection Installed
  1749. // bit6=1:Functional safety Applied
  1750. unsigned int MaxiGroupPower; // XXXXXXXX (Unit:Watt)depend on which group to be used
  1751. unsigned int MaxiGroupCurrent; // XXXXXXXX (unit:1A)depend on which group to be used
  1752. unsigned short ApplyOutputVoltage; // 0~600(V) (unit:1V)
  1753. unsigned short ElapseChargingTime; // (Unit:sec)
  1754. unsigned short ElapseEnergy; // (Unit:10xkWh)
  1755. unsigned char EvboardStatus; // 0 : init
  1756. };
  1757. struct CHAdeMOData
  1758. {
  1759. struct CHAdeMOEvData ev[CHAdeMO_QUANTITY];
  1760. struct CHAdeMOEvseData evse[CHAdeMO_QUANTITY];
  1761. };
  1762. /************************************************************************************/
  1763. /**************************GBT protocol Share memory*********************/
  1764. /**************************************************************************************/
  1765. struct GBTEvData
  1766. {
  1767. unsigned short MaxiBatteryVoltage; // 0~600(V) (unit:1V)
  1768. unsigned short MaxiChargingTime; // 10(sec.)~255(min.) (Unit:sec)
  1769. unsigned char EstimatChargingTime; // 0~254(min.) (Unit:sec)
  1770. unsigned short TotalBatteryCapacity; // 0.1~6553.5(kWh) (unit:0.1 kWh)
  1771. unsigned char ProtocolVersion; // 0~255
  1772. unsigned short TargetBatteryVoltage; // 0~600(V) (unit:1V)
  1773. unsigned short ChargingCurrentRequest; // 0~200(A) (unit:1A)
  1774. // 0~1023(A) (unit:1A)
  1775. unsigned char EvDetection; //102.5
  1776. // bit0=0:Vehicle charging disabled, (stop charging)
  1777. // bit0=1:Vehicle charging enabled,
  1778. // bit1=0:¡§Parking¡¨ position
  1779. // bit1=1:other position (stop charging)
  1780. // bit2=0:Charging system normal
  1781. // bit2=1:Charging system error (stop charging)
  1782. // bit3=0:EV contactor close or during welding detection
  1783. // bit3=1:EV contactor open or termination of welding detection (stop charging)
  1784. // bit4=0:No stop request before charging
  1785. // bit4=1:Normal stop request before charging (stop charging)
  1786. unsigned char SOC; //102.6 0~100(%) (unit:%)
  1787. // Display Only
  1788. unsigned char PresentMsgFlowStatus; //
  1789. };
  1790. struct GBTEvseData
  1791. {
  1792. unsigned char SelfTest_Comp;
  1793. unsigned char version[16]; // GBT firmware version
  1794. unsigned short AvailableOutputVoltage; // 0~600(V) (unit:1V)
  1795. unsigned short AvailableOutputCurrent; // 0~255(A) (unit:1A)
  1796. unsigned char ConnectorTemperatureP; // -40~215(degC) (unit:degC) //value 0=-40 [NISSAN customized]
  1797. unsigned char ConnectorTemperatureN; // -40~215(degC) (unit:degC) //value 0=-40 [NISSAN customized]
  1798. unsigned short PresentOutputVoltage; // 0~600(V) (unit:1V)
  1799. unsigned short PresentOutputCurrent; // 0~255(A) (unit:1A)
  1800. unsigned short RemainChargingTime; //109.7,109.6 10(sec.)~255(min.) (Unit:sec)
  1801. unsigned char EvboardStatus; // 0 : init
  1802. };
  1803. struct GBTData
  1804. {
  1805. struct GBTEvData ev[GB_QUANTITY];
  1806. struct GBTEvseData evse[GB_QUANTITY];
  1807. };
  1808. /************************************************************************************/
  1809. /**************************CCS protocol Share memory***************************/
  1810. /**************************DIN70121: 201412***************************************/
  1811. /**************************ISO15118_2014: 2014************************************/
  1812. /**************************ISO15118_2018: 2018************************************/
  1813. /************************************************************************************/
  1814. typedef enum boolean { FALSE, TRUE } BOOL;
  1815. enum ResponseCodeType_DIN70121 { OK_DIN70121 = 0, OK_NewSessionEstablished_DIN70121 = 1, OK_OldSessionJoined_DIN70121 = 2, OK_CertificateExpiresSoon_DIN70121 = 3,
  1816. FAILED_DIN70121 = 4, FAILED_SequenceError_DIN70121 = 5, FAILED_ServiceIDInvalid_DIN70121 = 6, FAILED_UnknownSession_DIN70121 = 7,
  1817. FAILED_ServiceSelectionInvalid_DIN70121 = 8, FAILED_PaymentSelectionInvalid_DIN70121 = 9, FAILED_CertificateExpired_DIN70121 = 10,
  1818. FAILED_SignatureError_DIN70121 = 11, FAILED_NoCertificateAvailable_DIN70121 = 12, FAILED_CertChainError_DIN70121 = 13, FAILED_ChallengeInvalid_DIN70121 = 14,
  1819. FAILED_ContractCanceled_DIN70121 = 15, FAILED_WrongChargeParameter_DIN70121 = 16, FAILED_PowerDeliveryNotApplied_DIN70121 = 17,
  1820. FAILED_TariffSelectionInvalid_DIN70121 = 18, FAILED_ChargingProfileInvalid_DIN70121 = 19, FAILED_EVSEPresentVoltageToLow_DIN70121 = 20,
  1821. FAILED_MeteringSignatureNotValid_DIN70121 = 21, FAILED_WrongEnergyTransferType_DIN70121 = 22};
  1822. enum ResponseCodeType_ISO15118_2014 { OK_ISO15118_2014 = 0, OK_NewSessionEstablished_ISO15118_2014 = 1, OK_OldSessionJoined_ISO15118_2014 = 2, OK_CertificateExpiresSoon_ISO15118_2014 = 3,
  1823. FAILED_ISO15118_2014 = 4, FAILED_SequenceError_ISO15118_2014 = 5, FAILED_ServiceIDInvalid_ISO15118_2014 = 6, FAILED_UnknownSession_ISO15118_2014 = 7,
  1824. FAILED_ServiceSelectionInvalid_ISO15118_2014 = 8, FAILED_PaymentSelectionInvalid_ISO15118_2014 = 9, FAILED_CertificateExpired_ISO15118_2014 = 10,
  1825. FAILED_SignatureError_ISO15118_2014 = 11, FAILED_NoCertificateAvailable_ISO15118_2014 = 12, FAILED_CertChainError_ISO15118_2014 = 13, FAILED_ChallengeInvalid_ISO15118_2014 = 14,
  1826. FAILED_ContractCanceled_ISO15118_2014 = 15, FAILED_WrongChargeParameter_ISO15118_2014 = 16, FAILED_PowerDeliveryNotApplied_ISO15118_2014 = 17,
  1827. FAILED_TariffSelectionInvalid_ISO15118_2014 = 18, FAILED_ChargingProfileInvalid_ISO15118_2014 = 19, FAILED_MeteringSignatureNotValid_ISO15118_2014 = 20,
  1828. FAILED_NoChargeServiceSelected_ISO15118_2014 = 21, FAILED_WrongEnergyTransferMode_ISO15118_2014 = 22, FAILED_ContactorError_ISO15118_2014 = 23,
  1829. FAILED_CertificateNotAllowedAtThisEVSE_ISO15118_2014 = 24, FAILED_CertificateRevoked_ISO15118_2014 = 25 };
  1830. enum ResponseCodeType_ISO15118_2018 { OK_ISO15118_2018 = 0, OK_NewSessionEstablished_ISO15118_2018 = 1, OK_OldSessionJoined_ISO15118_2018 = 2, OK_CertificateExpiresSoon_ISO15118_2018 = 3,
  1831. OK_IsolationValid_ISO15118_2018 = 4, OK_IsolationWarning_ISO15118_2018 = 5, WARNING_CertificateExpired_ISO15118_2018 = 6, WARNING_NoCertificateAvailable_ISO15118_2018 = 7,
  1832. WARNING_CertValidationError_ISO15118_2018 = 8, WARNING_CertVerificationError_ISO15118_2018 = 9, WARNING_ContractCanceled_ISO15118_2018 = 10,
  1833. FAILED_ISO15118_2018 = 11, FAILED_SequenceError_ISO15118_2018 = 12, FAILED_ServiceIDInvalid_ISO15118_2018 = 13, FAILED_UnknownSession_ISO15118_2018 = 14,
  1834. FAILED_ServiceSelectionInvalid_ISO15118_2018 = 15, FAILED_SignatureError_ISO15118_2018 = 16, FAILED_IdentificationSelectionInvalid_ISO15118_2018 = 17,
  1835. FAILED_ChallengeInvalid_ISO15118_2018 = 18, FAILED_WrongChargeParameter_ISO15118_2018 = 19, FAILED_IsolationFault_ISO15118_2018 = 20,
  1836. FAILED_PowerDeliveryNotApplied_ISO15118_2018 = 21, FAILED_TariffSelectionInvalid_ISO15118_2018 = 22, FAILED_ChargingProfileInvalid_ISO15118_2018 = 23,
  1837. FAILED_MeteringSignatureNotValid_ISO15118_2018 = 24, FAILED_NoChargeServiceSelected_ISO15118_2018 = 25, FAILED_WrongEnergyTransferMode_ISO15118_2018 = 26,
  1838. FAILED_ContactorError_ISO15118_2018 = 27, FAILED_CertificateRevoked_ISO15118_2018 = 28, FAILED_CertificateNotYetValid_ISO15118_2018 = 29 };
  1839. enum EVSENotificationType { None = 0, StopCharging = 1, ReNegotiation = 2};
  1840. enum ServiceCategoryType { EVCharging = 0, Internet = 1, ContractCertificate = 2, OtherCustom = 3};
  1841. enum PaymentOptionType { Contract = 0, ExternalPayment = 1};
  1842. /*enum EVSESupportedEnergyTransferType { AC_single_phase_core = 0, AC_three_phase_core = 1, DC_core = 2, DC_extended = 3,
  1843. DC_combo_core = 4, DC_dual = 5, AC_core1p_DC_extended = 6, AC_single_DC_core = 7,
  1844. AC_single_phase_three_phase_core_DC_extended = 8, AC_core3p_DC_extended = 9};*/
  1845. enum EnergyTransferModeType { AC_single_phase_core = 0, AC_three_phase_core = 1, DC_core = 2, DC_extended = 3,
  1846. DC_combo_core = 4, DC_unique = 5};
  1847. //enum identificationOptionType { Contract = 0, ExternalIdentification = 1};
  1848. 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};
  1849. 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};
  1850. enum ProcessingType { Finished = 0, Ongoing = 1, Ongoing_WaitingForCustomerInteraction = 2};
  1851. enum EVSEProcessingType_DIN70121 { Finished_DIN70121 = 0, Ongoing_DIN70121 = 1};
  1852. enum EVSEProcessingType_ISO15118_2014 { Finished_ISO15118_2014 = 0, Ongoing_ISO15118_2014 = 1, Ongoing_WaitingForCustomerInteraction_ISO15118_2014=2 };
  1853. enum DC_EVErrorCodeType { NO_ERROR = 0, FAILED_RESSTemperatureInhibit = 1, FAILED_EVShiftPosition = 2, FAILED_ChargerConnectorLockFault = 3,
  1854. FAILED_EVRESSMalfunction = 4, FAILED_ChargingCurrentdifferential = 5, FAILED_ChargingVoltageOutOfRange = 6,
  1855. Reserved_A = 7, Reserved_B = 8, Reserved_C = 9, FAILED_ChargingSystemIncompatibility = 10, NoData = 11};
  1856. enum IsolationLevelType_DIN70121 { Invalid_DIN70121 = 0, Valid_DIN70121 = 1, Warning_DIN70121 = 2, Fault_DIN70121 = 3};
  1857. 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};
  1858. enum DC_EVSEStatusCodeType { EVSE_NotReady = 0, EVSE_Ready = 1, EVSE_Shutdown = 2, EVSE_UtilityInterruptEvent = 3,
  1859. EVSE_IsolationMonitoringActive = 4, EVSE_EmergencyShutdown = 5, EVSE_Malfunction = 6,
  1860. Reserved_8 = 7, Reserved_9 = 8};
  1861. enum ScheduleOriginType { EV = 0, SA = 1};
  1862. enum ChargeProgressType_ISO15118_2014 {start_ISO15118_2014 = 0, Stop_ISO15118_2014 = 1, Renegotiate_ISO15118_2014 = 2};
  1863. enum ChargeProgressType_ISO15118_2018 {start_ISO15118_2018 = 0, Renegotiate_ISO15118_2018 = 1, Standby_ISO15118_2018 = 2, Stop_ISO15118_2018 = 3};
  1864. enum evOperationType {Charge = 0, Discharge = 1, Standby = 2};
  1865. enum mechanicalChargingDeviceStatusType {Home = 0, Moving = 1, EndPosition = 2};
  1866. enum EV_CP_StatusType {A = 0, B = 1, C = 2, D = 3, E = 4, F = 5};
  1867. enum EV_Error_Status_CodeType { No_EV_Error = 0, EV_FAILED_EmergencyEvent = 1, EV_FAILED_Breaker = 2, EV_FAILED_RESSTemperatureInhibit = 3,
  1868. EV_FAILED_RESS = 4, EV_FAILED_ChargingCurrentDifferential = 5, EV_FAILED_ChargingVoltageOutOfRange = 6,
  1869. Reserved_by_ISO_1 = 7, Reserved_by_ISO_2 = 8, Reserved_by_ISO_3 = 9, OEM1 = 10,
  1870. OEM2 = 11, OEM3 = 12, OEM4 = 13};
  1871. enum IsolationStatusType { Invalid = 0, Safe = 1, Warning = 2, Fault = 3};
  1872. enum ChargingSessionType { Terminate = 0, Pause = 1};
  1873. enum CostKindType { relativePricePercentage = 0, RenewableGenerationPercentage = 1, CarbonDioxideEmission = 2};
  1874. struct PhysicalValueType_DIN70121 //The final physical value is determined by: Value * 10 ^ Multiplier [Unit]
  1875. {
  1876. int Multiplier; //range: -3..+3
  1877. enum unitSymbolType_DIN70121 Unit;
  1878. short Value;
  1879. };
  1880. struct PhysicalValueType_ISO15118_2014 //The final physical value is determined by: Value * 10 ^ Multiplier [Unit]
  1881. {
  1882. int Multiplier; //range: -3..+3
  1883. enum unitSymbolType_ISO15118_2014 Unit;
  1884. short Value;
  1885. };
  1886. struct PhysicalValueType_ISO15118_2018 //The final physical value is determined by: Value * 10 ^ Exponent [Unit]
  1887. {
  1888. int Exponent; //range: -3..+3
  1889. short Value;
  1890. };
  1891. struct AppProtocolType
  1892. {
  1893. unsigned char ProtocolNamespace[100];
  1894. unsigned int VersionNumberMajor;
  1895. unsigned int VersionNumberMinor;
  1896. unsigned char SchemaID;
  1897. unsigned char Priority; //range 1..20
  1898. };
  1899. struct ACD_SSEnergyTransferModeType
  1900. {
  1901. unsigned char EVID[20];
  1902. };
  1903. struct EVSEStatusType
  1904. {
  1905. unsigned short NotificationMaxDelay; //in seconds
  1906. enum EVSENotificationType EVSENotification;
  1907. };
  1908. struct ServiceIDListType
  1909. {
  1910. unsigned short ServiceID[10]; //refer to chapter 8.6.2.1 Table 192
  1911. };
  1912. struct PaymentOptionListType
  1913. {
  1914. enum PaymentOptionType PaymentOption[2];
  1915. };
  1916. struct ServiceTagType
  1917. {
  1918. unsigned short ServiceID;
  1919. unsigned char ServiceName[32];//Optional Element
  1920. enum ServiceCategoryType ServiceCategory;
  1921. unsigned char ServiceScope[32];//Optional Element
  1922. };
  1923. struct ServiceType_DIN70121
  1924. {
  1925. struct ServiceTagType ServiceTag;
  1926. BOOL FreeService;
  1927. };
  1928. struct ServiceType_ISO15118_2014
  1929. {
  1930. unsigned short ServiceID;
  1931. unsigned char ServiceName[32]; //Optional
  1932. enum ServiceCategoryType ServiceCategory;
  1933. unsigned char ServiceScope[64]; //Optional
  1934. BOOL FreeService;
  1935. };
  1936. /*struct ServiceType_ISO15118_2018
  1937. {
  1938. unsigned short ServiceID;
  1939. BOOL FreeService;
  1940. }; */
  1941. struct SupportedEnergyTransferModeType
  1942. {
  1943. enum EnergyTransferModeType EnergyTransferMode[6];
  1944. };
  1945. struct ServiceChargeType
  1946. {
  1947. struct ServiceType_DIN70121 Services;
  1948. //enum EVSESupportedEnergyTransferType EnergyTransferType;
  1949. enum EnergyTransferModeType EnergyTransferType;
  1950. };
  1951. struct ChargeServiceType
  1952. {
  1953. struct ServiceType_ISO15118_2014 Services;
  1954. struct SupportedEnergyTransferModeType SupportedEnergyTransferMode;
  1955. };
  1956. struct ServiceListType
  1957. {
  1958. struct ServiceType_ISO15118_2014 Service[8];
  1959. };
  1960. struct IdentificationOptionListType
  1961. {
  1962. enum PaymentOptionType IdentificationOption[2];
  1963. };
  1964. struct ParameterType
  1965. {
  1966. unsigned char Name[32];
  1967. struct PhysicalValueType_ISO15118_2014 PhysicalValue_ISO15118_2014;
  1968. struct PhysicalValueType_ISO15118_2018 PhysicalValue_ISO15118_2018;
  1969. };
  1970. struct ParameterSetType
  1971. {
  1972. short ParameterSetID;
  1973. struct ParameterType Parameter[16];
  1974. };
  1975. struct ServiceParameterListType
  1976. {
  1977. struct ParameterSetType ParameterSet[255];
  1978. };
  1979. struct WPT_SDlEnergyTransferModeType
  1980. {
  1981. struct ServiceParameterListType ServiceParameterList;
  1982. };
  1983. struct SelectedServiceType
  1984. {
  1985. unsigned short ServiceID;
  1986. short ParameterSetID;
  1987. };
  1988. struct SelectedServiceListType
  1989. {
  1990. struct SelectedServiceType SelectedService[16];
  1991. };
  1992. struct CertificateChainType
  1993. {
  1994. unsigned char Id[32]; //Optional
  1995. unsigned char Certificate[800]; //check size again
  1996. unsigned char SubCertificates[4][800]; //Optional, check size again
  1997. };
  1998. struct PNC_AReqIdentificationModeType
  1999. {
  2000. unsigned char GenChallenge[16]; //DIN70121=> None, ISO15118_2014=>None, ISO15118_2018=>Optional
  2001. unsigned char Id[32]; //DIN70121=> None, ISO15118_2014=>None, ISO15118_2018=>Optional
  2002. };
  2003. struct AC_EVChargeParameterType
  2004. {
  2005. unsigned int DepartureTime; //Optional
  2006. struct PhysicalValueType_ISO15118_2014 EAmount;
  2007. struct PhysicalValueType_ISO15118_2014 EVMaxVoltage;
  2008. struct PhysicalValueType_ISO15118_2014 EVMaxCurrent;
  2009. struct PhysicalValueType_ISO15118_2014 EVMinCurrent;
  2010. };
  2011. struct DC_EVStatusType_DIN70121
  2012. {
  2013. BOOL EVReady;
  2014. BOOL EVCabinConditioning;
  2015. BOOL EVRESSConiditioning;
  2016. enum DC_EVErrorCodeType EVErrorCode;
  2017. unsigned char EVRESSSOC; /*0-100 percentage*/
  2018. };
  2019. struct DC_EVChargeParameterType_DIN70121
  2020. {
  2021. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  2022. struct PhysicalValueType_DIN70121 EVMaximumCurrentLimit;
  2023. struct PhysicalValueType_DIN70121 EVMaximumPowerLimit; //Optional
  2024. struct PhysicalValueType_DIN70121 EVMaximumVoltageLimit;
  2025. struct PhysicalValueType_DIN70121 EVEnergyCapacity; //Optional
  2026. struct PhysicalValueType_DIN70121 EVEnergyRequest; //Optional
  2027. unsigned char FullSOC;/*0-100 percentage*/ //Optional
  2028. unsigned char BulkSOC;/*0-100 percentage*/ //Optional
  2029. };
  2030. struct DC_EVStatusType_ISO15118_2014
  2031. {
  2032. BOOL EVReady;
  2033. enum DC_EVErrorCodeType EVErrorCode;
  2034. unsigned char EVRESSSOC; /*0-100 percentage*/
  2035. };
  2036. struct DC_EVChargeParameterType_ISO15118_2014
  2037. {
  2038. unsigned int DepartureTime; //Optional
  2039. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  2040. struct PhysicalValueType_ISO15118_2014 EVMaximumCurrentLimit;
  2041. struct PhysicalValueType_ISO15118_2014 EVMaximumPowerLimit; //Optional
  2042. struct PhysicalValueType_ISO15118_2014 EVMaximumVoltageLimit;
  2043. struct PhysicalValueType_ISO15118_2014 EVEnergyCapacity; //Optional
  2044. struct PhysicalValueType_ISO15118_2014 EVEnergyRequest; //Optional
  2045. unsigned char FullSOC;/*0-100 percentage*/ //Optional
  2046. unsigned char BulkSOC;/*0-100 percentage*/ //Optional
  2047. };
  2048. struct Dynamic_CPDReqControlModeType
  2049. {
  2050. unsigned int DepartureTime;
  2051. };
  2052. struct RelativeTimeIntervalType
  2053. {
  2054. unsigned int duration; //Optional
  2055. unsigned int start;
  2056. };
  2057. struct PMaxScheduleEntryType
  2058. {
  2059. struct RelativeTimeIntervalType RelativeTimeInterval;
  2060. unsigned short PMax;
  2061. };
  2062. struct PMaxScheduleType
  2063. {
  2064. unsigned short PMaxScheduleID; //no this itme in ISO15118_2014
  2065. struct PMaxScheduleEntryType PMaxScheduleEntry[1024];
  2066. };
  2067. struct CostType
  2068. {
  2069. unsigned int amount;
  2070. enum CostKindType costKind;
  2071. int amountMultiplier; //Optional , range: -3..+3
  2072. };
  2073. struct ConsumptionCostType
  2074. {
  2075. struct CostType Cost[3];
  2076. struct PhysicalValueType_ISO15118_2014 startValue;
  2077. };
  2078. struct SalesTariffEntryType
  2079. {
  2080. struct RelativeTimeIntervalType RelativeTimeInterval;
  2081. unsigned char EPriceLevel; //Optional
  2082. struct ConsumptionCostType ConsumptionCost[3]; //Optional
  2083. };
  2084. struct SalesTariffType
  2085. {
  2086. unsigned char Id[32]; //Optional
  2087. short SalesTariffID;
  2088. unsigned char SalesTariffDescription[32]; //Optional
  2089. unsigned char NumEPriceLevels; //Optional
  2090. struct SalesTariffEntryType SalesTariffEntry[1024];
  2091. };
  2092. struct SAScheduleTupleType
  2093. {
  2094. short SAScheduleTupleID;
  2095. struct PMaxScheduleType PMaxSchedule;
  2096. struct SalesTariffType SalesTariff; //Optional
  2097. };
  2098. struct ScheduleListType
  2099. {
  2100. enum ScheduleOriginType ScheduleOrigin;
  2101. struct SAScheduleTupleType ScheduleTuple[3];
  2102. };
  2103. struct Scheduled_CPDReqControlModeType
  2104. {
  2105. enum ProcessingType EVProcessing;
  2106. unsigned int DepartureTime; //Optional
  2107. unsigned short MaxSupportingPoints;
  2108. struct ScheduleListType ScheduleList; //Optional
  2109. };
  2110. struct AC_CPDReqEnergyTransferModeType
  2111. {
  2112. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  2113. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  2114. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  2115. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
  2116. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  2117. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  2118. struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
  2119. };
  2120. struct DC_CPDReqEnergyTransferModeType
  2121. {
  2122. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower; //Optional
  2123. struct PhysicalValueType_ISO15118_2018 EVMinimumChargePower; //Optional
  2124. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  2125. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  2126. struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
  2127. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  2128. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  2129. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  2130. unsigned char TargetSOC; //Optional
  2131. unsigned char BulkSOC; //Optional
  2132. };
  2133. struct BPT_AC_CPDReqEnergyTransferModeType
  2134. {
  2135. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
  2136. struct PhysicalValueType_ISO15118_2018 EVMaximumDischargePower;
  2137. struct PhysicalValueType_ISO15118_2018 EVMinimumDischargePower;
  2138. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  2139. struct PhysicalValueType_ISO15118_2018 EVMaximumDischargeCurrent;
  2140. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  2141. struct PhysicalValueType_ISO15118_2018 EVMinimumDischargeCurrent;
  2142. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  2143. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  2144. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  2145. struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
  2146. };
  2147. struct BPT_DC_CPDReqEnergyTransferModeType
  2148. {
  2149. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
  2150. struct PhysicalValueType_ISO15118_2018 EVMinimumChargePower;
  2151. struct PhysicalValueType_ISO15118_2018 EVMaximumDischargePower;
  2152. struct PhysicalValueType_ISO15118_2018 EVMinimumDischargePower;
  2153. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  2154. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  2155. struct PhysicalValueType_ISO15118_2018 EVMaximumDischargeCurrent;
  2156. struct PhysicalValueType_ISO15118_2018 EVMinimumDischargeCurrent;
  2157. struct PhysicalValueType_ISO15118_2018 EVMaximumVoltage;
  2158. struct PhysicalValueType_ISO15118_2018 EVMinimumVoltage;
  2159. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest;
  2160. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest;
  2161. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest;
  2162. unsigned char TargetSOC; //Optional
  2163. unsigned char BulkSOC; //Optional
  2164. };
  2165. struct WPT_CPDReqEnergyTransferModeType
  2166. {
  2167. struct PhysicalValueType_ISO15118_2018 EVMaximumPower; //Optional
  2168. struct PhysicalValueType_ISO15118_2018 EVMinimumPower; //Optional
  2169. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  2170. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  2171. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  2172. };
  2173. struct ACD_CPDReqEnergyTransferModeType
  2174. {
  2175. //cannot be found in standard
  2176. };
  2177. struct SAScheduleListType
  2178. {
  2179. struct SAScheduleTupleType SAScheduleTuple[3];
  2180. };
  2181. struct DC_EVSEStatusType_DIN70121
  2182. {
  2183. enum IsolationLevelType_DIN70121 EVSEIsolationStatus; //Optional
  2184. enum DC_EVSEStatusCodeType EVSEStatusCode;
  2185. unsigned int NotificationMaxDelay;
  2186. enum EVSENotificationType EVSENotification;
  2187. };
  2188. struct DC_EVSEChargeParameterType_DIN70121
  2189. {
  2190. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  2191. struct PhysicalValueType_DIN70121 EVSEMaximumCurrentLimit;
  2192. struct PhysicalValueType_DIN70121 EVSEMaximumPowerLimit; //Optional
  2193. struct PhysicalValueType_DIN70121 EVSEMaximumVoltageLimit;
  2194. struct PhysicalValueType_DIN70121 EVSEMinimumCurrentLimit;
  2195. struct PhysicalValueType_DIN70121 EVSEMinimumVoltageLimit;
  2196. struct PhysicalValueType_DIN70121 EVSECurrentRegulationTolerance; //Optional
  2197. struct PhysicalValueType_DIN70121 EVSEPeakCurrentRipple;
  2198. struct PhysicalValueType_DIN70121 EVSEEnergyToBeDelivered; //Optional
  2199. };
  2200. struct AC_EVSEStatusType
  2201. {
  2202. BOOL RCD;
  2203. unsigned short NotificationMaxDelay;
  2204. enum EVSENotificationType EVSENotification; //need to be confirmed
  2205. };
  2206. struct AC_EVSEChargeParameterType
  2207. {
  2208. struct AC_EVSEStatusType AC_EVSEStatus;
  2209. struct PhysicalValueType_ISO15118_2014 EVSENominalVoltage;
  2210. struct PhysicalValueType_ISO15118_2014 EVSEMaxCurrent;
  2211. };
  2212. struct DC_EVSEStatusType_ISO15118_2014
  2213. {
  2214. unsigned short NotificationMaxDelay;
  2215. enum EVSENotificationType EVSENotification;
  2216. enum IsolationLevelType_ISO15118_2014 EVSEIsolationStatus; //Optional
  2217. enum DC_EVSEStatusCodeType DC_EVSEStatusCode;
  2218. };
  2219. struct DC_EVSEChargeParameterType_ISO15118_2014
  2220. {
  2221. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  2222. struct PhysicalValueType_ISO15118_2014 EVSEMaximumCurrentLimit;
  2223. struct PhysicalValueType_ISO15118_2014 EVSEMaximumPowerLimit;
  2224. struct PhysicalValueType_ISO15118_2014 EVSEMaximumVoltageLimit;
  2225. struct PhysicalValueType_ISO15118_2014 EVSEMinimumCurrentLimit;
  2226. struct PhysicalValueType_ISO15118_2014 EVSEMinimumVoltageLimit;
  2227. struct PhysicalValueType_ISO15118_2014 EVSECurrentRegulationTolerance; //Optional
  2228. struct PhysicalValueType_ISO15118_2014 EVSEPeakCurrentRipple;
  2229. struct PhysicalValueType_ISO15118_2014 EVSEEnergyToBeDelivered; //Optional
  2230. };
  2231. struct Scheduled_CPDResControlModeType
  2232. {
  2233. struct ScheduleListType ScheduleList;
  2234. };
  2235. struct AC_CPDResEnergyTransferModeType
  2236. {
  2237. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent[3];
  2238. struct PhysicalValueType_ISO15118_2018 EVSENominalVoltage;
  2239. struct PhysicalValueType_ISO15118_2018 EVSENominalFrequency;
  2240. };
  2241. struct DC_CPDResEnergyTransferModeType
  2242. {
  2243. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower;
  2244. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent;
  2245. struct PhysicalValueType_ISO15118_2018 EVSEMinimumChargeCurrent;
  2246. struct PhysicalValueType_ISO15118_2018 EVSEMaximumVoltage;
  2247. struct PhysicalValueType_ISO15118_2018 EVSEMinimumVoltage;
  2248. };
  2249. struct BPT_AC_CPDResEnergyTransferModeType
  2250. {
  2251. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent[3];
  2252. struct PhysicalValueType_ISO15118_2018 EVSEMaximumDischargeCurrent[3];
  2253. struct PhysicalValueType_ISO15118_2018 EVSENominalVoltage;
  2254. struct PhysicalValueType_ISO15118_2018 EVSENominalFrequency;
  2255. };
  2256. struct BPT_DC_CPDResEnergyTransferModeType
  2257. {
  2258. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower;
  2259. struct PhysicalValueType_ISO15118_2018 EVSEMaximumDischargePower;
  2260. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent;
  2261. struct PhysicalValueType_ISO15118_2018 EVSEMaximumDischargeCurrent;
  2262. struct PhysicalValueType_ISO15118_2018 EVSEMinimumChargeCurrent;
  2263. struct PhysicalValueType_ISO15118_2018 EVSEMinimumDischargeCurrent;
  2264. struct PhysicalValueType_ISO15118_2018 EVSEMaximumVoltage;
  2265. struct PhysicalValueType_ISO15118_2018 EVSEMinimumVoltage;
  2266. };
  2267. struct WPT_CPDResEnergyTransferModeType
  2268. {
  2269. struct PhysicalValueType_ISO15118_2018 EVSEMaximumPower;
  2270. struct PhysicalValueType_ISO15118_2018 EVSEMinimumPower;
  2271. };
  2272. struct ACD_CPDResEnergyTransferModeType
  2273. {
  2274. //not found in ISO15118_2018
  2275. };
  2276. struct ProfileEntryType_DIN70121
  2277. {
  2278. unsigned int ChargingProfileEntryStart;
  2279. short ChargingProfileEntryMaxPower;
  2280. };
  2281. struct ChargingProfileType_DIN70121
  2282. {
  2283. short SAScheduleTupleID;
  2284. struct ProfileEntryType_DIN70121 ProfileEntry[24];
  2285. };
  2286. struct DC_EVPowerDeliveryParameterType_DIN70121
  2287. {
  2288. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  2289. BOOL BulkChargingComplete; //Optional
  2290. BOOL ChargingComplete;
  2291. };
  2292. struct ProfileEntryType_ISO15118_2014
  2293. {
  2294. unsigned int ChargingProfileEntryStart;
  2295. struct PhysicalValueType_ISO15118_2018 ChargingProfileEntryMaxPower;
  2296. unsigned char ChargingProfileEntryMaxNumberOfPhasesInUse; //Optional
  2297. };
  2298. struct ChargingProfileType_ISO15118_2014
  2299. {
  2300. struct ProfileEntryType_ISO15118_2014 ProfileEntry[24];
  2301. };
  2302. struct DC_EVPowerDeliveryParameterType_ISO15118_2014
  2303. {
  2304. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  2305. BOOL BulkChargingComplete; //Optional
  2306. BOOL ChargingComplete;
  2307. };
  2308. struct TimeInterval
  2309. {
  2310. unsigned int start;
  2311. unsigned int duration; //Optional
  2312. };
  2313. struct PowerScheduleEntryType
  2314. {
  2315. struct TimeInterval TimeInterval;
  2316. struct PhysicalValueType_ISO15118_2018 Power[3];
  2317. };
  2318. struct EVPowerProfileType
  2319. {
  2320. struct PowerScheduleEntryType EVPowerProfileEntry[2048];
  2321. };
  2322. struct Scheduled_PDReqControlModeType
  2323. {
  2324. unsigned char ScheduleTupleID;
  2325. struct EVPowerProfileType EVPowerProfile;
  2326. };
  2327. struct BPT_Scheduled_PDReqControlModeType
  2328. {
  2329. unsigned char ScheduleTupleID;
  2330. struct EVPowerProfileType EVPowerProfile; //Optional
  2331. enum evOperationType EVOperation;
  2332. };
  2333. struct ListOfRootCertificateIDsType
  2334. {
  2335. unsigned char RootCertificateID[20][40];
  2336. };
  2337. struct ContractSignatureEncryptedPrivateKeyType
  2338. {
  2339. unsigned char Id[32];
  2340. };
  2341. struct DiffieHellmanPublickeyType
  2342. {
  2343. unsigned char Id[32];
  2344. };
  2345. struct ContractCertificateEncryptedPrivateKeyType
  2346. {
  2347. unsigned char Id[32];
  2348. };
  2349. struct EVTechnicalStatusType
  2350. {
  2351. BOOL EV_Status_ReadyToCharge;
  2352. BOOL EV_Status_ImmobilizationRequest; //Optional
  2353. BOOL EV_Status_Immobilized;
  2354. struct PhysicalValueType_ISO15118_2018 EV_Status_WLAN_Strength;
  2355. enum EV_CP_StatusType EV_CP_Status;
  2356. unsigned char EV_Status_RESSSOC; //0~100%
  2357. enum EV_Error_Status_CodeType EV_Error_Status_Code;
  2358. BOOL EVSE_Timeout;
  2359. };
  2360. struct MeterInfoType_ISO15118_2014
  2361. {
  2362. unsigned char MeterID[32];
  2363. unsigned long MeterReading; //Optional
  2364. unsigned char SigMeterReading[64]; //Optional
  2365. short MeterStatus; //Optional
  2366. short TMeter; //Optional
  2367. };
  2368. struct Scheduled_MRReqControlModeType
  2369. {
  2370. unsigned char ScheduleTupleID;
  2371. };
  2372. struct MeterInfoType_ISO15118_2018
  2373. {
  2374. unsigned char MeterID[32];
  2375. unsigned long MeterReadingWhCharged; //Optional
  2376. unsigned long MeterReadingWhDischarged; //Optional
  2377. unsigned long MeterReadingVARhLeading; //Optional
  2378. unsigned long MeterReadingVARhLagging; //Optional
  2379. unsigned char SignatureMeterReading[64]; //Optional
  2380. short MeterStatus; //Optional
  2381. short TimeStampMeter; //Optional
  2382. BOOL ReceiptRequired; //Optional
  2383. };
  2384. struct PnC_CLReqIdentificationModeType
  2385. {
  2386. BOOL MeteringReceiptRequested;
  2387. };
  2388. struct Dynamic_CSReqControlModeType
  2389. {
  2390. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest;
  2391. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest;
  2392. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest;
  2393. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower;
  2394. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent;
  2395. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent;
  2396. };
  2397. struct Scheduled_CSReqControlModeType
  2398. {
  2399. struct PhysicalValueType_ISO15118_2018 EVTargetEnergyRequest; //Optional
  2400. struct PhysicalValueType_ISO15118_2018 EVMaximumEnergyRequest; //Optional
  2401. struct PhysicalValueType_ISO15118_2018 EVMinimumEnergyRequest; //Optional
  2402. BOOL Standby;
  2403. struct PhysicalValueType_ISO15118_2018 EVMaximumChargePower; //Optional
  2404. struct PhysicalValueType_ISO15118_2018 EVMaximumChargeCurrent; //Optional
  2405. struct PhysicalValueType_ISO15118_2018 EVMinimumChargeCurrent; //Optional
  2406. };
  2407. struct DisplayParametersType
  2408. {
  2409. unsigned short CurrentRange;
  2410. unsigned char CurrentSOC; //0~100%
  2411. unsigned char MinimumSOC; //0~100%
  2412. struct PhysicalValueType_ISO15118_2018 RemainingTimeToMaximumSOC;
  2413. struct PhysicalValueType_ISO15118_2018 RemainingTimeToTargetSOC;
  2414. struct PhysicalValueType_ISO15118_2018 RemainingTimeToBulkSOC;
  2415. struct PhysicalValueType_ISO15118_2018 RemainingTimeToMinimumSOC;
  2416. BOOL ChargingComplete;
  2417. BOOL BulkChargingComplete;
  2418. BOOL InletHot;
  2419. };
  2420. struct PnC_CLResIdentificationModeType
  2421. {
  2422. struct MeterInfoType_ISO15118_2018 MeterInfo;
  2423. };
  2424. struct Dynamic_CSResControlModeType
  2425. {
  2426. struct PhysicalValueType_ISO15118_2018 EVSETargetActivePower;
  2427. };
  2428. struct Scheduled_CDResControlModeType
  2429. {
  2430. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower; //Optional
  2431. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent; //Optional
  2432. struct PhysicalValueType_ISO15118_2018 EVSEMaximumVoltage; //Optional
  2433. };
  2434. struct LFA_EVFinePositioningSetupParametersType
  2435. {
  2436. unsigned char NumberOfSensors;
  2437. //NOT complete yet, to be continue.....
  2438. };
  2439. /****SupportedAppProtocolRequest****/
  2440. struct SupportedAppProtocolRequest_DIN70121
  2441. {
  2442. struct AppProtocolType AppProtocol[20];
  2443. };
  2444. struct SupportedAppProtocolRequest_ISO15118_2014
  2445. {
  2446. struct AppProtocolType AppProtocol[20];
  2447. };
  2448. struct SupportedAppProtocolRequest_ISO15118_2018
  2449. {
  2450. struct AppProtocolType AppProtocol[20];
  2451. };
  2452. /****SupportedAppProtocolResponse****/
  2453. struct SupportedAppProtocolResponse_DIN70121
  2454. {
  2455. enum ResponseCodeType_DIN70121 ResponseCode;
  2456. unsigned char SchemaID; //Optional
  2457. };
  2458. struct SupportedAppProtocolResponse_ISO15118_2014
  2459. {
  2460. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2461. unsigned char SchemaID; //Optional
  2462. };
  2463. struct SupportedAppProtocolResponse_ISO15118_2018
  2464. {
  2465. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2466. unsigned char SchemaID; //Optional
  2467. };
  2468. /****SessionSetupRequest****/
  2469. struct SessionSetupRequest_DIN70121
  2470. {
  2471. unsigned char EVCCID[8]; //the MAC address of the EVCC in Hex
  2472. };
  2473. struct SessionSetupRequest_ISO15118_2014
  2474. {
  2475. unsigned char EVCCID[8]; //the MAC address of the EVCC in Hex
  2476. };
  2477. struct SessionSetupRequest_ISO15118_2018
  2478. {
  2479. unsigned char EVCCID[8]; //the MAC address of the EVCC in Hex
  2480. struct ACD_SSEnergyTransferModeType ACD_SSEnergyTransferMode; //For ACD mandatory, optional for rest
  2481. };
  2482. /****SessionSetupResponse****/
  2483. struct SessionSetupResponse_DIN70121
  2484. {
  2485. enum ResponseCodeType_DIN70121 ResponseCode;
  2486. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  2487. unsigned int EVSETimeStamp; //EPOCH format, Optional
  2488. };
  2489. struct SessionSetupResponse_ISO15118_2014
  2490. {
  2491. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2492. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  2493. unsigned int EVSETimeStamp; //EPOCH format, Optional
  2494. };
  2495. struct SessionSetupResponse_ISO15118_2018
  2496. {
  2497. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2498. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  2499. struct EVSEStatusType EVSEStatus; //Optional
  2500. };
  2501. /****ServiceDiscoveryRequest****/
  2502. struct ServiceDiscoveryRequest_DIN70121
  2503. {
  2504. unsigned char ServiceScope[32]; //Optional
  2505. enum ServiceCategoryType ServiceCategory; //Optional
  2506. };
  2507. struct ServiceDiscoveryRequest_ISO15118_2014
  2508. {
  2509. unsigned char ServiceScope[32]; //Optional
  2510. enum ServiceCategoryType ServiceCategory; //Optional
  2511. };
  2512. struct ServiceDiscoveryRequest_ISO15118_2018
  2513. {
  2514. struct ServiceIDListType SupportedServiceIDs; //Optional
  2515. };
  2516. /****ServiceDiscoveryResponse****/
  2517. struct ServiceDiscoveryResponse_DIN70121
  2518. {
  2519. enum ResponseCodeType_DIN70121 ResponseCode;
  2520. struct PaymentOptionListType PaymentOptions;
  2521. struct ServiceChargeType ChargeService_DIN70121;
  2522. };
  2523. struct ServiceDiscoveryResponse_ISO15118_2014
  2524. {
  2525. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2526. struct PaymentOptionListType PaymentOptions;
  2527. struct ChargeServiceType ChargeService;
  2528. struct ServiceListType ServiceList; //Optional
  2529. };
  2530. struct ServiceDiscoveryResponse_ISO15118_2018
  2531. {
  2532. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2533. struct EVSEStatusType EVSEStatus; //Optional
  2534. struct IdentificationOptionListType IdentificationOptionList;
  2535. struct ServiceListType EnergyTransferServiceList;
  2536. struct ServiceListType VASList; //Optional
  2537. };
  2538. /****ServiceDetailRequest****/
  2539. //Only in ISO15118_2014 and ISO15118_2018
  2540. struct ServiceDetailRequest_ISO15118_2014
  2541. {
  2542. unsigned short ServiceID;
  2543. };
  2544. struct ServiceDetailRequest_ISO15118_2018
  2545. {
  2546. unsigned short ServiceID;
  2547. struct WPT_SDlEnergyTransferModeType WPT_SDlEnergyTransferMode;
  2548. };
  2549. /****ServiceDetailResponse****/
  2550. struct ServiceDetailResponse_ISO15118_2014
  2551. {
  2552. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2553. unsigned short ServiceID;
  2554. struct ServiceParameterListType ServiceParameterList;
  2555. };
  2556. struct ServiceDetailResponse_ISO15118_2018
  2557. {
  2558. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2559. unsigned short ServiceID;
  2560. struct ServiceParameterListType ServiceParameterList;
  2561. struct EVSEStatusType EVSEStatus; //Optional
  2562. };
  2563. /****ServiceAndPaymentSelectionRequest / ServiceSelectionRequest****/
  2564. struct ServiceAndPaymentSelectionRequest_DIN70121
  2565. {
  2566. enum PaymentOptionType SelectedPaymentOption;
  2567. struct SelectedServiceListType SelectedServiceList;
  2568. };
  2569. struct ServiceAndPaymentSelectionRequest_ISO15118_2014
  2570. {
  2571. enum PaymentOptionType SelectedPaymentOption;
  2572. struct SelectedServiceListType SelectedServiceList;
  2573. };
  2574. struct ServiceSelectionRequest_ISO15118_2018
  2575. {
  2576. enum PaymentOptionType SelectedPaymentOption;
  2577. struct SelectedServiceType SelectedEnergyTransferService;
  2578. struct SelectedServiceListType SelectedVASList;
  2579. enum ProcessingType EVProcessing;
  2580. };
  2581. /****ServiceAndPaymentSelectionResponse / ServiceSelectionResponse****/
  2582. struct ServiceAndPaymentSelectionResponse_DIN70121
  2583. {
  2584. enum ResponseCodeType_DIN70121 ResponseCode;
  2585. };
  2586. struct ServiceAndPaymentSelectionResponse_ISO15118_2014
  2587. {
  2588. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2589. };
  2590. struct ServiceSelectionResponse_ISO15118_2018
  2591. {
  2592. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2593. struct EVSEStatusType EVSEStatus; //Optional
  2594. };
  2595. /****PaymentDetailsRequest / IdentificationDetailsRequest****/
  2596. struct PaymentDetailsRequest_ISO15118_2014
  2597. {
  2598. unsigned char eMAID[16];
  2599. struct CertificateChainType ContractSignatureCertChain;
  2600. };
  2601. struct IdentificationDetailsRequest_ISO15118_2018
  2602. {
  2603. struct CertificateChainType ContractSignatureCertChain;
  2604. };
  2605. /****PaymentDetailsResponse / IdentificationDetailsResponse ****/
  2606. struct PaymentDetailsResponse_ISO15118_2014
  2607. {
  2608. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2609. unsigned char GenChallenge[16];
  2610. long EVSETimeStamp;
  2611. };
  2612. struct IdentificationDetailsResponse_ISO15118_2018
  2613. {
  2614. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2615. struct EVSEStatusType EVSEStatus; //Optional
  2616. unsigned char GenChallenge[16];
  2617. enum ProcessingType EVSEProcessing;
  2618. };
  2619. /****ContractAuthenticationRequest / AuthorizationRequest****/
  2620. struct ContractAuthenticationRequest_DIN70121
  2621. {
  2622. //None
  2623. };
  2624. struct AuthorizationRequest_ISO15118_2014
  2625. {
  2626. unsigned char GenChallenge[16]; //Optional
  2627. unsigned char Id[32]; //Optional
  2628. };
  2629. struct AuthorizationRequest_ISO15118_2018
  2630. {
  2631. struct PNC_AReqIdentificationModeType PNC_AReqIdentificationMode; //Optional
  2632. };
  2633. /****ContractAuthenticationResponse / AuthorizationResponse****/
  2634. struct ContractAuthenticationResponse_DIN70121
  2635. {
  2636. enum ResponseCodeType_DIN70121 ResponseCode;
  2637. enum EVSEProcessingType_DIN70121 EVSEProcessing;
  2638. };
  2639. struct AuthorizationResponse_ISO15118_2014
  2640. {
  2641. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2642. enum EVSEProcessingType_ISO15118_2014 EVSEProcessing;
  2643. };
  2644. struct AuthorizationResponse_ISO15118_2018
  2645. {
  2646. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2647. enum ProcessingType EVSEProcessing;
  2648. struct EVSEStatusType EVSEStatus; //Optional
  2649. };
  2650. /****ChargeParameterDiscoveryRequest****/
  2651. struct ChargeParameterDiscoveryRequest_DIN70121
  2652. {
  2653. enum EnergyTransferModeType EVRequestedEnergyTransferType;
  2654. struct DC_EVChargeParameterType_DIN70121 DC_EVChargeParameter;
  2655. };
  2656. struct ChargeParameterDiscoveryRequest_ISO15118_2014
  2657. {
  2658. unsigned short MaxEntriesSAScheduleTuple; //Optional
  2659. enum EnergyTransferModeType RequestedEnergyTransferMode;
  2660. struct AC_EVChargeParameterType AC_EVChargeParameter;
  2661. struct DC_EVChargeParameterType_ISO15118_2014 DC_EVChargeParameter;
  2662. };
  2663. struct ChargeParameterDiscoveryRequest_ISO15118_2018
  2664. {
  2665. struct Dynamic_CPDReqControlModeType Dynamic_CPDReqControlMode;
  2666. struct Scheduled_CPDReqControlModeType Scheduled_CPDReqControlMode;
  2667. struct AC_CPDReqEnergyTransferModeType AC_CPDReqEnergyTransferMode;
  2668. struct DC_CPDReqEnergyTransferModeType DC_CPDReqEnergyTransferMode;
  2669. struct BPT_AC_CPDReqEnergyTransferModeType BPT_AC_CPDReqEnergyTransferMode;
  2670. struct BPT_DC_CPDReqEnergyTransferModeType BPT_DC_CPDReqEnergyTransferMode;
  2671. struct WPT_CPDReqEnergyTransferModeType WPT_CPDReqEnergyTransferMode;
  2672. struct ACD_CPDReqEnergyTransferModeType ACD_CPDReqEnergyTransferMode;
  2673. };
  2674. /****ChargeParameterDiscoveryResponse****/
  2675. struct ChargeParameterDiscoveryResponse_DIN70121
  2676. {
  2677. enum ResponseCodeType_DIN70121 ResponseCode;
  2678. enum EVSEProcessingType_DIN70121 EVSEProcessing;
  2679. struct SAScheduleListType SAScheduleList;
  2680. struct DC_EVSEChargeParameterType_DIN70121 DC_EVSEChargeParameter;
  2681. };
  2682. struct ChargeParameterDiscoveryResponse_ISO15118_2014
  2683. {
  2684. enum EVSEProcessingType_ISO15118_2014 EVSEProcessing;
  2685. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2686. struct SAScheduleListType SAScheduleList;
  2687. struct AC_EVSEChargeParameterType AC_EVSEChargeParameter;
  2688. struct DC_EVSEChargeParameterType_ISO15118_2014 DC_EVSEChargeParameter;
  2689. };
  2690. struct ChargeParameterDiscoveryResponse_ISO15118_2018
  2691. {
  2692. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2693. struct EVSEStatusType EVSEStatus; //Optional
  2694. enum ProcessingType EVSEProcessing;
  2695. struct Scheduled_CPDResControlModeType Scheduled_CPDResControlMode; //Optional
  2696. struct AC_CPDResEnergyTransferModeType AC_CPDResEnergyTransferMode;
  2697. struct DC_CPDResEnergyTransferModeType DC_CPDResEnergyTransferMode;
  2698. struct BPT_AC_CPDResEnergyTransferModeType BPT_AC_CPDResEnergyTransferMode;
  2699. struct BPT_DC_CPDResEnergyTransferModeType BPT_DC_CPDResEnergyTransferMode;
  2700. struct WPT_CPDResEnergyTransferModeType WPT_CPDResEnergyTransferMode;
  2701. struct ACD_CPDResEnergyTransferModeType ACD_CPDResEnergyTransferMode;
  2702. };
  2703. /****PowerDeliveryRequest****/
  2704. struct PowerDeliveryRequest_DIN70121
  2705. {
  2706. BOOL ReadyToChargeState;
  2707. struct ChargingProfileType_DIN70121 ChargingProfile;
  2708. struct DC_EVPowerDeliveryParameterType_DIN70121 DC_EVPowerDeliveryParameter;
  2709. };
  2710. struct PowerDeliveryRequest_ISO15118_2014
  2711. {
  2712. enum ChargeProgressType_ISO15118_2014 ChargeProgress;
  2713. short SAScheduleTupleID;
  2714. struct ChargingProfileType_ISO15118_2014 ChargingProfile;
  2715. struct DC_EVPowerDeliveryParameterType_ISO15118_2014 DC_EVPowerDeliveryParameter;
  2716. };
  2717. struct PowerDeliveryRequest_ISO15118_2018
  2718. {
  2719. enum ChargeProgressType_ISO15118_2018 ChargeProgress;
  2720. struct Scheduled_PDReqControlModeType Scheduled_PDReqControlMode;
  2721. struct BPT_Scheduled_PDReqControlModeType BPT_Scheduled_PDReqControlMode;
  2722. };
  2723. /****PowerDeliveryResponse****/
  2724. struct PowerDeliveryResponse_DIN70121
  2725. {
  2726. enum ResponseCodeType_DIN70121 ResponseCode;
  2727. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  2728. };
  2729. struct PowerDeliveryResponse_ISO15118_2014
  2730. {
  2731. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2732. struct AC_EVSEStatusType AC_EVSEStatus;
  2733. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  2734. };
  2735. struct PowerDeliveryResponse_ISO15118_2018
  2736. {
  2737. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2738. struct EVSEStatusType EVSEStatus; //Optional
  2739. };
  2740. /****CertificateUpdateRequest****/
  2741. struct CertificateUpdateRequest_ISO15118_2014
  2742. {
  2743. unsigned char Id[32];
  2744. struct CertificateChainType ContractSignatureCertChain;
  2745. unsigned char eMAID[16];
  2746. struct ListOfRootCertificateIDsType ListOfRootCertificateIDs;
  2747. };
  2748. /****CertificateUpdateResponse****/
  2749. struct CertificateUpdateResponse_ISO15118_2014
  2750. {
  2751. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2752. struct CertificateChainType SAProvisioningCertificateChain;
  2753. struct CertificateChainType ContractSignatureCertChain;
  2754. struct ContractSignatureEncryptedPrivateKeyType ContractSignatureEncryptedPrivateKey;
  2755. struct DiffieHellmanPublickeyType DHpublickey;
  2756. unsigned char eMAID[16];
  2757. short RetryCounter; //Optional
  2758. };
  2759. /****CertificateInstallationRequest****/
  2760. struct CertificateInstallationRequest_ISO15118_2014
  2761. {
  2762. unsigned char Id[32];
  2763. unsigned char OEMProvisioningCert[800];
  2764. struct ListOfRootCertificateIDsType ListOfRootCertificateIDs;
  2765. };
  2766. struct CertificateInstallationRequest_ISO15118_2018
  2767. {
  2768. unsigned char Id[32];
  2769. struct CertificateChainType OEMProvisioningCertChain;
  2770. struct ListOfRootCertificateIDsType ListOfRootCertificateIDs;
  2771. unsigned short MaxSupportedCerts;
  2772. };
  2773. /****CertificateInstallationResponse****/
  2774. struct CertificateInstallationResponse_ISO15118_2014
  2775. {
  2776. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2777. struct CertificateChainType SAProvisioningCertificateChain;
  2778. struct CertificateChainType ContractSignatureCertChain;
  2779. struct ContractSignatureEncryptedPrivateKeyType ContractSignatureEncryptedPrivateKey;
  2780. struct DiffieHellmanPublickeyType DHpublickey;
  2781. unsigned char eMAID[16];
  2782. };
  2783. struct CertificateInstallationResponse_ISO15118_2018
  2784. {
  2785. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2786. struct EVSEStatusType EVSEStatus; //Optional
  2787. struct CertificateChainType SAProvisioningCertificateChain;
  2788. struct CertificateChainType ContractCertificateChain;
  2789. struct ContractCertificateEncryptedPrivateKeyType ContractEncryptedPrivateKey;
  2790. struct DiffieHellmanPublickeyType DHpublickey;
  2791. enum ProcessingType EVSEProcessing;
  2792. unsigned short RemainingContractCertificateChains;
  2793. };
  2794. /****SystemStatusRequest****/
  2795. struct SystemStatusRequest_ISO15118_2018
  2796. {
  2797. enum mechanicalChargingDeviceStatusType EVMechanicalChargingDeviceStatus;
  2798. struct EVTechnicalStatusType EVTechnicalStatus;
  2799. unsigned char EV_OEMStatus[800]; //Optional
  2800. };
  2801. /****SystemStatusResponse****/
  2802. struct SystemStatusResponse_ISO15118_2018
  2803. {
  2804. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2805. enum mechanicalChargingDeviceStatusType EVSEMechanicalChargingDeviceStatus;
  2806. BOOL EVSE_ReadyToCharge;
  2807. enum IsolationStatusType EVSE_IsolationStatus;
  2808. BOOL EVSE_Disabled;
  2809. BOOL EVSE_UtilityInterruptEvent;
  2810. BOOL EVSE_EmergencyShutdown;
  2811. BOOL EVSE_Malfunction;
  2812. BOOL EV_InChargePosition;
  2813. BOOL EV_AssociationStatus;
  2814. };
  2815. /****SessionStopRequest****/
  2816. struct SessionStopRequest_DIN70121
  2817. {
  2818. //No member in standard
  2819. };
  2820. struct SessionStopRequest_ISO15118_2014
  2821. {
  2822. enum ChargingSessionType ChargingSession;
  2823. };
  2824. struct SessionStopRequest_ISO15118_2018
  2825. {
  2826. enum ChargingSessionType ChargingSession;
  2827. };
  2828. /****SessionStopResponse****/
  2829. struct SessionStopResponse_DIN70121
  2830. {
  2831. enum ResponseCodeType_DIN70121 ResponseCode;
  2832. };
  2833. struct SessionStopResponse_ISO15118_2014
  2834. {
  2835. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2836. };
  2837. struct SessionStopResponse_ISO15118_2018
  2838. {
  2839. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2840. struct EVSEStatusType EVSEStatus; //Optional
  2841. };
  2842. /****MeteringReceiptRequest****/
  2843. struct MeteringReceiptRequest_ISO15118_2014
  2844. {
  2845. unsigned char Id[32]; //Optional
  2846. unsigned char SessionID[8];
  2847. short SAScheduleTupleID; //Optional
  2848. struct MeterInfoType_ISO15118_2014 MeterInfo;
  2849. };
  2850. struct MeteringReceiptRequest_ISO15118_2018
  2851. {
  2852. unsigned char Id[32]; //Optional
  2853. unsigned char SessionID[8];
  2854. struct Scheduled_MRReqControlModeType Schedule_MRReqControlMode;
  2855. struct MeterInfoType_ISO15118_2018 MeterInfo;
  2856. };
  2857. /****MeteringReceiptResponse****/
  2858. struct MeteringReceiptResponse_ISO15118_2014
  2859. {
  2860. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2861. struct AC_EVSEStatusType AC_EVSEStatus;
  2862. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  2863. };
  2864. struct MeteringReceiptResponse_ISO15118_2018
  2865. {
  2866. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2867. struct EVSEStatusType EVSEStatus; //Optional
  2868. };
  2869. /****ChargingStatusRequest (AC Only)****/
  2870. struct ChargingStatusRequest_ISO15118_2014
  2871. {
  2872. //No member in standard
  2873. };
  2874. struct ChargingStatusRequest_ISO15118_2018
  2875. {
  2876. struct PnC_CLReqIdentificationModeType PnC_CLReqIdentificationMode;
  2877. struct Dynamic_CSReqControlModeType Dynamic_CSReqControlMode;
  2878. struct Scheduled_CSReqControlModeType Scheduled_CSReqControlMode;
  2879. struct DisplayParametersType DisplayParameters;
  2880. };
  2881. /****ChargingStatusResponse (AC Only)****/
  2882. struct ChargingStatusResponse_ISO15118_2014
  2883. {
  2884. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2885. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  2886. short SAScheduleTupleID;
  2887. struct PhysicalValueType_ISO15118_2014 EVSEMaxCurrent; //Optional
  2888. struct MeterInfoType_ISO15118_2014 MeterInfo; //Optional
  2889. BOOL ReceiptRequired; //Optional
  2890. struct AC_EVSEStatusType AC_EVSEStatus;
  2891. };
  2892. struct ChargingStatusResponse_ISO15118_2018
  2893. {
  2894. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2895. struct EVSEStatusType EVSEStatus; //Optional
  2896. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  2897. struct PhysicalValueType_ISO15118_2018 EVSETargetFrequency; //Optional
  2898. struct PnC_CLResIdentificationModeType PnC_CLResIdentificationMode;
  2899. struct Dynamic_CSResControlModeType Dynamic_CSResControlMode;
  2900. struct Scheduled_CSReqControlModeType Scheduled_CSReqControlMode;
  2901. };
  2902. /****CableCheckRequest (DC Only)****/
  2903. struct CableCheckRequest_DIN70121
  2904. {
  2905. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  2906. };
  2907. struct CableCheckRequest_ISO15118_2014
  2908. {
  2909. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  2910. };
  2911. struct CableCheckRequest_ISO15118_2018
  2912. {
  2913. //No member in standard
  2914. };
  2915. /****CableCheckResponse (DC Only)****/
  2916. struct CableCheckResponse_DIN70121
  2917. {
  2918. enum ResponseCodeType_DIN70121 ResponseCode;
  2919. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  2920. enum EVSEProcessingType_DIN70121 EVSEProcessing;
  2921. };
  2922. struct CableCheckResponse_ISO15118_2014
  2923. {
  2924. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2925. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  2926. enum EVSEProcessingType_ISO15118_2014 EVSEProcessing;
  2927. };
  2928. struct CableCheckResponse_ISO15118_2018
  2929. {
  2930. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2931. struct EVSEStatusType EVSEStatus; //Optional
  2932. enum ProcessingType EVSEProcessing;
  2933. };
  2934. /****PreChargeRequest (DC Only)****/
  2935. struct PreChargeRequest_DIN70121
  2936. {
  2937. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  2938. struct PhysicalValueType_DIN70121 EVTargetVoltage;
  2939. struct PhysicalValueType_DIN70121 EVTargetCurrent;
  2940. };
  2941. struct PreChargeRequest_ISO15118_2014
  2942. {
  2943. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  2944. struct PhysicalValueType_ISO15118_2014 EVTargetVoltage;
  2945. struct PhysicalValueType_ISO15118_2014 EVTargetCurrent;
  2946. };
  2947. struct PreChargeRequest_ISO15118_2018
  2948. {
  2949. struct PhysicalValueType_ISO15118_2018 EVTargetVoltage;
  2950. struct PhysicalValueType_ISO15118_2018 EVTargetCurrent;
  2951. };
  2952. /****PreChargeResponse (DC Only)****/
  2953. struct PreChargeResponse_DIN70121
  2954. {
  2955. enum ResponseCodeType_DIN70121 ResponseCode;
  2956. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  2957. struct PhysicalValueType_DIN70121 EVSEPresentVoltage;
  2958. };
  2959. struct PreChargeResponse_ISO15118_2014
  2960. {
  2961. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  2962. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  2963. struct PhysicalValueType_ISO15118_2014 EVSEPresentVoltage;
  2964. };
  2965. struct PreChargeResponse_ISO15118_2018
  2966. {
  2967. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  2968. struct EVSEStatusType EVSEStatus; //Optional
  2969. struct PhysicalValueType_ISO15118_2018 EVSEPresentVoltage;
  2970. };
  2971. /****CurrentDemandRequest (DC Only)****/
  2972. struct CurrentDemandRequest_DIN70121
  2973. {
  2974. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  2975. struct PhysicalValueType_DIN70121 EVTargetCurrent;
  2976. struct PhysicalValueType_DIN70121 EVMaximumVoltageLimit; //Optional
  2977. struct PhysicalValueType_DIN70121 EVMaximumCurrentLimit; //Optional
  2978. struct PhysicalValueType_DIN70121 EVMaximumPowerLimit; //Optional
  2979. BOOL BulkChargingComplete; //Optional
  2980. BOOL ChargingComplete;
  2981. struct PhysicalValueType_DIN70121 RemainingTimeToFullSoC; //Optional
  2982. struct PhysicalValueType_DIN70121 RemainingTimeToBulkSoC; //Optional
  2983. struct PhysicalValueType_DIN70121 EVTargetVoltage;
  2984. };
  2985. struct CurrentDemandRequest_ISO15118_2014
  2986. {
  2987. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  2988. struct PhysicalValueType_ISO15118_2014 EVTargetCurrent;
  2989. struct PhysicalValueType_ISO15118_2014 EVMaximumVoltageLimit; //Optional
  2990. struct PhysicalValueType_ISO15118_2014 EVMaximumCurrentLimit; //Optional
  2991. struct PhysicalValueType_ISO15118_2014 EVMaximumPowerLimit; //Optional
  2992. BOOL BulkChargingComplete; //Optional
  2993. BOOL ChargingComplete;
  2994. struct PhysicalValueType_ISO15118_2014 RemainingTimeToFullSoC; //Optional
  2995. struct PhysicalValueType_ISO15118_2014 RemainingTimeToBulkSoC; //Optional
  2996. struct PhysicalValueType_ISO15118_2014 EVTargetVoltage;
  2997. };
  2998. struct CurrentDemandRequest_ISO15118_2018
  2999. {
  3000. struct DisplayParametersType DisplayParameters; //Optional
  3001. struct PnC_CLReqIdentificationModeType PnC_CLReqIdentificationMode;
  3002. struct Dynamic_CSReqControlModeType Dynamic_CDReqControlMode;
  3003. struct Scheduled_CSReqControlModeType Scheduled_CDReqControlMode;
  3004. };
  3005. /****CurrentDemandResponse (DC Only)****/
  3006. struct CurrentDemandResponse_DIN70121
  3007. {
  3008. enum ResponseCodeType_DIN70121 ResponseCode;
  3009. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  3010. struct PhysicalValueType_DIN70121 EVSEPresentVoltage;
  3011. struct PhysicalValueType_DIN70121 EVSEPresentCurrent;
  3012. BOOL EVSECurrentLimitAchieved;
  3013. BOOL EVSEVoltageLimitAchieved;
  3014. BOOL EVSEPowerLimitAchieved;
  3015. struct PhysicalValueType_DIN70121 EVSEMaximumVoltageLimit; //Optional
  3016. struct PhysicalValueType_DIN70121 EVSEMaximumCurrentLimit; //Optional
  3017. struct PhysicalValueType_DIN70121 EVSEMaximumPowerLimit; //Optional
  3018. };
  3019. struct CurrentDemandResponse_ISO15118_2014
  3020. {
  3021. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  3022. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  3023. struct PhysicalValueType_ISO15118_2014 EVSEPresentVoltage;
  3024. struct PhysicalValueType_ISO15118_2014 EVSEPresentCurrent;
  3025. BOOL EVSECurrentLimitAchieved;
  3026. BOOL EVSEVoltageLimitAchieved;
  3027. BOOL EVSEPowerLimitAchieved;
  3028. struct PhysicalValueType_ISO15118_2014 EVSEMaximumVoltageLimit; //Optional
  3029. struct PhysicalValueType_ISO15118_2014 EVSEMaximumCurrentLimit; //Optional
  3030. struct PhysicalValueType_ISO15118_2014 EVSEMaximumPowerLimit; //Optional
  3031. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  3032. short SAScheduleTupleID;
  3033. struct MeterInfoType_ISO15118_2014 MeterInfo; //Optional
  3034. BOOL ReceiptRequired; //Optional
  3035. };
  3036. struct CurrentDemandResponse_ISO15118_2018
  3037. {
  3038. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  3039. struct EVSEStatusType EVSEStatus; //Optional
  3040. struct PhysicalValueType_ISO15118_2018 EVSEPresentVoltage;
  3041. struct PhysicalValueType_ISO15118_2018 EVSEPresentCurrent;
  3042. BOOL EVSECurrentLimitAchieved;
  3043. BOOL EVSEVoltageLimitAchieved;
  3044. BOOL EVSEPowerLimitAchieved;
  3045. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeVoltage; //Optional
  3046. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargeCurrent; //Optional
  3047. struct PhysicalValueType_ISO15118_2018 EVSEMaximumChargePower; //Optional
  3048. unsigned char EVSEID[40]; //DIN70121=>Max length:32, ISO15118=>min length:7, max length:37
  3049. struct PnC_CLResIdentificationModeType PnC_CLResIdentificationMode;
  3050. struct Scheduled_CDResControlModeType Scheduled_CDResControlMode;
  3051. };
  3052. /****WeldingDetectionRequest (DC Only)*****/
  3053. struct WeldingDetectionRequest_DIN70121
  3054. {
  3055. struct DC_EVStatusType_DIN70121 DC_EVStatus;
  3056. };
  3057. struct WeldingDetectionRequest_ISO15118_2014
  3058. {
  3059. struct DC_EVStatusType_ISO15118_2014 DC_EVStatus;
  3060. };
  3061. struct WeldingDetectionRequest_ISO15118_2018
  3062. {
  3063. //No member in Standard
  3064. };
  3065. /****WeldingDetectionResponse (DC Only)****/
  3066. struct WeldingDetectionResponse_DIN70121
  3067. {
  3068. enum ResponseCodeType_DIN70121 ResponseCode;
  3069. struct DC_EVSEStatusType_DIN70121 DC_EVSEStatus;
  3070. struct PhysicalValueType_DIN70121 EVSEPresentVoltage;
  3071. };
  3072. struct WeldingDetectionResponse_ISO15118_2014
  3073. {
  3074. enum ResponseCodeType_ISO15118_2014 ResponseCode;
  3075. struct DC_EVSEStatusType_ISO15118_2014 DC_EVSEStatus;
  3076. struct PhysicalValueType_ISO15118_2014 EVSEPresentVoltage;
  3077. };
  3078. struct WeldingDetectionResponse_ISO15118_2018
  3079. {
  3080. enum ResponseCodeType_ISO15118_2018 ResponseCode;
  3081. struct EVSEStatusType EVSEStatus; //Optional
  3082. struct PhysicalValueType_ISO15118_2018 EVSEPresentVoltage;
  3083. };
  3084. /****FinePositioningSetupRequest (WPT Only)****/
  3085. struct FinePositioningSetupRequest_ISO15118_2018
  3086. {
  3087. struct LFA_EVFinePositioningSetupParametersType LFA_EVFinePositioningSetupParameters; //Optional
  3088. };
  3089. /****FinePositioningSetupResponse (WPT Only)****/
  3090. struct FinePositioningSetupResponse_ISO15118_2018
  3091. {
  3092. //NOT complete yet, to be continue.....
  3093. };
  3094. struct V2GMessageType_DIN70121
  3095. {
  3096. unsigned char SelfTest_Comp;
  3097. unsigned char version[16];
  3098. unsigned char PresentMsgFlowStatus;
  3099. /* 0: Idle(wait B2 state), 1: CM_SLAC_PARM.REQ, 2: CM_SLAC_PARM.CNF, 3: CM_START_ATTEN_CHAR.IND
  3100. 4: CM_MNBC_SOUND.IND, 5: CM_ATTEN_CHAR.IND, 6: CM_ATTEN_CHAR.RSP, 7: CM_VALIDATE.REQ
  3101. 8: CM_VALIDATE.CNF, 9: CM_SLAC_MATCH.REQ, 10: CM_SLAC_MATCH.CNF, 11: CM_AMP_MAP.REQ
  3102. 12: CM_AMP_MAP.CNF, 13: SLACC/SDP/TCP connection,
  3103. 16: SupportedAppProtocolRequest, 17: SupportedAppProtocolResponse, 18: SessionSetupRequest
  3104. 19: SessionSetupResponse, 20: ServiceDiscoveryRequest, 21: ServiceDiscoveryResponse
  3105. 22: ServiceDetailRequest, 23: ServiceDetailResponse
  3106. 24: ServiceAndPaymentSelectionRequest/ServiceSelectionRequest, 25: ServiceAndPaymentSelectionResponse/ServiceSelectionResponse
  3107. 26: PaymentDetailsRequest/IdentificationDetailsRequest;, 27: PaymentDetailsResponse/IdentificationDetailsResponse,
  3108. 28: AuthorizationRequest, 29: AuthorizationResponse,
  3109. 30: CertificateUpdateRequest, 31: CertificateUpdateResponse, 32:CertificateInstallationRequest, 33: CertificateInstallationResponse
  3110. 34: ChargeParameterDiscoveryRequest, 35: ChargeParameterDiscoveryResponse
  3111. 36: CableCheckRequest, 37: CableCheckResponse, 38: PreChargeRequest, 39: PreChargeResponse
  3112. 40: PowerDeliveryRequest start, 41: PowerDeliveryResponse start, 42: ChargingStatusRequest, 43: ChargingStatusResponse
  3113. 44: CurrentDemandRequest, 45: CurrentDemandResponse, 46: MeteringReceiptRequest, 47: MeteringReceiptResponse
  3114. 48: PowerDeliveryRequest end, 49: PowerDeliveryRequest end, 50: WeldingDetectionRequest, 51: WeldingDetectionResponse,
  3115. 52: SessionStopRequest, 53: SessionStopResponse
  3116. 253: Performance Timeout, 254: Sequence Timeout, 255: Fault
  3117. */
  3118. struct SupportedAppProtocolRequest_DIN70121 SupportedAppProtocolRequest;
  3119. struct SupportedAppProtocolResponse_DIN70121 SupportedAppProtocolResponse;
  3120. struct SessionSetupRequest_DIN70121 SessionSetupRequest;
  3121. struct SessionSetupResponse_DIN70121 SessionSetupResponse;
  3122. struct ServiceDiscoveryRequest_DIN70121 ServiceDiscoveryRequest;
  3123. struct ServiceDiscoveryResponse_DIN70121 ServiceDiscoveryResponse;
  3124. struct ServiceAndPaymentSelectionRequest_DIN70121 ServiceAndPaymentSelectionRequest;
  3125. struct ServiceAndPaymentSelectionResponse_DIN70121 ServiceAndPaymentSelectionResponse;
  3126. struct ContractAuthenticationRequest_DIN70121 ContractAuthenticationRequest;
  3127. struct ContractAuthenticationResponse_DIN70121 ContractAuthenticationResponse;
  3128. struct ChargeParameterDiscoveryRequest_DIN70121 ChargeParameterDiscoveryRequest;
  3129. struct ChargeParameterDiscoveryResponse_DIN70121 ChargeParameterDiscoveryResponse;
  3130. struct CableCheckRequest_DIN70121 CableCheckRequest;
  3131. struct CableCheckResponse_DIN70121 CableCheckResponse;
  3132. struct PreChargeRequest_DIN70121 PreChargeRequest;
  3133. struct PreChargeResponse_DIN70121 PreChargeResponse;
  3134. struct PowerDeliveryRequest_DIN70121 PowerDeliveryRequest;
  3135. struct PowerDeliveryResponse_DIN70121 PowerDeliveryResponse;
  3136. struct CurrentDemandRequest_DIN70121 CurrentDemandRequest;
  3137. struct CurrentDemandResponse_DIN70121 CurrentDemandResponse;
  3138. struct WeldingDetectionRequest_DIN70121 WeldingDetectionRequest;
  3139. struct WeldingDetectionResponse_DIN70121 WeldingDetectionResponse;
  3140. struct SessionStopRequest_DIN70121 SessionStopRequest;
  3141. struct SessionStopResponse_DIN70121 SessionStopResponse;
  3142. };
  3143. struct V2GMessageType_ISO15118_2014
  3144. {
  3145. unsigned char PresentMsgFlowStatus;
  3146. /* 0: Idle(wait B2 state), 1: CM_SLAC_PARM.REQ, 2: CM_SLAC_PARM.CNF, 3: CM_START_ATTEN_CHAR.IND
  3147. 4: CM_MNBC_SOUND.IND, 5: CM_ATTEN_CHAR.IND, 6: CM_ATTEN_CHAR.RSP, 7: CM_VALIDATE.REQ
  3148. 8: CM_VALIDATE.CNF, 9: CM_SLAC_MATCH.REQ, 10: CM_SLAC_MATCH.CNF, 11: CM_AMP_MAP.REQ
  3149. 12: CM_AMP_MAP.CNF, 13: SLACC/SDP/TCP connection,
  3150. 16: SupportedAppProtocolRequest, 17: SupportedAppProtocolResponse, 18: SessionSetupRequest
  3151. 19: SessionSetupResponse, 20: ServiceDiscoveryRequest, 21: ServiceDiscoveryResponse
  3152. 22: ServiceDetailRequest, 23: ServiceDetailResponse
  3153. 24: ServiceAndPaymentSelectionRequest/ServiceSelectionRequest, 25: ServiceAndPaymentSelectionResponse/ServiceSelectionResponse
  3154. 26: PaymentDetailsRequest/IdentificationDetailsRequest;, 27: PaymentDetailsResponse/IdentificationDetailsResponse,
  3155. 28: AuthorizationRequest, 29: AuthorizationResponse,
  3156. 30: CertificateUpdateRequest, 31: CertificateUpdateResponse, 32:CertificateInstallationRequest, 33: CertificateInstallationResponse
  3157. 34: ChargeParameterDiscoveryRequest, 35: ChargeParameterDiscoveryResponse
  3158. 36: CableCheckRequest, 37: CableCheckResponse, 38: PreChargeRequest, 39: PreChargeResponse
  3159. 40: PowerDeliveryRequest start, 41: PowerDeliveryResponse start, 42: ChargingStatusRequest, 43: ChargingStatusResponse
  3160. 44: CurrentDemandRequest, 45: CurrentDemandResponse, 46: MeteringReceiptRequest, 47: MeteringReceiptResponse
  3161. 48: PowerDeliveryRequest end, 49: PowerDeliveryRequest end, 50: WeldingDetectionRequest, 51: WeldingDetectionResponse,
  3162. 52: SessionStopRequest, 53: SessionStopResponse
  3163. 253: Performance Timeout, 254: Sequence Timeout, 255: Fault
  3164. */
  3165. struct SupportedAppProtocolRequest_ISO15118_2014 SupportedAppProtocolRequest;
  3166. struct SupportedAppProtocolResponse_ISO15118_2014 SupportedAppProtocolResponse;
  3167. struct SessionSetupRequest_ISO15118_2014 SessionSetupRequest;
  3168. struct SessionSetupResponse_ISO15118_2014 SessionSetupResponse;
  3169. struct ServiceDiscoveryRequest_ISO15118_2014 ServiceDiscoveryRequest;
  3170. struct ServiceDiscoveryResponse_ISO15118_2014 ServiceDiscoveryResponse;
  3171. struct ServiceDetailRequest_ISO15118_2014 ServiceDetailRequest;
  3172. struct ServiceDetailResponse_ISO15118_2014 ServiceDetailResponse;
  3173. struct ServiceAndPaymentSelectionRequest_ISO15118_2014 ServiceAndPaymentSelectionRequest;
  3174. struct ServiceAndPaymentSelectionResponse_ISO15118_2014 ServiceAndPaymentSelectionResponse;
  3175. struct PaymentDetailsRequest_ISO15118_2014 PaymentDetailsRequest;
  3176. struct PaymentDetailsResponse_ISO15118_2014 PaymentDetailsResponse;
  3177. struct AuthorizationRequest_ISO15118_2014 AuthorizationRequest;
  3178. struct AuthorizationResponse_ISO15118_2014 AuthorizationResponse;
  3179. struct CertificateUpdateRequest_ISO15118_2014 CertificateUpdateRequest;
  3180. struct CertificateUpdateResponse_ISO15118_2014 CertificateUpdateResponse;
  3181. struct CertificateInstallationRequest_ISO15118_2014 CertificateInstallationRequest;
  3182. struct CertificateInstallationResponse_ISO15118_2014 CertificateInstallationResponse;
  3183. struct ChargeParameterDiscoveryRequest_ISO15118_2014 ChargeParameterDiscoveryRequest;
  3184. struct ChargeParameterDiscoveryResponse_ISO15118_2014 ChargeParameterDiscoveryResponse;
  3185. struct CableCheckRequest_ISO15118_2014 CableCheckRequest;
  3186. struct CableCheckResponse_ISO15118_2014 CableCheckResponse;
  3187. struct PreChargeRequest_ISO15118_2014 PreChargeRequest;
  3188. struct PreChargeResponse_ISO15118_2014 PreChargeResponse;
  3189. struct PowerDeliveryRequest_ISO15118_2014 PowerDeliveryRequest;
  3190. struct PowerDeliveryResponse_ISO15118_2014 PowerDeliveryResponse;
  3191. struct ChargingStatusRequest_ISO15118_2014 ChargingStatusRequest;
  3192. struct ChargingStatusResponse_ISO15118_2014 ChargingStatusResponse;
  3193. struct CurrentDemandRequest_ISO15118_2014 CurrentDemandRequest;
  3194. struct CurrentDemandResponse_ISO15118_2014 CurrentDemandResponse;
  3195. struct MeteringReceiptRequest_ISO15118_2014 MeteringReceiptRequest;
  3196. struct MeteringReceiptResponse_ISO15118_2014 MeteringReceiptResponse;
  3197. struct WeldingDetectionRequest_ISO15118_2014 WeldingDetectionRequest;
  3198. struct WeldingDetectionResponse_ISO15118_2014 WeldingDetectionResponse;
  3199. struct SessionStopRequest_ISO15118_2014 SessionStopRequest;
  3200. struct SessionStopResponse_ISO15118_2014 SessionStopResponse;
  3201. };
  3202. struct V2GMessageType_ISO15118_2018
  3203. {
  3204. unsigned char PresentMsgFlowStatus;
  3205. /* 0: Idle(wait B2 state), 1: CM_SLAC_PARM.REQ, 2: CM_SLAC_PARM.CNF, 3: CM_START_ATTEN_CHAR.IND
  3206. 4: CM_MNBC_SOUND.IND, 5: CM_ATTEN_CHAR.IND, 6: CM_ATTEN_CHAR.RSP, 7: CM_VALIDATE.REQ
  3207. 8: CM_VALIDATE.CNF, 9: CM_SLAC_MATCH.REQ, 10: CM_SLAC_MATCH.CNF, 11: CM_AMP_MAP.REQ
  3208. 12: CM_AMP_MAP.CNF, 13: SLACC/SDP/TCP connection,
  3209. 16: SupportedAppProtocolRequest, 17: SupportedAppProtocolResponse, 18: SessionSetupRequest
  3210. 19: SessionSetupResponse, 20: ServiceDiscoveryRequest, 21: ServiceDiscoveryResponse
  3211. 22: ServiceDetailRequest, 23: ServiceDetailResponse
  3212. 24: ServiceAndPaymentSelectionRequest/ServiceSelectionRequest, 25: ServiceAndPaymentSelectionResponse/ServiceSelectionResponse
  3213. 26: PaymentDetailsRequest/IdentificationDetailsRequest;, 27: PaymentDetailsResponse/IdentificationDetailsResponse,
  3214. 28: AuthorizationRequest, 29: AuthorizationResponse,
  3215. 30: CertificateUpdateRequest, 31: CertificateUpdateResponse, 32:CertificateInstallationRequest, 33: CertificateInstallationResponse
  3216. 34: ChargeParameterDiscoveryRequest, 35: ChargeParameterDiscoveryResponse
  3217. 36: CableCheckRequest, 37: CableCheckResponse, 38: PreChargeRequest, 39: PreChargeResponse
  3218. 40: PowerDeliveryRequest start, 41: PowerDeliveryResponse start, 42: ChargingStatusRequest, 43: ChargingStatusResponse
  3219. 44: CurrentDemandRequest, 45: CurrentDemandResponse, 46: MeteringReceiptRequest, 47: MeteringReceiptResponse
  3220. 48: PowerDeliveryRequest end, 49: PowerDeliveryRequest end, 50: WeldingDetectionRequest, 51: WeldingDetectionResponse,
  3221. 52: SessionStopRequest, 53: SessionStopResponse
  3222. 253: Performance Timeout, 254: Sequence Timeout, 255: Fault
  3223. */
  3224. struct SupportedAppProtocolRequest_ISO15118_2018 SupportedAppProtocolRequest;
  3225. struct SupportedAppProtocolResponse_ISO15118_2018 SupportedAppProtocolResponse;
  3226. struct SessionSetupRequest_ISO15118_2018 SessionSetupRequest;
  3227. struct SessionSetupResponse_ISO15118_2018 SessionSetupResponse;
  3228. struct ServiceDiscoveryRequest_ISO15118_2018 ServiceDiscoveryRequest;
  3229. struct ServiceDiscoveryResponse_ISO15118_2018 ServiceDiscoveryResponse;
  3230. struct ServiceDetailRequest_ISO15118_2018 ServiceDetailRequest;
  3231. struct ServiceDetailResponse_ISO15118_2018 ServiceDetailResponse;
  3232. struct ServiceSelectionRequest_ISO15118_2018 ServiceSelectionRequest;
  3233. struct ServiceSelectionResponse_ISO15118_2018 ServiceSelectionResponse;
  3234. struct IdentificationDetailsRequest_ISO15118_2018 IdentificationDetailsRequest;
  3235. struct IdentificationDetailsResponse_ISO15118_2018 IdentificationDetailsResponse;
  3236. struct AuthorizationRequest_ISO15118_2018 AuthorizationRequest;
  3237. struct AuthorizationResponse_ISO15118_2018 AuthorizationResponse;
  3238. struct CertificateInstallationRequest_ISO15118_2018 CertificateInstallationRequest;
  3239. struct CertificateInstallationResponse_ISO15118_2018 CertificateInstallationResponse;
  3240. struct ChargeParameterDiscoveryRequest_ISO15118_2018 ChargeParameterDiscoveryRequest;
  3241. struct ChargeParameterDiscoveryResponse_ISO15118_2018 ChargeParameterDiscoveryResponse;
  3242. struct CableCheckRequest_ISO15118_2018 CableCheckRequest;
  3243. struct CableCheckResponse_ISO15118_2018 CableCheckResponse;
  3244. struct PreChargeRequest_ISO15118_2018 PreChargeRequest;
  3245. struct PreChargeResponse_ISO15118_2018 PreChargeResponse;
  3246. struct PowerDeliveryRequest_ISO15118_2018 PowerDeliveryRequest;
  3247. struct PowerDeliveryResponse_ISO15118_2018 PowerDeliveryResponse;
  3248. struct ChargingStatusRequest_ISO15118_2018 ChargingStatusRequest;
  3249. struct ChargingStatusResponse_ISO15118_2018 ChargingStatusResponse;
  3250. struct CurrentDemandRequest_ISO15118_2018 CurrentDemandRequest;
  3251. struct CurrentDemandResponse_ISO15118_2018 CurrentDemandResponse;
  3252. struct MeteringReceiptRequest_ISO15118_2018 MeteringReceiptRequest;
  3253. struct MeteringReceiptResponse_ISO15118_2018 MeteringReceiptResponse;
  3254. struct WeldingDetectionRequest_ISO15118_2018 WeldingDetectionRequest;
  3255. struct WeldingDetectionResponse_ISO15118_2018 WeldingDetectionResponse;
  3256. struct SessionStopRequest_ISO15118_2018 SessionStopRequest;
  3257. struct SessionStopResponse_ISO15118_2018 SessionStopResponse;
  3258. };
  3259. struct CcsData
  3260. {
  3261. unsigned char CommProtocol; // 1: V2GMessage_DIN70121, 2:V2GMessage_ISO15118_2014, 3:V2GMessage_ISO15118_2018
  3262. struct V2GMessageType_DIN70121 V2GMessage_DIN70121[CCS_QUANTITY];
  3263. struct V2GMessageType_ISO15118_2014 V2GMessage_ISO15118_2014[CCS_QUANTITY];
  3264. struct V2GMessageType_ISO15118_2018 V2GMessage_ISO15118_2018[CCS_QUANTITY];
  3265. };
  3266. /**************************************************************************************/
  3267. /***************STM32F407 Communication Share memory**************************/
  3268. /**************************************************************************************/
  3269. struct PrimaryMcuData
  3270. {
  3271. unsigned char SelfTest_Comp;
  3272. unsigned char version[16]; //STM32F407 firmware version
  3273. unsigned int InputVoltage; //value comes from external meter
  3274. unsigned int InputCurrent; //value comes from external meter
  3275. union
  3276. {
  3277. unsigned char OutputDrvValue[1];
  3278. struct
  3279. {
  3280. //OutputDrvValue[0]
  3281. unsigned char AcContactorDrv:1; //bit 0, H: ON, L:OFF
  3282. unsigned char Button1LedDrv:1; //bit 1, H: ON, L:OFF
  3283. unsigned char Button2LedDrv:1; //bit 2, H: ON, L:OFF
  3284. unsigned char SystemLed1Drv:1; //bit 3, H: ON, L:OFF
  3285. unsigned char SystemLed2Drv:1; //bit 4, H: ON, L:OFF
  3286. unsigned char SystemLed3Drv:1; //bit 5, H: ON, L:OFF
  3287. unsigned char SystemLed4Drv:1; //bit 6, H: ON, L:OFF
  3288. unsigned char:1; //bit 7 reserved
  3289. }bits;
  3290. }OutputDrv;
  3291. union
  3292. {
  3293. unsigned char InputDetValue[2];
  3294. struct
  3295. {
  3296. //InputDetValue[0]
  3297. unsigned char AcContactorDetec:1; //bit 0, H: ON, L:OFF
  3298. unsigned char AcMainBreakerDetec:1; //bit 1, H: ON, L:OFF
  3299. unsigned char SpdDetec:1; //bit 2, H: ON, L:OFF
  3300. unsigned char DoorOpen:1; //bit 3, H: Open, L:Close
  3301. unsigned char Gfd1:1; //bit 4, H: Trigger, L:Normal
  3302. unsigned char Gfd2:1; //bit 5, H: Trigger, L:Normal
  3303. unsigned char Button1:1; //bit 6 , H: Push, L:Release
  3304. unsigned char Button2:1; //bit 7, H: Push, L:Release
  3305. //InputDetValue[1]
  3306. unsigned char EmergencyButton:1; //bit 0, H: Push, L:Release
  3307. unsigned char :7; //bit 1~7, Reserved
  3308. }bits;
  3309. }InputDet;
  3310. };
  3311. /**************************************************************************************/
  3312. /*************Fan power module Communication Share memory******************/
  3313. /**************************************************************************************/
  3314. struct FanModuleData
  3315. {
  3316. unsigned char SelfTest_Comp;
  3317. unsigned char version[16]; //fan power module firmware version
  3318. unsigned short PresentFan1Speed; //RPM
  3319. unsigned short PresentFan2Speed; //RPM
  3320. unsigned short PresentFan3Speed; //RPM
  3321. unsigned short PresentFan4Speed; //RPM
  3322. unsigned short SetFan1Speed; //RPM
  3323. unsigned short SetFan2Speed; //RPM
  3324. unsigned short SetFan3Speed; //RPM
  3325. unsigned short SetFan4Speed; //RPM
  3326. unsigned short TestFanSpeed; //RPM
  3327. unsigned char DiffOfAirPressure; //pa
  3328. unsigned char UpdateFW; //1:do update
  3329. };
  3330. /**************************************************************************************/
  3331. /***********Relay control module Communication Share memory******************/
  3332. /**************************************************************************************/
  3333. struct RelayModuleData
  3334. {
  3335. unsigned char SelfTest_Comp;
  3336. unsigned char version[16]; //relay module firmware version
  3337. unsigned short InputL1Volt; //XXXXX.x volt
  3338. unsigned short InputL2Volt; //XXXXX.x volt
  3339. unsigned short InputL3Volt; //XXXXX.x volt
  3340. unsigned short Gun1FuseOutputVolt; //XXXXX.x volt
  3341. unsigned short Gun2FuseOutputVolt; //XXXXX.x volt
  3342. unsigned short Gun1RelayOutputVolt; //XXXXX.x volt
  3343. unsigned short Gun2RelayOutputVolt; //XXXXX.x volt
  3344. unsigned short Gun1OutputCurrent; //XXXXX.x amp
  3345. unsigned short Gun2OutputCurrent; //XXXXX.x amp
  3346. unsigned char UpdateFW; //1:do update
  3347. };
  3348. /**************************************************************************************/
  3349. /***********Led control module Communication Share memory******************/
  3350. /**************************************************************************************/
  3351. struct LedModuleData
  3352. {
  3353. unsigned char SelfTest_Comp;
  3354. unsigned char version[16]; //led module firmware version
  3355. unsigned short Connect_1_Status; // Idle : 0, Charging : 1, Alarm : 2
  3356. unsigned short Connect_2_Status; // Idle : 0, Charging : 1, Alarm : 2
  3357. unsigned short EnableFunc; // reserved
  3358. };
  3359. /**************************************************************************************/
  3360. /************************OCPP Share memory***************************************/
  3361. /**************************************************************************************/
  3362. struct StructIdTagInfo
  3363. {
  3364. unsigned char ExpiryDate[28];
  3365. unsigned char ParentIdTag[20];
  3366. unsigned char Status[16]; //Accepted, Blocked, Expired, Invalid, ConcurrentTx
  3367. };
  3368. struct StructLocalAuthorizationList
  3369. {
  3370. unsigned char IdTag[20];
  3371. struct StructIdTagInfo IdTagInfo;
  3372. };
  3373. struct StructSampledValue
  3374. {
  3375. unsigned char Value[128];
  3376. unsigned char Context[30];//Interruption.Begin, Interruption.End, Sample.Clock, Sample.Periodic, Transaction.Begin, Transaction.End, Trigger, Other
  3377. unsigned char Format[16];//Raw,SignedData
  3378. unsigned char Measurand[40];/* "Energy.Active.Export.Register",
  3379. "Energy.Active.Import.Register",
  3380. "Energy.Reactive.Export.Register",
  3381. "Energy.Reactive.Import.Register",
  3382. "Energy.Active.Export.Interval",
  3383. "Energy.Active.Import.Interval",
  3384. "Energy.Reactive.Export.Interval",
  3385. "Energy.Reactive.Import.Interval",
  3386. "Power.Active.Export",
  3387. "Power.Active.Import",
  3388. "Power.Offered",
  3389. "Power.Reactive.Export",
  3390. "Power.Reactive.Import",
  3391. "Power.Factor",
  3392. "Current.Import",
  3393. "Current.Export",
  3394. "Current.Offered",
  3395. "Voltage",
  3396. "Frequency",
  3397. "Temperature",
  3398. "SoC",
  3399. "RPM"
  3400. */
  3401. unsigned char Phase[10]; /* "L1",
  3402. "L2",
  3403. "L3",
  3404. "N",
  3405. "L1-N",
  3406. "L2-N",
  3407. "L3-N",
  3408. "L1-L2",
  3409. "L2-L3",
  3410. "L3-L1"
  3411. */
  3412. unsigned char Location[10]; //Cable,EV,Inlet,Outlet,Body
  3413. unsigned char Unit[20]; /* "Wh",
  3414. "kWh",
  3415. "varh",
  3416. "kvarh",
  3417. "W",
  3418. "kW",
  3419. "VA",
  3420. "kVA",
  3421. "var",
  3422. "kvar",
  3423. "A",
  3424. "V",
  3425. "K",
  3426. "Celcius",
  3427. "Fahrenheit",
  3428. "Percent"
  3429. */
  3430. };
  3431. struct StructMeterValue
  3432. {
  3433. unsigned char TimeStamp[28];
  3434. struct StructSampledValue SampledValue[10];
  3435. };
  3436. struct StructConfigurationKeyItems
  3437. {
  3438. unsigned char Item[50];
  3439. };
  3440. struct StructConfigurationKey
  3441. {
  3442. unsigned char Key[50];
  3443. unsigned char ReadOnly[8]; //boolean
  3444. unsigned char Value[500];
  3445. };
  3446. struct StructChargingSchedulePeriod
  3447. {
  3448. int StartPeriod;
  3449. float Limit;//0.1;
  3450. int NumberPhases;
  3451. };
  3452. struct StructChargingSchedule
  3453. {
  3454. int Duration;
  3455. unsigned char StartSchedule[28];
  3456. unsigned char ChargingRateUnit[4]; //A, W
  3457. struct StructChargingSchedulePeriod ChargingSchedulePeriod[10];
  3458. float MinChargingRate; //0.1;
  3459. };
  3460. struct StructChargingProfile
  3461. {
  3462. int ChargingProfileId;
  3463. int TransactionId;
  3464. int StackLevel;
  3465. unsigned char ChargingProfilePurpose[24]; //ChargePointMaxProfile, TxDefaultProfile, TxProfile
  3466. unsigned char ChargingProfileKind[12]; //Absolute, Recurring, Relative
  3467. unsigned char RecurrencyKind[8]; //Daily, Weekly
  3468. unsigned char ValidFrom[28];
  3469. unsigned char ValidTo[28];
  3470. struct StructChargingSchedule ChargingSchedule;
  3471. };
  3472. struct StructBootNotification
  3473. {
  3474. unsigned char CpVendor[20]; //chargePointVendor //mandatory
  3475. unsigned char CpModel[20]; //chargePointModel //mandatory
  3476. unsigned char CpSN[25]; //chargePointSerialNumber
  3477. unsigned char CbSN[25]; //chargeBoxSerialNumber
  3478. unsigned char CpFwVersion[50]; //firmwareVersion
  3479. unsigned char CpIccid[22]; //iccid
  3480. unsigned char CpImsi[20]; //imsi
  3481. unsigned char CpMeterType[25]; //meterType
  3482. unsigned char CpMeterSerialNumber[25]; //meterSerialNumber
  3483. unsigned char ResponseStatus[16]; //Accepted, Pending, Rejected
  3484. unsigned char ResponseCurrentTime[28]; //currentTime //mandatory
  3485. int ResponseHeartbeatInterval; //interval //mandatory
  3486. };
  3487. struct StructHeartbeat
  3488. {
  3489. unsigned char ResponseCurrentTime[28];
  3490. };
  3491. struct StructAuthorize
  3492. {
  3493. unsigned char IdTag[20];
  3494. struct StructIdTagInfo ResponseIdTagInfo;
  3495. };
  3496. struct StructStartTransaction
  3497. {
  3498. int ConnectorId;
  3499. unsigned char IdTag[20];
  3500. int MeterStart;
  3501. int ReservationId;
  3502. unsigned char Timestamp[28];
  3503. struct StructIdTagInfo ResponseIdTagInfo;
  3504. int ResponseTransactionId;
  3505. };
  3506. struct StructStopTransaction
  3507. {
  3508. unsigned char IdTag[20];
  3509. int MeterStop;
  3510. unsigned char Timestamp[28];
  3511. int TransactionId;
  3512. unsigned char StopReason[20]; /* "EmergencyStop",
  3513. "EVDisconnected",
  3514. "HardReset",
  3515. "Local",
  3516. "Other",
  3517. "PowerLoss",
  3518. "Reboot",
  3519. "Remote",
  3520. "SoftReset",
  3521. "UnlockCommand",
  3522. "DeAuthorized"
  3523. */
  3524. struct StructMeterValue TransactionData[1];
  3525. struct StructIdTagInfo ResponseIdTagInfo;
  3526. };
  3527. struct StructStatusNotification
  3528. {
  3529. int ConnectorId;
  3530. unsigned char ErrorCode[25]; /* "ConnectorLockFailure",
  3531. "EVCommunicationError",
  3532. "GroundFailure",
  3533. "HighTemperature",
  3534. "InternalError",
  3535. "LocalListConflict",
  3536. "NoError",
  3537. "OtherError",
  3538. "OverCurrentFailure",
  3539. "PowerMeterFailure",
  3540. "PowerSwitchFailure",
  3541. "ReaderFailure",
  3542. "ResetFailure",
  3543. "UnderVoltage",
  3544. "OverVoltage",
  3545. "WeakSignal"
  3546. */
  3547. unsigned char Info[50];
  3548. unsigned char Status[20]; /* "Available",
  3549. "Preparing",
  3550. "Charging",
  3551. "SuspendedEVSE",
  3552. "SuspendedEV",
  3553. "Finishing",
  3554. "Reserved",
  3555. "Unavailable",
  3556. "Faulted"
  3557. */
  3558. unsigned char Timestamp[28];
  3559. unsigned char VendorId[256];
  3560. unsigned char VendorErrorCode[50];
  3561. };
  3562. struct StructCancelReservation
  3563. {
  3564. int ReservationId;
  3565. unsigned char ResponseStatus[16]; //Accepted, Rejected
  3566. unsigned char guid[37];
  3567. };
  3568. struct StructChangeAvailability
  3569. {
  3570. int ConnectorId;
  3571. unsigned char Type[16]; //Inoperative, Operative
  3572. unsigned char ResponseStatus[16]; //Accepted, Rejected, Scheduled
  3573. unsigned char guid[37];
  3574. };
  3575. struct StructChangeConfiguration
  3576. {
  3577. unsigned char Key[50];
  3578. unsigned char Value[500];
  3579. unsigned char ResponseStatus[16]; //Accepted, Rejected, RebootRequired, NotSupported
  3580. };
  3581. struct StructClearCache
  3582. {
  3583. unsigned char ResponseStatus[16]; //Accepted, Rejected
  3584. };
  3585. struct StructClearChargingProfile
  3586. {
  3587. int Id;
  3588. int ConnectorId;
  3589. unsigned char ChargingProfilePurpose[24]; //ChargePointMaxProfile, TxDefaultProfile, TxProfile
  3590. int StackLevel;
  3591. unsigned char ResponseStatus[16]; //Accepted, Unknown
  3592. };
  3593. struct StructDataTransfer
  3594. {
  3595. unsigned char VendorId[256];
  3596. unsigned char MessageId[52];
  3597. unsigned char Data[512];
  3598. unsigned char ResponseStatus[18]; //Accepted, Rejected,UnknownMessageId,UnknownVendorId
  3599. unsigned char ResponseData[256];
  3600. };
  3601. struct StructDiagnosticsStatusNotification
  3602. {
  3603. unsigned char Status[16]; //Idle,Uploaded,UploadFailed,Uploading
  3604. };
  3605. struct StructFirmwareStatusNotification
  3606. {
  3607. unsigned char Status[20]; //Downloaded,DownloadFailed,Downloading,Idle,InstallationFailed,Installing,Installed
  3608. };
  3609. struct StructGetCompositeSchedule
  3610. {
  3611. int ConnectorId;
  3612. int Duration;
  3613. unsigned char ChargingRateUnit[4]; //A,W
  3614. unsigned char ResponseStatus[12]; //Accepted,Rejected
  3615. int ResponseConnectorId;
  3616. unsigned char ResponseScheduleStart[28];
  3617. struct StructChargingSchedule ResponseChargingSchedule;
  3618. };
  3619. struct StructGetConfiguration
  3620. {
  3621. struct StructConfigurationKeyItems *Key;
  3622. struct StructConfigurationKey *ResponseConfigurationKey;
  3623. struct StructConfigurationKeyItems *ResponseUnknownKey;
  3624. };
  3625. struct StructGetDiagnostics
  3626. {
  3627. unsigned char Location[256];
  3628. int Retries;
  3629. int RetryInterval;
  3630. unsigned char StartTime[28];
  3631. unsigned char StopTime[28];
  3632. unsigned char ResponseFileName[256];
  3633. };
  3634. struct StructGetLocalListVersion
  3635. {
  3636. int ResponseListVersion;
  3637. };
  3638. struct StructMeterValues
  3639. {
  3640. int ConnectorId;
  3641. int TransactionId;
  3642. struct StructMeterValue MeterValue[0];
  3643. };
  3644. struct StructRemoteStartTransaction
  3645. {
  3646. int ConnectorId;
  3647. unsigned char IdTag[20];
  3648. struct StructChargingProfile ChargingProfile;
  3649. unsigned char ResponseStatus[10]; //Accepted, Rejected
  3650. unsigned char guid[37];
  3651. };
  3652. struct StructRemoteStopTransaction
  3653. {
  3654. int TransactionId;
  3655. unsigned char ResponseStatus[10]; //Accepted, Rejected
  3656. };
  3657. struct StructReserveNow
  3658. {
  3659. int ConnectorId;
  3660. unsigned char ExpiryDate[28];
  3661. unsigned char IdTag[20];
  3662. unsigned char ParentIdTag[20];
  3663. int ReservationId;
  3664. unsigned char ResponseStatus[12]; //Accepted, Faulted, Occupied, Rejected, Unavailable
  3665. unsigned char guid[37]; //OCPP Server request message uuid
  3666. };
  3667. struct StructReset
  3668. {
  3669. unsigned char Type[8]; //Hard, Soft
  3670. unsigned char ResponseStatus[10]; //Accepted, Rejected
  3671. unsigned char guid[37]; //OCPP Server request message uuid
  3672. };
  3673. struct StructSendLocalList
  3674. {
  3675. int ListVersion;
  3676. unsigned char UpdateType[16]; //Differential, Full
  3677. struct StructLocalAuthorizationList *LocalAuthorizationList;
  3678. unsigned char ResponseStatus[16]; //Accepted, Failed, NotSupported, VersionMismatch
  3679. };
  3680. struct StructSetChargingProfile
  3681. {
  3682. int ConnectorId;
  3683. struct StructChargingProfile ChargingProfile;
  3684. unsigned char ResponseStatus[16]; //Accepted, Rejected, NotSupported
  3685. };
  3686. struct StructTriggerMessage
  3687. {
  3688. unsigned char RequestedMessage[32]; /*
  3689. "BootNotification",
  3690. "DiagnosticsStatusNotification",
  3691. "FirmwareStatusNotification",
  3692. "Heartbeat",
  3693. "MeterValues",
  3694. "StatusNotification"
  3695. */
  3696. int ConnectorId;
  3697. unsigned char ResponseStatus[16]; //Accepted, Rejected, NotImplemented
  3698. };
  3699. struct StructUnlockConnector
  3700. {
  3701. int ConnectorId;
  3702. unsigned char ResponseStatus[16]; //Unlocked, UnlockFailed, NotSupported
  3703. unsigned char guid[37]; //OCPP Server request message uuid
  3704. };
  3705. struct StructUpdateFirmware
  3706. {
  3707. unsigned char Location[256];
  3708. int Retries;
  3709. unsigned char RetrieveDate[28];
  3710. int RetryInterval;
  3711. };
  3712. struct OCPP16ConfigurationItem
  3713. {
  3714. unsigned char ItemName[64];
  3715. unsigned char ItemAccessibility;//0:RO, 1:RW
  3716. unsigned char ItemData[128];
  3717. };
  3718. struct OCPP16ConfigurationTable
  3719. {
  3720. //please refer to OCPP 1.6 chapter 9
  3721. struct OCPP16ConfigurationItem CoreProfile[35];
  3722. struct OCPP16ConfigurationItem LocalAuthListManagementProfile[3];
  3723. struct OCPP16ConfigurationItem ReservationProfile[1];
  3724. struct OCPP16ConfigurationItem SmartChargingProfile[5];
  3725. };
  3726. struct OCPP16Data
  3727. {
  3728. 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"
  3729. unsigned char ChargeBoxId[128];
  3730. unsigned char OcppConnStatus; //0: disconnected, 1: connected
  3731. unsigned int Timeout_Secs;
  3732. unsigned short Ping_Pong_Interval;
  3733. union
  3734. {
  3735. //Operations Initiated by Charge Point
  3736. unsigned char CpMsgValue[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3737. struct
  3738. {
  3739. //CpMsgValue[0]
  3740. unsigned char DataTransferReq:1; //bit 0,
  3741. unsigned char DataTransferConf:1; //bit 1,
  3742. unsigned char StartTransactionReq:1; //bit 2,
  3743. unsigned char StartTransactionConf:1; //bit 3,
  3744. unsigned char StopTransactionReq:1; //bit 4,
  3745. unsigned char StopTransactionConf:1; //bit 5,
  3746. unsigned char :2; //bit 6,7 , reserved
  3747. } bits[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3748. }CpMsg;
  3749. union
  3750. {
  3751. //Operations Initiated by Sequence Point
  3752. unsigned char SpMsgValue[1];
  3753. struct
  3754. {
  3755. //SpMsgValue[0]
  3756. unsigned char BootNotificationReq :1; //bit 0,
  3757. unsigned char BootNotificationConf :1; //bit 1,
  3758. unsigned char AuthorizeReq :1; //bit 2,
  3759. unsigned char AuthorizeConf :1; //bit 3,
  3760. unsigned char DiagnosticsStatusNotificationReq :1; //bit 4,
  3761. unsigned char DiagnosticsStatusNotificationConf :1; //bit 5,
  3762. unsigned char FirmwareStatusNotificationReq :1; //bit 6,
  3763. unsigned char FirmwareStatusNotificationConf :1; //bit 7,
  3764. } bits;
  3765. } SpMsg;
  3766. union
  3767. {
  3768. //Operations Initiated by Central System
  3769. unsigned char CsMsgValue[3 * (CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY)];
  3770. struct
  3771. {
  3772. //CsMsgValue[0]
  3773. unsigned char CancelReservationReq :1; //bit 0,
  3774. unsigned char CancelReservationConf :1; //bit 1,
  3775. unsigned char ChangeAvailabilityReq :1; //bit 2,
  3776. unsigned char ChangeAvailabilityConf :1; //bit 3,
  3777. unsigned char ReserveNowReq :1; //bit 4,
  3778. unsigned char ReserveNowConf :1; //bit 5,
  3779. unsigned char SetChargingProfileReq :1; //bit 6,
  3780. unsigned char SetChargingProfileConf :1; //bit 7,
  3781. //CsMsgValue[1]
  3782. unsigned char TriggerMessageReq :1; //bit 0,
  3783. unsigned char TriggerMessageConf :1; //bit 1,
  3784. unsigned char UnlockConnectorReq :1; //bit 2,
  3785. unsigned char UnlockConnectorConf :1; //bit 3,
  3786. unsigned char RemoteStartTransactionReq :1; //bit 4,
  3787. unsigned char RemoteStartTransactionConf :1; //bit 5,
  3788. unsigned char RemoteStopTransactionReq :1; //bit 6,
  3789. unsigned char RemoteStopTransactionConf :1; //bit 7,
  3790. //CsMsgValue[2]
  3791. unsigned char ClearChargingProfileReq :1; //bit 0,
  3792. unsigned char ClearChargingProfileConf :1; //bit 1,
  3793. unsigned char DataTransferReq :1; //bit 2,
  3794. unsigned char DataTransferConf :1; //bit 3,
  3795. unsigned char GetCompositeScheduleReq :1; //bit 4,
  3796. unsigned char GetCompositeScheduleConf :1; //bit 5,
  3797. unsigned char :2; //bit 6,7
  3798. } bits[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3799. }CsMsg;
  3800. union
  3801. {
  3802. //Operations Initiated by Main System
  3803. unsigned char MsMsgValue[2];
  3804. struct
  3805. {
  3806. //CsMsgValue[0]
  3807. unsigned char ChangeConfigurationReq :1; //bit 0,
  3808. unsigned char ChangeConfigurationConf :1; //bit 1,
  3809. unsigned char ClearCacheReq :1; //bit 2,
  3810. unsigned char ClearCacheConf :1; //bit 3,
  3811. unsigned char GetConfigurationReq :1; //bit 4,
  3812. unsigned char GetConfigurationConf :1; //bit 5,
  3813. unsigned char UpdateFirmwareReq :1; //bit 6,
  3814. unsigned char UpdateFirmwareConf :1; //bit 7,
  3815. //CsMsgValue[1]
  3816. unsigned char GetDiagnosticsReq :1; //bit 0,
  3817. unsigned char GetDiagnosticsConf :1; //bit 1,
  3818. unsigned char GetLocalListVersionReq :1; //bit 2,
  3819. unsigned char GetLocalListVersionConf :1; //bit 3,
  3820. unsigned char ResetReq :1; //bit 4,
  3821. unsigned char ResetConf :1; //bit 5,
  3822. unsigned char SendLocalListReq :1; //bit 6,
  3823. unsigned char SendLocalListConf :1; //bit 7,
  3824. } bits;
  3825. } MsMsg;
  3826. union
  3827. {
  3828. //Operations triggered by CSU
  3829. unsigned char CSUMsgValue[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3830. struct
  3831. {
  3832. //CSUMsgValue[0]
  3833. unsigned char ChargingProfileReq:1; //bit 0,
  3834. unsigned char ChargingProfileConf:1; //bit 0,
  3835. unsigned char :6; //bit 1,2,3,4,5,6,7 , reserved
  3836. } bits[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3837. }CSUMsg;
  3838. struct StructBootNotification BootNotification;
  3839. struct StructHeartbeat Heartbeat;
  3840. struct StructAuthorize Authorize;
  3841. struct StructStartTransaction StartTransaction[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3842. struct StructStopTransaction StopTransaction[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3843. struct StructStatusNotification StatusNotification[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3844. struct StructCancelReservation CancelReservation[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3845. struct StructChangeAvailability ChangeAvailability[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3846. struct StructChangeConfiguration ChangeConfiguration;
  3847. struct StructClearCache ClearCache;
  3848. struct StructClearChargingProfile ClearChargingProfile[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3849. struct StructDataTransfer DataTransfer[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3850. struct StructDiagnosticsStatusNotification DiagnosticsStatusNotification;
  3851. struct StructFirmwareStatusNotification FirmwareStatusNotification;
  3852. struct StructGetCompositeSchedule GetCompositeSchedule[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3853. struct StructGetConfiguration GetConfiguration;
  3854. struct StructGetDiagnostics GetDiagnostics;
  3855. struct StructGetLocalListVersion GetLocalListVersion;
  3856. struct StructMeterValues MeterValues[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3857. struct StructRemoteStartTransaction RemoteStartTransaction[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3858. struct StructRemoteStopTransaction RemoteStopTransaction[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3859. struct StructReserveNow ReserveNow[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3860. struct StructReset Reset;
  3861. struct StructSendLocalList SendLocalList;
  3862. struct StructSetChargingProfile SetChargingProfile[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3863. struct StructTriggerMessage TriggerMessage[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3864. struct StructUnlockConnector UnlockConnector[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3865. struct StructUpdateFirmware UpdateFirmware;
  3866. struct OCPP16ConfigurationTable ConfigurationTable;
  3867. struct StructChargingProfile SmartChargingProfile[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
  3868. };
  3869. #endif // DEFINE_H_