This document outlines the development plan for firmware modules across the PlantPulse IoT system.
-
Device Abstraction Layer (DAL)
- Interfaces directly with sensors, IOs, and power modules
-
Control Logic Layer
- Executes scheduled actions
- Interprets central controller commands
- Handles local events and diagnostics
-
Communication Layer
- RF/LoRa communication protocol
- Data encryption & compression
- OTA firmware update protocol (planned)
-
Telemetry Layer
- Formats and sends telemetry to central controller
- Includes timestamps, battery, sensor data, and faults
- Basic GPIO toggling from central controller
- Periodic sensor reading
- RGB LED status indicators
- Basic telemetry reporting
- Manual reset + debug mode
- LoRa mesh node discovery
- Event-driven triggers (e.g., moisture too low → activate pump)
- OTA firmware updates
- Self-diagnostics on sensor health
- AI-assisted edge logic (soil condition learning)
- Audio event pattern detection
- Vision-based bug/animal detection (if module available)
- Written in C/C++ (Arduino/PlatformIO base)
- Open to MicroPython and Rust prototypes
- GitHub Actions CI for unit testing
- Separate branches for stable vs. experimental firmware
Contributions welcome for modular drivers, LoRa protocol enhancements, or data compression techniques.