You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a know issue with the x22 pumps. @jlucasvt has started documenting the time-voltage curve for a lithium battery. I'm hoping someone can do the same for an alkaline as well.
@jlucasvt my personal recommendation would be to expose a voltage-to-percentage remaining function on the PumpModel enum in MinimedKit, in the rileylink_ios repo.
Yes if we use the linear eq's it should be pretty simple. I I did do a quick run with excel to generate a 4th Ord Polynomial Eq for both but they may be a bit overboard..
I agree with you nate, ideally - but if its tricky to detect in software, you have to realize its a switch that will be used very rarely. I would rather time be spent on other things and there be a switch.
We could certainly make is a 3-way selection: unspecified, alkaline, or lithium. If unspecified (default) we use an average decay curve that does something reasonable for both. If specified, we can be more accurate...
I have rebuilt the UI to allow selection of Alkaline or Lithium and a description explaining the difference for the user. I've made all the requested changes from my last PR and hopefully it will be accepted this time. Here is the current source it's based on dev 1.1.1
This is working... One minor note though is that in practice with normal Duracell (alkalines) my battery has lasted 30-40% (ballpark) longer than loop's current algorithm predicts. I have had it warm me for 0% and the pump still had 2/4 bars on the battery meter.
Activity
loudnate commentedon Aug 31, 2016
This is a know issue with the x22 pumps. @jlucasvt has started documenting the time-voltage curve for a lithium battery. I'm hoping someone can do the same for an alkaline as well.
ashrind commentedon Aug 31, 2016
@loudnate Thanks for the answer!
jlucasvt commentedon Sep 6, 2016
I'm finally committed to gathering Alkaline data. Should have it mapped out in about a week.
tomasboudr commentedon Sep 20, 2016
Awesome that this is getting some love! Always wondered why the battery was blank since you could see the voltage in pump status on a x22.
jlucasvt commentedon Sep 24, 2016
Alkaline and Lithium Battery data.
https://docs.google.com/spreadsheets/d/19FpO5YO5ewQrdph_4iIXuear6xRGzl-AYTiFeHwPcVk/edit?usp=sharing
loudnate commentedon Sep 24, 2016
Very awesome!
loudnate commentedon Sep 24, 2016
@jlucasvt my personal recommendation would be to expose a voltage-to-percentage remaining function on the PumpModel enum in MinimedKit, in the rileylink_ios repo.
jlucasvt commentedon Sep 25, 2016
Yes if we use the linear eq's it should be pretty simple. I I did do a quick run with excel to generate a 4th Ord Polynomial Eq for both but they may be a bit overboard..
loudnate commentedon Sep 25, 2016
Ideally there is no user setting for choosing their battery type.
tomasboudr commentedon Sep 27, 2016
I agree with you nate, ideally - but if its tricky to detect in software, you have to realize its a switch that will be used very rarely. I would rather time be spent on other things and there be a switch.
jlucasvt commentedon Sep 27, 2016
Yeah , My one touch ping made you choose on battery swap (ALK or LITH). It will be ideal to not worry about the battery type.
In the past I wired this up in the DeviceDataManager.assertCurrentPumpData just after battery state is retrieved and before NSUpload.
I am going to start here and and then will need some guidance on the next steps
scottleibrand commentedon Sep 27, 2016
We could certainly make is a 3-way selection: unspecified, alkaline, or lithium. If unspecified (default) we use an average decay curve that does something reasonable for both. If specified, we can be more accurate...
x22 Battery Status Initial Code
Commit Battery is Lithium switch Added LoopKit#141
jlucasvt commentedon Oct 23, 2016
Updated to latest v1.1 Loop Code Testing this week and will do a PR.
https://github.com/jlucasvt/Loop/tree/master-1.1-x22BatteryStatus
Update text on switch for LoopKit#141
jlucasvt commentedon Oct 24, 2016
Doing some testing now with battery and alerts. It's working pretty good.
x22 Battery Inidication
Lithium Enable Switch
tomasboudr commentedon Oct 24, 2016
That looks good! Nice work.
ashrind commentedon Oct 24, 2016
This is awesome!
Add Logic to Hide Battery is Lithium Switch for Sentry Pumps
Descriptions and Syntax Corrections LoopKit#141
jlucasvt commentedon Nov 15, 2016
I have rebuilt the UI to allow selection of Alkaline or Lithium and a description explaining the difference for the user. I've made all the requested changes from my last PR and hopefully it will be accepted this time. Here is the current source it's based on dev 1.1.1
https://github.com/jlucasvt/Loop/tree/dev-1.1.1-x22BatteryStatus
ps2 commentedon Nov 22, 2016
More lithium battery history:

tomasboudr commentedon Jan 16, 2017
This is working... One minor note though is that in practice with normal Duracell (alkalines) my battery has lasted 30-40% (ballpark) longer than loop's current algorithm predicts. I have had it warm me for 0% and the pump still had 2/4 bars on the battery meter.
[LOOP-1301] Confirm temp target action on watch (#141)