Ver código fonte

[Improve][Modularization][Module_OcppBackend / /Module_OcppBackend20]

2021.10.21 / Folus Wen

Actions:
1. Charger pack log to compress file include gz file.

Files:
1. As follow commit history

Image version: D0.00.XX.XXXX.XX
Image checksum: XXXXXXXX

Hardware PWB P/N : XXXXXXX
Hardware Version : XXXXXXX
FolusWen 3 anos atrás
pai
commit
92be825140

+ 2 - 2
EVSE/Modularization/ocpp20/MessageHandler.c

@@ -13879,7 +13879,7 @@ void* GetLogProcess(void* data)
 			do
 			{
 				sprintf(cmdBuf, "%s /Storage/SystemLog/*%04d*%02d*", cmdBuf, targetYear, targetMonth);
-				sprintf(cmdBuf, "%s /Storage/OCPP/*%04d*%02d*", cmdBuf, targetYear, targetMonth);
+				sprintf(cmdBuf, "%s /Storage/OCPP/*%04d*%02d*SystemLog*", cmdBuf, targetYear, targetMonth);
 
 				if(targetMonth+1>=13)
 				{
@@ -13905,7 +13905,7 @@ void* GetLogProcess(void* data)
 			do
 			{
 				sprintf(cmdBuf, "%s /Storage/EventLog/*%04d*%02d*", cmdBuf, targetYear, targetMonth);
-
+				sprintf(cmdBuf, "%s /Storage/OCPP/*%04d*%02d*OcppMessageLog*", cmdBuf, targetYear, targetMonth);
 				if(targetMonth+1>=13)
 				{
 					targetYear += 1;

+ 2 - 2
EVSE/Modularization/ocppfiles/MessageHandler.c

@@ -10554,7 +10554,7 @@ void* GetDiagnosticsProcess(void* data)
 		do
 		{
 			sprintf(cmdBuf, "%s /Storage/SystemLog/*%04d*%02d*", cmdBuf, targetYear, targetMonth);
-			sprintf(cmdBuf, "%s /Storage/OCPP/*%04d*%02d*SystemLog", cmdBuf, targetYear, targetMonth);
+			sprintf(cmdBuf, "%s /Storage/OCPP/*%04d*%02d*SystemLog*", cmdBuf, targetYear, targetMonth);
 
 			if(targetMonth+1>=13)
 			{
@@ -10581,7 +10581,7 @@ void* GetDiagnosticsProcess(void* data)
 		do
 		{
 			sprintf(cmdBuf, "%s /Storage/EventLog/*%04d*%02d*", cmdBuf, targetYear, targetMonth);
-			sprintf(cmdBuf, "%s /Storage/OCPP/*%04d*%02d*OcppMessageLog", cmdBuf, targetYear, targetMonth);
+			sprintf(cmdBuf, "%s /Storage/OCPP/*%04d*%02d*OcppMessageLog*", cmdBuf, targetYear, targetMonth);
 			if(targetMonth+1>=13)
 			{
 				targetYear += 1;

+ 2 - 2
EVSE/Modularization/ocppph/MessageHandler.c

@@ -10292,7 +10292,7 @@ void* GetDiagnosticsProcess(void* data)
 		do
 		{
 			sprintf(cmdBuf, "%s /Storage/SystemLog/*%04d*%02d*", cmdBuf, targetYear, targetMonth);
-			sprintf(cmdBuf, "%s /Storage/OCPP/*%04d*%02d*SystemLog", cmdBuf, targetYear, targetMonth);
+			sprintf(cmdBuf, "%s /Storage/OCPP/*%04d*%02d*SystemLog*", cmdBuf, targetYear, targetMonth);
 
 			if(targetMonth+1>=13)
 			{
@@ -10319,7 +10319,7 @@ void* GetDiagnosticsProcess(void* data)
 		do
 		{
 			sprintf(cmdBuf, "%s /Storage/EventLog/*%04d*%02d*", cmdBuf, targetYear, targetMonth);
-			sprintf(cmdBuf, "%s /Storage/OCPP/*%04d*%02d*OcppMessageLog", cmdBuf, targetYear, targetMonth);
+			sprintf(cmdBuf, "%s /Storage/OCPP/*%04d*%02d*OcppMessageLog*", cmdBuf, targetYear, targetMonth);
 			if(targetMonth+1>=13)
 			{
 				targetYear += 1;