Commit Graph

15 Commits

Author SHA1 Message Date
Colonel Panic 53533a9a09 Merge pull request #29 from dougborg/add-oui-prefixes
Add OUI prefixes for Flock WiFi, Flock Safety direct, and ShotSpotter
2026-02-15 15:50:03 -05:00
Doug Borg 42a7a6f84f Fix heartbeat timer leak for low-confidence detections, bump method buffer
Low-confidence mac_prefix_mfr hits no longer update fyLastDetTime/fyLastHB,
preventing them from keeping the heartbeat alive after a high-confidence
device leaves range. Bump FYDetection::method from 24 to 32 bytes so
"mac_prefix_soundthinking" (23 chars) has headroom.
2026-02-08 14:16:53 -07:00
Colonel Panic 6233d4884e fix session persistence: replace unreliable SPIFFS.rename with copy+delete
- fyPromotePrevSession now reads session.json, writes to prev_session.json,
  then deletes the original — SPIFFS.rename() silently fails on ESP32
- prior session KML export: added style defs, raven metadata, error handling,
  moved file validation before response stream init
- reduced auto-save interval 60s → 15s, added 5s quick-save on first detection
2026-02-08 15:43:14 -05:00
Doug Borg ddcfa8a171 Split MAC prefixes by vendor/confidence to reduce false positives
Address Copilot review: contract manufacturer OUIs (Liteon/USI) are now
in a separate flock_mfr_mac_prefixes[] array emitting "mac_prefix_mfr"
as the detection method. SoundThinking/ShotSpotter gets its own array
and "mac_prefix_soundthinking" method. Low-confidence detections (mfr
OUIs) suppress buzzer/heartbeat but still emit JSON events so consumers
can apply their own thresholds.
2026-02-07 21:58:54 -07:00
Doug Borg b16f3a0c97 Add OUI prefixes for Flock WiFi cameras, Flock Safety direct, and ShotSpotter
Expand MAC prefix detection with entries sourced from:

- Flock WiFi (Liteon/USI): f4:6a:dd, f8:a2:d6, e0:0a:f6, 00:f4:8d,
  d0:39:57, e8:d0:fc — contract manufacturer OUIs (Liteon Technology and
  USI/Universal Scientific Industrial) identified via the OUI-SPY firmware
  ecosystem table and cross-referenced against the IEEE OUI registry.
  These manufacturers produce Flock Safety's WiFi-enabled camera hardware.

- Flock Safety direct: b4:1e:52 — registered directly to "Flock Safety"
  in the IEEE OUI database (MA-L assignment). This is their own prefix
  rather than a contract manufacturer's.

- SoundThinking/ShotSpotter: d4:11:d6 — registered to "SoundThinking Inc"
  (formerly ShotSpotter) in the IEEE OUI database. Their acoustic gunshot
  detection sensors use BLE for local diagnostics and provisioning.
2026-02-07 20:38:51 -07:00
Colonel Panic 3606f1f812 Overhaul firmware: BLE-only detection, web dashboard, GPS wardriving, session persistence
Complete rewrite of standalone Flock-You firmware:
- Remove WiFi promiscuous mode, all detection is now BLE-only
- Add web dashboard served on AP "flockyou" at 192.168.4.1
- GPS wardriving via phone browser Geolocation API
- SPIFFS session persistence with auto-save every 60s
- Prior session tab (PREV) survives reboots
- KML export for Google Earth (current + prior session)
- JSON/CSV export with GPS coordinates
- Serial JSON output for Flask live ingestion
- Crow call boot sounds with detection/heartbeat alerts
- 200 unique device storage with FreeRTOS mutex
- Flask app: add KML import endpoint, GPS data handling
- Update platformio.ini with AsyncWebServer, ArduinoJson 7, SPIFFS partition
- Rewrite README to reflect current functionality
2026-02-07 12:53:58 -05:00
Colonel Panic f9aff089e6 Add files via upload 2025-11-12 21:14:08 -05:00
Luke Switzer 9bf8d671b4 fix BLE blocking WiFi scan 2025-09-29 05:34:59 -06:00
Colonel Panic 4975cf40ca Update main.cpp 2025-08-27 12:06:05 -04:00
Colonel Panic 0ee2e6c664 Add files via upload 2025-08-23 14:47:43 -04:00
Colonel Panic d8c52f6d58 Update main.cpp 2025-08-22 12:23:25 -04:00
Colonel Panic 16bd5e927f Update main.cpp 2025-08-22 12:22:45 -04:00
Colonel Panic 28b9420888 Add files via upload 2025-08-22 09:12:45 -04:00
Colonel Panic a81d0cee9a Add files via upload 2025-08-22 07:12:03 -04:00
Colonel Panic 3515c5f67e Add files via upload 2025-08-20 21:28:23 -04:00