📡 Connect & Read Primitives — app2.2
Developer CourseModule 2: Connect & Read Primitivesapp2.2
Reading10 min

Protocols in 5 Minutes: Modbus, BACnet, OCPP, OpenADR

📡 Module 2: Connect & Read Primitives

Protocols in 5 Minutes: Modbus, BACnet, OCPP, OpenADR

You do not need to master these protocols. You need to know what they are, which devices use them, and how EnergyAtIt handles them for you.

The Big 4

ProtocolUsed ForHow It Works
Modbus TCPBatteries, inverters, metersReads numbered "registers" over TCP port 502
BACnetHVAC, building automationReads "objects" and "properties" over UDP/IP
OCPP 2.0.1EV chargersWebSocket-based, JSON messages
OpenADR 2.0bDemand responseXML over HTTPS, event-driven

The Other 10

EnergyAtIt also supports: IEC 61850, IEC 104, ICCP/TASE.2, DNP3, IEEE 2030.5, SNMP, MQTT, CIM/CGMES, AMI/DLMS, and SunSpec Modbus.

You don't need to know these today. You need to know they exist and that the API handles them.

How EnergyAtIt Abstracts Protocols

When you call GET /api/v1/grid-connections/1/readings, here is what happens behind the scenes:

  1. The API looks up the grid connection's protocol type
  2. It routes to the correct protocol handler (Modbus client, BACnet client, etc.)
  3. The handler reads the device's native registers/objects
  4. Results are normalised into a standard JSON format
  5. You get back the same structure regardless of protocol

Quick Protocol Check

# See what protocol each asset uses
curl -s -H "Authorization: $EAT_KEY" \
  "https://app.energyatit.com/api/v1/assets?site_id=1" | python3 -m json.tool
# See what protocol each asset uses
curl.exe -s -H "Authorization: $env:EAT_KEY" "https://app.energyatit.com/api/v1/assets?site_id=1" | ConvertFrom-Json | ConvertTo-Json -Depth 10

Look for the protocol_type field in each asset. That tells you what protocol the device speaks.

Log in to track your progress and earn certifications.