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

FDE Context: Reading Meters at a Real Customer Site

📡 Module 2: Connect & Read Primitives

FDE Context: Reading Meters at a Real Customer Site

You are at a Khazna data centre. They have 4 Schneider PowerLogic meters on their main switchgear, connected via Modbus TCP on the site LAN.

The Real Scenario

The customer gives you:

  • Meter IP addresses: 10.0.1.101 through 10.0.1.104
  • Modbus port: 502
  • Register map: Schneider PM5350 (registers 3000-3060)

Step 1: Verify Network Connectivity

# Can you reach the meters?
for ip in 10.0.1.101 10.0.1.102 10.0.1.103 10.0.1.104; do
  echo -n "$ip: "
  nc -zv -w 2 $ip 502 2>&1 | grep -o "succeeded\|failed"
done

Step 2: Verify Modbus Communication

# Use the EnergyAtIt historian backfill to test a read
curl -X POST -H "Authorization: $EAT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"host": "10.0.1.101", "port": 502, "register": 3000}' \
  https://app.energyatit.com/api/v1/historian/backfill
# Use the EnergyAtIt historian backfill to test a read
curl.exe --% -X POST -H "Authorization: $EAT_KEY" -H "Content-Type: application/json" -d "{"host": "10.0.1.101", "port": 502, "register": 3000}" "https://app.energyatit.com/api/v1/historian/backfill"

Step 3: Configure in EnergyAtIt

Once reads work, you register the meters as assets in the platform. From that point on, the platform polls them automatically every 60 seconds.

Common FDE Issues

  • Connection refused: Firewall blocking port 502. Ask the customer's IT team.
  • Timeout: Wrong IP address or the meter is offline.
  • Bad data: Wrong register address. Double-check the manufacturer's register map.
  • Intermittent failures: Electrical noise on the RS-485 bus. Suggest shielded cabling.

The terminal is your diagnostic tool. nc, ping, and curl will solve 90% of field issues.

Log in to track your progress and earn certifications.