Repository navigation
Releases
Version 0.2.0: tested firmware, fail-closed battery change — 2026-12-04 (v0.2.0)
Bench hardware only, never a person.
Tested pump firmware. TwiistOff is tested on one pump firmware only: RIS messages 13.76, events 14.32. A pump
on older or newer firmware may behave differently, and that could break TwiistOff in ways it cannot detect. New pumps
may ship on older firmware, which the manufacturer's app updates when it pairs the pump; TwiistOff does not update pump
firmware. On any other firmware TwiistOff now shows an untested pump firmware warning (a banner, Monitor, Pump
tools, and firmwareWarning in GET /status, GET /pump/ready and GET /pump/state). It blocks nothing and status
reads stay open.
What changed since the first release:
- Battery change fails closed. Below RIS messages 13.54 the battery-change wizard, the Pump tools button and
POST /pump/battery-changerefuse, and nothing is sent in its place. Settings writes below a command's minimum are
skipped and say so. - Delivery limits on a delivering pump. TwiistOff never sends the delivery-limits write while basal runs (the pump
refuses it then). An unchanged limits setting is left alone; a change goes through the new Change delivery limits
wizard (stop basal, write, verify, start basal), also asPOST /settings/write-limits. - "Unwritten" follows the pump. The app keeps the value the pump last confirmed for each setting, so importing
those values marks nothing, and a verify01clears the settings it proves. - Basal running is read from the pump's therapy state, so a pattern with a 0.00 U/h slot no longer reads as
stopped. - Reconnect fixes. A fresh install without location permission no longer refuses every reconnect (a direct connect
to the bonded pump needs only the connect permission), and Disconnect no longer leaves the status saying CONNECTED
with the link down. A clean link loss of 16 or 30 minutes reconnects by itself, with no scan. - Answered pushes hold. A packet-number fix keeps the link up while the app answers every status push; checked for
150 minutes on the bench. - Permissions & files. Menu › Permissions & files lists Bluetooth, Notifications, Ignore battery optimisation,
Background use and Alarms & reminders, each with a button that fixes it, plus a prompt at first start and
GET /permissions. The app keeps a data folder: a daily app log (14 days) and every export, readable over
GET /files. - Docs. A Tested firmware section in What a Driver Needs; the command catalogue and REST reference say which
commands TwiistOff holds back below a minimum firmware; the status page is current to 2026-12-04. Real looping
drivers now covers the AndroidAPS driver only (in progress, delivery locked, not ready to loop).
First release — 2026-12-03 (v0.1.0)
Bench hardware only, never a person.
TwiistOff's first release under its own app id, com.infusionset.twiistoff. TwiistOff is a bench app and REST
bridge for the twiist insulin pump, with documentation written for driver authors.
What it does:
- Scans, connects and bonds with the label PIN, and arms the encrypted session with your pump's key. A bonded phone
reconnects straight to the pump, with no scan and no button press. - Shows a live pump model with a "can deliver / is delivering" check, and greys out the commands the pump would refuse
in its current state, with the reason. - Delivers on a bench: basal, bolus with STOP, temp basal, fill and prime. Each therapy command is sent once and its
reply matched; nothing is resent blindly. A bolus under the pump's smallest (0.05 U) is refused before it is sent. - Recovers after a pump restart: re-arms once, proves commands get through with a read-only check, and walks the common
states (cassette change, alarms, a rebooted pump) in step-by-step wizards. - Shows every alarm, alert and notice with its twiist code and title, and says in plain words why a command failed.
An activity line under the navigation shows the command running and the last result. - Configures, edits, verifies, exports and imports the pump's 20 settings; reads the pump's own log.
- Exposes everything over a loopback REST bridge in debug builds, for scripts and agents.
Docs: the documentation site covers using the app, the protocol for
driver authors (What a Driver Needs), and the state of the real looping drivers for AndroidAPS, Loop and Trio. None of
the drivers is ready to loop.
Known issues:
- "Configure pump" and "rewrite all" report one failure on a delivering pump, because the pump refuses the
delivery-limits write while basal runs. The other settings are written and verify still answers01. To change the
delivery limits: stop basal, write the delivery-limits setting, verify, resume basal. - After a settings import, the Settings page marks every setting as unwritten even when verify answers
01.
Download: TwiistOff-0.1.0.apk below (debug build, with the REST bridge). See
build and install for the signing-key caveat.
Tests: all 347 unit tests pass.