Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save roguh/9d0fff7fb76715ff2d3a198f5e995bb4 to your computer and use it in GitHub Desktop.

Select an option

Save roguh/9d0fff7fb76715ff2d3a198f5e995bb4 to your computer and use it in GitHub Desktop.
title How to cover any parking lot with EV charging stations
subtitle protip: easier than gasoline pumps at every parking lot
author Felina Rivera Calzadillas 🇲🇽

Powerflex

  • Leader in EV charging and distributed energy resources.
  • Adaptive Load Management

OCPP?

Open ChargePoint Protocol

  • ChargePoint - charging station for electric cars, EVSE
  • Protocol - how to talk to the hardware
  • Open - freely available and constantly being extended, widespread

OCPP???

[2,"567","BootNotification",{"vendor":"Roadrunner","model":"jk67","serialNumber":"2234567890","chargeBoxSerialNumber":"3456789009876543","firmwareVersion":"v0.1","meterType":""}]
  • JSON over websockets!
  • TLS optional
  • basic auth (username/pass or client-side certificate)

metrics

every X minutes (MeterValueSampleInterval):

[2,"789","MeterValues",{"meterValue":[{"timestamp":"2009-01","sampledValue":[{"value":"99","unit":"Wh","context":"Sample.Clock","format":"Raw","measurand":"Energy.Active.Import.Register","location":"Outlet"}]}]}]

load manage:

[2,"890","SetChargingProfile",{"connectorId":0,"csChargingProfiles":{"stackLevel":1,"recurrencyKind":"Daily","chargingSchedule":{"startSchedule":"2026-05-13T00:00:00+00:00","chargingRateUnit":"A","chargingSchedulePeriod":[{"limit":34,"startPeriod":0},{"limit":34,"startPeriod":25200}]},"chargingProfileId":1,"chargingProfileKind":"Recurring","chargingProfilePurpose":"TxDefaultProfile"}}
]

Why?

  • load management - $$$$$$ (see presentation title)
  • driver auth - plug in and pay seamlessly, 1 button(?)
  • 2-way charging - power outage? power your house with your car(s)
  • fleets - slightly less pollution to move goods at scale

MORE OCPP???

vendor quirks

{"Input_Terminal_Temp":34,"On_Board_Temp":36,"Duration_for_2C_Delta":"N/A","LTE_RSSI":-65.0}

request-response from server to charger OR charger to server (MAGIC WEBSOCKETS ARE MAGIC!!!!!!!)

->
<-

renewable energy industry economic forecast, the feds, websockets, TLS, TCP/IP

Questions?

Sources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment