Quellcode durchsuchen

Merge branch 'master' into DO360

Merge branch 'master'
Wendell vor 4 Jahren
Ursprung
Commit
b489c9471d

+ 1 - 1
EVSE/Modularization/Module_Upgrade.c

@@ -42,7 +42,7 @@ int storeLogMsg(const char *fmt, ...)
     tm=localtime(&CurrentTime);
     gettimeofday(&tv, NULL); // get microseconds, 10^-6
 
-    sprintf(Buf,"echo -n \"[%04d.%02d.%02d %02d:%02d:%02d.%06ld]%s\" >> /Storage/SystemLog/[%04d.%02d]Module_Upgrade",
+    sprintf(Buf,"echo -n \"[%04d.%02d.%02d %02d:%02d:%02d.%06ld]%s\" >> /Storage/SystemLog/[%04d.%02d]Module_UpgradeLog",
             tm->tm_year+1900,tm->tm_mon+1,tm->tm_mday,tm->tm_hour,tm->tm_min,tm->tm_sec,tv.tv_usec,
             buffer,
             tm->tm_year+1900,tm->tm_mon+1);

+ 3 - 3
EVSE/Modularization/Module_Wifi.c

@@ -758,7 +758,7 @@ int setWPAconf()
 	sprintf(cmdBuf, "pgrep -f \"udhcpc -i %s\" | xargs kill", Wifi.currentInterface);
 	system(cmdBuf);
 
-	sprintf(cmdBuf, "pgrep -f \"udhcpd\" | xargs kill");
+	sprintf(cmdBuf, "pgrep -f \"udhcpd /etc/udhcpd.conf\" | xargs kill");
 	system(cmdBuf);
 
 	// Clear wifi configuration file
@@ -865,7 +865,7 @@ int setWPAconf()
 			sprintf(cmdBuf, "pgrep -f \"udhcpc -i %s\" | xargs kill", Wifi.currentInterface);
 			system(cmdBuf);
 				
-			sprintf(cmdBuf, "pgrep -f \"udhcpd\" | xargs kill");
+			sprintf(cmdBuf, "pgrep -f \"udhcpd /etc/udhcpd.conf\" | xargs kill");
 			system(cmdBuf);
 				
 			// Restart wpa_supplicant
@@ -4655,7 +4655,7 @@ void proc_killConnection()
 	sprintf(cmdBuf, "pgrep -f \"udhcpc -i %s\" | xargs kill", Wifi.currentInterface);
 	system(cmdBuf);
 	
-	sprintf(cmdBuf, "pgrep -f \"udhcpd\" | xargs kill");
+	sprintf(cmdBuf, "pgrep -f \"udhcpd /etc/udhcpd.conf\" | xargs kill");
 	system(cmdBuf);
 	
 	// Restart wpa_supplicant

Datei-Diff unterdrückt, da er zu groß ist
+ 423 - 394
EVSE/Modularization/ocppfiles/MessageHandler.c


+ 3 - 3
EVSE/Modularization/ocppfiles/Module_OcppBackend.c

@@ -1131,7 +1131,7 @@ void* processTransactionQueue(void* data)
 
 	while(1)
 	{
-		if(!req_SendQueue && ((((time((time_t*)NULL) - startTimeQueue) > (TransactionMessageRetryIntervalGet()>10?TransactionMessageRetryIntervalGet():10))) || (isWebsocketSendable && ((time((time_t*)NULL) - startTimeQueue) >= ((counterQueueSent>=10)?10:1)))))
+		if(!req_SendQueue && ((((time((time_t*)NULL) - startTimeQueue) > (TransactionMessageRetryIntervalGet()>10?TransactionMessageRetryIntervalGet():10))) || (isWebsocketSendable && ((time((time_t*)NULL) - startTimeQueue) >= ((counterQueueSent>=20)?5:0)))))
 		{
 			if(FirstHeartBeatResponse() == 1)
 			{
@@ -1203,7 +1203,7 @@ void* processTransactionQueue(void* data)
 			}
 		}
 
-		usleep(100000);
+		usleep(500000);
 	}
 
 	pthread_exit(NULL); //
@@ -1304,7 +1304,7 @@ int queue_operation(int type, char *frontUUID, char *frontData)
 			IsUsing = FALSE;
 			break;
 		}
-		usleep(500000);
+		usleep(100000);
 	}
 
 	return result;

+ 1 - 1
EVSE/Modularization/ocppfiles/SystemLogMessage.c

@@ -51,7 +51,7 @@ int StoreOcppMsg(const char *fmt, ...)
 	tm=localtime(&CurrentTime);
 	gettimeofday(&tv, NULL); // get microseconds, 10^-6
 
-	sprintf(Buf,"echo -n \"[%04d.%02d.%02d %02d:%02d:%02d.%06ld]%s\" >>  /Storage/OCPP/[%04d.%02d]OcppMessage",
+	sprintf(Buf,"echo -n \"[%04d.%02d.%02d %02d:%02d:%02d.%06ld]%s\" >>  /Storage/OCPP/[%04d.%02d]OcppMessageLog",
 			tm->tm_year+1900,tm->tm_mon+1,tm->tm_mday,tm->tm_hour,tm->tm_min,tm->tm_sec,tv.tv_usec,
 			buffer,
 			tm->tm_year+1900,tm->tm_mon+1);

BIN
EVSE/Projects/AW-CCS/Apps/CCS/QCA7000_Flash_001823078881.bin


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

@@ -75,7 +75,7 @@ int StoreLogMsg(const char *fmt, ...)
 	tm=localtime(&CurrentTime);
 	gettimeofday(&tv, NULL); // get microseconds, 10^-6
 
-	sprintf(Buf,"echo -n \"[%04d.%02d.%02d %02d:%02d:%02d.%06ld]%s\" >> /Storage/SystemLog/[%04d.%02d]Module_LcmControl",
+	sprintf(Buf,"echo -n \"[%04d.%02d.%02d %02d:%02d:%02d.%06ld]%s\" >> /Storage/SystemLog/[%04d.%02d]Module_LcmControlLog",
 						tm->tm_year+1900,tm->tm_mon+1,tm->tm_mday,tm->tm_hour,tm->tm_min,tm->tm_sec,tv.tv_usec,
 						buffer,
 						tm->tm_year+1900,tm->tm_mon+1);

+ 1 - 1
EVSE/Projects/AW-CCS/Apps/Module_InternalComm.c

@@ -77,7 +77,7 @@ int StoreLogMsg(const char *fmt, ...)
 	tm=localtime(&CurrentTime);
 	gettimeofday(&tv, NULL); // get microseconds, 10^-6
 
-	sprintf(Buf,"echo -n \"[%04d.%02d.%02d %02d:%02d:%02d.%06ld]%s\" >> /Storage/SystemLog/[%04d.%02d]Module_InterComm",
+	sprintf(Buf,"echo -n \"[%04d.%02d.%02d %02d:%02d:%02d.%06ld]%s\" >> /Storage/SystemLog/[%04d.%02d]Module_InterCommLog",
 				tm->tm_year+1900,tm->tm_mon+1,tm->tm_mday,tm->tm_hour,tm->tm_min,tm->tm_sec,tv.tv_usec,
 				buffer,
 				tm->tm_year+1900,tm->tm_mon+1);

BIN
EVSE/Projects/AW-Regular/Images/MLO


BIN
EVSE/Projects/AW-Regular/Images/ramdisk.gz


BIN
EVSE/Projects/AW-Regular/Images/u-boot.img


BIN
EVSE/Projects/AW-Regular/Images/zImage


+ 1 - 1
EVSE/Projects/define.h

@@ -3695,7 +3695,7 @@ struct StructSampledValue
 struct StructMeterValue
 {
 	unsigned char 				TimeStamp[28];
-	struct StructSampledValue	SampledValue[10];
+	struct StructSampledValue	SampledValue[20];
 };
 struct StructConfigurationKeyItems
 {

+ 0 - 0
EVSE/rootfs/var/lib/.1


+ 1 - 0
EVSE/rootfs/var/www/upgrade_iso_action.php

@@ -41,6 +41,7 @@
 				// echo "<font color=#000fff>Upgrade is completed</font><br />";
 			}
 			//ob_start();
+			exec("rm /mnt/*");
 			sleep(1);
 			move_uploaded_file($_FILES["file"]["tmp_name"],"/mnt/".$_FILES["file"]["name"]);
 			chdir("/root");

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.