Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No timeout for DC_PreCharger #281

Open
plpabla opened this issue Jul 27, 2023 · 1 comment
Open

No timeout for DC_PreCharger #281

plpabla opened this issue Jul 27, 2023 · 1 comment

Comments

@plpabla
Copy link

plpabla commented Jul 27, 2023

Right now in the simulation we pass PreCharge by returning True in simulator.py:

    async def is_precharged(
        self, present_voltage_evse: Union[PVEVSEPresentVoltage, RationalNumber]
    ) -> bool:
        return True

As a result, we get "EVProcessing":"Finished"

When I change it to return False we are stuck in "EVProcessing":"Ongoing" for at least 70s. ISO 15118-20 defines timeout as 60s (Table 215)

Extract from the log below:

...
INFO    2023-07-27 06:17:30,203 - iso15118.shared.states (139): Entered state DCPreCharge
INFO    2023-07-27 06:17:30,213 - iso15118.shared.exi_codec (299): Decoded message (ns=urn:iso:std:iso:15118:-20:DC): {"DC_PreChargeReq":{"EVPresentVoltage":{"Exponent":3,"Value":20},"EVProcessing":"Ongoing","EVTargetVoltage":{"Exponent":3,"Value":20},"Header":{"SessionID":"6F52A252B6742BF1","TimeStamp":1690438650}}}
INFO    2023-07-27 06:17:30,217 - iso15118.shared.comm_session (235): DC_PreChargeReq received
INFO    2023-07-27 06:17:30,222 - iso15118.shared.exi_codec (245): Message to encode (ns=urn:iso:std:iso:15118:-20:DC): {"DC_PreChargeRes": {"Header": {"SessionID": "6F52A252B6742BF1", "TimeStamp": 1690438650}, "ResponseCode": "OK", "EVSEPresentVoltage": {"Exponent": 0, "Value": 230}}}
INFO    2023-07-27 06:17:30,225 - iso15118.shared.comm_session (428): Sent DC_PreChargeRes
...
INFO    2023-07-27 06:18:40,043 - iso15118.shared.comm_session (428): Sent DC_PreChargeRes
INFO    2023-07-27 06:18:40,069 - iso15118.shared.exi_codec (299): Decoded message (ns=urn:iso:std:iso:15118:-20:DC): {"DC_PreChargeReq":{"EVPresentVoltage":{"Exponent":3,"Value":20},"EVProcessing":"Ongoing","EVTargetVoltage":{"Exponent":3,"Value":20},"Header":{"SessionID":"6F52A252B6742BF1","TimeStamp":1690438720}}}
INFO    2023-07-27 06:18:40,073 - iso15118.shared.comm_session (235): DC_PreChargeReq received
INFO    2023-07-27 06:18:40,077 - iso15118.shared.exi_codec (245): Message to encode (ns=urn:iso:std:iso:15118:-20:DC): {"DC_PreChargeRes": {"Header": {"SessionID": "6F52A252B6742BF1", "TimeStamp": 1690438720}, "ResponseCode": "OK", "EVSEPresentVoltage": {"Exponent": 0, "Value": 230}}}
...
@shalinnijel2
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants