Bläddra i källkod

[Improve][AW-CCS][Module_InternalComm.c]
2022-03-03 / Eason Yang
Action
1. Imrpvoe: ESD causes MCU to reset during charging, and the system needs re-send command to change the PWM duty after communication fails 13 times.

File
1. Module_InternalComm.c
Action 1

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

8009 3 år sedan
förälder
incheckning
a45decf6a9
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3 0
      EVSE/Projects/AW-CCS/Apps/Module_InternalComm.c

+ 3 - 0
EVSE/Projects/AW-CCS/Apps/Module_InternalComm.c

@@ -3026,6 +3026,9 @@ int main(void)
 			//===============================
 			// Communication fail check
 			//===============================
+			if(failCount[gun_index] >= 13)
+				ShmCharger->gun_info[gun_index].mcuFlag.isSetCpPwmDuty = ON;
+
 			if(failCount[gun_index] >= FAIL_SPEC_COMM)
 			{
 				if((0 <= failCount[gun_index]%FAIL_SPEC_COMM) && (failCount[gun_index]%FAIL_SPEC_COMM < 10))