Selaa lähdekoodia

2022-08-18/Jerry Wang
[OCPP 1.6]
Action:
1. Modify OCMF logic.
2. Add logic to check if there is an idTag in RemoteStartTransaction.req.
3. Modify SendLocalList checking list version logic.
4. Add logic to avoid sending StatusNotification before CancelReservation.conf.
5. Add logic to check AuthorizeRemoteTxRequests key to decide the response status in handleRemoteStartRequest().
6. Improve UpdateFirmware related logic.
7. Add logic to set ConnectionTimeOut key default value to 55 if the model is for Japan spec.
8. Add security related functions for higher security profile level.
9. Update git uploading date info.

File:
1. EVSE/Modularization/ocppfiles/MessageHandler.c
--> Action 1-8
2. EVSE/Modularization/ocppfiles/Module_OcppBackend.c
--> Action 9

Jerry Wang 2 vuotta sitten
vanhempi
commit
a8edce8fc1

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 823 - 144
EVSE/Modularization/ocppfiles/MessageHandler.c


+ 4 - 2
EVSE/Modularization/ocppfiles/Module_OcppBackend.c

@@ -264,6 +264,7 @@ static int OCPP16Callback(struct lws *wsi, enum lws_callback_reasons reason, voi
 						return -1;
 					}
 					DEBUG_OCPPMESSAGE_INFO("SecurityProfile: %d\n", GetOcppSecurityProfile());
+					DEBUG_OCPPMESSAGE_INFO("Password: %s\n", password);
 					DEBUG_OCPPMESSAGE_INFO("Authorization: %s\n", buf);
 
 					break;
@@ -1100,11 +1101,12 @@ int sentqueue()
 						}
 						else if(strstr(json_object_get_string(json_object_object_get(objPayload, "messageId")), "ID_OCMF") != NULL)
 						{
+							DEBUG_INFO(">>> Sending OCMF queue message...\n");
 							objData = json_tokener_parse(json_object_get_string(json_object_object_get(objPayload, "data")));
 							if(!is_error(objData))
 							{
 								transactionId_org = json_object_get_int(json_object_object_get(objData, "txId"));
-								DEBUG_INFO("original  transactionId   = %d\n", transactionId_org);
+								DEBUG_INFO("original transactionId    = %d\n", transactionId_org);
 
 								if(transactionId_org == 0)
 								{
@@ -1357,7 +1359,7 @@ int main(void)
 	queueOpInfo.TransactionMessageResend = 0;
 
 	DEBUG_INFO("Module_OcppBackend task initialization...\n");
-	DEBUG_INFO("Last update date: 2022/08/05 \n");
+	DEBUG_INFO("Git update date: 2022/08/18 \n");
 	//lws_set_log_level(LLL_PARSER | LLL_HEADER | LLL_ERR | LLL_WARN | LLL_NOTICE | LLL_INFO | LLL_DEBUG | LLL_EXT | LLL_CLIENT | LLL_LATENCY  , NULL);
 
 	if(ProcessShareMemory()== FAIL)

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä