Эх сурвалжийг харах

[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 жил өмнө
parent
commit
03a52d2f39

+ 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);
 
 		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;
+			
+			// After 6 seconds Relay off & PWM off (specifcation)
+			setRelay(gun_index, OFF);
+			setRequest(gun_index, OFF);
+		}
 	}
 }