feat: OCPP documentation and IEC 61851 status mapping (Plan 03, #33 #34)#80
Merged
basmeerman merged 2 commits intomasterfrom Mar 19, 2026
Merged
feat: OCPP documentation and IEC 61851 status mapping (Plan 03, #33 #34)#80basmeerman merged 2 commits intomasterfrom
basmeerman merged 2 commits intomasterfrom
Conversation
…etry Add configuration reference table, LoadBl/Solar mode interaction notes, telemetry API reference, and FAQ/troubleshooting section covering common issues (connection drops, FreeVend behavior, dual charger limitations, settings validation). Issue: #33 [Plan-03] Increment 6 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add ocpp_iec61851_to_status() that maps IEC 61851 state letters (A-F) to OCPP 1.6 ChargePointStatus values (Available, Preparing, Charging, SuspendedEVSE, SuspendedEV, Finishing, Faulted). Handles edge cases: State B during transaction = SuspendedEV, State C without EVSE current = SuspendedEVSE. Add 11 tests covering all state and condition combos. Issue: #34 [Plan-03] Increment 7 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Plan 03 Increments 6-7: OCPP documentation and EVCC status mapping.
docs/ocpp.mdwith configuration reference, LoadBl/Solar mode interaction notes, telemetry API reference, and FAQ/troubleshooting sectionocpp_iec61851_to_status()mapping IEC 61851 states (A-F) to OCPP 1.6 ChargePointStatus values for EVCC integrationNew code
ocpp_iec61851_to_status()inocpp_logic.h/c— maps A→Available, B→Preparing/SuspendedEV, C/D→Charging/SuspendedEVSE, E/F→Faultedtest_ocpp_iec61851.c— 11 tests covering all state and condition combinations (REQ-OCPP-090 through REQ-OCPP-094)Test plan
make clean test— 32 suites, all passcppcheck— cleanCloses #33 #34
🤖 Generated with Claude Code