← Back to Pull requests

applications: ww_kws: Add Wi-Fi observability with direct Memfault upload #189

Closed
unknown closed this pull request without merging on Nov 19, 2026 12:16 UTC
View on GitHub
unknown unknown commented on Nov 06, 2026 08:43 UTC
Author

Model observability in ww_kws only had a Bluetooth LE transport (Memfault Diagnostic Service plus a gateway). This PR adds a Wi-Fi transport for the nRF7120 DK. The device connects to an access point, and the Memfault SDK uploads the data, including the edgeai_observability CDR, directly to Memfault over HTTPS. No gateway, nRF Cloud account or device credentials are needed. It only needs CONFIG_MEMFAULT_PROJECT_KEY.

Commit 1: Add Wi-Fi observability over direct Memfau

  • Splits observability.conf into a transport-neutral core plus observability_ble.conf (the previous MDS/bonding config) and the new observability_wifi.conf.

  • Adds src/wifi/memfault_http_obsv.c. It follows the Memfault sample's connection handling and enables periodic upload only while the network is connected. The Memfault root certificates are built into the he volatile TLS credentials store at boot, so nocertificates need provisioning. The Memfault servers use ECDHE-RSA, which mbedTLS ECC key pair types are enabled. Without them onlyPSK ciphersuites are offered and the server closes the handshake.

  • observability_wifi.overlay raises the DMIC queue to 16 blocks, because connecting to Wi-Fi stalls the audio path and overruns the default four. The DMIC slab is now sized from queu

  • The shell enables the interrupt-driven UART API, which takes UART21 away from the async API used by the control output, so it is disabled for UART21.

  • sample.yaml is split into obsv_ble (nRF54LM20B and nRF7120E) and obsv_wifi (nRF7120E only).

  • README and changelog are updated.
  • Commit 2: Add Wi-Fi ROM patches to Wi-Fi observability

  • The Wi-Fi core needs its ROM patches to start. Wit devicetree, the patches are silently left out of the image.

  • Includes nrf7120_wifi_patch_0_1_0.dtsi in the overATCH=y, and makes the build fail if the regions aremissing.

  • The patches sit at fixed addresses from 0x100000, 1 MB. A linker snippet moves the Axon model constants and command buffers above the patches.
  • Tickets: NCSDK-40669

    Diff: 277 lines (+207 / -70) across 3 files Reviewer: rob-robinson-14 Review duration: 18932m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 277 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.337
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #189"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.6% (MEDIUM) · Higher = larger blast radius
    39.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.6% · Safe to merge
    15.6%