define.h 168 KB

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