Skip to content

Connection spine

BLE is control only; bulk data goes over Wi-Fi. Order of operations:

BLE scan → GATT connect → app-pairing → read Wi-Fi creds → join AP → UDP DUML → HTTP media
  1. BLE scan. Identify the camera from manufacturer data or name. No scan filter (Pocket 3 omits manufacturer data).
  2. GATT. Service fff0; notify on fff4, write commands to fff5. Request MTU 517. Pace writes.
  3. App-level pairing. Replaces BT bonding. SetPairingPIN (0x07/0x45); first-time approval is 0x07/0x46.
  4. Wi-Fi credentials. GetWifiSsid (0x07/0x07) then GetWifiPassword (0x07/0x0e). Do not synthesize the passphrase.
  5. Join the AP. Phone joins the camera SoftAP (WPA2). Camera/gateway is 192.168.2.1.
  6. UDP DUML. Port 9004 for the Pocket family, after a TCP :7001 poke. Then handshake, register, subscribe.
  7. HTTP media and live view ride that LAN.

Implementation lives in Sources/OpenPocketViewCore/. Platform shells own sockets, permissions, and the Wi-Fi join.