Config.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
  1. /*
  2. * Config.h
  3. *
  4. * Created on: 2019年4月23日
  5. * Author: foluswen
  6. */
  7. #ifndef CONFIG_H_
  8. #define CONFIG_H_
  9. //------------------------------------------------------------------------------
  10. #include <stdint.h>
  11. #include <time.h>
  12. //------------------------------------------------------------------------------
  13. //Dispenser simulation ev signal
  14. //------------------------------------------------------------------------------
  15. #define SIMULATION 0
  16. //------------------------------------------------------------------------------
  17. //independent common share memory key
  18. //------------------------------------------------------------------------------
  19. #define ShmCsuMeterKey 2001
  20. #define ShmCommonKey 2002
  21. //------------------------------------------------------------------------------
  22. #define TOTAL_QUANTITY_GUN 4 //Max Count
  23. //------------------------------------------------------------------------------
  24. //system runtime state
  25. //------------------------------------------------------------------------------
  26. #define MODE_BOOT (0)
  27. #define MODE_IDLE (1)
  28. #define MODE_AUTHORIZING (2)
  29. #define MODE_REASSIGN_CHECK (3)
  30. #define MODE_REASSIGN (4)
  31. #define MODE_PRECHARGE (5)
  32. #define MODE_PREPARE_FOR_EV (6)
  33. #define MODE_PREPARE_FOR_EVSE (7)
  34. #define MODE_CHARGING (8)
  35. #define MODE_TERMINATING (9)
  36. #define MODE_COMPLETE (10)
  37. #define MODE_ALARM (11)
  38. #define MODE_FAULT (12)
  39. #define MODE_RESERVATION (13)
  40. #define MODE_BOOKING (14)
  41. #define MODE_MAINTAIN (15)
  42. #define MODE_DEBUG (16)
  43. #define MODE_CCS_PRECHARGE_STEP0 (17) // ready for ccs precharge processing, For D+ relay to precharge relay
  44. #define MODE_CCS_PRECHARGE_STEP1 (18) // waitting for ev board inform to enter to charging, For precharge relay to D+ relay
  45. #define MODE_UPDATE (19)
  46. #define GFD_WAIT (0)
  47. #define GFD_PASS (1)
  48. #define GFD_FAIL (2)
  49. #define GFD_WARNING (3)
  50. #define PRECHARGE_WAIT (0)
  51. #define PRECHARGE_READY (1)
  52. #define PRECHARGE_PRERELAY_PASS (2)
  53. #define PRECHARGE_CHARELAY_PASS (3)
  54. #define BOOTTING (0)
  55. #define BOOT_COMPLETE (1)
  56. //------------------------------------------------------------------------------
  57. //common define
  58. //------------------------------------------------------------------------------
  59. #define ARRAY_SIZE(A) (sizeof(A) / sizeof(A[0]))
  60. #define PASS (1)
  61. #define FAIL (-1)
  62. #define START (1)
  63. #define STOP (0)
  64. #define YES (1)
  65. #define NO (0)
  66. #define NORMAL (0)
  67. #define ABNORMAL (1)
  68. #define EQUAL (0)
  69. #define NO_DEFINE (255)
  70. #define MtdBlockSize (0x300000) //(0x600000)
  71. //------------------------------------------------------------------------------
  72. //gun temperatures
  73. //------------------------------------------------------------------------------
  74. #define GUN_OTP_VALUE (150)
  75. #define GUN_OTP_RECOVERY (140)
  76. #define UNDEFINED_TEMP (255)
  77. #define TEMP_BOUNDARY (200)
  78. #define WARN_LV_NL (0) //normal state
  79. #define WARN_LV_WARN (1)
  80. #define WARN_LV_ER (2) //emergency state
  81. //------------------------------------------------------------------------------
  82. enum _SYSTEM_STATUS {
  83. S_BOOTING = 0,
  84. S_IDLE,
  85. S_AUTHORIZING,
  86. S_REASSIGN_CHECK,
  87. S_REASSIGN,
  88. S_PREPARNING,
  89. S_PREPARING_FOR_EV,
  90. S_PREPARING_FOR_EVSE,
  91. S_CHARGING,
  92. S_TERMINATING,
  93. S_COMPLETE,
  94. S_ALARM,
  95. S_FAULT,
  96. S_RESERVATION,
  97. S_BOOKING,
  98. S_MAINTAIN,
  99. S_DEBUG,
  100. S_CCS_PRECHARGE_ST0,
  101. S_CCS_PRECHARGE_ST1,
  102. S_UPDATE,
  103. S_NONE,
  104. };
  105. enum _AC_SYSTEM_STATUS {
  106. AC_SYS_NONE = 0,
  107. AC_SYS_A,
  108. AC_SYS_B,
  109. AC_SYS_C,
  110. AC_SYS_D,
  111. AC_SYS_E
  112. };
  113. enum _GUN_TYPE {
  114. _Type_Chademo = 0,
  115. _Type_CCS_2,
  116. _Type_GB,
  117. _Type_AC,
  118. };
  119. enum _CCS_GUN_TYPE {
  120. _TYPE_CCS_NONE = 0,
  121. _TYPE_CCS1_Natural,
  122. _TYPE_CCS1_Liquid,
  123. _TYPE_CCS2_Natural,
  124. _TYPE_CCS2_Liquid,
  125. };
  126. enum _PAGE_TCC_INDEX {
  127. // Face 1
  128. _PAGE_NONE = 0x00,
  129. _PAGE_IDLE,
  130. _PAGE_SELECT_GUN,
  131. _PAGE_BILL,
  132. _PAGE_ADD_FRIEND,
  133. _PAGE_DONATE_LEFT,
  134. _PAGE_SELECT_PAY,
  135. _PAGE_AUTHORIZE,
  136. _PAGE_SENSING,
  137. _PAGE_PLUGIN,
  138. _PAGE_PRECHARGE,
  139. _PAGE_CHARGING,
  140. _PAGE_STOP_CONFIRM_LEFT,
  141. _PAGE_PAYING,
  142. _PAGE_COMPLETE,
  143. _PAGE_EXIT,
  144. _PAGE_PLUGOUT,
  145. _PAGE_AUTHORIZE_FAIL,
  146. _PAGE_DONATE_RIGHT,
  147. _PAGE_STOP_CONFIRM_RIGHT,
  148. _PAGE_PAYFAIL,
  149. _PAGE_MAINTAIN = 30,
  150. };
  151. enum _SELF_TEST_SEQ {
  152. _STEST_VERSION = 0x00,
  153. _STEST_AC_CONTACTOR = 0x01,
  154. _STEST_PSU_DETECT = 0x02,
  155. _STEST_PSU_CAP = 0x03,
  156. _STEST_FAIL = 0x04,
  157. _STEST_COMPLETE = 0xEE,
  158. };
  159. enum _MODULE_PSU_WORK_STEP {
  160. INITIAL_START = 0,
  161. GET_PSU_COUNT = 1,
  162. GET_SYS_CAP = 2,
  163. BOOTING_COMPLETE = 3,
  164. _WORK_CHARGING = 10,
  165. _TEST_MODE = 20,
  166. _NO_WORKING = 254,
  167. _INIT_PSU_STATUS = 255,
  168. };
  169. enum _OFFLINE_POLICY {
  170. _OFFLINE_POLICY_LOCAL_LIST = 0x00,
  171. _OFFLINE_POLICY_PHIHONG_RFID_TAG = 0x01,
  172. _OFFLINE_POLICY_FREE_CHARGING = 0x02,
  173. _OFFLINE_POLICY_NO_CHARGING = 0x03,
  174. };
  175. enum _REASSIGNED_RESOURCE_STEP {
  176. _REASSIGNED_NONE = 0, //
  177. _REASSIGNED_PREPARE_M_TO_A = 1, // 系統收到需要降載需求 (輸出總電流降低),PSU Task 收到將狀態切換至下個狀態
  178. _REASSIGNED_GET_NEW_CAP = 2, // 充電中的重新取得屬於自己火線上的總能量並透過小板通知車端 - 超過10秒直接跳下一步
  179. _REASSIGNED_ADJUST_M_TO_A = 3, // 模塊重新分配完成
  180. _REASSIGNED_RELAY_M_TO_A = 4, // 切斷橋接的 Relay
  181. _REASSIGNED_PREPARE_A_TO_M = 11,
  182. _REASSIGNED_ADJUST_A_TO_M = 12, // 模塊升壓
  183. _REASSIGNED_RELAY_A_TO_M = 13, // 搭接橋接的 Relay
  184. _REASSIGNED_WAITING = 14,
  185. _REASSIGNED_COMP = 15,
  186. };
  187. enum _MAIN_CHARGING_MODE {
  188. _MAIN_CHARGING_MODE_MAX = 0,
  189. _MAIN_CHARGING_MODE_AVER = 1,
  190. };
  191. enum _EXTRA_ERR_PROCESS {
  192. _EXTRA_ERR_PROCESS_NONE = 0,
  193. _EXTRA_ERR_PROCESS_INUVP = 1,
  194. _EXTRA_ERR_PROCESS_INOVP = 2,
  195. };
  196. enum _CHARGER_TYPE {
  197. _CHARGER_TYPE_IEC = 0,
  198. _CHARGER_TYPE_UL = 1,
  199. };
  200. enum _SYS_WIFI_MODE {
  201. _SYS_WIFI_MODE_DISABLE = 0,
  202. _SYS_WIFI_MODE_STATION = 1,
  203. _SYS_WIFI_MODE_AP = 2,
  204. };
  205. enum _LED_INTENSITY_LV {
  206. _LED_INTENSITY_DARKEST = 0,
  207. _LED_INTENSITY_MEDIUM = 1,
  208. _LED_INTENSITY_BRIGHTEST = 2,
  209. };
  210. enum _CCS_COMM_PROTOCOL {
  211. _CCS_COMM_V2GMessage_DIN70121 = 0x01,
  212. _CCS_COMM_V2GMessage_ISO15118_2014 = 0x02,
  213. _CCS_COMM_V2GMessage_ISO15118_2018 = 0x03
  214. };
  215. enum _ETHERNET_USAGE {
  216. _ETHERNET_USAGE_NONE = 0,
  217. _ETHERNET_USAGE_LAN,
  218. _ETHERNET_USAGE_WIFI,
  219. _ETHERNET_USAGE_3G_4g,
  220. };
  221. enum _PRIMARY_CHECK_TAG {
  222. _PRIMARY_CHECK_TAG_AC_CONTACT = 0,
  223. _PRIMARY_CHECK_TAG_MAIN_BREAKER = 1,
  224. };
  225. enum _CCS_VERSION_CHECK_TAG {
  226. _CCS_VERSION_CHECK_TAG_V015S0 = 0,
  227. _CCS_VERSION_CHECK_TAG_V013S0 = 1,
  228. };
  229. enum RELAY_STATUS_ERROR_INDEX {
  230. RELAY_SMR1_P_STATUS = 0,
  231. RELAY_SMR1_N_STATUS = 1,
  232. RELAY_SMR2_P_STATUS = 2,
  233. RELAY_SMR2_N_STATUS = 3,
  234. RELAY_PARA_P_STATUS = 4,
  235. RELAY_PARA_N_STATUS = 5,
  236. };
  237. enum RELAY_STATUS_ERROR_TYPE {
  238. RELAY_STATUS_ERROR_NONE = 0,
  239. RELAY_STATUS_ERROR_WELDING = 10,
  240. RELAY_STATUS_ERROR_DRIVING = 11,
  241. };
  242. enum _CCS_TYPE {
  243. _CCS_TYPE_CCS1 = 0,
  244. _CCS_TYPE_CCS2 = 1,
  245. };
  246. enum _WEATHER_TYPE {
  247. _WEATHER_TYPE_SUN = 1,
  248. _WEATHER_TYPE_CLOUDY,
  249. _WEATHER_TYPE_RAIN,
  250. _WEATHER_TYPE_THUNDER,
  251. _WEATHER_TYPE_SNOW,
  252. _WEATHER_TYPE_FOG,
  253. };
  254. enum _CREDITCARD_STATUS {
  255. _CREDITCARD_IDLE,
  256. _CREDITCARD_PREAUTH,
  257. _CREDITCARD_PREAUTHCOMPLETE,
  258. _CREDITCARD_CANCEL,
  259. _CREDITCARD_SETTLEMENT,
  260. _CREDITCARD_START,
  261. };
  262. enum _CREDIT_DEDUCT_STATUS {
  263. _DEDUCT_COMPLETE_FAIL = 0,
  264. _DEDUCT_COMPLETE_PASS = 1,
  265. _DEDUCT_CANCEL,
  266. _DEDUCT_PREAUTH,
  267. _DEDUCT_REMOTESTART,
  268. };
  269. enum _LINE_STATUS {
  270. _LINE_INIT = 0,
  271. _LINE_SCAN_QR,
  272. _LINE_ADD_FRIEND,
  273. _LINE_CREDITCARD_INVOICE,
  274. _LINE_CREDITCARD_DONATE,
  275. _LINE_PAY_INVOICE = 7,
  276. _LINE_PAY_DONATE,
  277. _LINE_PAY_OPERATE,
  278. };
  279. enum _DERATING_TEMP {
  280. _DERATING_80 = 140,
  281. _DERATING_85 = 145,
  282. };
  283. //------------------------------------------------------------------------------
  284. //struct StructMeter {
  285. // float curMeterValue;
  286. // float newMeterValue;
  287. // uint8_t isCalculation;
  288. // float _chargingValue;
  289. // float _curTotalCharging;
  290. //};
  291. //struct MeterInformation {
  292. // struct StructMeter _meter[2];
  293. // uint8_t isWorking;
  294. //};
  295. //struct DcCommonInformation {
  296. // // check if the guns are of the same type
  297. // uint8_t SysGunAreSameType;
  298. // // to check the ccs version
  299. // uint8_t CcsVersion;
  300. // // for relay welding/driving check
  301. // char RelayCheckStatus[6];
  302. // char GunRelayWeldingOccur[2];
  303. // char GunRelayDrivingOccur[2];
  304. //};
  305. typedef union {
  306. uint32_t GunErrMessage;
  307. struct {
  308. // Chademo
  309. uint8_t ChaGfdTrip: 1;
  310. uint8_t ChaUvpFail: 1;
  311. uint8_t ChaConnectOTP: 1;
  312. uint8_t ChaConnectOVP: 1;
  313. uint8_t ChaGfdWarning: 1;
  314. uint8_t ChaRelayWeldingFault: 1;
  315. uint8_t ChaRelayDrivingFault: 1;
  316. uint8_t ChaConnectTempSensorFail: 1;
  317. // CCS
  318. uint8_t CCSGfdTrip : 1;
  319. uint8_t CCSUvpFail : 1;
  320. uint8_t CCSConnectOTP : 1;
  321. uint8_t CCSConnectOVP : 1;
  322. uint8_t CCSGfdWarning : 1;
  323. uint8_t CCSRelayWeldingFault : 1;
  324. uint8_t CCSRelayDrivingFault : 1;
  325. uint8_t CCSConnectTempSensorFail : 1;
  326. // GBT
  327. uint8_t GBTGfdTrip : 1;
  328. uint8_t GBTUvpFail : 1;
  329. uint8_t GBTConnectOTP : 1;
  330. uint8_t GBTConnectOVP : 1;
  331. uint8_t GBTGfdWarning : 1;
  332. uint8_t GBTRelayWeldingFault : 1;
  333. uint8_t GBTRelayDrivingFault : 1;
  334. uint8_t GBTConnectTempSensorFail : 1;
  335. } GunBits;
  336. } EvBoardErrMsg;
  337. typedef union {
  338. uint8_t AlarmState;
  339. struct {
  340. uint8_t EmergencyStop: 1; //Power cabinet emergency stop
  341. uint8_t DoorOpen: 1; //Power cabinet emergency door open
  342. uint8_t DcInputOVP: 1;
  343. uint8_t DcInputUVP: 1;
  344. uint8_t SystemL1InputOVP: 1; //Power cabinet system L1 input OVP
  345. uint8_t SystemL2InputOVP: 1; //Power cabinet System L2 input OVP
  346. uint8_t SystemL3InputOVP: 1; //Power cabinet System L3 input OVP
  347. uint8_t PsuFailure: 1; //Power cabinet PSU Failure Alarm
  348. } StatusBit;
  349. } PowerAlarmState;
  350. typedef union {
  351. uint8_t TempErrMsg;
  352. struct {
  353. uint8_t ChillerOTP: 1; //chiller Temperature OVP
  354. uint8_t ChillerTempSensorFail: 1; //Chiller temperature sensor failure
  355. uint8_t ChillerTubeOTP : 1;
  356. uint8_t Reserved: 5;
  357. } StatusBit;
  358. } ChillerTempErr;
  359. typedef struct StChillerValve {
  360. uint8_t MultiChillerGun; //0x80, 0: 沒有水冷槍, 1: 有水冷槍, 0x7F: 紀錄水冷槍數
  361. uint8_t LeftTemp; //左槍最高溫度
  362. uint8_t RightTemp; //右槍最高溫度
  363. uint8_t Reserved;
  364. } ChillerValve;
  365. typedef struct StPcPsuOutput { //from power cabinet PSU output
  366. uint16_t Voltage;
  367. uint16_t Current;
  368. } PcPsuOutput;
  369. typedef struct StPowerConsumptionInfo {
  370. float Gun1_Consumption;
  371. float Gun2_Consumption;
  372. float Gun3_Consumption;
  373. float Gun4_Consumption;
  374. } PowerConsumptionValue;
  375. typedef struct StPowConsumValue {
  376. uint32_t Gun1_Consumption;
  377. uint32_t Gun2_Consumption;
  378. uint32_t Gun3_Consumption;
  379. uint32_t Gun4_Consumption;
  380. } PowConsumValue;
  381. typedef struct StGunInfo {
  382. int ConnectorID;
  383. char ReceiptInfo[255];
  384. int finalcost_flag;
  385. time_t EVLoseTimer;
  386. uint8_t EVLoseFlag;
  387. char ReservationID[32];
  388. uint8_t ReservationStatus;
  389. char UserPriceString[255];
  390. float PowerConsumption;
  391. time_t RecordEnergyTime;
  392. char ChargeStartTime[32];
  393. char ChargeStopTime[32];
  394. char ChargeDuration[32];
  395. uint8_t withChiller; //是否有水冷機
  396. uint8_t WaitForPlugit; // 等待插槍FLAG
  397. } GunInfo;
  398. typedef struct Psu_VersionInfo{
  399. uint8_t n_PSU;
  400. uint8_t DCVersion[32];
  401. uint8_t FPCVersion[32];
  402. }PsuVerInfo;
  403. enum _LCM_UPGRADE_RESULT {
  404. _LCM_UPGRADE_RESULT_WAIT = 0,
  405. _LCM_UPGRADE_RESULT_PASS,
  406. _LCM_UPGRADE_RESULT_FAIL,
  407. };
  408. typedef struct stTransInfo
  409. {
  410. unsigned char TransDate[6]; //交易日期
  411. unsigned char TransTime[6]; //交易時間
  412. unsigned char ROC[12]; //EDC簽單調閱編號 (左靠右補空白)
  413. unsigned char ApprovalNo[9]; //授權碼[信用卡退貨交易] (左靠右補空白)
  414. unsigned char StoreId[18]; //櫃號,機號,發票號碼(左靠右補空白)
  415. unsigned char RRN[12]; //信用卡交易序號
  416. unsigned char CardNo[20]; //卡號(左靠右補空白),卡號部份隱藏
  417. unsigned char TransAmount[12]; //交易金額
  418. unsigned char VemData[64]; //無人自助設備交易資訊 交易別31/32 (預授權完成/預授權取消) 必要欄位 資訊來源為交易別13 (預授權)的回傳
  419. }TransInfo;
  420. typedef struct stRecordTransactionInfo
  421. {
  422. int ConnectorID;
  423. int TransactionId;
  424. float Amount;
  425. char DeductResult; // 0: Fail, 1: Pass , -1: Cancel , 99:Rededuct fail
  426. unsigned char IsDonateInvoice; // 0: Do not donate, 1: Donate
  427. unsigned char LineSn[20];
  428. unsigned char isIntoCharge;
  429. unsigned char IsUpload; // 0: not upload, 1: uploaded
  430. TransInfo pCreditCard;
  431. float Energy;
  432. float prices;
  433. int RedeductTime;
  434. int LineStatus; // Line State
  435. }RecordTransactionInfo;
  436. typedef struct stPriceBillInfo {
  437. float TotalCost;
  438. float Balance;
  439. float Discount;
  440. int TransactionId;
  441. float EnergyCost;
  442. float ParkingFee;
  443. float RemainAmount;
  444. }PriceBillInfo;
  445. typedef struct StDcCommonInfo {
  446. uint8_t RebootCount;
  447. uint8_t CcsVersion;
  448. EvBoardErrMsg ConnectErrList[2]; //connector error list, 0: left gun, 1: right gun
  449. uint8_t CheckRelayStatus[6]; //check Relay welding or driving fault
  450. uint8_t GunRelayWeldingOccur[2];
  451. uint8_t GunRelayDrivingOccur[2];
  452. uint8_t ConnectorTemp[2][2];
  453. uint8_t SystemTemp[4];
  454. uint8_t SystemModeChange[2]; //for Module_EvRxComm
  455. PowerAlarmState PowerAlarmState;
  456. ChillerTempErr ChillerTempErr[2];
  457. ChillerValve ChillerValve;
  458. uint8_t TestTemperature; //ReadCmdline test, manual input value
  459. uint8_t CcsTypeSaved[2];
  460. PcPsuOutput PcPsuOutput[2];
  461. uint8_t _upgrade_lcm_flag;
  462. uint8_t _upgrade_lcm_result;
  463. uint8_t Reserved[1];
  464. // Power Cabinet Version
  465. uint8_t CabinetModelName[32];
  466. uint8_t CabinetBoolLoaderVersion[32];
  467. uint8_t CabinetKernelVersion[32];
  468. uint8_t CabinetRFSystemVersion[32];
  469. uint8_t CabinetPrimaryVersion[32];
  470. uint8_t CabinetIPAddr[32];
  471. uint8_t CabinetRelay0Version[32];
  472. uint8_t CabinetRelay1Version[32];
  473. uint8_t CabinetFanVersion[32];
  474. // PSU Version
  475. uint8_t PSU_Number;
  476. PsuVerInfo PsuVer[12];
  477. int WeatherID; // 0:sun, 1:cloudy, 2:rain, 3:snow, 4:storm, 5:fog
  478. float Temperature;
  479. int Location;
  480. char PresentTime[128];
  481. //TransInfo pCreditCard[2];
  482. int runningcost[2];
  483. unsigned int finalcost_flag[2];
  484. float ChargingRate;
  485. int PreAuth_Config;
  486. int PreAuth_Result;
  487. unsigned int AuthPass_flag[2];
  488. unsigned int PayPass_flag[2];
  489. unsigned int StopCharge[2];
  490. unsigned int TradeCancel;
  491. int ConnectorID[2];
  492. RecordTransactionInfo TransactionInfo[2];
  493. RecordTransactionInfo RedeductBill;
  494. PriceBillInfo PriceBill;
  495. int UnionSettlement;
  496. int Exe_ReDeduct;
  497. unsigned int OperateIDLE[2];
  498. int RoutineReduct;
  499. int RoutineSettlement;
  500. int RoutineReupload;
  501. int TZOffset;
  502. int DebugFlag;
  503. int chillerCtrl;
  504. int is_RemoteStart[2];
  505. int is_AutoStart[2];
  506. time_t RecordEnergyTime[2];
  507. int is_exit[2];
  508. time_t EVDisconnectTime[2];
  509. int EVDisconnectFlag[2];
  510. int is_plugout[2];
  511. GunInfo pGunInfo[2];
  512. uint8_t AuthroizeType; // 0: Central 1: eMAID 2: ISO14443 3: ISO15693 4: KeyCode 5: Local 6: MacAddress 7: NoAuthorization
  513. char QRCodeString[255];
  514. char DefaultPriceString[255];
  515. PowerConsumptionValue pConsumption;
  516. uint8_t CreditCardUpload;
  517. uint8_t tccdev;
  518. uint8_t TaiwanEast;
  519. uint8_t lcmtest;
  520. } DcCommonInfo;
  521. #endif /* CONFIG_H_ */