Commit Graph

9 Commits

Author SHA1 Message Date
Trilltechnician 9bd9f4f43b docs: Multi-frequency RF file handling analysis
Comprehensive analysis of how the system handles .sub files with
multiple frequencies.

Key findings:
- Standard Flipper Zero files contain ONE frequency per file
- Multiple .sub files in one upload: WORKS correctly
- Multiple Frequency: lines in one file: Only last used (silent loss)
- Recommended: Add validation warning for multi-frequency edge case

Analysis includes:
- Current parser behavior
- Flipper Zero file format specification
- 4 solution options with pros/cons
- Testing scenarios
- Impact assessment
- Short-term and long-term recommendations
2026-01-14 13:20:08 -08:00
Trilltechnician 019cae6b37 docs: Phase 2 & 3 completion summary
Complete implementation summary including:
- Executive summary of achievements
- Implementation details for Phase 2 & 3
- Validation results (20% improved, +0.35 max improvement)
- Files changed and git history
- Deployment status and next steps
- Performance impact analysis
- Lessons learned and known limitations

Status: COMPLETE & READY FOR PRODUCTION
2026-01-14 12:05:16 -08:00
Trilltechnician 80e31675b2 docs: Add comprehensive Phase 2 & 3 deployment guide
Created detailed deployment documentation including:
- Step-by-step deployment instructions
- Verification checklist
- Troubleshooting guide
- Performance considerations
- Rollback procedures
- Server-specific deployment commands
- Testing recommendations
- Monitoring & debugging tips

Ready for seamless server-side deployment
2026-01-14 12:03:29 -08:00
Trilltechnician f4c17e858d docs: Phase 1 RTL_433 integration complete - Summary & roadmap
Comprehensive summary document covering:

Phase 1 Accomplishments ( COMPLETE):
- RTL_433 C source parser (286 devices extracted)
- Structured JSON protocol database
- Device categorization (weather, TPMS, security, etc.)
- Modulation analysis (OOK, FSK timing parameters)
- Heatmap visualization implemented

Key Statistics:
- 286 device protocols parsed (14x increase from 20)
- 116 weather stations, 39 sensors, 25 TPMS, 23 security
- 152 OOK, 105 FSK modulation devices
- 50+ manufacturers (Fine Offset, LaCrosse, Acurite, etc.)

Expected Accuracy Improvements:
- Current: 60-70% accuracy
- Phase 2 (RTL_433 integration): 75-80% (+15%)
- Phase 3 (Timing analysis): 80-85% (+5%)
- Phase 4 (ML classification): 90-95% (+10%)

Next Steps:
- Phase 2: Create enhanced matcher with RTL_433 lookup
- Phase 3: Implement timing analysis for RAW captures
- Phase 4: ML infrastructure planning & dataset collection

Document includes:
- Detailed task breakdowns for Phases 2-4
- Code examples and architecture
- Success criteria and metrics
- Commands for testing and analysis
2026-01-14 11:51:05 -08:00
Trilltechnician 9bcfe863ca docs: Comprehensive RF signal analysis and SOTA research
Complete analysis of:
- What RF signals record (.sub file structure, modulation types)
- Current state-of-the-art (RTL_433, Flipper Zero, URH, ML research)
- GigLez implementation analysis (60-70% accuracy baseline)
- Known signal databases (RTL_433 260+ protocols, Flipper 13k sigs)
- 7 device identification strategies (protocol, frequency, timing, ML, etc.)
- Gap analysis: current vs SOTA (20-30% accuracy gap)
- Implementation roadmap: 60% → 95% accuracy in 6 phases

Key findings:
- RTL_433 integration: +15% accuracy (Phase 1)
- Timing analysis: +5% accuracy (Phase 2)
- ML classification: +10% accuracy (Phase 5)
- Total potential: 90-95% accuracy (state-of-the-art)

Research sources: RTL_433, Flipper Zero docs, URH, 2024-2025 ML papers
Planning document - no code changes made per user request
2026-01-14 11:30:15 -08:00
Trilltechnician 5fbe60c76c docs: Comprehensive device attribution analysis and frequency mapping
Added detailed analysis of GigLez's RF device attribution system with:

1. DEVICE_ATTRIBUTION_ANALYSIS.md enhancements:
   - Expanded frequency-to-device mapping for all ISM bands
   - Added comprehensive modulation type descriptions (OOK/ASK/FSK/PWM/PPM/Manchester/PCM)
   - Implemented modulation detection algorithms
   - Enhanced RTL_433 pulse analysis documentation
   - Added Flipper Zero ProtoView features
   - Extended Keeloq protocol support details

2. FREQUENCY_DEVICE_CHART.md (new):
   - Visual frequency band mapping (300-928 MHz)
   - Detailed device type categorization by frequency
   - Regional frequency allocations (FCC/ETSI)
   - Protocol prevalence statistics
   - Signal strength and range data
   - Device attribution confidence strategies
   - Python categorization example code

