Skip to content

Instantly share code, notes, and snippets.

@huntc
Last active March 18, 2026 21:57
Show Gist options
  • Select an option

  • Save huntc/eb3ff8baacfe169eabcc92cdae256ff8 to your computer and use it in GitHub Desktop.

Select an option

Save huntc/eb3ff8baacfe169eabcc92cdae256ff8 to your computer and use it in GitHub Desktop.
Two scenarios for OCPP CS authenticating through an LC
@startuml
CS -> LC : Connect HTTP with credentials
LC -> CSMS : Connect HTTP with credentials
alt Success
CSMS -> LC : HTTP OK
LC -> CS : HTTP OK
par
LC <-> CSMS : Upgrade WS
else
CS <-> LC : Upgrade WS
end
CS -> LC : BootNotificationRequest
LC -> CSMS : BootNotificationRequest
CSMS -> LC : BootNotificationResponse(Accepted)
LC -> CS : BootNotificationResponse(Accepted)
else Connection authentication failure
CSMS -> LC : HTTP Unauthorized/Disconnect
LC -> CS : HTTP Unauthorized/Disconnect
end
@enduml
@startuml
CS -> LC : Connect HTTP with credentials
LC -> CS : HTTP OK
CS <-> LC : Upgrade WS
par
CS -> LC : BootNotificationRequest
LC -> CS : BootNotificationResponse(Pending)
else
LC -> CSMS : Connect HTTP with credentials
alt Auth Success
CSMS -> LC : HTTP OK
LC <-> CSMS : Upgrade WS
else Connection authentication failure
CSMS -> LC : HTTP Unauthorized/Disconnect
LC -> CS : Disconnect WS
end
end
alt Auth Success
LC -> CSMS : BootNotificationRequest
CSMS -> LC : BootNotificationResponse(Accepted)
LC -> CS : TriggerMessage(BootNotification)
CS -> LC : BootNotificationRequest
LC -> CS : BootNotificationResponse(Accepted)
end
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment