Repository navigation
Releases: PressurePro/WifiSensorGateway
Releases · PressurePro/WifiSensorGateway
Release list
IoT Sensor Gateway Firmware v1.0.8
Release v1.0.8 - JIT Provisioning & Enhanced Diagnostics
🎉 Major Features
Just-In-Time (JIT) Certificate Provisioning
- Automatic device provisioning with unique AWS IoT certificates
- Seamless transition from provisioning certificates to device-specific certificates
- License key-based device identification for secure provisioning
- Automatic reconnection with new certificates after successful provisioning
Enhanced MQTT Connectivity
- Switched to PubSubClient library for better ESP32-C6 compatibility
- Improved connection stability with optimized keepalive and timeout settings
- Robust reconnection logic with connection state tracking
- Unique client IDs using MAC address for proper device identification
🔧 Improvements
Diagnostic Enhancements
- Added device identification to diagnostic messages (license key, device ID, firmware version, hardware ID)
- Enhanced packet statistics with total bytes received and rate limiting metrics
- Improved emergency shutdown reporting with detailed shutdown reasons and counts
- Better connection monitoring with signal strength and network information
Sensor Processing
- Temporarily disabled packet validation to prevent false rejections of valid sensor data
- Maintained rate limiting (1000 packets/minute) and emergency shutdown protection
- Enhanced sensor cache management with automatic cleanup of oldest sensors
- Improved TPMS packet processing with better error handling
System Stability
- Hardware recovery mechanism via boot button for emergency shutdown recovery
- Persistent emergency shutdown state with protection disable flags
- Enhanced OTA update support with alternative update methods
- Improved WiFi configuration with better AP mode handling
🐛 Bug Fixes
- Fixed MQTT connection loops that were causing repeated connect/disconnect cycles
- Resolved certificate loading issues with proper fallback to embedded certificates
- Fixed client ID conflicts by using MAC-based unique identifiers
- Corrected AWS IoT policy permissions for proper topic access
- Fixed compilation errors and function declaration issues
🔐 Security
- Secure certificate storage in device preferences with fallback to embedded certificates
- Proper AWS IoT policy enforcement with device-specific permissions
- License key validation for device identification and provisioning
- Secure MQTT communication with TLS 1.2 encryption
📋 Technical Details
AWS IoT Integration
- Provisioning topic structure:
pressurepro/devices/WifiSensorGateway/provisioning/request - Response topic structure:
pressurepro/devices/WifiSensorGateway/provisioning/{license_key}/response - Device topics:
pressurepro/devices/WifiSensorGateway/{license_key}/{sensor-readings|diagnostics|commands} - Automatic policy creation with device-specific client ID patterns
Firmware Configuration
- Firmware version: 1.0.8
- Target platform: ESP32-C6
- MQTT library: PubSubClient
- JSON library: ArduinoJson
- Certificate management: Preferences-based with embedded fallback
�� Deployment Notes
- First-time devices will automatically provision with unique certificates
- Existing devices will continue using their current certificates
- Emergency shutdown recovery available via boot button press during startup
- Debug mode can be enabled via MQTT command for troubleshooting
- OTA updates supported via MQTT commands with URL specification
📊 Monitoring
The enhanced diagnostic messages now include comprehensive device identification and performance metrics, making it easier to monitor device health and troubleshoot issues across your fleet of IoT gateways.
Note: This release includes significant changes to the MQTT connectivity and certificate management systems. Please test thoroughly in your environment before deploying to production devices.
IoT Sensor Gateway Firmware v1.0.6
Release v1.0.5 - Enhanced Packet Validation & Emergency Protection
🚀 New Features
Emergency Shutdown System
- Automatic protection against broker flooding with invalid packet detection
- WiFi credential clearing instead of complete shutdown for easier recovery
- AP mode fallback - device becomes configurable after emergency shutdown
- Rate limiting - max 1000 packets/minute to prevent excessive processing
Enhanced Packet Validation
- Comprehensive validation - checks for zero values, FF corruption, unrealistic readings
- Detailed error reporting - shows exactly why packets are rejected in debug mode
- Fixed packet counting - now correctly counts 9-byte packets instead of individual bytes
- Packet statistics - tracks total bytes vs packets, invalid ratios, and rate limits
Debug Mode
- Remote serial output - capture device logs via MQTT diagnostics
- Real-time monitoring - see packet processing, validation errors, and system status
- Configurable logging - enable/disable debug mode remotely
Certificate Management
- OTA certificate updates - update certificates via MQTT without firmware recompile
- Certificate rotation - reset to embedded certificates or update to new ones
- Fallback protection - uses embedded certificates if preferences are empty
🔧 Improvements
WiFi Configuration
- Extended AP timeout - increased from 2 minutes to 15 minutes for easier setup
- Better error handling - improved WiFi connection diagnostics
- Cleaner AP mode - proper WiFi mode switching and disconnection
MQTT Reliability
- Automatic reconnection - handles connection drops gracefully
- Enhanced diagnostics - detailed connection and packet statistics
- Emergency alerts - immediate notification of critical issues
Sensor Data Management
- Cache size limits - prevents memory overflow with large sensor counts
- Automatic cleanup - removes oldest sensors when cache is full
- Better validation - filters out corrupted or unrealistic sensor readings
🛡️ Security & Stability
Rate Limiting
- Packet rate limits - prevents processing more than 1000 packets/minute
- Invalid packet limits - stops processing if >500 invalid packets/minute
- Emergency shutdown - triggers at 80% invalid packet ratio
Recovery Options
- Remote reset - clear statistics and recover from emergency shutdown
- Firmware updates - OTA updates with improved error handling
- Configuration reset - clear WiFi credentials and restart in AP mode
📊 New Commands
// Enable debug mode
{"action": "debug_mode", "enabled": true}
// Reset packet statistics
{"action": "reset_stats"}
// Update certificates
{"action": "update_certificates", "rootca": "...", "devicecert": "...", "privatekey": "..."}
// Reset to embedded certificates
{"action": "reset_certificates"}
// Manual emergency shutdown
{"action": "emergency_shutdown", "enabled": true}🔍 Diagnostics
Enhanced diagnostics now include:
- Packet statistics - total bytes, packets, invalid counts, rates
- Emergency status - shutdown state and reasons
- Connection health - WiFi signal, uptime, readings sent
- Debug output - serial logs when debug mode is enabled
🐛 Bug Fixes
- Fixed packet counting - now correctly counts 9-byte packets instead of individual bytes
- Improved UART handling - better noise filtering and packet validation
- Memory management - prevents sensor cache overflow
- WiFi reconnection - more reliable connection recovery
📈 Performance
- Reduced memory usage - efficient packet processing and validation
- Faster startup - optimized WiFi connection and certificate loading
- Better error recovery - graceful handling of corrupted data and connection issues
Upgrade Instructions:
- Send firmware update command with v1.0.5 binary URL
- Device will automatically update and restart
- Monitor diagnostics for proper operation
- Enable debug mode if needed for troubleshooting
Compatibility: ESP32-C6, Arduino IDE 2.0+, ESP32 Arduino Core 2.0+
IoT Sensor Gateway Firmware v1.0.4
update firmware version to 1.0.4 and add debug mode functionality
IoT Sensor Gateway Firmware v1.0.3
Fixing firmware redirect issues with Github's CDN and AWS URL Signing
IoT Sensor Gateway Firmware v1.0.2
Updates
724c3e8- feat: update firmware version to 1.0.23a4239a- feat: add cache clearing command and improve HTTP redirect handling686f4b8- feat: adding logging for FOTA update process
IoT Sensor Gateway Firmware v1.0.1
Added
- More logging for FOTA on serial output
IoT Sensor Gateway Firmware v1.0.0
What's New
- Initial release of IoT Gateway firmware
- WiFi sensor gateway with MQTT support
- OTA firmware update capability
- AP mode for configuration
- Sensor data caching (up to 200 sensors)
Features
- Connects to AWS IoT via MQTT
- Receives TPMS sensor data via UART
- Web configuration portal
- Automatic WiFi reconnection
- Certificate management