Browse Source

2022-09-02/Jerry Wang
[OCPP 1.6]
Action:
1. Undo changing venderId of ConnectorUnplugged message.

File:
1. EVSE/Modularization/ocppfiles/MessageHandler.c
--> Action 1

Jerry Wang 2 years ago
parent
commit
919a60bf68
1 changed files with 5 additions and 5 deletions
  1. 5 5
      EVSE/Modularization/ocppfiles/MessageHandler.c

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

@@ -5294,7 +5294,7 @@ void CheckSystemValue(void)
 						{
 							uint8_t ts[36];
 							getNowDatetime(ts);
-							sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].VendorId, strlen((char*)ShmSysConfigAndInfo->SysConfig.chargePointVendor)>0? (char*)ShmSysConfigAndInfo->SysConfig.chargePointVendor:"org.openchargealliance.costmsg");
+							sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].VendorId, "org.openchargealliance.costmsg");
 							sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].MessageId, "ConnectorUnplugged");
 							if(strcmp((char*)dmsVersion, "2.0")==0)
 								sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].Data, "{\\\"transactionId\\\":%d,\\\"timestamp\\\":\\\"%s\\\"}", ShmOCPP16Data->StartTransaction[gun_index].ResponseTransactionId, ts);
@@ -5360,7 +5360,7 @@ void CheckSystemValue(void)
 						{
 							uint8_t ts[36];
 							getNowDatetime(ts);
-							sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].VendorId, strlen((char*)ShmSysConfigAndInfo->SysConfig.chargePointVendor)>0? (char*)ShmSysConfigAndInfo->SysConfig.chargePointVendor:"org.openchargealliance.costmsg");
+							sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].VendorId, "org.openchargealliance.costmsg");
 							sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].MessageId, "ConnectorUnplugged");
 							if(strcmp((char*)dmsVersion, "2.0")==0)
 								sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].Data, "{\\\"transactionId\\\":%d,\\\"timestamp\\\":\\\"%s\\\"}", ShmOCPP16Data->StartTransaction[gun_index].ResponseTransactionId, ts);
@@ -5426,7 +5426,7 @@ void CheckSystemValue(void)
 						{
 							uint8_t ts[36];
 							getNowDatetime(ts);
-							sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].VendorId, strlen((char*)ShmSysConfigAndInfo->SysConfig.chargePointVendor)>0? (char*)ShmSysConfigAndInfo->SysConfig.chargePointVendor:"org.openchargealliance.costmsg");
+							sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].VendorId, "org.openchargealliance.costmsg");
 							sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].MessageId, "ConnectorUnplugged");
 							if(strcmp((char*)dmsVersion, "2.0")==0)
 								sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].Data, "{\\\"transactionId\\\":%d,\\\"timestamp\\\":\\\"%s\\\"}", ShmOCPP16Data->StartTransaction[gun_index].ResponseTransactionId, ts);
@@ -5484,7 +5484,7 @@ void CheckSystemValue(void)
 						{
 							uint8_t ts[36];
 							getNowDatetime(ts);
-							sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].VendorId, strlen((char*)ShmSysConfigAndInfo->SysConfig.chargePointVendor)>0? (char*)ShmSysConfigAndInfo->SysConfig.chargePointVendor:"org.openchargealliance.costmsg");
+							sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].VendorId, "org.openchargealliance.costmsg");
 							sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].MessageId, "ConnectorUnplugged");
 							if(strcmp((char*)dmsVersion, "2.0")==0)
 								sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].Data, "{\\\"transactionId\\\":%d,\\\"timestamp\\\":\\\"%s\\\"}", ShmOCPP16Data->StartTransaction[gun_index].ResponseTransactionId, ts);
@@ -5549,7 +5549,7 @@ void CheckSystemValue(void)
 						{
 							uint8_t ts[36];
 							getNowDatetime(ts);
-							sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].VendorId, strlen((char*)ShmSysConfigAndInfo->SysConfig.chargePointVendor)>0? (char*)ShmSysConfigAndInfo->SysConfig.chargePointVendor:"org.openchargealliance.costmsg");
+							sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].VendorId, "org.openchargealliance.costmsg");
 							sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].MessageId, "ConnectorUnplugged");
 							if(strcmp((char*)dmsVersion, "2.0")==0)
 								sprintf((char*)ShmOCPP16Data->DataTransfer[gun_index].Data, "{\\\"transactionId\\\":%d,\\\"timestamp\\\":\\\"%s\\\"}", ShmOCPP16Data->StartTransaction[gun_index].ResponseTransactionId, ts);