|
@@ -388,7 +388,7 @@ bool isModelNameMatch = true;
|
|
|
//char* rfidPortName = "/dev/ttyS2";
|
|
|
#if ENABLE_PCBA_TEST == 0
|
|
|
char* fwVersion = "V1.10.00.0000.00";
|
|
|
-char* subVersion = "04";
|
|
|
+char* subVersion = "05";
|
|
|
#else
|
|
|
char* fwVersion = "PCBA.00.04";
|
|
|
char* subVersion = "00";
|
|
@@ -1573,7 +1573,7 @@ void MasterCabinetDhcpClientConfig(void)
|
|
|
system("killall udhcpc");
|
|
|
system("rm -rf /etc/resolv.conf");
|
|
|
system("echo nameserver 8.8.8.8 > /etc/resolv.conf"); //Google DNS server
|
|
|
- system("echo nameserver 180.76.76.76 > /etc/resolv.conf"); //Baidu DNS server
|
|
|
+ system("echo nameserver 180.76.76.76 >> /etc/resolv.conf"); //Baidu DNS server
|
|
|
//system("/sbin/ifconfig eth0 down;/sbin/ifconfig eth0 up");
|
|
|
|
|
|
if(ShmSysConfigAndInfo->SysConfig.Eth0Interface.EthDhcpClient == 0)
|
|
@@ -2171,7 +2171,10 @@ bool InitialChargerSetting(void)
|
|
|
}
|
|
|
else if(ShmSysConfigAndInfo->SysConfig.ModelName[0] == 'D' && ShmSysConfigAndInfo->SysConfig.ModelName[1] == 'K')
|
|
|
{
|
|
|
- ShmChargerInfo->Control.SysCtrl.bits.FanBoardDisable = true;
|
|
|
+ if(!(ShmSysConfigAndInfo->SysConfig.ModelName[12] == 'P' && ShmSysConfigAndInfo->SysConfig.ModelName[13] == 'K'))
|
|
|
+ {
|
|
|
+ ShmChargerInfo->Control.SysCtrl.bits.FanBoardDisable = true;
|
|
|
+ }
|
|
|
ShmChargerInfo->Control.SysCtrl.bits.LedBoardDisable = true;
|
|
|
|
|
|
ShmChargerInfo->Control.SysCtrl.bits.DKLedIndication = true;
|
|
@@ -6937,6 +6940,10 @@ void OcppStartTransaction(byte gunIndex)
|
|
|
// set deduct user id
|
|
|
//Set_Deduct_UserId(gunIndex, (char *)&chargingInfo[gunIndex]->StartUserId);
|
|
|
|
|
|
+ // initial start & stop datetime
|
|
|
+ strcpy((char *)chargingInfo[gunIndex]->StartDateTime, "00:00:00");
|
|
|
+ strcpy((char *)chargingInfo[gunIndex]->StopDateTime, "00:00:00");
|
|
|
+
|
|
|
Set_Ocpp_StartTransactionId(gunIndex, (char *)chargingInfo[gunIndex]->StartUserId);
|
|
|
|
|
|
LOG_INFO("Gun %d Start Transaction IdTag = %s", chargingInfo[gunIndex]->Index + 1, chargingInfo[gunIndex]->StartUserId);
|
|
@@ -8893,8 +8900,8 @@ int main(void)
|
|
|
LOG_INFO("================== S_IDLE (%x) ================== \n", gun_index + 1);
|
|
|
chargingInfo[gun_index]->PresentChargedDuration = 0;
|
|
|
chargingInfo[gun_index]->RemainChargingDuration = 0;
|
|
|
- strcpy((char *)chargingInfo[gun_index]->StartDateTime, "00:00:00");
|
|
|
- strcpy((char *)chargingInfo[gun_index]->StopDateTime, "00:00:00");
|
|
|
+ strcpy((char *)chargingInfo[gun_index]->StartDateTime, "");
|
|
|
+ strcpy((char *)chargingInfo[gun_index]->StopDateTime, "");
|
|
|
strcpy((char *)chargingInfo[gun_index]->StartUserId, "");
|
|
|
Clean_Ocpp_StopReason(gun_index);
|
|
|
ReleaseAlarmCode(gun_index);
|