|
@@ -31,7 +31,7 @@ static struct ChargingInfoData *pDcChargingInfo = NULL;
|
|
|
static struct ChargingInfoData *pAcChargingInfo = NULL;
|
|
|
|
|
|
bool needReloadQr = true;
|
|
|
-
|
|
|
+bool _saftydetect = false;
|
|
|
bool _isShow = false; //DS60-120 add
|
|
|
uint8_t _showInformIndex = 0; //DS60-120 add
|
|
|
|
|
@@ -241,9 +241,9 @@ short __show_waitgunplug_value = 0x0468;
|
|
|
uint8_t _showwaitgunplug_left = 80;
|
|
|
uint8_t _showwaitgunplug_right = 81;
|
|
|
#else
|
|
|
-short __show_handshark_value = 0x1464;
|
|
|
-short __show_GFD_value = 0x1466;
|
|
|
-short __show_precharge_value = 0x1468;
|
|
|
+short __show_handshark_value = 0x0464;
|
|
|
+short __show_GFD_value = 0x0466;
|
|
|
+short __show_precharge_value = 0x0468;
|
|
|
|
|
|
uint8_t _show_handshark_dark = 67;
|
|
|
uint8_t _show_handshark_light = 68;
|
|
@@ -573,6 +573,7 @@ void ChangeWarningFunc()
|
|
|
//log_info("WarningCount = %d ", pSysWarning->WarningCount);
|
|
|
//#if !defined DD360 && !defined DD360Audi && !defined DD360ComBox
|
|
|
for (i = 0; (i + pSysWarning->PageIndex * 5) < pSysWarning->WarningCount; i++) {
|
|
|
+ log_info("Warming Code[%d]:%s",i,&pSysWarning->WarningCode[i][0]);
|
|
|
memset(cmd, 0x00, sizeof(cmd));
|
|
|
if ((i) >= 5) {
|
|
|
break;
|
|
@@ -1817,6 +1818,7 @@ void ProcessPageInfo()
|
|
|
#endif //defined DD360Audi
|
|
|
|
|
|
case _LCM_IDLE: {
|
|
|
+
|
|
|
if (pSysConfig->isRFID) {
|
|
|
ChangeDisplay2Value(__main_rfid, _main_rfid);
|
|
|
} else {
|
|
@@ -2085,25 +2087,49 @@ void ProcessPageInfo()
|
|
|
if (_currentPage == _LCM_PRE_CHARGE && !isShowAc) {
|
|
|
if (pSysInfo->CurGunSelected == i) {
|
|
|
ChangeBattMapAndValue(_currentPage, pDcChargingInfo->EvBatterySoc);
|
|
|
- uint8_t precharg_time = (GetPreChargeTimeoutValue(pDcChargingInfo->PreChargeTimer)/1.5) / uSEC_VAL;
|
|
|
+ uint8_t precharg_time = (GetPreChargeTimeoutValue(pDcChargingInfo->PreChargeTimer)/1) / uSEC_VAL;
|
|
|
if (precharg_time > PRECHARGING_TTIMEOUT)
|
|
|
precharg_time = PRECHARGING_TTIMEOUT;
|
|
|
ChangeTimeValue(PRECHARGING_TTIMEOUT- precharg_time);
|
|
|
|
|
|
if (pDcChargingInfo->SystemStatus >= S_REASSIGN_CHECK &&
|
|
|
pDcChargingInfo->SystemStatus <= S_PREPARING_FOR_EV) {
|
|
|
+ pDcChargingInfo->_SaftyDetect = false;
|
|
|
ChangeDisplay2Value(__show_handshark_value, _show_handshark_light);
|
|
|
ChangeDisplay2Value(__show_GFD_value, _show_GFD_dark);
|
|
|
ChangeDisplay2Value(__show_precharge_value, _show_precharge_dark);
|
|
|
+
|
|
|
} else if (pDcChargingInfo->SystemStatus == S_PREPARING_FOR_EVSE) {
|
|
|
- ChangeDisplay2Value(__show_handshark_value, _show_handshark_dark);
|
|
|
- ChangeDisplay2Value(__show_GFD_value, _show_GFD_light);
|
|
|
- ChangeDisplay2Value(__show_precharge_value, _show_precharge_dark);
|
|
|
+ if (pDcChargingInfo->Type == _Type_Chademo || pDcChargingInfo->Type == _Type_GB) {
|
|
|
+ if (pDcChargingInfo->_SaftyDetect == false ) {
|
|
|
+ ChangeDisplay2Value(__show_handshark_value, _show_handshark_dark);
|
|
|
+ ChangeDisplay2Value(__show_GFD_value, _show_GFD_light);
|
|
|
+ ChangeDisplay2Value(__show_precharge_value, _show_precharge_dark);
|
|
|
+ if (pDcChargingInfo->EvBatterytargetVoltage == 0)
|
|
|
+ pDcChargingInfo->_SaftyDetect = true;
|
|
|
+ } else {
|
|
|
+ ChangeDisplay2Value(__show_handshark_value, _show_handshark_dark);
|
|
|
+ ChangeDisplay2Value(__show_GFD_value, _show_GFD_dark);
|
|
|
+ ChangeDisplay2Value(__show_precharge_value, _show_precharge_light);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ ChangeDisplay2Value(__show_handshark_value, _show_handshark_dark);
|
|
|
+ ChangeDisplay2Value(__show_GFD_value, _show_GFD_light);
|
|
|
+ ChangeDisplay2Value(__show_precharge_value, _show_precharge_dark);
|
|
|
+ }
|
|
|
} else if (pDcChargingInfo->SystemStatus == S_CCS_PRECHARGE_ST0 ||
|
|
|
pDcChargingInfo->SystemStatus == S_CCS_PRECHARGE_ST1) {
|
|
|
- ChangeDisplay2Value(__show_handshark_value, _show_handshark_dark);
|
|
|
- ChangeDisplay2Value(__show_GFD_value, _show_GFD_dark);
|
|
|
- ChangeDisplay2Value(__show_precharge_value, _show_precharge_light);
|
|
|
+ if (pDcChargingInfo->_SaftyDetect == false ) {
|
|
|
+ ChangeDisplay2Value(__show_handshark_value, _show_handshark_dark);
|
|
|
+ ChangeDisplay2Value(__show_GFD_value, _show_GFD_light);
|
|
|
+ ChangeDisplay2Value(__show_precharge_value, _show_precharge_dark);
|
|
|
+ if (pDcChargingInfo->EvBatterytargetVoltage == 0)
|
|
|
+ pDcChargingInfo->_SaftyDetect = true;
|
|
|
+ } else {
|
|
|
+ ChangeDisplay2Value(__show_handshark_value, _show_handshark_dark);
|
|
|
+ ChangeDisplay2Value(__show_GFD_value, _show_GFD_dark);
|
|
|
+ ChangeDisplay2Value(__show_precharge_value, _show_precharge_light);
|
|
|
+ }
|
|
|
} else {
|
|
|
ChangeDisplay2Value(__show_handshark_value, _disappear);
|
|
|
ChangeDisplay2Value(__show_GFD_value, _disappear);
|