浏览代码

[Improve][Modularization][Modudl_OcppBackend]

2021.01.14 / Folus Wen

Actions:
1. MeterValues mapping transaction id don't care idtag.

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 年之前
父节点
当前提交
e31f337d1d
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      EVSE/Modularization/ocppfiles/MessageHandler.c
  2. 1 1
      EVSE/Modularization/ocppfiles/Module_OcppBackend.c

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

@@ -15240,7 +15240,7 @@ int GetTransactionId(int gunindex, unsigned char idTag[], uint8_t isStopTransact
 
 	temptransactionId = 0;
 
-	if((strcmp((const char*)idTag, "")==0)||(idTag[0]=='\0'))
+	if(((strcmp((const char*)idTag, "")==0)||(idTag[0]=='\0')) && isStopTransaction)
 	{
 		DEBUG_INFO("IdTag is empty.\n");
 		return temptransactionId;

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

@@ -1120,7 +1120,7 @@ int sentqueue(){
 			DEBUG_INFO("queue map transactionId   = %d\n", gettransactionId);
 			DEBUG_INFO("original  connectorId     = %d\n", tempconnectorId);
 			DEBUG_INFO("original  transactionId   = %d\n", temptransactionId);
-			DEBUG_INFO("original  IdtagStr 	 	  = %s\n", IdtagStr);
+			DEBUG_INFO("original  IdtagStr	      = %s\n", IdtagStr);
 			if((gettransactionId != 0)&&(temptransactionId != gettransactionId))
 			{
 				//replace transactionId of metervalue or stopTransaction