|
@@ -5568,15 +5568,6 @@ void CheckSystemValue(void)
|
|
|
ShmOCPP20Data->CsMsg.bits[gun_index].DataTransferReq = OFF;
|
|
|
}
|
|
|
|
|
|
- //===============================
|
|
|
- // CSU Trigger Smart Charging Profilw
|
|
|
- //===============================
|
|
|
- if(ShmOCPP20Data->CSUMsg.bits[gun_index].ChargingProfileReq == ON)
|
|
|
- {
|
|
|
- checkCompositeSchedule(gun_index+1, 86400, &ShmOCPP20Data->SmartChargingProfile[gun_index], 0, TRUE);
|
|
|
- ShmOCPP20Data->CSUMsg.bits[gun_index].ChargingProfileReq = OFF;
|
|
|
- }
|
|
|
-
|
|
|
//==============================================
|
|
|
// Charger start transaction
|
|
|
//==============================================
|
|
@@ -5877,6 +5868,15 @@ void CheckSystemValue(void)
|
|
|
clientTime.StatusNotification[gun_index] = time((time_t*)NULL);
|
|
|
}
|
|
|
|
|
|
+ //===============================
|
|
|
+ // CSU Trigger Smart Charging Profilw
|
|
|
+ //===============================
|
|
|
+ if(ShmOCPP20Data->CSUMsg.bits[gun_index].ChargingProfileReq == ON)
|
|
|
+ {
|
|
|
+ checkCompositeSchedule(gun_index+1, 86400, &ShmOCPP20Data->SmartChargingProfile[gun_index], 0, TRUE);
|
|
|
+ ShmOCPP20Data->CSUMsg.bits[gun_index].ChargingProfileReq = OFF;
|
|
|
+ }
|
|
|
+
|
|
|
if(isWebsocketSendable && (server_sign == TRUE) && (cpinitateMsg.bits[gun_index].TransactionEventReq == ON))
|
|
|
{
|
|
|
sendTransactionEventRequest(gun_index);
|