EVerest / everest-core

Apache License 2.0
98 stars 72 forks source link

PhyVersoBSP: Keep alive, config rework, RCD handling #771

Closed rckstrh closed 3 months ago

rckstrh commented 3 months ago

Describe your changes

1Hz keep alive messages from EVerest to MCU have been implemented so that when EVerest crashes and keep alive messages stop the MCU will timeout and go into a fault mode.

Rework has been done on the PhyVersoBSP module regarding configuration options that have been managed in a separate json config file until now. JSON config file support remains for phyverso_cli testing tool but the config handling has been changed so that the PhyVersoBSP module is configurable regarding MCU config data using normal module config parameters in EVerest config like any other module.

MCU can now be configured to have different motor lock styles on each charging port and GPIO bank and pin can be configured for accessing the nRST signal in case one wants to hard reset the MCU from EVerest/phyverso_cli.

RCD error reporting and handling has been added as well as the ability to set and reset the TEST signal for the RCD by MCU and reset the RCD from EVerest after it has been triggered and MCU/system is in emergency-off mode.

Issue ticket number and link

Checklist before requesting a review