ATAK Sensor Collector is an Android foreground service on the Pixel 10 Pro that turns everything the phone can sense into Cursor-on-Target (CoT) events, the format used by TAK. Each event carries the GPS/network fix, motion and environment sensors, battery, every Wi-Fi access point and Bluetooth LE device heard since the last event (each with the position it was heard from), the phone's uplink state, and, when a Flipper Zero is attached over Bluetooth, Sub-GHz receptions. Events are written to the phone first and streamed over TCP to RRECKTEK's FreeTAKServer on utility1, where they appear as a marker on the ATAK map; crewai-tak-persist keeps every streamed event on disk, crewai-tak-devicepull recovers the phone's spool over adb, and a workstation job every 15 minutes merges both into the master corpus and republishes the ATAK Signal Survey map and the ATAK Survey Player on www.rrecktek.com. It restarts at boot, is switched off, on and checked from a host script over adb, and answers the offline voice commands "report", "mark" and "toggle". Built without the ATAK plugin SDK.
| Position | CoT <point> lat, lon, hae (OS MSL altitude when available, else GPS HAE), ce, le. GPS and NETWORK providers requested at 1000 ms with 0 m minimum distance (1 Hz); fix source recorded as gps/net; speed_mps and bearing_deg. |
|---|---|
| Motion and environment sensors | Always: accel_x/y/z, gyro_x/y/z, mag_x/y/z, heading_deg (derived), battery_pct. When the hardware has them: pressure_hpa, light_lux, proximity_cm, steps, temp_c, humidity_pct, grav_x/y/z, linacc_x/y/z, rot_x/y/z. Listeners at SENSOR_DELAY_NORMAL; a significant-motion trigger detects motion. |
| Wi-Fi | Scan every 12 s with Android scan throttling disabled. Per access point: ssid, bssid, rssi_dbm, freq_mhz, chan, sec_type, open, security, obs_lat/obs_lon. Summary: count, open_count, open_ssids (up to 10), connected SSID/BSSID/RSSI/link Mbps/frequency; a live 30 s SSID / dBm / security list leads the CoT remarks. |
| Bluetooth LE | Continuous scan in SCAN_MODE_BALANCED (LOW_LATENCY until 2026-07-24); a 30 s watchdog restarts a scan stalled 20 s and a failed scan re-arms after 1.5 s. Per device: mac, rssi_dbm, name, tx_power, uuids, class, vendor, apple_type, likely_phone, obs_lat/obs_lon; summary count and phone_count. |
| Sub-GHz (Flipper Zero) | Over BLE the app drives the Flipper's CLI with subghz rx, cycling 300, 315, 390, 433.92, 868.35 and 915 MHz with a 12 s dwell or parked on one frequency; receive only. Per hit: freq_hz/mhz, protocol, key, bits, count, first_ms, obs_lat/obs_lon, raw. Without a Flipper the element reads count="0" connected="false". |
| Uplink | Transport (wifi / cell / vpn / none), VPN, SSID or carrier and radio type (NR / LTE / HSPA), signal_dbm, reachable, and each event's own send_ok and send_ms. |
| Waypoints and voice | Offline Vosk speech recognition with a fixed grammar: "report", "mark", "toggle"; no key, no cloud. "mark" drops a standalone CoT waypoint, uid MARK-<epoch>, type b-m-p-w-GOTO. |
| Cadence | First event immediately on start. Send interval defaults to 60 s and snaps to 17 steps from 0.5 s to 60 min; motion polled every 5 s, stationary after 180 s without motion (accel delta 0.6 m/s²); the motion gate (on by default) holds sends while stationary. On the phone: moving interval 5 s, motion gate off (2026-07-24); measured over 81,503 events, median interval 5.1 s, p99 15.2 s. |
| TAK / CoT | <event version="2.0" how="m-g">, type a-f-G-U-C (friendly ground unit), uid ATAK-SENSOR-Pixel-10-Pro, stale time 3× the interval; detail __group Cyan / Team Member, takv platform ATAKSensorCollector 1.0, precisionlocation GPS. Streamed newline-terminated over TCP to FreeTAKServer 2.2.1 (crewai-tak-fts) at 192.168.206.8:8760 (5 s connect timeout, keepalive, one reconnect retry); UDP multicast 239.2.3.1:6969 also supported; off the LAN through WireGuard. In ATAK-CIV the server is added as TCP 192.168.206.8:8760 and the sensor shows as a marker on the map. FTS also serves CoT SSL 8761 (mutual TLS, enrollment at enroll.rrecktek.com:8761), data packages 8762/8763 and API 8764. |
| On-device spool | Every event is written to Android/data/com.rrecktek.ataksensor/files/cot/<uid>_<epochms>.cot with its send outcome stamped in. Hold stops sending while collection and spooling continue; Re-sync (2026-09-11 source) sends the files marked send_ok=false, oldest first. |
| Server pipeline | crewai-tak-persist (utility1, ports 8221 API / 9221 metrics) is a TCP CoT client of FTS that writes each event raw to output/cot/YYYY-MM-DD/<uid>_<event-time-ms>.cot (atomic writes, de-duplicated by name and SHA-256, no database). crewai-tak-devicepull (8222 / 9222) pulls the phone's spool over adb with on-device SHA-256 checks, never overwrites, quarantines divergent content, syncs hourly and refreshes gaps every 300 s. A workstation cron every 15 min merges USB pulls and streamed files (near-duplicates within ±1500 ms), parses the CoT, builds the survey payloads and republishes the two web pages after verifying the served MD5. |
| Metrics | Grafana "CrewAI TAK Persist Agent" (14 panels: seconds since last event, stream connected, events persisted / de-duplicated / by device, reconnects, bytes written, disk free, devices seen, files on disk, last gap, downtime, parse errors, uptime) and "TAK Sensor Pipeline — Capture & Transfer" (18 panels: files stranded on device, corpus behind device, time since last sync and last event, live tap, phone reachable over adb, bytes discarded, divergences, transfer corruption, parse errors, spool vs corpus, events per minute, files recovered per hour, capture silence, reconnects, downtime, corpus disk free); 19 alert rules in 4 groups. |
| Live state (2026-12-03 12:31 UTC) | All four TAK jobs up; stream connected; 35,529 events persisted by the tap, all from ATAK-SENSOR-Pixel-10-Pro, 35,560 files on disk, zero parse errors and zero bytes discarded. Last streamed event 2026-11-21 10:50 UTC; the phone is not reachable over adb from devicepull; alerts firing: TakPersistSilentTooLong, TakDeviceUnreachable, TakDevicePullNeverSucceeding. On the phone the collector's foreground service is running (adb, 2026-12-03). Master corpus: 125,616 CoT files, 2026-07-23 to 2026-11-20. |
| Web visualizations | ATAK Signal Survey map: RF density over a street basemap with layers Wi-Fi by BSSID (17,067 radios), Wi-Fi by SSID (6,851 names), BLE glow (3,499 identifiable devices of 67,936 addresses heard), Open Wi-Fi (1,839 radios across 259 names, Cox networks in magenta), GPS track (125,614 fixes in 1,693 segments) and Top 200 emitters, with per-emitter popups (best RSSI, observations, heard-over, uncertainty, confidence, observer scatter) and annotations. ATAK Survey Player: replays the whole track at 60× to 10,800× with 5 min to Everything trails, follow, fit-all, fullscreen, a live clock and BLE / Wi-Fi / open-network counters, each emitter appearing when it was first heard; two windows keep their playheads in sync. |
| Control | Foreground service (location, microphone, connected-device types), notification with TURN OFF, START_STICKY, restarted at boot unless switched off; intents start, stop, hold, resume, resync. Host script atak-sensor off | on | status over adb (off disables the package so it stays off across reboots). A launcher panel shows status and counters and holds the interval slider, motion switch, start / stop / hold / re-sync and TAK server settings. |
| Permissions | Location (fine, coarse), Wi-Fi state and change, nearby Wi-Fi devices, Bluetooth scan and connect, record audio (voice commands), foreground service (location, microphone, connected device), notifications, wake lock, read phone state, receive boot completed, internet and network state. |
| Platform and build | Android, minSdk 26, targetSdk 34, Java 17, vosk-android 0.3.47; versionName yyyy.MM.dd-HHmm and versionCode the build's Unix time, stamped at every build. Builds 2026.07.24-1915, 2026.07.27-0918, 2026.08.06-0853 (installed) and 2026.09.11-1618 (newest local build). Debug APK about 115 MB with the bundled Vosk model. Sideload only. |
The collector runs in the background without a screen of its own (its launcher panel is only for control and settings), so these captures show its data as published on www.rrecktek.com, captured 2026-12-03: signal density over the street basemap (all layers, open Wi-Fi with the GPS track, Wi-Fi by network name, Bluetooth LE glow), an open-network detail popup, and the survey player replaying the track. ATAK Signal Survey map · ATAK Survey Player







