csms-full

command
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Command csms-full is a fairly complete OCPP 1.6 CSMS built on gocpp, wiring the pluggable storage (transactions, config, connection registry), OpenTelemetry metrics and traces, structured logging, health endpoints, and graceful shutdown. It records a real charging session in the TransactionStore and (optionally) drives a connected charge point by sending RemoteStartTransaction after boot — enough to run the ocpp-cp-simulator scenarios end-to-end.

Telemetry is unified on OpenTelemetry: when OTEL_EXPORTER_OTLP_ENDPOINT is set, both metrics and traces are exported via OTLP/HTTP (e.g. to an opentelemetry-collector). Without it, telemetry is a no-op.

Run:

OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 go run ./examples/csms-full

Then drive it with the simulator, e.g.:

ocpp-cp-sim --cp-id CP_1 --connectors 1 \
  --ws-url ws://localhost:8080/ocpp/ \
  --scenario-template-file ../ocpp-cp-simulator/docs/examples/scenarios/demo-charging.json \
  --scenario-connector all

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL