Ver código fonte

[Improve][Modularization][Modudle_OcppBackend]

2021.08.23 / Folus Wen

Actions:
1. TTIA message log add target server address and port info.

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
fbb497f82e
1 arquivos alterados com 6 adições e 4 exclusões
  1. 6 4
      EVSE/Modularization/ocppfiles/MessageHandler.c

+ 6 - 4
EVSE/Modularization/ocppfiles/MessageHandler.c

@@ -634,7 +634,9 @@ int sendTTIAInfo(uint8_t gun_index)
 				}
 				DEBUG_TTIA_INFO("Message raw: %s\n", logBuf);
 				DEBUG_TTIA_INFO("OCPP Transaction ID: %d\n", ShmOCPP16Data->StopTransaction[gun_index].TransactionId);
-				DEBUG_TTIA_INFO("----- Header -----\n");
+				DEBUG_TTIA_INFO("TTIA server address: %s\n", ShmSysConfigAndInfo->SysConfig.TTIA_Info.server_addr);
+				DEBUG_TTIA_INFO("TTIA server port: %d\n", ShmSysConfigAndInfo->SysConfig.TTIA_Info.server_port);
+				DEBUG_TTIA_INFO("---------- Header ----------\n");
 				DEBUG_TTIA_INFO("ProtocolID: APTS\n");
 				DEBUG_TTIA_INFO("ProtocolVer: 0x02\n");
 				DEBUG_TTIA_INFO("MessageID: 0xB0\n");
@@ -644,8 +646,8 @@ int sendTTIAInfo(uint8_t gun_index)
 				DEBUG_TTIA_INFO("DriverID: 0x00000000\n");
 				DEBUG_TTIA_INFO("Sequence: %d\n", sn);
 				DEBUG_TTIA_INFO("Reserved: 0x00\n");
-				DEBUG_TTIA_INFO("Len: 80\n");
-				DEBUG_TTIA_INFO("----- Payload -----\n");
+				DEBUG_TTIA_INFO("Len: 0x3C\n");
+				DEBUG_TTIA_INFO("--------- Payload ---------\n");
 				DEBUG_TTIA_INFO("EquipmentProvider: %s\n", ShmSysConfigAndInfo->SysConfig.TTIA_Info.EquipmentProvider);
 				DEBUG_TTIA_INFO("TransportationCompanyNo: %d\n", ShmSysConfigAndInfo->SysConfig.TTIA_Info.TransportationCompanyNo);
 				DEBUG_TTIA_INFO("ChargeBoxId: %d\n", ShmSysConfigAndInfo->SysConfig.TTIA_Info.ChargeBoxId);
@@ -658,7 +660,7 @@ int sendTTIAInfo(uint8_t gun_index)
 				DEBUG_TTIA_INFO("Session charged energy (kwh): %f\n", (PresentChargedEnergy/10.0));
 				DEBUG_TTIA_INFO("Session start SOC: %d\n", socStart);
 				DEBUG_TTIA_INFO("Session end SOC: %d\n", socEnd);
-				DEBUG_TTIA_INFO("==================================\n");
+				DEBUG_TTIA_INFO("=========================================\n");
 				sn++;
 								result = PASS;
 			}