Skip to content

feat: OCPP documentation and IEC 61851 status mapping (Plan 03, #33 #34)#80

Merged
basmeerman merged 2 commits intomasterfrom
work/plan-03
Mar 19, 2026
Merged

feat: OCPP documentation and IEC 61851 status mapping (Plan 03, #33 #34)#80
basmeerman merged 2 commits intomasterfrom
work/plan-03

Conversation

@basmeerman
Copy link
Copy Markdown
Owner

Summary

Plan 03 Increments 6-7: OCPP documentation and EVCC status mapping.

New code

  • ocpp_iec61851_to_status() in ocpp_logic.h/c — maps A→Available, B→Preparing/SuspendedEV, C/D→Charging/SuspendedEVSE, E/F→Faulted
  • test_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 pass
  • Sanitizer build (ASan + UBSan) — all pass
  • cppcheck — clean
  • ESP32 firmware build — SUCCESS
  • CH32 firmware build — SUCCESS

Closes #33 #34

🤖 Generated with Claude Code

basmeerman and others added 2 commits March 19, 2026 01:55
…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>
@basmeerman basmeerman merged commit 57920da into master Mar 19, 2026
11 checks passed
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.

[Plan-03] Increment 6: OCPP Documentation

1 participant