Skip to content

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

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
2 Security Hotspots

See analysis details on SonarQube Cloud

@MilosKozak
Copy link
Contributor

what about this PR?

@tdrkDev
Copy link
Contributor Author

tdrkDev commented Oct 14, 2025

Still under testing and development, I'll clean up commit history and upload new ones soon.
Most of the firmware versions were tested, general functionality is fine. Currently the only critical bug is that AAPS may hang randomly, cause of messy BT protocol related code, I'm refactoring it.
I have some agreements with the distributor on the AAPS pump plugin, I'll mark PR as ready for review when it'll be OK to merge in terms of stability and aforementioned agreements.

@qq254344379
Copy link

Hello, is this currently under development?

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.

4 participants