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

Beta release ISO15118-20 #638

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Beta release ISO15118-20 #638

wants to merge 13 commits into from

Conversation

SebaLukas
Copy link
Contributor

@SebaLukas SebaLukas commented Apr 18, 2024

Describe your changes

Adding Evse15118D20 module for iso15118-20 beta support
Adding the new EVerest/libiso15118 to everest-core

Issue ticket number and link

Missing ISO15118-20 DC/DC BPT support in EVerest

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

@SebaLukas
Copy link
Contributor Author

SebaLukas commented Apr 18, 2024

Todo:

  • Fixing integration test
  • Wait for libiso15118 PR for prober commit / release tag
  • Squash all commits together

types/iso15118_charger.yaml Outdated Show resolved Hide resolved
types/iso15118_charger.yaml Outdated Show resolved Hide resolved
modules/Iso15118/D20Evse/charger/ISO15118_chargerImpl.cpp Outdated Show resolved Hide resolved
config/config-sil-dc-d20.yaml Show resolved Hide resolved
Copy link
Contributor

@james-ctc james-ctc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only some observations and suggestion.

modules/Evse15118D20/charger/ISO15118_chargerImpl.cpp Outdated Show resolved Hide resolved
modules/Evse15118D20/charger/ISO15118_chargerImpl.cpp Outdated Show resolved Hide resolved
modules/Evse15118D20/charger/ISO15118_chargerImpl.hpp Outdated Show resolved Hide resolved
modules/Evse15118D20/charger/utils.hpp Outdated Show resolved Hide resolved
modules/Evse15118D20/charger/utils.hpp Outdated Show resolved Hide resolved
modules/EvseManager/EvseManager.cpp Outdated Show resolved Hide resolved
modules/EvseManager/EvseManager.cpp Outdated Show resolved Hide resolved
modules/EvseManager/EvseManager.cpp Outdated Show resolved Hide resolved
modules/EvseManager/EvseManager.cpp Outdated Show resolved Hide resolved
modules/EvseManager/EvseManager.cpp Outdated Show resolved Hide resolved
modules/EvseManager/EvseManager.cpp Outdated Show resolved Hide resolved
modules/Evse15118D20/charger/ISO15118_chargerImpl.cpp Outdated Show resolved Hide resolved
modules/Evse15118D20/charger/ISO15118_chargerImpl.cpp Outdated Show resolved Hide resolved
modules/Evse15118D20/charger/ISO15118_chargerImpl.cpp Outdated Show resolved Hide resolved
modules/Evse15118D20/charger/ISO15118_chargerImpl.cpp Outdated Show resolved Hide resolved
modules/Evse15118D20/charger/ISO15118_chargerImpl.cpp Outdated Show resolved Hide resolved
modules/Evse15118D20/charger/ISO15118_chargerImpl.hpp Outdated Show resolved Hide resolved
@SebaLukas SebaLukas force-pushed the testing/iso15118-20 branch 3 times, most recently from 674074a to 6268cfa Compare September 25, 2024 09:27
- Added config/config-sil-dc-d20.yaml for SIL testing
- Added Evse15118D20 module
- Modified PyEvJosev module for supported services
- Use device config option
- Additional umwc iso stop handlers
- Added logging skeleton
- Supporting tls negotiation strategy
- Support for exi log messages
- Logging format changes
- DC_EV_TargetVoltageCurrent is now published
- Added support for configurable keyfile password
- Added v2g_setup_finished & current_demand_started var callback
- Added signal start_cable_check
- Added first simple control event
- Added stop and unplug cmds to the auto exec commands. Now the ev stops the charging process after 15 seconds
- Send control_event presentvoltagecurrent
- Added the new feedback signals and foward the authorization status to the d20 state machine
- Handle_session_setup() is now in use
- Handle StopCharging
- Adding v2g_message_id callback, v2g_message_xml & json are now really optional
- Adding bidirectional to iso15118_charger interface
- Updating logging_callback with LogLevels

Co-authored-by: Cornelius Claussen <[email protected]>
Co-authored-by: Sebastian Lukas <[email protected]>
Signed-off-by: aw <[email protected]>
Signed-off-by: Sebastian Lukas <[email protected]>
config/config-sil-dc-d20.yaml Outdated Show resolved Hide resolved

update_powersupply_capabilities(get_powersupply_capabilities());
if (caps.bidirectional) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok for now, but I'm not sure if this still works if the power supply capabilties are not yet available here. In this case they will default to safe defaults and the real values/bidi flag will come once connection to the power supply is established. Later this probably needs to go into update_powersupply_capabilities().

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, then the EvseManager should call call_setup from the iso15118_charger interface only if the power supply caps are available and not before.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may change any time, so a power supply may also sometimes be able to do bidi and some times not. Whenever that changes, we need to update the iso module. This is why we factored out e.g. set_charging_parameters from setup(). Setup() should only contain things that are fixed and available at start up, everything else should be runtime-modifiable, this includes the min/max power ratings and the bidi flags.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see

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

Successfully merging this pull request may close these issues.

libiso15118: TLS 1.3 EOF error while performing handshake with libiso15118
6 participants