nightscout / Trio

Trio - an automated insulin delivery system for iOS based on the OpenAPS algorithm with adaptations.
https://docs.diy-trio.org/en/latest/
MIT License
95 stars 485 forks source link

Medtronic Pump connection maxBolus mismatch #8

Closed marionbarker closed 6 months ago

marionbarker commented 7 months ago

Issue

This may have been operator error but I was not able to modify settings on iAPS to lower the maxBolus value in the app to connect to a Medtronic pump. I had to modify the pump maxBolus to enable the connection.

Configuration:

Steps:

bjornoleh commented 7 months ago

Thanks for testing. Is this different from the behaviour in Loop main or dev? We have not updated /Dependencies in a while, and might be lagging behind LoopWorkspace main.

If you have a chance, could you please make the same test with this branch?

https://github.com/nightscout/Open-iAPS/tree/loopkit_main_dependencies

Here, all LoopKit dependencies are up to date with LoopWorkspace main 81a3d9b

bjornoleh commented 7 months ago

It seems like there were only localisations that differed for MinimedKit and rileyling_ios. Hence, I would not expect any differences. There might have been changes in the submodules that are currently used for LoopWorkspace dev. We are looking into updating these as well.

marionbarker commented 7 months ago

I had no problem connecting this same pump with Loop so long as the Therapy Settings for Delivery Limits were the same as or smaller than the Delivery Limits set inside the pump. (I did many tests while updating LoopDocs.)

This pump has been connected to Loop as a test pump at various times over more than a year so has gone through many versions up to current dev.

I believe the problem is in Open-iAPS:

I'm wondering if the value is stored at two levels - one the preferences level and one the pump manager (or equivalent) level and if a real pump is not already attached, then modifying the values in preferences does not update the value that will be used when connecting to a pump.

marionbarker commented 7 months ago

Solved

This problem was fixed with branch loopkit_dev_dependencies.

Test Steps

Configuration:

Other notes:

marionbarker commented 7 months ago

I will close this Issue as soon as the fix is incorporated into main and I repeat the successful text.

marionbarker commented 6 months ago

I will repeat this test for alpha now that we are using submodules.

marionbarker commented 6 months ago

Completed

This issue can be closed. With a new app, values were successfully modified from the defaults and used when connecting to an MDT pump.

Configuration:

Steps:

While I'm here, confirm https://github.com/LoopKit/Loop/issues/2137 is fixed (it should be because MinimedKit has been updated). Success: