IoT Telemetry & Converters
Physical Planovi Converters read RS-485 Modbus RTU smart meters on-site, buffer encrypted readings on an SD card so zero data is lost during internet outages, and transmit Schema v3 telemetry over mutual TLS (HTTPS mTLS or MQTT 8883) to the VPS.
IoT Flow: Smart Meter to Cloud & Live Dashboard ๐จ Curated Flow (Pull-Protected)
Where Is It in Code?
| Symptom / Task | Repository | Exact File / Path |
|---|---|---|
| Firmware Modbus polling, Wi-Fi captive panel, SD LittleFS journal, RTC | planovi-converter | RP2350 C/C++ firmware (CMakeLists.txt, FreeRTOSConfig.h, VERSION, Pico SDK >=2.2.0) |
| Cloud HTTP telemetry ingestion, deduplication & policy | planovi-converter | cloud/api/telemetry_ingress.py, cloud/services/telemetry_ingestion.py |
| MQTT TLS broker consumer & topic ACLs | planovi-converter | cloud/mqtt_ingress.py, cloud/config/planovi.acl |
| mTLS certificate verification & device provisioning | planovi-converter | cloud/mtls_gateway.py, cloud/services/device_provisioning.py |
| OTA firmware distribution & device reboot commands | planovi-converter | cloud/api/firmware.py, cloud/api/converters.py |
Fleet Admin Web UI (cloud.planovi.app) | planovi-converter | admin/ (Flutter Web) |
| Edge telemetry ingestion, Tauron DSO CSV imports, alerts & rollups | planovi-backend | supabase/functions/{ingest-telemetry,refresh-live-state,process-alerts,process-tauron-csv,aggregate-hourly,aggregate-daily} |
Cooperative live OZE charts in main app (panel.planovi.app) | planovi-flutter-app | lib/features/energy_coop/, lib/features/dashboard/ |
Nginx mTLS SNI routing (:8444 PROD / :8443 DEV) & Mosquitto | planovi-vps | docker-compose.yml (converters-api-*, mosquitto-dev), proxy/conf.d/converters.conf |
Quick Debugging Commands (on VPS)
# 1. Watch live FastAPI cloud ingestion logs (PROD or DEV)docker logs -f --tail 100 converters-api-proddocker logs -f --tail 100 converters-api-dev
# 2. Check Mosquitto MQTT TLS connections & ACL rejections (DEV)docker logs -f --tail 100 mosquitto-dev
# 3. Check Edge Function telemetry ingestion & rollupsdocker logs -f --tail 100 supabase-edge-runtime-prod | grep -i telemetryLooking for the hardware qualification tests (T00โT07) and historical bench test logs? See Hardware QA Archive under Reference & Archives.