Browse Source

2020-09-16 / Eason Yang
Action
1. Rename : version
2. Added : version and upgrade log print out

File
1. Module_4g.c
Action 1
Action 2

Version : V0.06

8009 4 years ago
parent
commit
d9cc091408
1 changed files with 10 additions and 9 deletions
  1. 10 9
      EVSE/Modularization/Module_4g.c

+ 10 - 9
EVSE/Modularization/Module_4g.c

@@ -2,9 +2,9 @@
  *  Module_4g.c
  *
  *  Created on: 2019-11-29
- *  Update on: 2020-09-15
+ *  Update on: 2020-09-16
  *  Author: Eason Yang
- *  Version: V0.05
+ *  Version: V0.06
  */
 
 #include    <sys/types.h>
@@ -78,10 +78,9 @@ int set_blocking (int fd, int should_block);
 void trim_s(char *s, unsigned char len);
 void substr(char *dest, const char* src, unsigned int start, unsigned int cnt);
 
-char *LATEST_FIRMWARE_VERSION 	= "V0.05";
-char *LATEST_UPGRAGE_DATE		= "2020-09-15";
 char *portName[3] 				= {"/dev/ttyUSB2", "/dev/ttyUSB2", "/dev/ttyACM2"};
 char *valid_Internet[2] 		= {"8.8.8.8", "180.76.76.76"};
+char *Version_And_Date[2]		= {"V0.06","2020-09-16"};
 pid_t	pid;
 
 struct dongle_info
@@ -1081,9 +1080,11 @@ int main(void)
 		return 0;
 	}
 	
-	DEBUG_INFO("4G Module latest Firmware Version : %s\n",LATEST_FIRMWARE_VERSION);
-	DEBUG_INFO("Date for last upgrade : %s\n",LATEST_UPGRAGE_DATE);
-
+	DEBUG_INFO("========================================\n");
+	DEBUG_INFO("Latest Firmware Version : [ %s ].\n", Version_And_Date[0]);
+	DEBUG_INFO("Latest Upgrade Date : [ %s ].\n", Version_And_Date[1]);
+	DEBUG_INFO("========================================\n");
+	
 	for(;;)
 	{
 		TOP:
@@ -1091,7 +1092,7 @@ int main(void)
 		switch(ShmSysConfigAndInfo->SysConfig.TelecomInterface.TelcomEnabled)
 		{
 			case ENABLE_4G:
-				DEBUG_INFO("Enable 4G module.\n");
+				DEBUG_INFO("4G module : [ Enable ].\n");
 				if(((Dongle.Model = Check4GModem()) != FAIL))
 				{
 					ShmStatusCodeData->FaultCode.FaultEvents.bits.Telecom4GModuleBroken = 0;
@@ -1345,7 +1346,7 @@ int main(void)
 				
 			case DISABLE_4G_MODULE:
 			default:
-				DEBUG_INFO("Disable 4G module.\n");
+				DEBUG_INFO("4G module : [ Disable ].\n");
 				
 				ShmStatusCodeData->InfoCode.InfoEvents.bits.InternetDisconnectVia4Gi = 0;
 				ShmStatusCodeData->InfoCode.InfoEvents.bits.ApnDisconnectVia4Gi= 0;