Skip to content

Commit

Permalink
Relax stateC requirement in PowerDelivery(15118-20)
Browse files Browse the repository at this point in the history
  • Loading branch information
machinex85 committed Jan 8, 2025
1 parent 676b315 commit 8ee5533
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions iso15118/secc/states/iso15118_20_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -1128,13 +1128,10 @@ async def process_message(
# ms after sending the first PowerDeliveryReq with ChargeProgress
# equals "Start" within V2G communication session.
if not await self.wait_for_state_c_or_d():
self.stop_state_machine(
"[V2G20-847]: State C/D not detected in PowerDelivery within"
" the allotted 250 ms.",
message,
ResponseCode.FAILED,
logger.warning(
"[V2G20-847]: C2/D2 CP state not detected after "
"250ms in PowerDelivery"
)
return

if not await self.comm_session.evse_controller.is_contactor_closed():
self.stop_state_machine(
Expand Down
2 changes: 1 addition & 1 deletion tests/iso15118_20/secc/test_iso15118_20_ac_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ async def test_15118_20_ac_charge_charge_loop_res_evse_context_read(
),
(
ControlMode.DYNAMIC,
Terminate,
ACChargeLoop,
SelectedEnergyService(
service=ServiceV20.AC, is_free=True, parameter_set=None
),
Expand Down
2 changes: 1 addition & 1 deletion tests/iso15118_20/secc/test_iso15118_20_dc_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ async def test_15118_20_dc_charge_charge_loop_res_evse_context_read(
),
(
ControlMode.DYNAMIC,
Terminate,
DCChargeLoop,
SelectedEnergyService(
service=ServiceV20.DC, is_free=True, parameter_set=None
),
Expand Down

0 comments on commit 8ee5533

Please sign in to comment.