define.h 167 KB

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