AndroidAPS icon indicating copy to clipboard operation
AndroidAPS copied to clipboard

[WIP] Apex TruCare III insulin pump driver

Open tdrkDev opened this issue 8 months ago • 5 comments

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.

tdrkDev avatar Mar 20 '25 09:03 tdrkDev

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

MilosKozak avatar Mar 20 '25 12:03 MilosKozak

Quality Gate Failed Quality Gate failed

Failed conditions
2 Security Hotspots

See analysis details on SonarQube Cloud

sonarqubecloud[bot] avatar Mar 20 '25 16:03 sonarqubecloud[bot]

what about this PR?

MilosKozak avatar Oct 11 '25 19:10 MilosKozak

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.

tdrkDev avatar Oct 14 '25 13:10 tdrkDev

Hello, is this currently under development?

qq254344379 avatar Oct 15 '25 05:10 qq254344379