Key Research Findings:
- 433MHz is most popular globally (weather stations, remotes, sensors)
- 315MHz primary in North America (TPMS, security, automotive)
- 868/915MHz for advanced IoT (smart meters, LoRa, industrial)
- Frequency + Modulation + Protocol = high-confidence identification
- RTL_433's 200+ protocol database as integration target
- Flipper Zero's 13,717 .sub files for training data

Recommendations prioritized for implementation:
1. RTL_433 protocol database integration
2. Pulse pattern analysis for RAW signals
3. Modulation detection algorithms
4. Frequency-based device categorization
5. Checksum validation
6. Machine learning classification (long-term)

This provides comprehensive foundation for improving GigLez's
device attribution accuracy from 60-70% to 85-90%.
2026-01-14 10:36:24 -08:00
Trilltechnician f5d92f1d36 feat: Add wardriving data import system and cleanup tools
Major Features:
- Multi-format GPS data import (Wigle CSV, GPS JSON, filename GPS)
- Data source tracking (test/mock/production)
- Database cleanup tools for managing test data
- JSON file persistence for simplified server
- UI improvements for map controls

Backend:
- Added wardriving_importer.py with WigleCSVImporter, GPSJSONImporter, BatchImporter
- Added data_source and session_id tracking to captures
- New API endpoints: DELETE /api/v1/admin/cleanup
- Auto-save/load functionality for captures_simple.json
- Updated stats endpoint to show data source breakdown

CLI Tools:
- scripts/import_wardriving_data.py - Batch import with --data-source flag
- scripts/cleanup_database.py - Clean by source, session, or all
- scripts/create_test_dataset.py - Generate GPS-tagged test data
- scripts/test_wardriving_import.py - Test suite for importers

Frontend:
- Fixed map controls z-index and positioning issues
- Moved controls to top-right to avoid zoom button overlap
- Fixed Leaflet zoom controls rendering over header
- Changed controls to position:fixed for persistent visibility
- Export map object to window.map for proper invalidateSize

Documentation:
- docs/WARDRIVING_IMPORT.md - Complete import guide
- docs/DATA_CLEANUP_GUIDE.md - Cleanup system documentation
- docs/TEST_LOCATIONS.md - Test GPS coordinates reference
- TEST_RESULTS_SUMMARY.md - Format testing results

Test Data:
- Created test_dataset_gps with 15 captures across 5 US cities
- All test data marked with data_source="test" for easy cleanup

Testing:
- Verified Wigle CSV import (1 capture from West LA)
- Verified GPS filename import (3 captures from UCLA area)
- Verified GPS JSON companion files (15 captures, 5 cities)
- Verified cleanup functionality (deleted 15 test captures)
- Verified data persistence across server restarts

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-14 07:48:01 -08:00
Trilltechnician 04bd80b25b GPS Auto-Extraction + First Successful Upload Complete
Major milestone: GPS coordinates now auto-extract from filenames and
uploads appear on map with full end-to-end workflow functional!

 GPS Auto-Extraction Features:
- JavaScript GPS extractor class matching Python patterns
- Supports 3 filename formats:
  * N/S/E/W: 34.0478N_118.2349W_filename.sub
  * lat/lon prefix: lat34.0478lon-118.2348_filename.sub
  * Signed decimal: -34.0478_118.2348_filename.sub
- Auto-populates latitude/longitude form fields on file drop
- Green notification toast shows detected coordinates
- File list shows GPS badge for files with coordinates

🗺️ Web Interface Improvements:
- Upload endpoint now stores captures in-memory
- Query endpoint returns uploaded captures for map display
- Stats endpoint shows real-time upload counts
- Map displays uploaded captures as markers
- Color-coded by frequency band

📁 Updated Files:
- static/js/upload.js: GPS extraction + auto-population
- src/api/main_simple.py: In-memory storage + endpoints
- src/parser/gps_extractor.py: Backend GPS extraction (Python)
- scripts/test_gps_extraction.py: Python test suite
- test_gps_extraction.html: Browser test suite

📊 T-Embed Files Updated:
- 34.0478N_118.2348W_1637_raw_8.sub: 315 MHz Princeton
- 34.0478N_118.2349W_1351_raw_10.sub: 433.92 MHz Princeton
- 34.0478N_118.2349W_1650_test_raw.sub: 433.92 MHz RAW
- All now have proper Flipper SubGhz headers

 Tested Features:
- GPS extraction from filename: 34.0478N_118.2349W → 34.0478, -118.2349
- Auto-population of GPS fields in upload form
- File upload with GPS validation
- Capture appears on map after upload
- Statistics update in real-time
- Frequency distribution calculated correctly

🎯 End-to-End Flow Working:
1. User drops .sub file with GPS in filename
2. GPS auto-detected and form fields populate
3. User clicks Upload
4. Server parses RF data + GPS coordinates
5. Capture stored in memory
6. Map refreshes and displays new marker
7. Stats update with new counts

🚀 Demo: http://localhost:8000
Upload 34.0478N_118.2349W_1351_raw_10.sub and watch it appear on map!

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-13 18:37:13 -08:00
Trilltechnician eb225771bc Initial commit: Phase 1 & Phase 2 infrastructure complete 2026-01-12 11:21:17 -08:00