
🚗 Automotive · C4 Architecture · Pro
A charge point operator's platform: chargers speaking OCPP, a central management system, driver app, payments and roaming.
C4 Architecture diagrams are part of Pro. Anyone can view this one; generating and editing it needs Pro.
Drawing diagram…
EV charging network: AC and DC chargers connect over OCPP 1.6/2.0.1 WebSockets to the charging station management system (CSMS), which handles sessions, pricing and charger health. Drivers use a mobile app to find chargers, start sessions and pay; a billing service charges via a payment gateway. Roaming through an OCPI hub allows other networks' drivers. Load management limits total site power.
C4Container
title EV Charging Network
Person(driver, "EV Driver", "Finds and pays for charging")
System_Ext(chargers, "Charge Points", "AC and DC chargers")
System_Ext(roam, "Roaming Hub", "OCPI")
System_Ext(pay, "Payment Gateway", "Cards and UPI")
System_Boundary(cpo, "Charge Point Operator") {
Container(csms, "CSMS", "Java", "OCPP server, sessions")
Container(load, "Load Management", "Go", "Site power limits")
Container(app, "Driver App", "Flutter", "Map, start, pay")
Container(api, "App API", "Node.js", "App backend")
Container(bill, "Billing Service", "Node.js", "Tariffs and invoices")
ContainerDb(db, "Sessions DB", "PostgreSQL", "Sessions and chargers")
}
Rel(chargers, csms, "OCPP WebSocket")
Rel(csms, load, "Asks limits")
Rel(driver, app, "Uses")
Rel(app, api, "Calls")
Rel(api, csms, "Start / stop")
Rel(csms, db, "Stores")
Rel(csms, bill, "Session ends")
Rel(bill, pay, "Charges")
Rel(csms, roam, "Roaming sessions")Every state of an electric vehicle charging session at a public charger, from plug-in to payment, including faults and idle fees.
A connected vehicle platform: the telematics unit in the car, the cloud services that collect data and send commands, and the owner's mobile app.
How a carmaker updates vehicle software over the air: campaign targeting, owner consent, download, safe installation and reporting.
Where each part of a fleet management system runs: GPS devices in trucks, cloud services for tracking and analytics, and apps for managers and drivers.
What happens when a rider books a cab: fare estimate, driver matching, pickup, the trip and payment.
A database schema for a car dealership: vehicles in stock, customers, test drives, bookings, sales and service jobs.