How sincerelystepper/agriguard-res-reconfigurable-edge-sentinel- works
AgriGuard-RES is an offline agricultural edge-intelligence platform: environmental sensing feeds FPGA signal processing, then STM32 firmware orchestrates power and sends results over a LoRa mesh. The README documents the FPGA-to-host interrupt/SPI handshake and telemetry path, but the corresponding HDL and radio-driver sources are not in the supplied tree. Firmware excerpts show sensor and power-management behavior; the main loop excerpt is empty, so no runtime call from it to those services is asserted.
Main entry points: main.c STM32 host · sensor_pipelines.c Pipeline orchestration · stm32h7xx_hal.h STM32 HAL
Components 14
Field sensing
- Environmental sensing
Firmware_MCU/AgriGuard_RES/App/Src/sensor_pipelines.c - Spectral crop
Firmware_MCU/AgriGuard_RES/App/Src/sensor_pipelines.c - Soil Modbus
Firmware_MCU/AgriGuard_RES/App/Src/sensor_pipelines.c
Edge compute
- FPGA inference
MCU firmware
- STM32 host
Firmware_MCU/AgriGuard_RES/Core/Src/main.c - Pipeline orchestration
Firmware_MCU/AgriGuard_RES/App/Src/sensor_pipelines.c - Power management
Firmware_MCU/AgriGuard_RES/App/Src/power_manager.c - FPGA configuration
Firmware_MCU/AgriGuard_RES/App/Src/ice40_config.c - Flash storage
Firmware_MCU/AgriGuard_RES/App/Src/flash_driver.c
Mesh telemetry
- SX1262 LoRa mesh
Hardware platform
- Board configuration
Firmware_MCU/AgriGuard_RES/App/Inc/agriguard_config.h - STM32 HAL
Firmware_MCU/AgriGuard_RES/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h
Other components
- Farm environment
- Remote mesh peers
Connections 13
- Farm environment → Environmental sensing: provides readings
- Farm environment → Spectral crop: provides readings
- Farm environment → Soil Modbus: provides readings
- Environmental sensing → FPGA inference: sends raw streams
- FPGA inference → STM32 host: signals interrupt
- STM32 host → FPGA inference: reads registers
- FPGA inference → STM32 host: returns results
- STM32 host → SX1262 LoRa mesh: forwards telemetry
- SX1262 LoRa mesh → Remote mesh peers: transmits telemetry
- STM32 host → STM32 HAL: initializes
Firmware_MCU/AgriGuard_RES/Core/Src/main.c - Pipeline orchestration → Environmental sensing: implements sensor reads
Firmware_MCU/AgriGuard_RES/App/Src/sensor_pipelines.c - Pipeline orchestration → Spectral crop: implements spectral reads
Firmware_MCU/AgriGuard_RES/App/Src/sensor_pipelines.c - Pipeline orchestration → Soil Modbus: implements Modbus reads
Firmware_MCU/AgriGuard_RES/App/Src/sensor_pipelines.c