define.c 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <stdint.h>
  4. #include "define.h"
  5. //------------------------------------------------------------------------------
  6. char Currency[54][4]=
  7. {
  8. "AED", // - Emirati Dirham
  9. "ARS", // - Argentine Peso
  10. "AUD", // - Australian Dollar
  11. "BGN", // - Bulgarian Lev
  12. "BHD", // - Bahraini Dinar
  13. "BND", // - Bruneian Dollar
  14. "BRL", // - Brazilian Real
  15. "BWP", // - Botswana Pula
  16. "CAD", // - Canadian Dollar
  17. "CHF", // - Swiss Franc
  18. "CLP", // - Chilean Peso
  19. "CNY", // - Chinese Yuan Renminbi
  20. "COP", // - Colombian Peso
  21. "CZK", // - Czech Koruna
  22. "DKK", // - Danish Krone
  23. "EUR", // - Euro
  24. "GBP", // - British Pound
  25. "HKD", // - Hong Kong Dollar
  26. "HRK", // - Croatian Kuna
  27. "HUF", // - Hungarian Forint
  28. "IDR", // - Indonesian Rupiah
  29. "ILS", // - Israeli Shekel
  30. "INR", // - Indian Rupee
  31. "IRR", // - Iranian Rial
  32. "ISK", // - Icelandic Krona
  33. "JPY", // - Japanese Yen
  34. "KRW", // - South Korean Won
  35. "KWD", // - Kuwaiti Dinar
  36. "KZT", // - Kazakhstani Tenge
  37. "LKR", // - Sri Lankan Rupee
  38. "LYD", // - Libyan Dinar
  39. "MUR", // - Mauritian Rupee
  40. "MXN", // - Mexican Peso
  41. "MYR", // - Malaysian Ringgit
  42. "NOK", // - Norwegian Krone
  43. "NPR", // - Nepalese Rupee
  44. "NZD", // - New Zealand Dollar
  45. "OMR", // - Omani Rial
  46. "PHP", // - Philippine Peso
  47. "PKR", // - Pakistani Rupee
  48. "PLN", // - Polish Zloty
  49. "QAR", // - Qatari Riyal
  50. "RON", // - Romanian New Leu
  51. "RUB", // - Russian Ruble
  52. "SAR", // - Saudi Arabian Riyal
  53. "SEK", // - Swedish Krona
  54. "SGD", // - Singapore Dollar
  55. "THB", // - Thai Baht
  56. "TRY", // - Turkish Lira
  57. "TTD", // - Trinidadian Dollar
  58. "TWD", // - Taiwan New Dollar
  59. "USD", // - US Dollar
  60. "VEF", // - Venezuelan Bolivar
  61. "ZAR" // - South African Rand
  62. };
  63. char FaultStatusCode[FaultCodeLength * 8][6]=
  64. {
  65. "011001", //CHAdeMO output fuse blew
  66. "011002", //CCS output fuse blew
  67. "011003", //GB output fuse blew
  68. "011004", //RCD/CCID self-test fail
  69. "011005", //AC input contactor 1 welding
  70. "011006", //AC input contactor 1 driving fault
  71. "011007", //AC input contactor 2 welding
  72. "011008", //AC input contactor 2 driving fault
  73. "011009", //AC output relay welding
  74. "011010", //AC output relay driving fault
  75. "011011", //CHAdeMO output relay welding
  76. "011012", //CHAdeMO output relay driving fault
  77. "011013", //CCS output relay welding
  78. "011014", //CCS output relay driving fault
  79. "011015", //GB output relay welding
  80. "011016", //GB output relay driving fault
  81. "011017", //AC connector temperature sensor broken
  82. "011018", //CHAdeMO connector temperature sensor broken
  83. "011019", //CCS connector temperature sensor broken
  84. "011020", //GB connector temperature sensor broken
  85. "011021", //WiFi module broken
  86. "011022", //3G/4G module broken
  87. "011023", //Aux. power module broken
  88. "011024", //Relay control module /smart box broken
  89. "011025", //CHAdeMO connector lock fail
  90. "011026", //GB connector lock fail
  91. "011027", //AC connector lock fail
  92. "011028", //CHAdeMO module broken
  93. "011029", //CCS module broken
  94. "011030", //GBT module broken
  95. "011031", //PSU module broken
  96. "011032", //RCD/CCID module broken
  97. "011033", //Maximum Output Current setup error
  98. "011034", //Shutter fault
  99. "011035", //Ble module broken
  100. "011036", //Rotary switch fault
  101. "011037", //CCS liquid chiller water level fault
  102. "011038", //Chiller temperature sensor broken
  103. "011039", //Parallel relay welding
  104. "011040" //Parallel output relay driving fault
  105. };
  106. char AlarmStatusCode[AlarmCodeLength * 8][6]=
  107. {
  108. "012200", //System L1 input OVP
  109. "012201", //System L2 input OVP
  110. "012202", //System L3 input OVP
  111. "012203", //System L1 input UVP
  112. "012204", //System L2 input UVP
  113. "012205", //System L3 input UVP
  114. "012206", //PSU L1 input OVP
  115. "012207", //PSU L2 input OVP
  116. "012208", //PSU L3 input OVP
  117. "012209", //PSU L1 input UVP
  118. "012210", //PSU L2 input UVP
  119. "012211", //PSU L3 input UVP
  120. "012212", //System L1 input drop
  121. "012213", //System L2 input drop
  122. "012214", //System L3 input drop
  123. "012215", //System AC output OVP
  124. "012216", //System AC output OCP L1
  125. "012217", //System CHAdeMO output OVP
  126. "012218", //System CHAdeMO output OCP
  127. "012219", //System CCS output OVP
  128. "012220", //System CCS output OCP
  129. "012221", //System GB output OVP
  130. "012222", //System GB output OCP
  131. "012223", //System ambient/inlet OTP
  132. "012224", //System critical point OTP
  133. "012225", //PSU ambient/inlet OTP
  134. "012226", //PSU critical point OTP
  135. "012227", //Aux. power module OTP
  136. "012228", //Relay board/smart box OTP
  137. "012229", //CHAdeMO connector OTP
  138. "012230", //CCS connector OTP
  139. "012231", //GB connector OTP
  140. "012232", //AC connector OTP
  141. "012233", //RCD/CCID trip
  142. "012234", //CHAdeMO GFD trip
  143. "012235", //CCS GFD trip
  144. "012236", //GB GFD trip
  145. "012237", //SPD trip
  146. "012238", //Main power breaker trip
  147. "012239", //Aux. power breaker trip
  148. "012240", //PSU communication fail
  149. "012241", //WiFi module communication fail
  150. "012242", //3G/4G module communication fail
  151. "012243", //RFID module communication fail
  152. "012244", //Bluetooth module communication fail
  153. "012245", //LCM module communication fail
  154. "012246", //Aux. power module communication fail
  155. "012247", //Relay control boaed/smart box communication fail
  156. "012248", //CCS module communication fail
  157. "012249", //CHAdeMO module communication fail
  158. "012250", //GBT module communication fail
  159. "012251", //Emergency stop
  160. "012252", //Door open
  161. "012253", //System fan decay
  162. "012254", //Fail to create share memory
  163. "012255", //CSU initialization failed
  164. "012256", //AC Ground Fault
  165. "012257", //MCU self-test Fault
  166. "012258", //Relay self-test Fault
  167. "012259", //CHAdeMO groundfault detection timeout (GFD)
  168. "012260", //CCS groundfault detection timeout (GFD)
  169. "012261", //GB groundfault detection timeout (GFD)
  170. "012262", //Circuit Short L1
  171. "012263", // PSU Duplicate ID
  172. "012264", // PSU Output Short Circuit
  173. "012265", // PSU Discharge Abnormal
  174. "012266", // PSU Dc Side ShutDown
  175. "012267", // PSU Failure Alarm
  176. "012268", // PSU Protection Alarm
  177. "012269", // PSU FanFailure Alarm
  178. "012270", // PSU Input UVP
  179. "012271", // PSU Input OVP
  180. "012272", // PSU WalkIn State
  181. "012273", // PSU Power Limited State
  182. "012274", // PSU Id Repeat
  183. "012275", // PSU Severe Uneven Current
  184. "012276", // PSU Three Phase Input Inadequate
  185. "012277", // PSU Three Phase Onput Imbalance
  186. "012278", // PSU Ffc Side ShutDown
  187. "012279", // NO PSU Resource
  188. "012280", // Self test Failed due to communication of Relayboard failure
  189. "012281", // Self test Failed due to communication of Fanboard failure
  190. "012282", // Self test Failed due to communication of Primary failure
  191. "012283", // Self test Failed due to communication of Chademoboard failure
  192. "012284", // Self test Failed due to communication of CCSboard failure
  193. "012285", // Self test Failed due to AC Contact failure
  194. "012286", // Self test Failed due to communication of PSU failure
  195. "012287", // Self test Failed due to Model name is none match
  196. "012288", // CCS output UVP
  197. "012289", // Chademo output UVP
  198. "012290", // GBT output UVP
  199. "012291", // Self test Failed due to communication of GBTboard failure
  200. "012292", // Self test Failed due to communication of AC failure
  201. "012293", // Self test Failed due to communication of Ledboard failure
  202. "012294", // Ac input OVP
  203. "012295", // Ac input UVP
  204. "012296", // CHAdeMO groundfault detection - warning
  205. "012297", // CCS groundfault detection - warning
  206. "012298", // GB groundfault detection - warning
  207. "012299", // System AC output OCP L2
  208. "012300", // System AC output OCP L3
  209. "012301", // Circuit Short L2
  210. "012302", // Circuit Short L3
  211. "012303", // CCS liquid chiller water level warning
  212. "012304", // connection disconnected from power cabinet
  213. "012305", // Meter communication timeout
  214. "012306", // The dip switch of the PSU may be incorrect
  215. "012307", // Psu Fuse Burn-Out
  216. "012308", // Psu Pfc And Dcdc Communication Fault
  217. "012309", // Psu Bus Voltage Unbalance
  218. "012310", // Psu Bus Over Voltage
  219. "012311", // Psu Bus Voltage Abnormal
  220. "012312", // Psu Bus Under Voltage
  221. "012313", // Psu Input Phase Loss
  222. "012314", // Psu Fan Full Speed
  223. "012315", // Psu Temperature Power Limit
  224. "012316", // Psu Ac Power Limit
  225. "012317", // Psu Dcdc Eeprom Fault
  226. "012318", // Psu Pfc Eeprom Fault
  227. "012319", // Psu Dcdc Over Voltage
  228. "012320", // System CHAdeMO output UCP
  229. "012321", // System CCS output UCP
  230. "012322", // System GBT output UCP
  231. "012323", // System Chiller output OTP
  232. "012324", // Connector 1 detects abnormal voltage on the output line
  233. "012325", // Connector 2 detects abnormal voltage on the output line
  234. "012326", // System task is lost
  235. "012327", // DC input ovp
  236. "012328", // DC input uvp
  237. "012329", // Psu Can Communication Fault
  238. "012330", // Psu Dc to Dc OTP
  239. "012331", // Psu Dc to Dc OVP
  240. "012332", // Chiller Tube OTP
  241. "012333", // reserved
  242. "012334", // reserved
  243. "012335", // reserved
  244. "012336", // reserved
  245. "012337", // reserved
  246. "012338", // reserved
  247. "012339", // reserved
  248. "012340", // reserved
  249. "012341", // reserved
  250. "012342", // reserved
  251. "012343", // reserved
  252. "012344", // AC: Meter IC communication timeout
  253. "012345", // AC: Pilot negative error
  254. "012346", // Psu Communication error with CSU
  255. "012347", // AC: Local power sharing communication error (Slave disconnect from Master)
  256. "012348", // reserved
  257. "012349", // reserved
  258. "012350", // reserved
  259. "012351", // reserved
  260. "012352", // reserved
  261. "012353", // reserved
  262. "012354", // reserved
  263. "012355", // reserved
  264. "012356", // reserved
  265. "012357", // reserved
  266. "012358", // reserved
  267. "012359", // reserved
  268. };
  269. char InfoStatusCode[InfoCodeLength * 8][6]=
  270. {
  271. //Information comes from EVSE
  272. "013600", //Normal stop charging by user
  273. "013601", //Charging Time's up
  274. "013602", //Replace system air filter
  275. "013603", //Reach to CHAdeMO max. plugging times.
  276. "013604", //Reach to CCS max. plugging times.
  277. "013605", //Reach to GB max. plugging times.
  278. "013606", //Reach to AC max. plugging times.
  279. "013607", //CSU fimrware update fail
  280. "013608", //CHAdeMO Module fimrware update fail
  281. "013609", //CCS Module fimrware update fail
  282. "013610", //GB Module fimrware update fail
  283. "013611", //Aux. power module fimrware update fail
  284. "013612", //Relay control module fimrware update fail
  285. "013613", //LCM module fimrware update fail
  286. "013614", //Bluetooth module fimrware update fail
  287. "013615", //WiFi module fimrware update fail
  288. "013616", //3G/4G module fimrware update fail
  289. "013617", //SMR fimrware update fail
  290. "013618", //RFID module fimrware update fail
  291. "013619", //configured by USB flash drive
  292. "013620", //configured by backend
  293. "013621", //configured by webpage
  294. "013622", //disconnected from Internet through Ethernet
  295. "013623", //disconnected from Internet through WiFi
  296. "013624", //disconnected from Internet through 3G/4G
  297. "013625", //disconnected from AP through WiFi
  298. "013626", //disconnected from APN through 3G/4G
  299. "013627", //WiFi disabled (separated charger only)
  300. "013628", //4G disabled (separated charger only)
  301. "013629", //Reserved
  302. "013630", //Reserved
  303. "013631", //Reserved
  304. //Information comes from EV
  305. "023700", //CHAdeMO EV communication Fail
  306. "023701", //CCS EV communication Fail
  307. "023702", //GB EV communication Fail
  308. "023703", //AC: pilot fault
  309. "023704", //CHAdeMO: battery malfunction
  310. "023705", //CHAdeMO: no charging permission
  311. "023706", //CHAdeMO: battery incompatibility
  312. "023707", //CHAdeMO: battery OVP
  313. "023708", //CHAdeMO: battery UVP
  314. "023709", //CHAdeMO: battery OTP
  315. "023710", //CHAdeMO: battery current difference
  316. "023711", //CHAdeMO: battery voltage difference
  317. "023712", //CHAdeMO: shift position
  318. "023713", //CHAdeMO: battery other fault
  319. "023714", //CHAdeMO: charging system error
  320. "023715", //CHAdeMO: EV normal stop
  321. "023716", //CHAdeMO: connector temperature sensor broken
  322. "023717", //CHAdeMO: connector lock fail
  323. "023718", //CHAdeMO: D1 ON No Receive
  324. "023719", //CHAdeMO: BMS K to J Timeout
  325. "023720", //CHAdeMO: BMS Charge Allow Timeout
  326. "023721", //CHAdeMO: Wait GroundFault Timeout
  327. "023722", //CHAdeMO: BMS EV Relay Timeout
  328. "023723", //CHAdeMO: BMS Request Current Timeout
  329. "023724", //CHAdeMO: BMS K to J OFF Timeout
  330. "023725", //CHAdeMO: BMS EV Relay OFF Timeout
  331. "023726", //CHAdeMO: ADC More Than 10V
  332. "023727", //CHAdeMO: ADC More Than 20V
  333. "023728", //CHAdeMO: BMS Charge Before Stop
  334. "023729", //CHAdeMO: Charger Get Normal Stop
  335. "023730", //CHAdeMO: Charger Get Emergency Stop
  336. "023731", //CHAdeMO: Isolation Result Fail
  337. "023732", //CHAdeMO: Miss Link With MotherBoard
  338. "023733", //CHAdeMO: Output Voltage More Than Limit
  339. "023734", //CHAdeMO: Request Current More Than Limit
  340. "023735", //CHAdeMO: Re Cap BMS Eqr Current Exceed
  341. "023736", //CHAdeMO: Charge Remain Count Down
  342. "023737", //CCS:CCS_EVCC_EVErrorCode_FAILED_RESSTemperatureInhibit
  343. "023738", //CCS:CCS_EVCC_EVErrorCode_FAILED_EVShiftPosition
  344. "023739", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargerConnectorLockFault
  345. "023740", //CCS:CCS_EVCC_EVErrorCode_FAILED_EVRESSMalfunction
  346. "023741", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargingCurrentdifferential
  347. "023742", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargingVoltageOutOfRange
  348. "023743", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargingSystemIncompatibility
  349. "023744", //CCS:CCS_EVCC_EVErrorCode_FAILED_EmergencyEvent
  350. "023745", //CCS:CCS_EVCC_EVErrorCode_FAILED_Breaker
  351. "023746", //CCS:CCS_EVCC_EVErrorCode_FAILED_NoData
  352. "023747", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_DIN_A
  353. "023748", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_DIN_B
  354. "023749", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_DIN_C
  355. "023750", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_ISO_1
  356. "023751", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_ISO_2
  357. "023752", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_ISO_3
  358. "023753", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_1
  359. "023754", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_2
  360. "023755", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_3
  361. "023756", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_4
  362. "023757", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_5
  363. "023758", //CCS:CCS_SECC_ResponseCode_FAILED_SequenceError
  364. "023759", //CCS:CCS_SECC_ResponseCode_FAILED_SignatureError
  365. "023760", //CCS:CCS_SECC_ResponseCode_FAILED_UnknownSession
  366. "023761", //CCS:CCS_SECC_ResponseCode_FAILED_ServiceIDInvalid
  367. "023762", //CCS:CCS_SECC_ResponseCode_FAILED_Payment SelectionInvalid
  368. "023763", //CCS:CCS_SECC_ResponseCode_FAILED_IdentificationSelectionInvalid
  369. "023764", //CCS:CCS_SECC_ResponseCode_FAILED_ServiceSelectionInvalid
  370. "023765", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateExpired
  371. "023766", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateNotYetValid
  372. "023767", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateRevoked
  373. "023768", //CCS:CCS_SECC_ResponseCode_FAILED_NoCertificateAvailable
  374. "023769", //CCS:CCS_SECC_ResponseCode_FAILED_CertChainError
  375. "023770", //CCS:CCS_SECC_ResponseCode_FAILED_CertValidationError
  376. "023771", //CCS:CCS_SECC_ResponseCode_FAILED_CertVerificationError
  377. "023772", //CCS:CCS_SECC_ResponseCode_FAILED_ContractCanceled
  378. "023773", //CCS:CCS_SECC_ResponseCode_FAILED_ChallengeInvalid
  379. "023774", //CCS:CCS_SECC_ResponseCode_FAILED_WrongEnergyTransferMode
  380. "023775", //CCS:CCS_SECC_ResponseCode_FAILED_WrongChargeParameter
  381. "023776", //CCS:CCS_SECC_ResponseCode_FAILED_ChargingProfileInvalid
  382. "023777", //CCS:CCS_SECC_ResponseCode_FAILED_TariffSelectionInvalid
  383. "023778", //CCS:CCS_SECC_ResponseCode_FAILED_EVSEPresentVoltageToLow
  384. "023779", //CCS:CCS_SECC_ResponseCode_FAILED_PowerDeliveryNotApplied
  385. "023780", //CCS:CCS_SECC_ResponseCode_FAILED_MeteringSignatureNotValid
  386. "023781", //CCS:CCS_SECC_ResponseCode_FAILED_NoChargeServiceSelected
  387. "023782", //CCS:CCS_SECC_ResponseCode_FAILED_ContactorError
  388. "023783", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateNotAllowedAtThisEVSE
  389. "023784", //CCS:CCS_SECC_ResponseCode_FAILED_GAChargeStop
  390. "023785", //CCS:CCS_SECC_ResponseCode_FAILED_AlignmentError
  391. "023786", //CCS:CCS_SECC_ResponseCode_FAILED_ACDError
  392. "023787", //CCS:CCS_SECC_ResponseCode_FAILED_AssociationError
  393. "023788", //CCS:CCS_SECC_ResponseCode_FAILED_EVSEChargeAbort
  394. "023789", //CCS:CCS_SECC_ResponseCode_FAILED_NoSupportedApp-Protocol-Protocol
  395. "023790", //CCS:CCS_SECC_ResponseCode_FAILED_ContractNotAccepted
  396. "023791", //CCS:CCS_SECC_ResponseCode_FAILED_MOUnknown
  397. "023792", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_Prov_CertificateRevoke
  398. "023793", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_SubCA1_CertificateRevoked
  399. "023794", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_SubCA2_CertificateRevoked
  400. "023795", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_RootCA_CertificateRevoked
  401. "023796", //CCS:CCS_SECC_ResponseCode_FAILED_MO_Prov_CertificateRevoked
  402. "023797", //CCS:CCS_SECC_ResponseCode_FAILED_MO_SubCA1_CertificateRevoked
  403. "023798", //CCS:CCS_SECC_ResponseCode_FAILED_MO_SubCA2_CertificateRevoked
  404. "023799", //CCS:CCS_SECC_ResponseCode_FAILED_MO_RootCA_CertificateRevoked
  405. "023800", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_Prov_CertificateRevoked
  406. "023801", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_SubCA1_CertificateRevoked
  407. "023802", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_SubCA2_CertificateRevoked
  408. "023803", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_RootCA_CertificateRevoked
  409. "023804", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_1
  410. "023805", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_2
  411. "023806", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_3
  412. "023807", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_4
  413. "023808", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_5
  414. "023809", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_SLAC_init
  415. "023810", //CCS:CCS_SECC_TIMEOUT_SLAC_TP_match_response
  416. "023811", //CCS:CCS_SECC_TIMEOUT_CM_START_ATTEN_CHAR_IND
  417. "023812", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_match_MNBC
  418. "023813", //CCS:CCS_SECC_TIMEOUT_SLAC_TP_EVSE_avg_atten_calc
  419. "023814", //CCS:CCS_SECC_TIMEOUT_SLAC_CM_ATTEN_CHAR_RSP
  420. "023815", //CCS:CCS_SECC_TIMEOUT_SLAC_CM_VALIDATE_REQ_1ST__CM_SLAC_MATCH_REQ
  421. "023816", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_assoc_session
  422. "023817", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_vald_toggle
  423. "023818", //CCS:CCS_SECC_TIMEOUT_SLAC_CM_MNBC_SOUND_IND
  424. "023819", //CCS:CCS_SECC_TIMEOUT_SLAC_CM_VALIDATE_REQ_2ND__CM_SLAC_MATCH_REQ
  425. "023820", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_3
  426. "023821", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_4
  427. "023822", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_5
  428. "023823", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_UDP_TT_match_join
  429. "023824", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_TCP_TT_match_join
  430. "023825", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_TP_amp_map_exchange
  431. "023826", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_TP_link_ready_notification
  432. "023827", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_1
  433. "023828", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_2
  434. "023829", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_3
  435. "023830", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_4
  436. "023831", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_5
  437. "023832", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_SupportedAppProtocolRes
  438. "023833", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_SessionSetupRes
  439. "023834", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ServiceDiscoveryRes
  440. "023835", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ServicePaymentSelectionRes
  441. "023836", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ContractAuthenticationRes
  442. "023837", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ChargeParameterDiscoveryRes
  443. "023838", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_PowerDeliveryRes
  444. "023839", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_CableCheckRes
  445. "023840", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_PreChargeRes
  446. "023841", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_CurrentDemandRes
  447. "023842", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_WeldingDetectionRes
  448. "023843", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_SessionStopRes
  449. "023844", //CCS:CCS_SECC_TIMEOUT_V2G_Sequence_Time
  450. "023845", //CCS:CCS_SECC_TIMEOUT_V2G_ReadyToCharge_Performance_Time
  451. "023846", //CCS:CCS_SECC_TIMEOUT_V2G_CommunicationSetup_Performance_Time
  452. "023847", //CCS:CCS_SECC_TIMEOUT_V2G_CableCheck_Performance_Time
  453. "023848", //CCS:CCS_SECC_TIMEOUT_V2G_CPState_Detection_Time
  454. "023849", //CCS:CCS_SECC_TIMEOUT_V2G_CPOscillator_Retain_Time
  455. "023850", //CCS:CCS_SECC_TIMEOUT_V2G_PreCharge_Performace_Time
  456. "023851", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_2
  457. "023852", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_3
  458. "023853", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_4
  459. "023854", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_5
  460. "023855", //CCS:CCS_CAN_TIMEOUT_TP_GET_EV_TARGET_INFO
  461. "023856", //CCS:CCS_CAN_TIMEOUT_TT_GET_EV_TARGET_INFO
  462. "023857", //CCS:CCS_CAN_TIMEOUT_TP_GET_EV_BATTERY_INFO
  463. "023858", //CCS:CCS_CAN_TIMEOUT_TT_GET_EV_BATTERY_INFO
  464. "023859", //CCS:CCS_CAN_TIMEOUT_TP_EV_STOP_EVENT
  465. "023860", //CCS:CCS_CAN_TIMEOUT_TT_EV_STOP_EVENT
  466. "023861", //CCS:CCS_CAN_TIMEOUT_TP_EVSE_STOP_EVENT
  467. "023862", //CCS:CCS_CAN_TIMEOUT_TT_EVSE_STOP_EVENT
  468. "023863", //CCS:CCS_CAN_TIMEOUT_TP_GET_MISC_INFO
  469. "023864", //CCS:CCS_CAN_TIMEOUT_TT_GET_MISC_INFO
  470. "023865", //CCS:CCS_CAN_TIMEOUT_TP_DOWNLOAD_REQUEST
  471. "023866", //CCS:CCS_CAN_TIMEOUT_TT_DOWNLOAD_REQUEST
  472. "023867", //CCS:CCS_CAN_TIMEOUT_TP_START_BLOCK_TRANSFER
  473. "023868", //CCS:CCS_CAN_TIMEOUT_TT_START_BLOCK_TRANSFER
  474. "023869", //CCS:CCS_CAN_TIMEOUT_TP_DATA_TRANSFER
  475. "023870", //CCS:CCS_CAN_TIMEOUT_TT_DATA_TRANSFER
  476. "023871", //CCS:CCS_CAN_TIMEOUT_TP_DOWNLOAD_FINISH
  477. "023872", //CCS:CCS_CAN_TIMEOUT_TT_DOWNLOAD_FINISH
  478. "023873", //CCS:CCS_CAN_TIMEOUT_TP_ISOLATION_STATUS
  479. "023874", //CCS:CCS_CAN_TIMEOUT_TT_ISOLATION_STATUS
  480. "023875", //CCS:CCS_CAN_TIMEOUT_TP_CONNECTOR_INFO
  481. "023876", //CCS:CCS_CAN_TIMEOUT_TT_CONNECTOR_INFO
  482. "023877", //CCS:CCS_CAN_TIMEOUT_TT_RTC_INFO
  483. "023878", //CCS:CCS_CAN_TIMEOUT_TP_RTC_INFO
  484. "023879", //CCS:CCS_CAN_TIMEOUT_TP_EVSE_PRECHARGE_INFO
  485. "023880", //CCS:CCS_CAN_TIMEOUT_TT_EVSE_PRECHARGE_INFO
  486. "023881", //CCS:CCS_CAN_TIMEOUT_MSG_Sequence
  487. "023882", //CCS:CCS_CAN_MSG_Unrecognized_CMD_ID
  488. "023883", //CCS:CCS_SECC_DIN_Msg_Decode_Error
  489. "023884", //CCS:CCS_SECC_DIN_Msg_Encode_Error
  490. "023885", //CCS:CCS_SECC_ISO1_Msg_Decode_Error
  491. "023886", //CCS:CCS_SECC_ISO1_Msg_Encode_Error
  492. "023887", //CCS:CCS_SECC_ISO2_Msg_Decode_Error
  493. "023888", //CCS:CCS_SECC_ISO2_Msg_Encode_Error
  494. "023889", //CCS:CCS_SECC_CP_STATUS_Error
  495. "023890", //CCS:CCS_SECC_Unexpected_60V_Before_Charing_Error
  496. "023891", //CCS:CCS_SECC_Not_Ready_For_Charging
  497. "023892", //CCS:CCS_SECCC_TIMEOUT_QCA7000_COMM (The firmware code of QCA7000 may not be installed, yet)
  498. "023893", //CCS:CCS_SECC_FAIL_QCA7000_SETKEY
  499. "023894", //Reserved
  500. "023895", //Reserved
  501. "023896", //Reserved
  502. "023897", //Reserved
  503. "023898", //Reserved
  504. "023899", //Reserved
  505. "023900", //GBT: ERROR_CODE_GBT_LOS_CC1
  506. "023901", //GBT: ERROR_CODE_GBT_CONNECTOR_LOCK_FAIL
  507. "023902", //GBT: ERROR_CODE_GBT_BATTERY_INCOMPATIBLE
  508. "023903", //GBT: ERROR_CODE_GBT_BMS_BROAA_TIMEOUT
  509. "023904", //GBT: ERROR_CODE_GBT_CSU_PRECHARGE_TIMEOUT
  510. "023905", //GBT: ERROR_CODE_GBT_BMS_PRESENT_VOLTAGE_FAULT
  511. "023906", //GBT: ERROR_CODE_GBT_BMS_VOLTAGE_OVER_RANGE
  512. "023907", //GBT: ERROR_CODE_GBT_BSM_CHARGE_ALLOW_00_10MIN_COUUNTDONE
  513. "023908", //GBT: ERROR_CODE_GBT_WAIT_GROUNDFAULT_TIMEOUT
  514. "023909", //GBT: ERROR_CODE_GBT_ADC_MORE_THAN_10V
  515. "023910", //GBT: ERROR_CODE_GBT_ADC_MORE_THAN_60V
  516. "023911", //GBT: ERROR_CODE_GBT_CHARGER_GET_NORMAL_STOP_CMD
  517. "023912", //GBT: ERROR_CODE_GBT_CHARGER_GET_EMERGENCY_STOP_CMD
  518. "023913", //GBT: ERROR_CODE_GBT_ISOLATION_RESULT_FAIL
  519. "023914", //GBT: ERROR_CODE_GBT_MOTHER_BOARD_MISS_LINK
  520. "023915", //GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_LIMIT
  521. "023916", //GBT: ERROR_CODE_GBT_REQ_CURRENT_MORE_THAN_LIMIT
  522. "023917", //GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_10_PERCENT
  523. "023918", //GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_DIFF_BCS_5_PERCENT
  524. "023919", //GBT: ERROR_CODE_GBT_STOP_ADC_MORE_THAN_10V
  525. "023920", // Reserved
  526. "023921", // Reserved
  527. "023922", // Reserved
  528. "023923", // Reserved
  529. "023924", // Reserved
  530. "023925", // Reserved
  531. "023926", // Reserved
  532. "023927", // Reserved
  533. "023928", // Reserved
  534. "023929", // Reserved
  535. "023930", //GBT: ERROR_CODE_CEM_BHM_TIMEOUT
  536. "023931", //GBT: ERROR_CODE_CEM_BRM_TIMEOUT
  537. "023932", //GBT: ERROR_CODE_CEM_BCP_TIMEOUT
  538. "023933", //GBT: ERROR_CODE_CEM_BRO_TIMEOUT
  539. "023934", //GBT: ERROR_CODE_CEM_BCL_TIMEOUT
  540. "023935", //GBT: ERROR_CODE_CEM_BCS_TIMEOUT
  541. "023936", //GBT: ERROR_CODE_CEM_BSM_TIMEOUT
  542. "023937", //GBT: ERROR_CODE_CEM_BST_TIMEOUT
  543. "023938", //GBT: ERROR_CODE_CEM_BSD_TIMEOUT
  544. "023939", //GBT: ERROR_CODE_CEM_BEM_OTHER_TIMEOUT
  545. "023940", //GBT: ERROR_CODE_BEM_CRM_TIMEOUT
  546. "023941", //GBT: ERROR_CODE_BEM_CRMAA_TIMEOUT
  547. "023942", //GBT: ERROR_CODE_BEM_CTS_CML_TIMEOUT
  548. "023943", //GBT: ERROR_CODE_BEM_CRO_TIMEOUT
  549. "023944", //GBT: ERROR_CODE_BEM_CCS_TIMEOUT
  550. "023945", //GBT: ERROR_CODE_BEM_CST_TIMEOUT
  551. "023946", //GBT: ERROR_CODE_BEM_CSD_TIMEOUT
  552. "023947", //GBT: ERROR_CODE_BEM_BEM_OTHER_TIMEOUT
  553. "023948", // Reserved
  554. "023949", // Reserved
  555. "023950", //GBT: ERROR_CODE_BST_SOC_GOAL
  556. "023951", //GBT: ERROR_CODE_BST_TOTAL_VOLTAGE_GOAL
  557. "023952", //GBT: ERROR_CODE_BST_CELL_VOLTAGE_GOAL
  558. "023953", //GBT: ERROR_CODE_BST_GET_CST
  559. "023954", //GBT: ERROR_CODE_BST_ISOLATION
  560. "023955", //GBT: ERROR_CODE_BST_OUTPUT_CONNECTOR_OTP
  561. "023956", //GBT: ERROR_CODE_BST_COMPONENT
  562. "023957", //GBT: ERROR_CODE_BST_CHARGE_CONNECTOR
  563. "023958", //GBT: ERROR_CODE_BST_OTP
  564. "023959", //GBT: ERROR_CODE_BST_OTHER
  565. "023960", //GBT: ERROR_CODE_BST_HIGH_V
  566. "023961", //GBT: ERROR_CODE_BST_CC2
  567. "023962", //GBT: ERROR_CODE_BST_CURRENT
  568. "023963", //GBT: ERROR_CODE_BST_VOLTAGE
  569. "023964", //GBT: ERROR_CODE_GET_BST_NO_REASON
  570. "023965", // Reserved
  571. "023966", // Reserved
  572. "023967", // Reserved
  573. "023968", // Reserved
  574. "023969", // Reserved
  575. "023970", //GBT: ERROR_CODE_BSM_CELL_OVER_VOLTAGE
  576. "023971", //GBT: ERROR_CODE_BSM_CELL_UNDER_VOLTAGE
  577. "023972", //GBT: ERROR_CODE_BSM_OVER_SOC
  578. "023973", //GBT: ERROR_CODE_BSM_UNDER_SOC
  579. "023974", //GBT: ERROR_CODE_BSM_CURRENT
  580. "023975", //GBT: ERROR_CODE_BSM_TEMPERATURE
  581. "023976", //GBT: ERROR_CODE_BSM_ISOLATE
  582. "023977", //GBT: ERROR_CODE_BSM_OUTPUT_CONNECTOR
  583. "023978", // Reserved
  584. "023979", // EV full charging
  585. "023980", // ERROR_CODE_CHADEMO_BMS_CHARGE_ALLOW_ERROR
  586. "023981", // ERROR_CODE_CHADEMO_OUTPUT_VOLTAGE_MORE_THEN_10_PERCENT
  587. "023982", // ERROR_CODE_CHADEMO_ADC_LESS_THAN_10V
  588. "023983", // STOP by EV with unknow reason
  589. "023984", // Reserved
  590. "023985", // Reserved
  591. "023986", // Reserved
  592. "023987", // Reserved
  593. "033900", //disconnected from backend through Ethernet
  594. "033901", //disconnected from backend through WiFi
  595. "033902", //disconnected from backend through 3G/4G
  596. "033903", //Remote start charging by backend
  597. "033904", //Remote stop charging by backend
  598. "033905", //Remote reset by backend
  599. "033906", //Authorization failed
  600. "033907", //Reserved
  601. };
  602. //------------------------------------------------------------------------------
  603. char *GetCurrency(uint8_t index)
  604. {
  605. return &Currency[index][0];
  606. }
  607. char *GetFaultStatusCode(uint8_t index)
  608. {
  609. return &FaultStatusCode[index][0];
  610. }
  611. char *GetAlarmStatusCode(uint8_t index)
  612. {
  613. return &AlarmStatusCode[index][0];
  614. }
  615. char *GetInfoStatusCode(uint16_t index)
  616. {
  617. return &InfoStatusCode[index][0];
  618. }