feat: bootstrap wiki for Anfu home EV charger OCPP integration project
- Created initial wiki structure with CLAUDE.md schema, index.md, and log.md. - Ingested findings and requirements document into the wiki. - Added concepts for authorization methods, network topology, OCPP protocol, and troubleshooting. - Documented entities including the Anfu charger, JC-6620 controller, and CSMS toolkit. - Established configuration files for Obsidian app settings and workspace layout. - Implemented core plugins and appearance settings for the wiki.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
---
|
||||
type: entity
|
||||
updated: 2026-07-09
|
||||
tags: [hardware]
|
||||
---
|
||||
|
||||
# Anfu Home Charger (charging pile)
|
||||
|
||||
The physical home EV charger this whole project revolves around. It is not a single device but a small network of three, behind its own Four-Faith router (see [[network-topology]]). Per [[2026-07-09-findings-and-requirements]]:
|
||||
|
||||
- **[[jc-6620|JC-6620]]** (`192.168.2.228`) — OCPP communication controller; the OCPP client that dials the CSMS
|
||||
- **EV charging controller** (`192.168.2.118`, DHCP) — the main control board that actually manages charging; the JC-6620 talks to it on port 2403
|
||||
- **Touchscreen** — where all charger-side configuration happens
|
||||
|
||||
## Touchscreen configuration (working values)
|
||||
|
||||
| Screen | Setting | Value |
|
||||
|---|---|---|
|
||||
| General Settings → Charger INEO | URL | `ws://<CSMS-IP>:9000` |
|
||||
| General Settings → Charger INEO | ChargerID | any |
|
||||
| Back Office → Universal | Billing Mode | **`BackgroundBilling`** (required — see [[troubleshooting]]) |
|
||||
| Back Office → Universal | Communication Method | `Ethernet` (not 4G/SIM) |
|
||||
| Back Office → Universal | JC-6620 IP / Port | `192.168.2.228` / `2403` |
|
||||
|
||||
> [!warning] Power-cycle required
|
||||
> URL or network changes only take effect after power-cycling the pile.
|
||||
|
||||
## Capabilities in question
|
||||
|
||||
- ✅ OCPP 1.6J over WebSocket — verified working
|
||||
- ⚠️ Autocharge (per-vehicle idTag on plug-in) — needs a physical test; see [[authorization]]
|
||||
- ❌ True ISO 15118 Plug & Charge — unlikely on a basic AC unit
|
||||
@@ -0,0 +1,25 @@
|
||||
---
|
||||
type: entity
|
||||
updated: 2026-07-09
|
||||
tags: [software, csms]
|
||||
---
|
||||
|
||||
# CSMS Toolkit (`../discovering/`)
|
||||
|
||||
The Python scripts that play the CSMS (backend) side of the [[ocpp|OCPP]] link. Currently discovery/tester-grade; `station.py` is the seed of the real controller. Per [[2026-07-09-findings-and-requirements]]:
|
||||
|
||||
| File | Purpose |
|
||||
|---|---|
|
||||
| `csms.py` | Minimal OCPP 1.6J server — accepts everything, logs raw frames. Discovery/tester. |
|
||||
| `rawlisten.py` | Dumb TCP listener on `:9000` — shows whether *any* bytes arrive. Fallback diagnostic. |
|
||||
| `station.py` | **The real controller.** Allowlist-based auth + learn mode + hooks for remote start/stop. |
|
||||
| `station_config.json` | `{ "learn_mode": bool, "authorized": { "<idTag>": {name, kind} } }` |
|
||||
| `seen_tags.json` | Auto-recorded log of every idTag observed (discovery / Autocharge testing). |
|
||||
|
||||
- **Runtime:** Python venv with `websockets` 16.0 + `ocpp`; listens on `ws://0.0.0.0:9000/<chargePointId>`.
|
||||
- **The one gate:** every [[authorization]] method funnels through `decide(id_tag)` in `station.py` — Accepted/Rejected against the allowlist.
|
||||
- **Host requirements:** inbound TCP 9000 open (Windows firewall silently drops otherwise — see [[troubleshooting]]) and a stable IP, since the [[anfu-charger|charger touchscreen]] URL is hardcoded.
|
||||
|
||||
## Still to build
|
||||
|
||||
The web control panel (remote start/stop, live status, allowlist management) served behind [[netbird|NetBird]] — see [[overview]] for the plan and open host decision.
|
||||
@@ -0,0 +1,28 @@
|
||||
---
|
||||
type: entity
|
||||
updated: 2026-07-09
|
||||
tags: [hardware, ocpp-client]
|
||||
---
|
||||
|
||||
# JC-6620 — OCPP Communication Controller
|
||||
|
||||
The dedicated OCPP communication controller inside the [[anfu-charger|Anfu charging pile]]. **This is the device that acts as the OCPP client** — it opens the outbound WebSocket to the CSMS. (Per [[2026-07-09-findings-and-requirements]].)
|
||||
|
||||
## Network identity
|
||||
|
||||
- Static IP **`192.168.2.228`**, mask `255.255.255.0`, on the charger's internal LAN (see [[network-topology]])
|
||||
- Default gateway must be **`192.168.2.1`** (the Four-Faith router)
|
||||
- DNS not needed — the CSMS URL is a bare IP
|
||||
- Talks to the EV charging controller (`192.168.2.118`) locally on port **2403**
|
||||
|
||||
## Gotchas specific to this device
|
||||
|
||||
> [!warning] Shipped misconfigured
|
||||
> The JC-6620 arrived with its default gateway set to `192.168.2.228` — **pointing at itself**. That works for a same-subnet CSMS but cannot route to the WAN, which is why a `192.168.2.x` CSMS worked while a `10.0.10.x` CSMS silently didn't, until the gateway was corrected. (Config screen is in Chinese: 静态 IP = static IP, 默认网关 = default gateway.)
|
||||
|
||||
- It only dials out at all once the touchscreen's `Billing Mode = BackgroundBilling` is set — see [[troubleshooting]].
|
||||
- Network/URL changes require a full pile power-cycle to take effect.
|
||||
|
||||
## Verified behavior ✅
|
||||
|
||||
Connected and completed the full BootNotification exchange against both a LAN CSMS (`192.168.2.114:9000`) and a WAN CSMS (`10.0.10.203:9000`). Since it's the *client*, no port-forwarding is needed on the charger router — NAT handles the outbound connection.
|
||||
@@ -0,0 +1,14 @@
|
||||
---
|
||||
type: entity
|
||||
updated: 2026-07-09
|
||||
tags: [software, network, security]
|
||||
---
|
||||
|
||||
# NetBird
|
||||
|
||||
The WireGuard-based private overlay network the household already runs. Its role in this project: **the security boundary for the web control panel** — the panel binds to `0.0.0.0` but is only reachable over the NetBird network, so nothing is exposed to the public internet. (Per [[2026-07-09-findings-and-requirements]].)
|
||||
|
||||
Related open decisions (tracked in [[overview]]):
|
||||
|
||||
- ❓ Rely on NetBird isolation alone, or add a PIN/access token to the web app for defense-in-depth?
|
||||
- ❓ If a dedicated always-on box (e.g. a Pi on the charger LAN) becomes the CSMS host, it would join NetBird to stay reachable.
|
||||
Reference in New Issue
Block a user