瀏覽代碼

[Added][AW-CCS][Module_LcmContorl.c][lcmComm_dgus.h]
2022-03-02 / Eason Yang
Action
1. Added: CSU version is shown on screen.

File
1. Module_LcmControl.c & lcmComm_dgus.h
Action 1

LCM VERSION: V0.27

8009 3 年之前
父節點
當前提交
71d29d6d20
共有 2 個文件被更改,包括 40 次插入21 次删除
  1. 18 0
      EVSE/Projects/AW-CCS/Apps/LCM/Module_LcmControl.c
  2. 22 21
      EVSE/Projects/AW-CCS/Apps/LCM/lcmComm_dgus.h

+ 18 - 0
EVSE/Projects/AW-CCS/Apps/LCM/Module_LcmControl.c

@@ -42,6 +42,7 @@ void setQRCodeIcon();
 void setBackendIcon();
 void setQRCodeAlarm();
 void setEthernetIcon();
+void setCsuRootFsFwRev();
 uint8_t getCurrentPage();
 void setAlarmCodeAndIcon();
 void setPresentSessionFee();
@@ -380,6 +381,7 @@ void page_idle(uint8_t gun_index, uint8_t system_mode)
 				setCurrentPage(SYSTEM_SCREEN_POWER_CONSUMPTION);
 				setDisplayValue(ICON_POWER_CONSUMPTION, APPEAR);
 				setPresentPowerConsumption(gun_index);
+				setCsuRootFsFwRev();
 			}
 			else
 			{
@@ -2586,6 +2588,22 @@ void setFinalCostTitle(uint8_t isOn)
 	}
 }
 
+//=======================================
+// Setting CSU FIRMWARE VERSION
+//=======================================
+void setCsuRootFsFwRev()
+{
+	uint8_t data[64];
+	uint8_t text[64];
+
+	memset(data, 0x00, ARRAY_SIZE(data));
+	memset(text, 0x00, ARRAY_SIZE(text));
+
+	sprintf((char *)text, "%s%s", " CSU Software Version: ",(char*)ShmSysConfigAndInfo->SysInfo.CsuRootFsFwRev);
+	string2ByteArray(text, data);
+	lcdRegisterWrite(Uart1Fd, REG_TYPE_RAM, TEXT_CSU_ROOT_FS_FW_REV, data, ARRAY_SIZE(data));
+}
+
 //=======================================
 // Initial all share memory
 //=======================================

+ 22 - 21
EVSE/Projects/AW-CCS/Apps/LCM/lcmComm_dgus.h

@@ -226,33 +226,34 @@
 #define TEXT_CHARGING_ENERGY				0x2118	// size 16
 #define TEXT_CHARGING_TOTAL_COST			0x2128	// size 16
 #define TEXT_CHARGING_POWER					0x2138	// size 16
-#define TEXT_CHARGING_SESSION_FEE			0x2148	// size 16	// NEW
-#define TEXT_CHARGING_PARKING_FEE			0x2158	// size 16	// NEW
+#define TEXT_CHARGING_SESSION_FEE			0x2148	// size 16
+#define TEXT_CHARGING_PARKING_FEE			0x2158	// size 16
 #define TEXT_REMAINING_ACCOUNT_BALANCE		0x2168	// size 16
 #define TEXT_USER_ACCOUNT_BALANCE			0x2178	// size 16
 #define TEXT_USER_CURRENCY					0x2188	// size 16
 #define Reserve8							0x2198	// size 16
 #define Reserve9							0x21A8	// size 16
 #define TEXT_POWER_CONSUMPTION				0x21B8	// size 32
-#define TEXT_PREPARING_SESSION_FEE			0x21D8	// size 16	// NEW
-#define TEXT_PREPARING_PARKING_FEE			0x21E8	// size 16	// NEW
-#define TEXT_PRECHARGING_SESSION_FEE		0x21F8	// size 16	// NEW
-#define TEXT_PRECHARGING_PARKING_FEE		0x2208	// size 16	// NEW
-#define TEXT_CHARGING_TITLE_TIME			0x2218	// size 32	// NEW
-#define TEXT_CHARGING_TITLE_ENERGY			0x2238	// size 32	// NEW
-#define TEXT_CHARGING_TITLE_SESSION_FEE		0x2258	// size 32	// NEW
-#define TEXT_CHARGING_TITLE_PARKING_FEE		0x2278	// size 32	// NEW
-#define TEXT_CHARGING_TITLE_FINAL_COST		0x2298	// size 32	// NEW
-#define TEXT_PREPARING_TITLE_TIME			0x22B8	// size 32	// NEW
-#define	TEXT_PREPARING_TITLE_ENERGY			0x22D8	// size 32	// NEW
-#define	TEXT_PREPARING_TITLE_SESSION_FEE	0x22F8	// size 32	// NEW
-#define	TEXT_PREPARING_TITLE_PARKING_FEE	0X2318	// size 32	// NEW
-#define	TEXT_PREPARING_TITLE_FINAL_COST		0x2338	// size 32	// NEW
-#define TEXT_PRECHARGING_TITLE_TIME			0x2358	// size 32	// NEW
-#define TEXT_PRECHARGING_TITLE_ENERGY		0x2378	// size 32	// NEW
-#define TEXT_PRECHARGING_TITLE_SESSION_FEE	0x2398	// size 32	// NEW
-#define TEXT_PRECHARGING_TITLE_PARKING_FEE	0x23B8	// size 32	// NEW
-#define TEXT_PRECHARGING_TITLE_FINAL_COST	0x23D8	// size 32	// NEW
+#define TEXT_PREPARING_SESSION_FEE			0x21D8	// size 16
+#define TEXT_PREPARING_PARKING_FEE			0x21E8	// size 16
+#define TEXT_PRECHARGING_SESSION_FEE		0x21F8	// size 16
+#define TEXT_PRECHARGING_PARKING_FEE		0x2208	// size 16
+#define TEXT_CHARGING_TITLE_TIME			0x2218	// size 32
+#define TEXT_CHARGING_TITLE_ENERGY			0x2238	// size 32
+#define TEXT_CHARGING_TITLE_SESSION_FEE		0x2258	// size 32
+#define TEXT_CHARGING_TITLE_PARKING_FEE		0x2278	// size 32
+#define TEXT_CHARGING_TITLE_FINAL_COST		0x2298	// size 32
+#define TEXT_PREPARING_TITLE_TIME			0x22B8	// size 32
+#define	TEXT_PREPARING_TITLE_ENERGY			0x22D8	// size 32
+#define	TEXT_PREPARING_TITLE_SESSION_FEE	0x22F8	// size 32
+#define	TEXT_PREPARING_TITLE_PARKING_FEE	0X2318	// size 32
+#define	TEXT_PREPARING_TITLE_FINAL_COST		0x2338	// size 32
+#define TEXT_PRECHARGING_TITLE_TIME			0x2358	// size 32
+#define TEXT_PRECHARGING_TITLE_ENERGY		0x2378	// size 32
+#define TEXT_PRECHARGING_TITLE_SESSION_FEE	0x2398	// size 32
+#define TEXT_PRECHARGING_TITLE_PARKING_FEE	0x23B8	// size 32
+#define TEXT_PRECHARGING_TITLE_FINAL_COST	0x23D8	// size 32
+#define TEXT_CSU_ROOT_FS_FW_REV				0x23F8	// size 64
 
 #define TEXT_RTC							0X2500	// size 32