Skip to content

[WIP] Apex TruCare III insulin pump driver #3896

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 31 commits into
base: dev
Choose a base branch
from

Conversation

tdrkDev
Copy link
Contributor

@tdrkDev tdrkDev commented Mar 20, 2025

Add Apex TruCare III insulin pump support.

Current issues:

  • Pump connection is unstable, sometimes pump may reconnect 2-3 times in a row until it succeeds
  • 6.27 firmware support is untested
  • There are pumps with 6.22 firmware, I'm not sure they have 4.10 protocol version.

Pump protocol was reverse-engineered using BLE dumps and some minimal info from the official app's symbols (the code is not possible to be reverse-engineered, unfortunately).

Pump isn't able to do standard boluses while extended bolus is running, so I'm not sure is it good to implement such extended bolus functionality. Also, in extended bolus history records, pump doesn't report the duration of extended boluses.

Pump doesn't support doing standard boluses while extended bolus is running. I don't see a reason to implement such extended bolus functionality.
Some pumps have configurable max bolus and max basal values, but SafetyPlugin didn't respect that. This change fixes this issue.
Pump may report battery percentage like 75 - 50 - 75%, what creates incorrect pump battery change entry
@MilosKozak
Copy link
Contributor

Extended boluses are not needed. Exclude them from pump capabilities and put driver in error state when running EB is detected

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
2 Security Hotspots

See analysis details on SonarQube Cloud

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.

3 participants