GNSS, Bluetooth, NFC & UWB Radios
In addition to Wi-Fi 6 (bcmdhd4389 over standard nl80211 / wpa_supplicant), headless-phone unlocks all four secondary onboard radios on Pixel 6 Pro (raven) directly from Linux.
Dual-Frequency GNSS & 1PPS (gnss-ctl)
Section titled “Dual-Frequency GNSS & 1PPS (gnss-ctl)”Drives the Broadcom BCM47765 dual-frequency L1+L5 receiver (GPS, GLONASS, Galileo, BeiDou, QZSS, NavIC) over /dev/ttyBCM and /dev/bbd_control, with hardware 1PPS exposed via /sys/devices/platform/bbd_pps/pps_assert.
Uses the shared /run/headless-bionic runtime + Binder-free C shims to run stock /vendor/bin/hw/lhd and gpsd with an auto-generated standalone /run/headless-gnss/gps.xml (SUPL/LTO disabled for offline operation) serialized by /run/headless-gnss/.hw.lock.
# Check BCM47765 nodes, firmware, shims, chip.info, and 1PPS readiness (unprivileged)gnss-ctl status
# Acquire a GPS/GNSS fix (or print live satellite/AGC/RF power telemetry)sudo gnss-ctl fix --timeout 30sudo gnss-ctl --json fix --timeout 30
# Stream parsed NMEA sentences (GGA, RMC, GSA, Broadcom $PGLOR) for 20 secondssudo gnss-ctl nmea --duration 20
# Stream raw NMEA sentences indefinitely (duration 0)sudo gnss-ctl nmea --duration 0 --rawTop-level options (must precede subcommand): --runtime-dir /run/headless-bionic, --lib-dir /usr/local/lib/headless-gnss, --json.
| Subcommand | Flags & Defaults |
|---|---|
setup / teardown / status |
setup [--force]; status unprivileged |
nmea |
--duration 10.0 (0 = infinite), --count 0 (0 = infinite), --raw |
fix |
--timeout 15.0 |
Bluetooth 5.2 / BLE (bt-ctl & bt-init.service)
Section titled “Bluetooth 5.2 / BLE (bt-ctl & bt-init.service)”Brings up the Broadcom BCM4389C1 controller on UART /dev/ttySAC16 using 3 Mbps FastDownload of /vendor/firmware/brcm/BCM.hcd (~1.69 s), sets a deterministic locally-administered BD_ADDR derived from /etc/machine-id (or custom --bdaddr), and attaches Linux N_HCI / HCI_UART_H4 to expose standard hci0 for BlueZ (bluetoothctl, Python bleak, etc.).
# Check UART, firmware, rfkill state, and hci* adapters (unprivileged)bt-ctl status --json
# Enable native Linux hci0 permanently across reboots (opt-in service)sudo systemctl enable --now bt-init.service
# Standalone passive BLE scan without BlueZ (only when hci0 is NOT attached)sudo bt-ctl scan --duration 6 --jsonTop-level options (must precede subcommand): --uart /dev/ttySAC16, --firmware /vendor/firmware/brcm/BCM.hcd, --baud {115200,921600,3000000} (3000000), --bdaddr AA:BB:CC:DD:EE:FF.
| Subcommand | Flags & Defaults | Notes |
|---|---|---|
status |
--json |
Unprivileged. |
attach |
(none) | Runs foreground until SIGINT/SIGTERM, powers off radio on exit; invoked by bt-init.service. |
scan |
--duration 5.0 (min 0.5), --json |
Standalone BLE scan sorted by RSSI; refuses to run if hci0 is already attached. |
NFC Reader (nfc-ctl)
Section titled “NFC Reader (nfc-ctl)”Zero-blob pure-Python NFC Forum NCI 2.0 controller driver for STMicroelectronics ST21NFC (/dev/st21nfc) — requires zero Android HAL libraries or bionic shims. Supports NFC-A (ATQA/UID/SAK), NFC-B (PUPI), NFC-F (NFCID2), and NFC-V (DSFID + UID), cleanly deactivating RF to idle on exit.
# Hardware-reset ST21NFC and display NCI 2.0 controller capabilitiessudo nfc-ctl info --json
# Poll continuously for NFC-A/B/F/V tags for 10 secondssudo nfc-ctl poll --timeout 10
# Emit NDJSON per detected tag indefinitely (--timeout 0), or exit after first tag (--once)sudo nfc-ctl poll --timeout 0 --jsonsudo nfc-ctl poll --once --timeout 30 --jsonTop-level option: --device /dev/st21nfc.
8 GHz UWB 6LoWPAN & FiRa (uwb-ctl)
Section titled “8 GHz UWB 6LoWPAN & FiRa (uwb-ctl)”Controls the Qorvo DW3000 8 GHz IEEE 802.15.4z Ultra-Wideband radio (phy0 / wpan0) on Pixel 6 Pro, supporting standard Linux 6LoWPAN IPv6 mesh networking (verified 2.13 ms RTT on channel 9 @ 7.99 GHz), FiRa region inspection, and /vendor/etc/uwb/UWB-calibration-<country>.conf readout (136 calibration keys).
# Check IEEE 802.15.4 PHYs, wpan/lowpan interfaces, netlink IDs, and calibration keysuwb-ctl status --json
# Also load the FiRa region module (requires sudo)sudo uwb-ctl status --load-fira
# Inspect regional TX/antenna calibration keys (unprivileged)uwb-ctl calib-info --country default
# Bring up an 8 GHz UWB 6LoWPAN IPv6 mesh link (channel 5 = 6.49 GHz, channel 9 = 7.99 GHz)sudo uwb-ctl mesh-up \ --channel 9 \ --pan-id 0xBEEF \ --short-addr 0x0001 \ --ipv6 fd00:dead::1/64
# Tear down lowpan0 and bring down wpan0sudo uwb-ctl mesh-downuwb-ctl Subcommand Reference
Section titled “uwb-ctl Subcommand Reference”| Subcommand | Flags & Defaults |
|---|---|
status |
--country default, --load-fira (requires sudo), --json |
calib-info |
--country default, --json |
mesh-up |
--phy phy0, --wpan wpan0, --lowpan lowpan0, --channel {5,9} (9), --pan-id 0xBEEF, --short-addr 0x0001, --ipv6 "" |
mesh-down |
--wpan wpan0, --lowpan lowpan0 |