|
@@ -38,7 +38,6 @@
|
|
|
#include "TransactionQueue.h"
|
|
|
|
|
|
|
|
|
-
|
|
|
#define PASS 1
|
|
|
#define FAIL -1
|
|
|
|
|
@@ -1135,7 +1134,7 @@ int isOFFline(void)
|
|
|
{
|
|
|
if(ShmSysConfigAndInfo->SysInfo.InternetConn == 0)
|
|
|
{
|
|
|
- if(TempMeterValueInterval >= 10 )
|
|
|
+ if(TempMeterValueInterval >= 2 )
|
|
|
{
|
|
|
TempMeterValueInterval = 0;
|
|
|
return TRUE;
|
|
@@ -17823,6 +17822,7 @@ void storeTempStopTransaction(int gun_index)
|
|
|
|
|
|
strcpy((char *)ShmOCPP16Data->StopTransaction[gun_index].Timestamp,buf);
|
|
|
ShmOCPP16Data->StopTransaction[gun_index].TransactionId = ShmOCPP16Data->StartTransaction[gun_index].ResponseTransactionId;
|
|
|
+ strcpy((char *)ShmOCPP16Data->StopTransaction[gun_index].IdTag, (const char*)ShmOCPP16Data->StartTransaction[gun_index].IdTag);
|
|
|
|
|
|
random_uuid(guid);
|
|
|
|
|
@@ -17831,7 +17831,7 @@ void storeTempStopTransaction(int gun_index)
|
|
|
strcpy((char *)ShmOCPP16Data->StopTransaction[gun_index].TransactionData[0].TimeStamp, buf);
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -17854,9 +17854,9 @@ void storeTempStopTransaction(int gun_index)
|
|
|
strcpy((char *)ShmOCPP16Data->StopTransaction[gun_index].TransactionData[0].SampledValue[0].Unit,UnitOfMeasureStr[UnitOfMeasure_kWh]);
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
if(gunType[gun_index] == 'J')
|
|
@@ -17951,7 +17951,7 @@ void storeTempStopTransaction(int gun_index)
|
|
|
strcpy((char *)ShmOCPP16Data->StopTransaction[gun_index].TransactionData[0].SampledValue[1].Location,LocationStr[Location_Outlet]);
|
|
|
strcpy((char *)ShmOCPP16Data->StopTransaction[gun_index].TransactionData[0].SampledValue[1].Unit,UnitOfMeasureStr[UnitOfMeasure_A]);
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -18050,7 +18050,7 @@ void storeTempStopTransaction(int gun_index)
|
|
|
strcpy((char *)ShmOCPP16Data->StopTransaction[gun_index].TransactionData[0].SampledValue[2].Location,LocationStr[Location_Outlet]);
|
|
|
strcpy((char *)ShmOCPP16Data->StopTransaction[gun_index].TransactionData[0].SampledValue[2].Unit,UnitOfMeasureStr[UnitOfMeasure_kWh]);
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -18146,7 +18146,7 @@ void storeTempStopTransaction(int gun_index)
|
|
|
strcpy((char *)ShmOCPP16Data->StopTransaction[gun_index].TransactionData[0].SampledValue[3].Location,LocationStr[Location_Outlet]);
|
|
|
strcpy((char *)ShmOCPP16Data->StopTransaction[gun_index].TransactionData[0].SampledValue[3].Unit,UnitOfMeasureStr[UnitOfMeasure_kW]);
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
if(gunType[gun_index] == 'J')
|
|
@@ -18242,7 +18242,7 @@ void storeTempStopTransaction(int gun_index)
|
|
|
strcpy((char *)ShmOCPP16Data->StopTransaction[gun_index].TransactionData[0].SampledValue[4].Location,LocationStr[Location_Outlet]);
|
|
|
strcpy((char *)ShmOCPP16Data->StopTransaction[gun_index].TransactionData[0].SampledValue[4].Unit,UnitOfMeasureStr[UnitOfMeasure_V]);
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
if((gunType[gun_index] == 'J')||(gunType[gun_index] == 'U')||(gunType[gun_index] == 'E')||(gunType[gun_index] == 'G'))
|