-
Notifications
You must be signed in to change notification settings - Fork 112
Initial commit Winline #1376
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
base: main
Are you sure you want to change the base?
Initial commit Winline #1376
Conversation
* MCU<>Everest protobuf extension/rework * Config structure for a charging port has changed -> more info under its own bullet point below * motor locking states locking/unlocking added, not only endstates (but not really usable at the moment as motor lock interface definition does not have lock state vars where we could communicate state to other modules) * KeepAlive packet has added configuration_done flag that signals everest the MCU has successfully been configured, booted and is in normal run mode * added error flags for PP fault, coil/relay feedback divergence from target state, heartbeat timeout * Config extension * coil/relay feedback active high/low and pull directions can be configured * motor lock type defaults to no motor lock (as is the case for DC charging or AC charging without socket/detachable charging cable) * has_socket defines if we have a socketed charging port (with detachable cable) * if configuring a port for AC charging with a socket, critical errors will be thrown on everest/MCU side when not specifying motor lock type * Motor lock type only enforced on socketed AC ports * possible to completely disable charging port to do one charging port configs only * phyverso_cli parameters via json mirror whole everest module parameter set now * renamed cli_config_*.json files for more clarity where they could be used (phyverso_cli use only, no real-world application) * Error handling * Bidirectional serial communication timeouts will be reported and throw respective errors / will get cleared after normal communcation resumes * new errors thrown on everest side that will also have already lead to an emergency stop on MCU side * PP fault * coil/relay feedback diverges from target * heartbeat timeout (connection to/from Everest lost) * diode fault * Misc. * PP state logging fixed, was constantly spamming EVLOG with info messages when receiving periodic updates from MCU * sometimes serial communication gets completely mangled, leading to Everest not receiving config request packets -> MCU will not get config packets and will hang in boot loop * BSP will wait for MCU reporting that it is properly configured -> otherwise reset MCU / serial after some time and wait for new config request packet until MCU reports properly configured MCU, boot mode exit and normal operation * increased hard-reset nRST low time * added small delay in phyverso_cli input polling loop to not use 100% CPU Signed-off-by: Jonas Rockstroh <[email protected]>
Signed-off-by: florinmihut <[email protected]>
Signed-off-by: florinmihut <[email protected]>
There are also still a lot of basecamp licenses, names, references in there. |
I am sorry I wanted to create a draft PR, I was not aware that the system will automatically assign reviewers. |
Signed-off-by: florinmihut <[email protected]>
A proper title for the PR makes reading the master commit history (after merge) nicer. 😉 Someting like "Add Winline power supply driver".
There's a button for that (though it will send out notifications to the potential reviewers anyway, I believe). You can change the PR to a draft even after the original submission. |
Is Can some of the CanBus, CanPacket and Conversions stuff be refactored into that library? They seem generically useful for CAN implementations. |
Signed-off-by: florinmihut <[email protected]>
Signed-off-by: florinmihut <[email protected]>
… point(value between 0 and 3.3325) Signed-off-by: florinmihut <[email protected]>
* MCU<>Everest protobuf extension/rework * Config structure for a charging port has changed -> more info under its own bullet point below * motor locking states locking/unlocking added, not only endstates (but not really usable at the moment as motor lock interface definition does not have lock state vars where we could communicate state to other modules) * KeepAlive packet has added configuration_done flag that signals everest the MCU has successfully been configured, booted and is in normal run mode * added error flags for PP fault, coil/relay feedback divergence from target state, heartbeat timeout * Config extension * coil/relay feedback active high/low and pull directions can be configured * motor lock type defaults to no motor lock (as is the case for DC charging or AC charging without socket/detachable charging cable) * has_socket defines if we have a socketed charging port (with detachable cable) * if configuring a port for AC charging with a socket, critical errors will be thrown on everest/MCU side when not specifying motor lock type * Motor lock type only enforced on socketed AC ports * possible to completely disable charging port to do one charging port configs only * phyverso_cli parameters via json mirror whole everest module parameter set now * renamed cli_config_*.json files for more clarity where they could be used (phyverso_cli use only, no real-world application) * Error handling * Bidirectional serial communication timeouts will be reported and throw respective errors / will get cleared after normal communcation resumes * new errors thrown on everest side that will also have already lead to an emergency stop on MCU side * PP fault * coil/relay feedback diverges from target * heartbeat timeout (connection to/from Everest lost) * diode fault * Misc. * PP state logging fixed, was constantly spamming EVLOG with info messages when receiving periodic updates from MCU * sometimes serial communication gets completely mangled, leading to Everest not receiving config request packets -> MCU will not get config packets and will hang in boot loop * BSP will wait for MCU reporting that it is properly configured -> otherwise reset MCU / serial after some time and wait for new config request packet until MCU reports properly configured MCU, boot mode exit and normal operation * increased hard-reset nRST low time * added small delay in phyverso_cli input polling loop to not use 100% CPU Signed-off-by: Jonas Rockstroh <[email protected]>
Signed-off-by: florinmihut <[email protected]>
Signed-off-by: florinmihut <[email protected]>
Signed-off-by: florinmihut <[email protected]>
Signed-off-by: florinmihut <[email protected]>
Yes, basecamp_io is now merged as everest_io. |
cc9f7d4
to
ebfb0be
Compare
Describe your changes
Issue ticket number and link
Checklist before requesting a review