define.h 167 KB

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