Skip to content

v0.2.0 - OTA Updates & Improved Web Interface

Choose a tag to compare

@jackgassett jackgassett released this 13 May 21:16

Release Notes v0.2.0 — OTA Updates & Improved Web Interface

Date: 2026-05-13

Overview

This release adds Over-The-Air (OTA) wireless update capability for both ESP32 firmware and FPGA bitstreams, removes login requirements from the web interface for easier local network use, and improves the overall user experience. OTA support is available through Python API, MCP tools, and the web interface.

Highlights

  • OTA (Over-The-Air) Updates: Flash ESP32 and FPGA wirelessly via WiFi
    • Network device discovery (auto-scan local subnet)
    • Both firmware types supported (ESP32 .bin and FPGA .bin)
    • ~2-3 second flash times (vs 10-15s USB)
    • Full validation and error handling
  • Optional Authentication: Web interface no longer requires login by default
    • Perfect for local network deployments
    • Can be enabled via PAPILIO_REQUIRE_WEB_AUTH=true
  • Improved Web UI: Flash method selector (USB/Serial or OTA WiFi)
    • Device discovery button in web interface
    • Visual device list with click-to-select
    • Real-time OTA progress feedback

Changes

OTA Support

Web Interface Improvements

  • Flash method radio button selector (USB/OTA) on both FPGA and ESP32 cards
  • Device discovery button with visual feedback and device list
  • IP address input field with validation
  • OTA-specific error messages and troubleshooting tips
  • Updated CSS for OTA UI components (method selector, device list, discover button)

Authentication Changes

Code Cleanup

  • Removed unused imports and dead code
  • Deleted obsolete requirements.txt (consolidated to pyproject.toml)
  • Improved code organization in database and desktop modules

New Files

  • src/papilio_loader_mcp/tools/network_discovery.py - Network device discovery
  • src/papilio_loader_mcp/tools/ota_flash.py - OTA flashing implementation
  • documentation/OTA_FEATURE.md - Complete OTA documentation
  • testing/test_ota.py - OTA functionality tests

Fixes

  • None specific to this release (focused on new features)

Installation

  • Download and run the installer: installer_output/PapilioLoader-Setup-0.2.0.exe
  • See INSTALLATION.md for detailed instructions
  • Optional: Enable authentication with environment variable PAPILIO_REQUIRE_WEB_AUTH=true

Upgrade Notes

  • Breaking Change: Default web interface now has no authentication
    • To restore login requirement: set PAPILIO_REQUIRE_WEB_AUTH=true environment variable
  • New dependency: aiohttp>=3.9.0 (auto-installed with installer or pip install -e .)
  • OTA requires devices running firmware with HTTP OTA server on port 3232
    • Compatible with FPGA-Companion firmware v1.0+

Usage Examples

OTA via Web Interface

  1. Open http://localhost:8000 (no login required)
  2. Select firmware file
  3. Click "📡 OTA (WiFi)" method
  4. Click "🔍 Discover Devices"
  5. Select device from list
  6. Click "⚡ Flash"

OTA via MCP Tools (for AI assistants)

// Discover devices
{"method": "tools/call", "params": {"name": "discover_ota_devices"}}

// Flash ESP32
{"method": "tools/call", "params": {
  "name": "flash_device_ota",
  "arguments": {
    "ip": "10.0.4.35",
    "device_type": "esp32",
    "file_path": "firmware.bin"
  }
}}

Enable Authentication

# Windows PowerShell
$env:PAPILIO_REQUIRE_WEB_AUTH="true"
python start_combined_server.py

# Or permanently in system environment variables

Performance Metrics

  • OTA Flash Times:
    • ESP32 (1.5MB): ~2.3 seconds
    • FPGA (2MB): ~3-4 seconds
  • USB Flash Times (for comparison):
    • ESP32: ~10-15 seconds
    • FPGA: ~10-15 seconds
  • Network Discovery: Typically completes in 2-5 seconds for /24 subnet

Known Issues

  • OTA discovery scans entire /24 subnet - may take longer on large networks
  • OTA requires devices to be on same local network (no remote OTA support)
  • First OTA flash after device boot may require 10-second delay for server startup
  • Primary support targets Windows 10/11. macOS/Linux packaging not included.

Verification Checklist

  • Build outputs present: GUI, console, pesptool.exe, esptool.exe
  • Installer compiles with version 0.2.0
  • Web interface accessible without login at http://localhost:8000
  • OTA device discovery works in web interface
  • OTA flash succeeds for ESP32 (requires hardware with OTA server)
  • OTA flash succeeds for FPGA (requires hardware with OTA server)
  • Authentication can be enabled via environment variable
  • USB flashing still works (regression test)

References

Checksums

SHA256 checksums for release files:

  • installer_output/PapilioLoader-Setup-0.2.0.exe: DA67E12A281AEE9F6FAF47303ECEF71882FEB01328ABB7B913B9A41266206559
  • dist/PapilioLoader.exe: 3A36DB5D36E839170A9C415CC267CF392633410B24E93BF5ABDFFDFCDA676764
  • dist/pesptool.exe: 4ACD17A08A16F480EEA3B1D0449BFE0F82D95BF8E16BFA68BE1F9097A2DDAE2A
  • dist/esptool.exe: 616B48A7C991541914491DBC0CE62B7990D67CD6C83915EEA4861B9BCC097106