Skip to content

G7 direct pairing fails with challenge mismatch when taking over an active Dexcom session #140

Backlog

Description

@therealAL3X

Related to #1809.

Summary

I cannot pair an existing Dexcom G7 sensor directly with Trio. Trio detects the sensor and completes the key-exchange rounds, but authentication fails with a pairing-code mismatch. Reinstalling the Dexcom app reconnects to the same sensor immediately.

Build details

This occurred on a local backport of #1809 onto an older main build, with compatibility changes for the older LoopKit APIs. I have not reproduced this on an unmodified official dev build.

  • Trio: 1.0.2 (1)
  • Local branch: codex/watch-pr1809
  • Base commit: 0b29cd534
  • PR #1809 revision used: 48e9c28d6a8881a9e971245950f5f0edcb2adee6
  • G7SensorKit: 1c6dfd5505d1974fb28cd934e5dfc46c8a58505c
  • LoopKit: f974241f5f25053d51da3e80833c85b13c387e6f, with compatibility changes

The G7Authenticator, crypto, pairing service, and pairing view-model files are unchanged from the G7SensorKit revision above.

Hardware

  • iPhone 18 Pro
  • iOS 27.2.1 (24B156)
  • Dexcom G7 10 Day
  • Sensor firmware: 32.192.106.0
  • Software number: SW13354
  • Existing active sensor with approximately three days remaining
  • Dexcom Direct to Watch was turned off

Steps taken

  1. Confirmed the current sensor’s four-digit pairing code in the Dexcom app.
  2. Offloaded the Dexcom app.
  3. Selected direct sensor pairing in Trio and entered that same code.
  4. Kept one pairing attempt open continuously for at least 15 minutes, with the phone near the sensor.
  5. Also tried restarting the phone, toggling Bluetooth, and reopening Trio.

After reinstalling Dexcom to confirm the code, I offloaded it again before retrying Trio.

Actual behavior

Trio's diagnostic log shows key exchange completing, followed by these messages:

Key exchange: the sensor's proofs did not verify under our transcript format (advisory)
Challenge: sending ours as display type phone
Challenge: the sensor's answer does not match our key
Authentication failed: This sensor does not match the pairing code entered.
None of the sensors seen so far match the code; still scanning

Authentication failed on multiple attempts. Trio then continued scanning without completing pairing.

Expected behavior

Trio should pair with the active sensor using its verified pairing code once the previous phone connection has been released.

Recovery

Reinstalling Dexcom allowed it to reconnect immediately to the same sensor. I did not stop the sensor session or replace the sensor.

Is this a known limitation when moving an active sensor from Dexcom to direct Trio pairing, or could the local integration be contributing?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions