Tau.Acuvim/firmware/include/pin_config.h
Renier Forster 84a0668c54 Initial commit: Tau Acuvim IoT monitoring system
Complete IoT monitoring platform for Acuvim II power meters via ESP32.

Firmware (Phases 1-7):
- ESP32-WROVER-B (TTGO T-Call v1.4) with RS485 Modbus RTU
- WiFi STA+AP concurrent mode with GSM/GPRS failover
- Transport abstraction layer with 4 priority modes
- MQTT protocol with 20 commands, LWT, QoS, exponential backoff
- SD card offline buffering with JSONL rotation and non-blocking drain
- OTA firmware updates with dual partition rollback protection
- Watchdog timer, crash loop detection, Acuvim health monitoring
- Captive portal provisioning with AP mode

Console backend (Phase 8):
- .NET 10 minimal API with PostgreSQL + EF Core
- JWT authentication, SignalR real-time updates
- MQTTnet 5.x bridge service with health monitoring
- Device, telemetry, firmware, alert, group management
- Rate limiting, security headers, Swagger/OpenAPI

Frontend (Phase 9):
- React 18 + TypeScript + Vite with Ant Design 5
- ECharts telemetry visualization, TanStack Query
- SignalR live updates, device management UI
- Dashboard, fleet management, firmware deployment

Testing & Production (Phase 10):
- 28 firmware unit tests (Modbus, JSON, config, version)
- 23 xUnit backend tests (device, telemetry, command, alert)
- Docker Compose with nginx, TLS MQTT, PostgreSQL
- Production deployment, commissioning, and troubleshooting docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-16 19:05:32 +02:00

46 lines
1.1 KiB
C

#ifndef PIN_CONFIG_H
#define PIN_CONFIG_H
// =============================================================================
// LILYGO TTGO T-Call v1.4 Pin Configuration
// Core: ESP32-WROVER-B (ESP32-D0WDQ6)
// =============================================================================
// --- Modem (SIM800L) ---
#define MODEM_RST 5
#define MODEM_PWRKEY 4
#define MODEM_POWER_ON 23
#define MODEM_TX 27
#define MODEM_RX 26
// --- LED ---
#define LED_PIN 13
// --- I2C (IP5306 Power Management) ---
#define I2C_SDA 21
#define I2C_SCL 22
// --- RS485 (Acuvim II via MAX485/SP3485) ---
#define RS485_RX 32
#define RS485_TX 33
#define RS485_DE_RE 25
// --- SD Card (SPI - HSPI) ---
#define SD_CS 15
#define SD_MOSI 2
#define SD_MISO 14
#define SD_CLK 12
// --- Modem Serial ---
#define MODEM_BAUD 115200
// --- RS485 Serial Port ---
#define RS485_SERIAL Serial2
#define RS485_BAUD_DEFAULT 9600
// --- Modbus Defaults ---
#define MODBUS_SLAVE_ADDR_DEFAULT 1
#define MODBUS_POLL_INTERVAL_DEFAULT 5000
#endif