Skip to content

CbParsleyDriver: several improvements for error handling and logging#63

Draft
mhei wants to merge 4 commits intomainfrom
bugfix/parsley-improve-error-handling
Draft

CbParsleyDriver: several improvements for error handling and logging#63
mhei wants to merge 4 commits intomainfrom
bugfix/parsley-improve-error-handling

Conversation

@mhei
Copy link
Copy Markdown
Member

@mhei mhei commented May 7, 2026

This PR bundles several small fixes, see commit messages for details.

mhei added 4 commits May 6, 2026 11:36
When a safety error was raised during charging, let's tell EvseManager
about the state chance on CE line.

While at, also improve the error message when state F is requested.

Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
We can filter out some messages to improve readability of the
overall logs.

Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
We cannot convert PilotFaults to a BSP event, so let's exit early here.

Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
In case of CE malfunction error, try to recover when an ID state change
is detected.

Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
@mhei mhei requested a review from martinlukas84 May 7, 2026 11:02
@martinlukas84
Copy link
Copy Markdown
Contributor

martinlukas84 commented May 8, 2026

I have a further possible improvement for logging. I get the warning
[WARN] bsp:CbParsleyDr :: Unable to map the value 'PowerOn'.
on startup. But PowerOn is available in both enum classes (CPState and Event).

But this should only come when PowerOn is detected twice:
2026-05-07T09:31:22.760737+0200 parsley manager[1186]: [INFO] bsp:CbParsleyDr :: ID change detected: PowerOn → PowerOn
2026-05-07T09:31:22.760737+0200 parsley manager[1186]: [INFO] bsp:CbParsleyDr :: CP state change from PowerOn to PowerOn
2026-05-07T09:31:22.760737+0200 parsley manager[1186]: [WARN] bsp:CbParsleyDr :: Unable to map the value 'PowerOn'.
And when PowerOn is detected, the lambda of ce_change returns before entering the cpstate bsp convertion. ???

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.

3 participants