Skip to content

Stay pairable after an abandoned Omnipod 5 pairing; name it pod simulator - #27

Merged
ps2 merged 1 commit into
mainfrom
repair-after-aborted-pairing
Nov 1, 2026
Merged

ps2 merged 1 commit into
mainfrom
repair-after-aborted-pairing

Conversation

@ps2

@ps2 ps2 commented Nov 1, 2026

Copy link
Copy Markdown

Pairable after an abandoned pairing. An unpaired Omnipod 5 took its controller's id from the phone's HELLO and put it in the one service UUID it advertises, as a paired pod does. If the phone then abandoned the pairing (hung up partway through the exchange), the pod no longer matched the phone's scan for an unpaired pod (…0AFFFFFFFE00), so Loop reported "No pods found" and the pod could not be paired without restarting the simulator.

Only a paired pod takes the id from the HELLO now. An unpaired pod keeps advertising FFFFFFFE until pairing produces the LTK, where it already adopts the id. A phone that hangs up mid-exchange reconnects and starts over, which readSetup already handles.

This comes up with loopandlearn/OmnipodKit#202, which now stops pairing before the LTK is agreed when the pod's certificate is not Insulet's, and pairs again from scratch if the user chooses to continue.

Name. A simulated Omnipod 5 advertises the name pod simulator instead of copying the real pod's AP <controller id> <lot><tid>. Nothing reads the name; Loop only shows it as the device name. A DASH keeps :: Fake POD ::.

Testing. go test ./... passes, and GOOS=linux go vet ./pkg/bluetooth/ covers the Linux GATT radio. In the iOS Simulator, through ImpossiBLE, Loop with loopandlearn/OmnipodKit#202 abandoned an Omnipod 5 pairing at the certificate step, then found the pod again and started a new exchange on retry.

…ator

An unpaired Omnipod 5 took its controller's id from the HELLO and put it in
the service UUID it advertises, as a paired one does. If the phone then
abandoned the pairing, the pod no longer matched the phone's scan for an
unpaired pod and could not be found again. Only a paired pod takes the id
from the HELLO now; an unpaired one takes it when pairing produces the LTK.

Also name a simulated Omnipod 5 "pod simulator" instead of copying the
real pod's "AP <controller id> <lot><tid>". Nothing reads the name.
@ps2
ps2 merged commit df02c9d into main Nov 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant