define.c 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <stdint.h>
  4. #include "define.h"
  5. //------------------------------------------------------------------------------
  6. char Currency[54][3]=
  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[40][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", //Reserved
  103. "011039", //Reserved
  104. "011040" //Reserved
  105. };
  106. char AlarmStatusCode[128][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", // reserved
  229. "012321", // reserved
  230. "012322", // reserved
  231. "012323", // reserved
  232. "012324", // reserved
  233. "012325", // reserved
  234. "012326", // reserved
  235. "012327", // reserved
  236. };
  237. char InfoStatusCode[384][6]=
  238. {
  239. //Information comes from EVSE
  240. "013600", //Normal stop charging by user
  241. "013601", //Charging Time's up
  242. "013602", //Replace system air filter
  243. "013603", //Reach to CHAdeMO max. plugging times.
  244. "013604", //Reach to CCS max. plugging times.
  245. "013605", //Reach to GB max. plugging times.
  246. "013606", //Reach to AC max. plugging times.
  247. "013607", //CSU fimrware update fail
  248. "013608", //CHAdeMO Module fimrware update fail
  249. "013609", //CCS Module fimrware update fail
  250. "013610", //GB Module fimrware update fail
  251. "013611", //Aux. power module fimrware update fail
  252. "013612", //Relay control module fimrware update fail
  253. "013613", //LCM module fimrware update fail
  254. "013614", //Bluetooth module fimrware update fail
  255. "013615", //WiFi module fimrware update fail
  256. "013616", //3G/4G module fimrware update fail
  257. "013617", //SMR fimrware update fail
  258. "013618", //RFID module fimrware update fail
  259. "013619", //configured by USB flash drive
  260. "013620", //configured by backend
  261. "013621", //configured by webpage
  262. "013622", //disconnected from Internet through Ethernet
  263. "013623", //disconnected from Internet through WiFi
  264. "013624", //disconnected from Internet through 3G/4G
  265. "013625", //disconnected from AP through WiFi
  266. "013626", //disconnected from APN through 3G/4G
  267. "013627", //WiFi disabled (separated charger only)
  268. "013628", //4G disabled (separated charger only)
  269. "013629", //Reserved
  270. "013630", //Reserved
  271. "013631", //Reserved
  272. //Information comes from EV
  273. "023700", //CHAdeMO EV communication Fail
  274. "023701", //CCS EV communication Fail
  275. "023702", //GB EV communication Fail
  276. "023703", //AC: pilot fault
  277. "023704", //CHAdeMO: battery malfunction
  278. "023705", //CHAdeMO: no charging permission
  279. "023706", //CHAdeMO: battery incompatibility
  280. "023707", //CHAdeMO: battery OVP
  281. "023708", //CHAdeMO: battery UVP
  282. "023709", //CHAdeMO: battery OTP
  283. "023710", //CHAdeMO: battery current difference
  284. "023711", //CHAdeMO: battery voltage difference
  285. "023712", //CHAdeMO: shift position
  286. "023713", //CHAdeMO: battery other fault
  287. "023714", //CHAdeMO: charging system error
  288. "023715", //CHAdeMO: EV normal stop
  289. "023716", //CHAdeMO: connector temperature sensor broken
  290. "023717", //CHAdeMO: connector lock fail
  291. "023718", //CHAdeMO: D1 ON No Receive
  292. "023719", //CHAdeMO: BMS K to J Timeout
  293. "023720", //CHAdeMO: BMS Charge Allow Timeout
  294. "023721", //CHAdeMO: Wait GroundFault Timeout
  295. "023722", //CHAdeMO: BMS EV Relay Timeout
  296. "023723", //CHAdeMO: BMS Request Current Timeout
  297. "023724", //CHAdeMO: BMS K to J OFF Timeout
  298. "023725", //CHAdeMO: BMS EV Relay OFF Timeout
  299. "023726", //CHAdeMO: ADC More Than 10V
  300. "023727", //CHAdeMO: ADC More Than 20V
  301. "023728", //CHAdeMO: BMS Charge Before Stop
  302. "023729", //CHAdeMO: Charger Get Normal Stop
  303. "023730", //CHAdeMO: Charger Get Emergency Stop
  304. "023731", //CHAdeMO: Isolation Result Fail
  305. "023732", //CHAdeMO: Miss Link With MotherBoard
  306. "023733", //CHAdeMO: Output Voltage More Than Limit
  307. "023734", //CHAdeMO: Request Current More Than Limit
  308. "023735", //CHAdeMO: Re Cap BMS Eqr Current Exceed
  309. "023736", //CHAdeMO: Charge Remain Count Down
  310. "023737", //CCS:CCS_EVCC_EVErrorCode_FAILED_RESSTemperatureInhibit
  311. "023738", //CCS:CCS_EVCC_EVErrorCode_FAILED_EVShiftPosition
  312. "023739", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargerConnectorLockFault
  313. "023740", //CCS:CCS_EVCC_EVErrorCode_FAILED_EVRESSMalfunction
  314. "023741", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargingCurrentdifferential
  315. "023742", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargingVoltageOutOfRange
  316. "023743", //CCS:CCS_EVCC_EVErrorCode_FAILED_ChargingSystemIncompatibility
  317. "023744", //CCS:CCS_EVCC_EVErrorCode_FAILED_EmergencyEvent
  318. "023745", //CCS:CCS_EVCC_EVErrorCode_FAILED_Breaker
  319. "023746", //CCS:CCS_EVCC_EVErrorCode_FAILED_NoData
  320. "023747", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_DIN_A
  321. "023748", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_DIN_B
  322. "023749", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_DIN_C
  323. "023750", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_ISO_1
  324. "023751", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_ISO_2
  325. "023752", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_ISO_3
  326. "023753", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_1
  327. "023754", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_2
  328. "023755", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_3
  329. "023756", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_4
  330. "023757", //CCS:CCS_EVCC_EVErrorCode_FAILED_reserved_by_OEM_5
  331. "023758", //CCS:CCS_SECC_ResponseCode_FAILED_SequenceError
  332. "023759", //CCS:CCS_SECC_ResponseCode_FAILED_SignatureError
  333. "023760", //CCS:CCS_SECC_ResponseCode_FAILED_UnknownSession
  334. "023761", //CCS:CCS_SECC_ResponseCode_FAILED_ServiceIDInvalid
  335. "023762", //CCS:CCS_SECC_ResponseCode_FAILED_Payment SelectionInvalid
  336. "023763", //CCS:CCS_SECC_ResponseCode_FAILED_IdentificationSelectionInvalid
  337. "023764", //CCS:CCS_SECC_ResponseCode_FAILED_ServiceSelectionInvalid
  338. "023765", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateExpired
  339. "023766", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateNotYetValid
  340. "023767", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateRevoked
  341. "023768", //CCS:CCS_SECC_ResponseCode_FAILED_NoCertificateAvailable
  342. "023769", //CCS:CCS_SECC_ResponseCode_FAILED_CertChainError
  343. "023770", //CCS:CCS_SECC_ResponseCode_FAILED_CertValidationError
  344. "023771", //CCS:CCS_SECC_ResponseCode_FAILED_CertVerificationError
  345. "023772", //CCS:CCS_SECC_ResponseCode_FAILED_ContractCanceled
  346. "023773", //CCS:CCS_SECC_ResponseCode_FAILED_ChallengeInvalid
  347. "023774", //CCS:CCS_SECC_ResponseCode_FAILED_WrongEnergyTransferMode
  348. "023775", //CCS:CCS_SECC_ResponseCode_FAILED_WrongChargeParameter
  349. "023776", //CCS:CCS_SECC_ResponseCode_FAILED_ChargingProfileInvalid
  350. "023777", //CCS:CCS_SECC_ResponseCode_FAILED_TariffSelectionInvalid
  351. "023778", //CCS:CCS_SECC_ResponseCode_FAILED_EVSEPresentVoltageToLow
  352. "023779", //CCS:CCS_SECC_ResponseCode_FAILED_PowerDeliveryNotApplied
  353. "023780", //CCS:CCS_SECC_ResponseCode_FAILED_MeteringSignatureNotValid
  354. "023781", //CCS:CCS_SECC_ResponseCode_FAILED_NoChargeServiceSelected
  355. "023782", //CCS:CCS_SECC_ResponseCode_FAILED_ContactorError
  356. "023783", //CCS:CCS_SECC_ResponseCode_FAILED_CertificateNotAllowedAtThisEVSE
  357. "023784", //CCS:CCS_SECC_ResponseCode_FAILED_GAChargeStop
  358. "023785", //CCS:CCS_SECC_ResponseCode_FAILED_AlignmentError
  359. "023786", //CCS:CCS_SECC_ResponseCode_FAILED_ACDError
  360. "023787", //CCS:CCS_SECC_ResponseCode_FAILED_AssociationError
  361. "023788", //CCS:CCS_SECC_ResponseCode_FAILED_EVSEChargeAbort
  362. "023789", //CCS:CCS_SECC_ResponseCode_FAILED_NoSupportedApp-Protocol-Protocol
  363. "023790", //CCS:CCS_SECC_ResponseCode_FAILED_ContractNotAccepted
  364. "023791", //CCS:CCS_SECC_ResponseCode_FAILED_MOUnknown
  365. "023792", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_Prov_CertificateRevoke
  366. "023793", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_SubCA1_CertificateRevoked
  367. "023794", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_SubCA2_CertificateRevoked
  368. "023795", //CCS:CCS_SECC_ResponseCode_FAILED_OEM_RootCA_CertificateRevoked
  369. "023796", //CCS:CCS_SECC_ResponseCode_FAILED_MO_Prov_CertificateRevoked
  370. "023797", //CCS:CCS_SECC_ResponseCode_FAILED_MO_SubCA1_CertificateRevoked
  371. "023798", //CCS:CCS_SECC_ResponseCode_FAILED_MO_SubCA2_CertificateRevoked
  372. "023799", //CCS:CCS_SECC_ResponseCode_FAILED_MO_RootCA_CertificateRevoked
  373. "023800", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_Prov_CertificateRevoked
  374. "023801", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_SubCA1_CertificateRevoked
  375. "023802", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_SubCA2_CertificateRevoked
  376. "023803", //CCS:CCS_SECC_ResponseCode_FAILED_CPS_RootCA_CertificateRevoked
  377. "023804", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_1
  378. "023805", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_2
  379. "023806", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_3
  380. "023807", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_4
  381. "023808", //CCS:CCS_SECC_ResponseCode_FAILED_reserved_5
  382. "023809", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_SLAC_init
  383. "023810", //CCS:CCS_SECC_TIMEOUT_SLAC_TP_match_response
  384. "023811", //CCS:CCS_SECC_TIMEOUT_CM_START_ATTEN_CHAR_IND
  385. "023812", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_match_MNBC
  386. "023813", //CCS:CCS_SECC_TIMEOUT_SLAC_TP_EVSE_avg_atten_calc
  387. "023814", //CCS:CCS_SECC_TIMEOUT_SLAC_CM_ATTEN_CHAR_RSP
  388. "023815", //CCS:CCS_SECC_TIMEOUT_SLAC_CM_VALIDATE_REQ_1ST__CM_SLAC_MATCH_REQ
  389. "023816", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_assoc_session
  390. "023817", //CCS:CCS_SECC_TIMEOUT_SLAC_TT_EVSE_vald_toggle
  391. "023818", //CCS:CCS_SECC_TIMEOUT_SLAC_CM_MNBC_SOUND_IND
  392. "023819", //CCS:CCS_SECC_TIMEOUT_SLAC_CM_VALIDATE_REQ_2ND__CM_SLAC_MATCH_REQ
  393. "023820", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_3
  394. "023821", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_4
  395. "023822", //CCS:CCS_SECC_TIMEOUT_SLAC_reserved_5
  396. "023823", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_UDP_TT_match_join
  397. "023824", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_TCP_TT_match_join
  398. "023825", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_TP_amp_map_exchange
  399. "023826", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_TP_link_ready_notification
  400. "023827", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_1
  401. "023828", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_2
  402. "023829", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_3
  403. "023830", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_4
  404. "023831", //CCS:CCS_SECC_TIMEOUT_SLACC_SDP_reserved_5
  405. "023832", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_SupportedAppProtocolRes
  406. "023833", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_SessionSetupRes
  407. "023834", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ServiceDiscoveryRes
  408. "023835", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ServicePaymentSelectionRes
  409. "023836", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ContractAuthenticationRes
  410. "023837", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_ChargeParameterDiscoveryRes
  411. "023838", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_PowerDeliveryRes
  412. "023839", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_CableCheckRes
  413. "023840", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_PreChargeRes
  414. "023841", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_CurrentDemandRes
  415. "023842", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_WeldingDetectionRes
  416. "023843", //CCS:CCS_SECC_TIMEOUT_V2G_Msg_Performance_Time_SessionStopRes
  417. "023844", //CCS:CCS_SECC_TIMEOUT_V2G_Sequence_Time
  418. "023845", //CCS:CCS_SECC_TIMEOUT_V2G_ReadyToCharge_Performance_Time
  419. "023846", //CCS:CCS_SECC_TIMEOUT_V2G_CommunicationSetup_Performance_Time
  420. "023847", //CCS:CCS_SECC_TIMEOUT_V2G_CableCheck_Performance_Time
  421. "023848", //CCS:CCS_SECC_TIMEOUT_V2G_CPState_Detection_Time
  422. "023849", //CCS:CCS_SECC_TIMEOUT_V2G_CPOscillator_Retain_Time
  423. "023850", //CCS:CCS_SECC_TIMEOUT_V2G_PreCharge_Performace_Time
  424. "023851", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_2
  425. "023852", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_3
  426. "023853", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_4
  427. "023854", //CCS:CCS_SECC_TIMEOUT_V2G_reserved_5
  428. "023855", //CCS:CCS_CAN_TIMEOUT_TP_GET_EV_TARGET_INFO
  429. "023856", //CCS:CCS_CAN_TIMEOUT_TT_GET_EV_TARGET_INFO
  430. "023857", //CCS:CCS_CAN_TIMEOUT_TP_GET_EV_BATTERY_INFO
  431. "023858", //CCS:CCS_CAN_TIMEOUT_TT_GET_EV_BATTERY_INFO
  432. "023859", //CCS:CCS_CAN_TIMEOUT_TP_EV_STOP_EVENT
  433. "023860", //CCS:CCS_CAN_TIMEOUT_TT_EV_STOP_EVENT
  434. "023861", //CCS:CCS_CAN_TIMEOUT_TP_EVSE_STOP_EVENT
  435. "023862", //CCS:CCS_CAN_TIMEOUT_TT_EVSE_STOP_EVENT
  436. "023863", //CCS:CCS_CAN_TIMEOUT_TP_GET_MISC_INFO
  437. "023864", //CCS:CCS_CAN_TIMEOUT_TT_GET_MISC_INFO
  438. "023865", //CCS:CCS_CAN_TIMEOUT_TP_DOWNLOAD_REQUEST
  439. "023866", //CCS:CCS_CAN_TIMEOUT_TT_DOWNLOAD_REQUEST
  440. "023867", //CCS:CCS_CAN_TIMEOUT_TP_START_BLOCK_TRANSFER
  441. "023868", //CCS:CCS_CAN_TIMEOUT_TT_START_BLOCK_TRANSFER
  442. "023869", //CCS:CCS_CAN_TIMEOUT_TP_DATA_TRANSFER
  443. "023870", //CCS:CCS_CAN_TIMEOUT_TT_DATA_TRANSFER
  444. "023871", //CCS:CCS_CAN_TIMEOUT_TP_DOWNLOAD_FINISH
  445. "023872", //CCS:CCS_CAN_TIMEOUT_TT_DOWNLOAD_FINISH
  446. "023873", //CCS:CCS_CAN_TIMEOUT_TP_ISOLATION_STATUS
  447. "023874", //CCS:CCS_CAN_TIMEOUT_TT_ISOLATION_STATUS
  448. "023875", //CCS:CCS_CAN_TIMEOUT_TP_CONNECTOR_INFO
  449. "023876", //CCS:CCS_CAN_TIMEOUT_TT_CONNECTOR_INFO
  450. "023877", //CCS:CCS_CAN_TIMEOUT_TT_RTC_INFO
  451. "023878", //CCS:CCS_CAN_TIMEOUT_TP_RTC_INFO
  452. "023879", //CCS:CCS_CAN_TIMEOUT_TP_EVSE_PRECHARGE_INFO
  453. "023880", //CCS:CCS_CAN_TIMEOUT_TT_EVSE_PRECHARGE_INFO
  454. "023881", //CCS:CCS_CAN_TIMEOUT_MSG_Sequence
  455. "023882", //CCS:CCS_CAN_MSG_Unrecognized_CMD_ID
  456. "023883", //CCS:CCS_SECC_DIN_Msg_Decode_Error
  457. "023884", //CCS:CCS_SECC_DIN_Msg_Encode_Error
  458. "023885", //CCS:CCS_SECC_ISO1_Msg_Decode_Error
  459. "023886", //CCS:CCS_SECC_ISO1_Msg_Encode_Error
  460. "023887", //CCS:CCS_SECC_ISO2_Msg_Decode_Error
  461. "023888", //CCS:CCS_SECC_ISO2_Msg_Encode_Error
  462. "023889", //CCS:CCS_SECC_CP_STATUS_Error
  463. "023890", //CCS:CCS_SECC_Unexpected_60V_Before_Charing_Error
  464. "023891", //CCS:CCS_SECC_Not_Ready_For_Charging
  465. "023892", //CCS:CCS_SECCC_TIMEOUT_QCA7000_COMM (The firmware code of QCA7000 may not be installed, yet)
  466. "023893", //CCS:CCS_SECC_FAIL_QCA7000_SETKEY
  467. "023894", //Reserved
  468. "023895", //Reserved
  469. "023896", //Reserved
  470. "023897", //Reserved
  471. "023898", //Reserved
  472. "023899", //Reserved
  473. "023900", //GBT: ERROR_CODE_GBT_LOS_CC1
  474. "023901", //GBT: ERROR_CODE_GBT_CONNECTOR_LOCK_FAIL
  475. "023902", //GBT: ERROR_CODE_GBT_BATTERY_INCOMPATIBLE
  476. "023903", //GBT: ERROR_CODE_GBT_BMS_BROAA_TIMEOUT
  477. "023904", //GBT: ERROR_CODE_GBT_CSU_PRECHARGE_TIMEOUT
  478. "023905", //GBT: ERROR_CODE_GBT_BMS_PRESENT_VOLTAGE_FAULT
  479. "023906", //GBT: ERROR_CODE_GBT_BMS_VOLTAGE_OVER_RANGE
  480. "023907", //GBT: ERROR_CODE_GBT_BSM_CHARGE_ALLOW_00_10MIN_COUUNTDONE
  481. "023908", //GBT: ERROR_CODE_GBT_WAIT_GROUNDFAULT_TIMEOUT
  482. "023909", //GBT: ERROR_CODE_GBT_ADC_MORE_THAN_10V
  483. "023910", //GBT: ERROR_CODE_GBT_ADC_MORE_THAN_60V
  484. "023911", //GBT: ERROR_CODE_GBT_CHARGER_GET_NORMAL_STOP_CMD
  485. "023912", //GBT: ERROR_CODE_GBT_CHARGER_GET_EMERGENCY_STOP_CMD
  486. "023913", //GBT: ERROR_CODE_GBT_ISOLATION_RESULT_FAIL
  487. "023914", //GBT: ERROR_CODE_GBT_MOTHER_BOARD_MISS_LINK
  488. "023915", //GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_LIMIT
  489. "023916", //GBT: ERROR_CODE_GBT_REQ_CURRENT_MORE_THAN_LIMIT
  490. "023917", //GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_10_PERCENT
  491. "023918", //GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_DIFF_BCS_5_PERCENT
  492. "023919", //GBT: ERROR_CODE_GBT_STOP_ADC_MORE_THAN_10V
  493. "023920", // Reserved
  494. "023921", // Reserved
  495. "023922", // Reserved
  496. "023923", // Reserved
  497. "023924", // Reserved
  498. "023925", // Reserved
  499. "023926", // Reserved
  500. "023927", // Reserved
  501. "023928", // Reserved
  502. "023929", // Reserved
  503. "023930", //GBT: ERROR_CODE_CEM_BHM_TIMEOUT
  504. "023931", //GBT: ERROR_CODE_CEM_BRM_TIMEOUT
  505. "023932", //GBT: ERROR_CODE_CEM_BCP_TIMEOUT
  506. "023933", //GBT: ERROR_CODE_CEM_BRO_TIMEOUT
  507. "023934", //GBT: ERROR_CODE_CEM_BCL_TIMEOUT
  508. "023935", //GBT: ERROR_CODE_CEM_BCS_TIMEOUT
  509. "023936", //GBT: ERROR_CODE_CEM_BSM_TIMEOUT
  510. "023937", //GBT: ERROR_CODE_CEM_BST_TIMEOUT
  511. "023938", //GBT: ERROR_CODE_CEM_BSD_TIMEOUT
  512. "023939", //GBT: ERROR_CODE_CEM_BEM_OTHER_TIMEOUT
  513. "023940", //GBT: ERROR_CODE_BEM_CRM_TIMEOUT
  514. "023941", //GBT: ERROR_CODE_BEM_CRMAA_TIMEOUT
  515. "023942", //GBT: ERROR_CODE_BEM_CTS_CML_TIMEOUT
  516. "023943", //GBT: ERROR_CODE_BEM_CRO_TIMEOUT
  517. "023944", //GBT: ERROR_CODE_BEM_CCS_TIMEOUT
  518. "023945", //GBT: ERROR_CODE_BEM_CST_TIMEOUT
  519. "023946", //GBT: ERROR_CODE_BEM_CSD_TIMEOUT
  520. "023947", //GBT: ERROR_CODE_BEM_BEM_OTHER_TIMEOUT
  521. "023948", // Reserved
  522. "023949", // Reserved
  523. "023950", //GBT: ERROR_CODE_BST_SOC_GOAL
  524. "023951", //GBT: ERROR_CODE_BST_TOTAL_VOLTAGE_GOAL
  525. "023952", //GBT: ERROR_CODE_BST_CELL_VOLTAGE_GOAL
  526. "023953", //GBT: ERROR_CODE_BST_GET_CST
  527. "023954", //GBT: ERROR_CODE_BST_ISOLATION
  528. "023955", //GBT: ERROR_CODE_BST_OUTPUT_CONNECTOR_OTP
  529. "023956", //GBT: ERROR_CODE_BST_COMPONENT
  530. "023957", //GBT: ERROR_CODE_BST_CHARGE_CONNECTOR
  531. "023958", //GBT: ERROR_CODE_BST_OTP
  532. "023959", //GBT: ERROR_CODE_BST_OTHER
  533. "023960", //GBT: ERROR_CODE_BST_HIGH_V
  534. "023961", //GBT: ERROR_CODE_BST_CC2
  535. "023962", //GBT: ERROR_CODE_BST_CURRENT
  536. "023963", //GBT: ERROR_CODE_BST_VOLTAGE
  537. "023964", //GBT: ERROR_CODE_GET_BST_NO_REASON
  538. "023965", // Reserved
  539. "023966", // Reserved
  540. "023967", // Reserved
  541. "023968", // Reserved
  542. "023969", // Reserved
  543. "023970", //GBT: ERROR_CODE_BSM_CELL_OVER_VOLTAGE
  544. "023971", //GBT: ERROR_CODE_BSM_CELL_UNDER_VOLTAGE
  545. "023972", //GBT: ERROR_CODE_BSM_OVER_SOC
  546. "023973", //GBT: ERROR_CODE_BSM_UNDER_SOC
  547. "023974", //GBT: ERROR_CODE_BSM_CURRENT
  548. "023975", //GBT: ERROR_CODE_BSM_TEMPERATURE
  549. "023976", //GBT: ERROR_CODE_BSM_ISOLATE
  550. "023977", //GBT: ERROR_CODE_BSM_OUTPUT_CONNECTOR
  551. "023978", // Reserved
  552. "023979", // EV full charging
  553. "023980", // ERROR_CODE_CHADEMO_BMS_CHARGE_ALLOW_ERROR
  554. "023981", // ERROR_CODE_CHADEMO_OUTPUT_VOLTAGE_MORE_THEN_10_PERCENT
  555. "023982", // ERROR_CODE_CHADEMO_ADC_LESS_THAN_10V
  556. "023983", // STOP by EV with unknow reason
  557. "023984", // Reserved
  558. "023985", // Reserved
  559. "023986", // Reserved
  560. "023987", // Reserved
  561. "033900", //disconnected from backend through Ethernet
  562. "033901", //disconnected from backend through WiFi
  563. "033902", //disconnected from backend through 3G/4G
  564. "033903", //Remote start charging by backend
  565. "033904", //Remote stop charging by backend
  566. "033905", //Remote reset by backend
  567. "033906", //Authorization failed
  568. "033907", //Reserved
  569. };
  570. //------------------------------------------------------------------------------
  571. char *GetCurrency(uint8_t index)
  572. {
  573. return &Currency[index][0];
  574. }
  575. char *GetFaultStatusCode(uint8_t index)
  576. {
  577. return &FaultStatusCode[index][0];
  578. }
  579. char *GetAlarmStatusCode(uint8_t index)
  580. {
  581. return &AlarmStatusCode[index][0];
  582. }
  583. char *GetInfoStatusCode(uint16_t index)
  584. {
  585. return &InfoStatusCode[index][0];
  586. }