Package 

Class BleManager


  • 
    public final class BleManager
    
                        

    Experimental BLE advertisement collector. Passively scans for all nearby advertising devices (wildcard, no service filter) and forwards each discovery to DataManager. No GATT connection is ever opened.

    Mirrors the structure of WifiManager: (context, dataManager) ctor with startUpdates() / stopUpdates() / applyConfig() / shutdown().

    Scan strategy (foreground-only for now — the SDK's foreground service keeps the app foregrounded during a delivery):

    • SCAN_MODE_LOW_LATENCY + reportDelay = 0 → the fastest per-advertisement callback cadence Android offers.

    • Empty filter list (wildcard) so every advertiser is reported.

    • The scan is torn down and restarted every restartIntervalMs (~25 min) to dodge the AOSP 30-minute limit that otherwise downgrades a long-running scan to opportunistic mode (results only when another app scans). We never restart faster than the platform's "5 scan starts / 30 s" limit.

    No dedup: every callback is captured so cadence/gaps can be measured from the CSV, matching the IMU fidelity playbook.