--- 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": { "": {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/`. - **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.