Skip to content

Release v0.20.0 and safety firmware v0.4.0 - #10

Open
mhei wants to merge 25 commits into
mainfrom
feature/for-release-0.20.0
Open

Release v0.20.0 and safety firmware v0.4.0#10
mhei wants to merge 25 commits into
mainfrom
feature/for-release-0.20.0

Conversation

@mhei

@mhei mhei commented Sep 7, 2026

Copy link
Copy Markdown
Member

This PR adds support for upcoming configuration features of the safety firmware and the new safety firmware itself.

mhei added 24 commits July 15, 2026 14:16
The inlet configuration allows to specify whether a lock is used or not.
This is intended to cover AC use-cases.

The driving time for both opening and closing the lock can be configured.

The lock may or may not have a feedback contact which is evaluated
with an ADC channel. When a feedback is used, the it is required
to specify voltage ranges for "locked" and "unlocked" cases.

Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
While at, move Proximity Pilot to previous line to save one line.

Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
It was decided that the parameter block version v2 only include
the RCM related configuration.

For the upcoming inlet support (plug lock), the parameter block
version 3 will be used.

So, split the implementation accordingly.

Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
Switch to the term "pluglock" instead of "inlet" in YAML and various
visible error messages. Users are more familiar with it on EVSE side
compared to "inlet" which is more often used on EV side.

Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
This change is coming with a big difference in the binary representation:
the former individual arrays are not reworked into a struct per contactor.
And then there is an array with three contactor configurations elements.

Since there is no official firmware release with parameter block v3
yet, we don't need any backwards compatible code and/or migrations.

This 'economizer' feature is only available with Charge SOM hardware
revision V1R2a or later and with matching safety controller firmware.

Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
The safety controller can monitor the feedback pin of the eg. DRV8876.

It is only reported once for every pluglock move request with an error
message frame, but has no further impact.

Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
This is important e.g. when safety firmware and this library
are out-of-sync, e.g. when dealing with older or development
firmware versions.

Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
For the error frames which make use of additional data fields,
add helper functionality to generate and better human-readable
error message where the extra data is interpreted.

Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
This tool is intended to support manual debugging of safety controller
communication issues.

Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
Usually root permissions are needed for capturing.

Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
Changelog for Charge SOM platform (since 0.3.1):
  - requires parameter block version v2
  - enter safe state on UART RX timeout
  - support for RCMs

Changelog for Charge Control Y (parsley) (since 0.3.1):
  - requires parameter block version v2
  - enter safe state on UART RX timeout

Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
This allows to create parameter block binary files with a fixed
and thus wrong CRC.
Only for testing purpose!

Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
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.

2 participants