Skip to content

ShareClient fails to update #1854

@marionbarker

Description

@marionbarker

Describe the bug
Issue#1: If Dexcom Share is added as a CGM before a Pump is added to Loop, the CGMManager:ShareClientManager does not update after Pump is added.
Issue#2: Walked away from my phone, so DexcomShare stopped providing new readings, Loop stopped updating even after readings resumed with sensor.

  • Tested ONLY with a rPi DASH simulator
  • I suspect this has been there for a while
    • I remember needing to delete and add back Dexcom Share when testing
    • Not a typical use case

Expected behavior
Expect

  • to be able to add CGM and pump to Loop in either order
  • if dexcom share source is interrupted and then resumes that Loop begin to work without intervention

The intervention required is to delete Dexcom Share as a CGM and then add it back again.

To Reproduce
Steps to reproduce the behavior:

  • I built Loop-dev (commit ad4e6b8) to a blank phone, pulled in Therapy from NS, confirmed and saved
    • Added Dexcom Share as CGM
    • Added rPi DASH simulator
    • Left phone in open loop
    • Loop never turned green (waited more than 5 minutes)
  • Deleted CGM and added Dexcom Share as CGM
    • Loop turned green immediately

Repeated to confirm, pod insertion completed at 08:39 PST.
Report ShareClientManager statements in debug log up through 08:49 PST.

2022-11-30 08:36:58.066920-0800 Loop[1372:280813] [DeviceDataManager] CGMManager:ShareClientManager did update with 2 values
2022-11-30 08:37:06.017885-0800 Loop[1372:280814] [DeviceDataManager] CGMManager:ShareClientManager did update with no data

I see the no recent glucose message on the HUD.
Delete CGM and then add it back and get an immediate green loop, and loop stays green

2022-11-30 08:51:52.336748-0800 Loop[1372:284698] [DeviceDataManager] CGMManager:ShareClientManager did update with 4 values
2022-11-30 08:52:11.353423-0800 Loop[1372:284777] [DeviceDataManager] CGMManager:ShareClientManager did update with no data

Now delete both pump and CGM.
This time add Pump first and then CGM.
Insert completed at 09:23 am PST
Add Dexcom Share as CGM at 09:24 am PST and get an immediate green loop.

2022-11-30 09:24:14.159099-0800 Loop[1388:294020] [DeviceDataManager] CGMManager:ShareClientManager did update with 2 values

Just happened to walk away from my "real" phone, so Dexcom Share data stopped updating. Even after resuming new CGM data on Share, had to delete and add CGM to get looping to resume on test phone, so added Issue#2 to the list above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions