LoopKit / Loop

An automated insulin delivery app for iOS, built on LoopKit
https://loopdocs.org
Other
1.51k stars 1.3k forks source link

2 Omnipod Eros deactivated with 0x12 in Loop 3.2.3 even though Loop Cycle Time is limited #2114

Open philippfo9 opened 10 months ago

philippfo9 commented 10 months ago

Describe the bug After around 2 days, my Pod deactivates running a Dexcom G6 with Omnipod Eros and Loop 3.2.3. Similar problem as here: https://github.com/LoopKit/Loop/issues/1924

Attach an Issue Report Loop Report 2024-01-02 19:08:52+01:00.md

What could I do to avoid this? Should I Limit Loop Cycle Time for a Dexcom G6 as well?

philippfo9 commented 9 months ago

A week ago, I tried limiting the Loop Cycle Time to 5mins with the suggested patch.

Unfortunately, I am still experiencing the same issue, every Pod only runs for around 1d 20hrs - 2 days.

Loop Report 2024-01-30 11:21:21+01:00.md

Any suggestions? I am considering downgrading to Loop 2.

marionbarker commented 9 months ago

I just analyzed your two reports and there were a lot of communication issues.

Do you have a different RileyLink Device you can try? Do you often leave your RileyLink out of range?

Discussion:

philippfo9 commented 9 months ago

I don't have a different RileyLink Device right now.

In the nighttime, I keep the Rileylink on the bedside table where it doesn't bolus sometimes, so seems out of range - I always had the feeling that CGM due to just being Bluetooth has a better range.

During the day, I keep the RileyLink in my pocket all the time, but leave my phone on the bedside tables sometimes so I don't touch it while working from home.

Regardless of the different conditions, I never had this issue on Loop V2, but experienced it every time since Loop V3. Has anything changed for V3 to ping the pod more often if a "nonce resync" happens?

The console is showing that the Limit CGM driven Loop cycle time is set to 5 minutes

image

Btw in my settings, I see that the pod has a different time configured, I just clicked to sync it. Could this trigger any of the issues above?

marionbarker commented 9 months ago

The limit cycle is for libre that reported every minute. Irrelevant for your situation.

Try keeping your rileylink close to the pod at all times. And look into getting a replacement. Open it and make sure antenna is securely attached. (Phone to riley is Bluetooth. Riley to pod is 533 MHz radio frequency and that’s probably what is failing.)

We recently discovered the uncertain comms handling for Eros in Loop 3 has a bug. (See Issue 2118). (Uncertain comms is probably what is going on with you. Loop 3 has a new method for handling that. )

Can you send me a PM in zulipchat and I’ll walk you through a rebuild of Loop using dev and show you how to build with the fix. It was just merged into OmniKit main branch (Eros pod code) but has not yet been added to LoopWorkspace dev branch.

marionbarker commented 9 months ago

Since we are 9 hours apart in time-zones, I wrote up the instructions. If you do not feel confident with these let me know. I assume you are using a Mac to build.

Download these 2 files.

Open the 20240130_ErosFix.txt file in the TextEdit app (or other text-only app). There are commands for you to copy and paste into the terminal that have double hyphens, i.e., --. These get messed up if you open the file with a smart editor.

The instructions in the txt file tell you how to get all the fixes that are already merged into OmniKit and how to use the patch file for the final fix that is not yet merged.

If you are successful with the build, please post another log file after 24 hours of operation to see if this improves things. And if you are near the end of life of a given pod, don't expect miracles. Hope this will help with the next pod.

philippfo9 commented 9 months ago

Hey, thanks a lot for your help!

Yep opened up the .txt file in VS Code, I definitely feel confident with the instructions, I'll will rebuild it and report back.

philippfo9 commented 8 months ago

Hey @marionbarker I think this has improved my issue, thanks a lot for your help so far!

The first pod (1 day old) has run out after 1 day 22 hours. The second pod managed to do 2 days 22 hours (not the full 3 days + 8 hours, but better). The third one is still running and has already crossed 2 days & 10 hours.

I also ordered a new OrangeLink. I hope I can manage to run 3 days + 8 hours again without issues then.

Here is the latest report: Loop Report 2024-02-13 16:16:16+01:00.md

marionbarker commented 8 months ago

Thank you for the report. This shows definite improvement in recovery from uncertain communications.

The characteristic of uncertain comms is a request for update at about 60 s intervals until the problem is resolved. Without the patch, the recovery took a long time after the first response from the pod, now it should recover as soon as a response comes back.

I counted the number of messages where Loop sent another message between 45 and 75 sec - called this repeated pings. (Not a perfect measure, but an easy one.) I then divided by hours in the record to get an estimate of frequency.

There are 2 pods in this report:

They both show symptoms of poor communication, but with the "bug" fixed in the code, this should cause less of a load on your pods. I hope the newer OrangeLink reduces the uncertain comms events and that will help as well.

I went back to an older report from early January

marionbarker commented 8 months ago

@philippfo9 Thank you so much for reporting.

The fixes that you applied with the patch information I sent you were merged into LoopWorkspace dev on 14 Feb 2024.

There is no need for you to rebuild at this time.

Once the new release comes out, this Issue can be closed. But in the meantime, please leave it open as the fix is in dev and not in main (right now).

philippfo9 commented 8 months ago

Hey thanks @marionbarker!

OrangeLink arrived, will try it out soon :)

Just had the following error: 0x34 (reset from unknown cause) after just 36 hours, which might be unrelated.

Attaching the report Loop Report 2024-02-15 23:14:01+01:00.md

marionbarker commented 8 months ago

Well, the good news is the first pod in the log made it to 72.8 hours before getting an 0x12 fault.

Unfortunately, that second pod did fail at 35.8 hours with a 0x34 fault.

I hope the new OrangeLink will help with the comms and stop these faults. I know how intensely annoying it is to get screamers.

Please send me logs again and indicate the time at which you switch to the new OrangeLink. You can switch to the OrangeLink in the middle of a pod, no need to wait.

philippfo9 commented 8 months ago

Yes I agree, it's annoying, especially with the amount of Pods it's hard to justify replacements for social insurance.

Anyway, I just had the same issue again, the pod is running a total of ~44 hours with a 0x34 fault.

Just bought AAA batteries today for the OrangeLink and making the switch now, wish me luck! Reporting back here in around 24-48 hours :)

philippfo9 commented 8 months ago

@marionbarker with OrangeLink, 3 days in and still running.

Report: Loop Report 2024-02-20 21:57:35+01:00.md

github-actions[bot] commented 7 months ago

This issue is stale because it has been open for 30 days with no activity.

marionbarker commented 7 months ago

Bump. Fixed in dev. Leave open until released.

github-actions[bot] commented 6 months ago

This issue is stale because it has been open for 30 days with no activity.

marionbarker commented 6 months ago

Bump

marionbarker commented 2 months ago

This is solved in main and dev. This issue can be closed.