Browse Source

[Improve][Modularization][Module_OcppBackend]

2020.09.23 / Folus Wen

Actions:
1. EVSE/rootfs/bin/dbclient add to /bin for ssh client.
2. EVSE/Projects/define.h rename variable name in struct PublishFirmware_20.
3. EVSE/Modularization/ocppfiles/MessageHandler.c modify LocalAuthorizeOffline default attribution as read/write.

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 4 years ago
parent
commit
5d0748cfc3

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

@@ -11116,11 +11116,11 @@ int initialConfigurationTable(void)
 
 
 		// LocalAuthorizeOffline
-		ShmOCPP16Data->ConfigurationTable.CoreProfile[LocalAuthorizeOffline].ItemAccessibility = 0;
+		ShmOCPP16Data->ConfigurationTable.CoreProfile[LocalAuthorizeOffline].ItemAccessibility = 1;
 		strcpy((char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[LocalAuthorizeOffline].ItemName, "LocalAuthorizeOffline");
 		strcpy((char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[LocalAuthorizeOffline].ItemData, "TRUE" );
 
-		fprintf(outfile,"{\"key\":\"%s\",\"readonly\":%s,\"value\":\"%s\"}\n","LocalAuthorizeOffline", "true", ShmOCPP16Data->ConfigurationTable.CoreProfile[LocalAuthorizeOffline].ItemData);
+		fprintf(outfile,"{\"key\":\"%s\",\"readonly\":%s,\"value\":\"%s\"}\n","LocalAuthorizeOffline", "false", ShmOCPP16Data->ConfigurationTable.CoreProfile[LocalAuthorizeOffline].ItemData);
 
 		// LocalPreAuthorize
 		ShmOCPP16Data->ConfigurationTable.CoreProfile[LocalPreAuthorize].ItemAccessibility = 0;
@@ -11879,7 +11879,7 @@ void StoreConfigurationTable(void)
 	strcpy((char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[LocalAuthorizeOffline].ItemData, "TRUE" );
 	*/
 
-	fprintf(outfile,"{\"key\":\"%s\",\"readonly\":%s,\"value\":\"%s\"}\n","LocalAuthorizeOffline", "true", (char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[LocalAuthorizeOffline].ItemData);
+	fprintf(outfile,"{\"key\":\"%s\",\"readonly\":%s,\"value\":\"%s\"}\n","LocalAuthorizeOffline", "false", (char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[LocalAuthorizeOffline].ItemData);
 
 	// LocalPreAuthorize
 	/*

+ 1 - 1
EVSE/Projects/define.h

@@ -5023,7 +5023,7 @@ struct PublishFirmware_20
 	unsigned char checksum[32];										// Required. The MD5 checksum over the entire firmware file as a hexadecimal string of length 32.
 	unsigned int requestId;											// Required. The Id of the request.
 	unsigned int retryInterval;										// Optional. The interval in seconds after which a retry may be attempted. If this field is not present, it is left to Charging Station to decide how long to wait between attempts.
-	unsigned char status[16];										// Required. Indicates whether the request was accepted.
+	unsigned char Response_status[16];								// Required. Indicates whether the request was accepted.
 	unsigned char guid[37];											// Save guid from server request
 };
 

BIN
EVSE/rootfs/bin/dbclient