Browse Source

[Improve][AW-CCS][main.c]
2022-10-11 / EASON YANG
Action:
1. Improve: proccessEndOfChargingForPtbMeter() function. After 6 seconds and end of session, relay off.

File:
1. main.c
Action 1

FIRMWARE VERSION: B0.63.XX.XXXX.PX

8009 2 years ago
parent
commit
03a52d2f39
1 changed files with 6 additions and 0 deletions
  1. 6 0
      EVSE/Projects/AW-CCS/Apps/main.c

+ 6 - 0
EVSE/Projects/AW-CCS/Apps/main.c

@@ -5683,7 +5683,13 @@ void proccessEndOfChargingForPtbMeter(uint8_t gun_index)
 		setPtbMeterPermission(gun_index, PERMISSION_END_CHARGING);
 		setPtbMeterPermission(gun_index, PERMISSION_END_CHARGING);
 
 
 		if((getDiffSecNow(startTime[gun_index][TMR_IDX_PTB_METER_MESSAGE]) >= 6) && (getDiffSecNow(startTime[gun_index][TMR_IDX_PTB_METER_MESSAGE]) <= 9))
 		if((getDiffSecNow(startTime[gun_index][TMR_IDX_PTB_METER_MESSAGE]) >= 6) && (getDiffSecNow(startTime[gun_index][TMR_IDX_PTB_METER_MESSAGE]) <= 9))
+		{
 			ShmCharger->gun_info[gun_index].isGetPtbMeterMessage = ON;
 			ShmCharger->gun_info[gun_index].isGetPtbMeterMessage = ON;
+			
+			// After 6 seconds Relay off & PWM off (specifcation)
+			setRelay(gun_index, OFF);
+			setRequest(gun_index, OFF);
+		}
 	}
 	}
 }
 }