|
@@ -396,25 +396,27 @@ static void SetPresentChargingOutputCap(void)
|
|
|
|
|
|
//DS60-120 add
|
|
|
if ((LogInfo[0][EV_LOG_OUTPUT_CAP_POW] <= pow1 - 5 ||
|
|
|
- LogInfo[0][EV_LOG_OUTPUT_CAP_POW] >= pow1 + 5) ||
|
|
|
- (LogInfo[0][EV_LOG_OUTPUT_CAP_CUR] <= cur1 - 5 ||
|
|
|
- LogInfo[0][EV_LOG_OUTPUT_CAP_CUR] >= cur1 + 5) ||
|
|
|
- (LogInfo[1][EV_LOG_OUTPUT_CAP_POW] <= pow2 - 5 ||
|
|
|
- LogInfo[1][EV_LOG_OUTPUT_CAP_POW] >= pow2 + 5) ||
|
|
|
- (LogInfo[1][EV_LOG_OUTPUT_CAP_CUR] <= cur2 - 5 ||
|
|
|
- LogInfo[1][EV_LOG_OUTPUT_CAP_CUR] >= cur2 + 5)
|
|
|
- ) {
|
|
|
- //log_info("----------------------------------------------------- ");
|
|
|
- log_info("To EV (Real) Power_1 = %.1f, Cur_1 = %.1f, Power_2 = %.1f, Cur_2 = %.1f",
|
|
|
- pow1 / 10, cur1 / 10, pow2 / 10, cur2 / 10);
|
|
|
- //log_info("----------------------------------------------------- ");
|
|
|
-
|
|
|
+ LogInfo[0][EV_LOG_OUTPUT_CAP_POW] >= pow1 + 5) ||
|
|
|
+ (LogInfo[0][EV_LOG_OUTPUT_CAP_CUR] <= cur1 - 5 ||
|
|
|
+ LogInfo[0][EV_LOG_OUTPUT_CAP_CUR] >= cur1 + 5)
|
|
|
+ ) {
|
|
|
+ log_info("Gun0 To EV Power_1 = %3.1fkW, Cur_1 = %3.1fA", pow1 / 10, cur1 / 10);
|
|
|
LogInfo[0][EV_LOG_OUTPUT_CAP_POW] = pow1;
|
|
|
LogInfo[0][EV_LOG_OUTPUT_CAP_CUR] = cur1;
|
|
|
- LogInfo[1][EV_LOG_OUTPUT_CAP_POW] = pow2;
|
|
|
- LogInfo[1][EV_LOG_OUTPUT_CAP_CUR] = cur2;
|
|
|
chargingData_1->RealMaxCurrent = cur1;
|
|
|
chargingData_1->RealMaxPower = pow1;
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((LogInfo[1][EV_LOG_OUTPUT_CAP_POW] <= pow2 - 5 ||
|
|
|
+ LogInfo[1][EV_LOG_OUTPUT_CAP_POW] >= pow2 + 5) ||
|
|
|
+ (LogInfo[1][EV_LOG_OUTPUT_CAP_CUR] <= cur2 - 5 ||
|
|
|
+ LogInfo[1][EV_LOG_OUTPUT_CAP_CUR] >= cur2 + 5)
|
|
|
+ ) {
|
|
|
+ log_info("Gun1 To EV Power_2 = %3.1fkW, Cur_2 = %3.1fA", pow2 / 10, cur2 / 10);
|
|
|
+
|
|
|
+ LogInfo[1][EV_LOG_OUTPUT_CAP_POW] = pow2;
|
|
|
+ LogInfo[1][EV_LOG_OUTPUT_CAP_CUR] = cur2;
|
|
|
+
|
|
|
|
|
|
if (pSysConfig->TotalConnectorCount == 2) {
|
|
|
chargingData_2->RealMaxCurrent = cur2;
|
|
@@ -538,22 +540,27 @@ static void SetPresentChargingOutputPower(void)
|
|
|
|
|
|
//DS60-120 add
|
|
|
if ((LogInfo[0][EV_LOG_NOW_OUTPUT_VOL] >= vol1 + CHK_VOL_RANGE) ||
|
|
|
- (LogInfo[0][EV_LOG_NOW_OUTPUT_VOL] <= vol1 - CHK_VOL_RANGE) ||
|
|
|
- (LogInfo[0][EV_LOG_NOW_OUTPUT_CUR] >= cur1 + CHK_CUR_RANGE) ||
|
|
|
- (LogInfo[0][EV_LOG_NOW_OUTPUT_CUR] <= cur1 - CHK_CUR_RANGE) ||
|
|
|
- (LogInfo[1][EV_LOG_NOW_OUTPUT_VOL] >= vol2 + CHK_VOL_RANGE) ||
|
|
|
- (LogInfo[1][EV_LOG_NOW_OUTPUT_VOL] <= vol2 - CHK_VOL_RANGE) ||
|
|
|
- (LogInfo[1][EV_LOG_NOW_OUTPUT_CUR] >= cur2 + CHK_CUR_RANGE) ||
|
|
|
- (LogInfo[1][EV_LOG_NOW_OUTPUT_CUR] <= cur2 - CHK_CUR_RANGE)
|
|
|
- ) {
|
|
|
- log_info("G1-> Vol=%.1f, Cur=%.1f - G2-> Vol = %.1f, Cur = %.1f",
|
|
|
- vol1 / 10,
|
|
|
- cur1 / 10,
|
|
|
- vol2 / 10,
|
|
|
- cur2 / 10);
|
|
|
+ (LogInfo[0][EV_LOG_NOW_OUTPUT_VOL] <= vol1 - CHK_VOL_RANGE) ||
|
|
|
+ (LogInfo[0][EV_LOG_NOW_OUTPUT_CUR] >= cur1 + CHK_CUR_RANGE) ||
|
|
|
+ (LogInfo[0][EV_LOG_NOW_OUTPUT_CUR] <= cur1 - CHK_CUR_RANGE)) {
|
|
|
+
|
|
|
+ log_info("Gun0 Set Output Voltage=%3.1fV, Cur=%3.1fA",
|
|
|
+ vol1 / 10,
|
|
|
+ cur1 / 10);
|
|
|
|
|
|
LogInfo[0][EV_LOG_NOW_OUTPUT_VOL] = vol1;
|
|
|
LogInfo[0][EV_LOG_NOW_OUTPUT_CUR] = cur1;
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((LogInfo[1][EV_LOG_NOW_OUTPUT_VOL] >= vol2 + CHK_VOL_RANGE) ||
|
|
|
+ (LogInfo[1][EV_LOG_NOW_OUTPUT_VOL] <= vol2 - CHK_VOL_RANGE) ||
|
|
|
+ (LogInfo[1][EV_LOG_NOW_OUTPUT_CUR] >= cur2 + CHK_CUR_RANGE) ||
|
|
|
+ (LogInfo[1][EV_LOG_NOW_OUTPUT_CUR] <= cur2 - CHK_CUR_RANGE)) {
|
|
|
+
|
|
|
+ log_info("Gun1 Set Output Voltage=%3.1fV, Cur=%3.1fA",
|
|
|
+ vol2 / 10,
|
|
|
+ cur2 / 10);
|
|
|
+
|
|
|
LogInfo[1][EV_LOG_NOW_OUTPUT_VOL] = vol2;
|
|
|
LogInfo[1][EV_LOG_NOW_OUTPUT_CUR] = cur2;
|
|
|
}
|