Skip to content

Status

As of 2026-12-04. One pump unit, off-body, saline bench, pump firmware RIS messages 13.76 / events 14.32.

In one paragraph: everything on the therapy surface a simple ("dumb pump") driver needs โ€” bolus, temp basal, basal, settings, cassette fill and prime, clock, history and alarm recovery โ€” is verified on the bench, given a valid key (LTSS). TwiistOff walks it with a cassette set-up wizard (including a one-run Configure pump of all 20 settings) and recovery wizards. What stops anyone else from driving a brand-new pump is that obtaining that key outside the vendor's registration is not solved, and a provisioning-blob write in the pump's framed format has not yet been run from TwiistOff on the bench.

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 it shows an untested pump firmware warning on the phone and in GET /status, GET /pump/ready, GET /pump/state and GET /pump/conditions; it still reads status. More in What a driver needs.

Tag Meaning
โœ… Verified Exercised live on an off-body saline bench (one pump unit) with the expected result.
๐ŸŸก Partial Works, but the full range / all variants / durable effect is not yet mapped.
๐Ÿงช Identified Opcode and payload shape known; not yet accepted on the bench.
โ›” TBD Not solved. The note says exactly what is missing.

Control surface

Control surface State Notes
Scan + connect + reconnect โœ… Verified BLE and session
Bond (6-digit label PIN, LE Secure Connections Passkey Entry) โœ… Verified BLE and session
Negotiate ATT MTU 247 โœ… Verified required; without it the pump never streams
Arm the AES-CCM session (key supplied by you) โœ… Verified BLE and session
Obtain / provision a key (LTSS) for a pump you own โ›” TBD Headline gap. The key is issued when the vendor registers the pump; there is no owner-usable way to obtain it otherwise yet. Pairing and setup ยง7
Reply matching by seq + opcode; therapy commands sent once (no blind resend) โœ… Verified Crypto and transport
App restart โ†’ automatic reconnect + re-arm of the remembered pump (link set-up only) โœ… Verified after an app update and a force-stop, basal running: armed and CAN DELIVER within ~10 s, verify 01. BLE and session ยง2.2
Pump reboot โ†’ automatic same-link re-arm โ†’ command path proven before therapy โœ… Verified triggered by the e5332023 re-key notification or the status-stream restart. BLE and session ยง2.1
Decode pumpStatus (per-bit pump state, reservoir, battery, self-test, alarms/alerts/notices, basal, temp basal, bolus progress, clock, alarm-reset flag, audio flags) โœ… Verified (most fields) byte 91 decoded as alert / urgent alert / alarm audio. Status fields
Decode loopStatus (27 bytes) and the e5332001 RIS version block โœ… Verified every loopStatus offset known; its middle fields were only ever seen at 0 (loop off). Status fields
Alarm, alert and notice bits: names, Twiist titles and display ids โœ… Mapped every bit mapped; raised live so far: alarms 6 and 8, alerts 0, 3, 4 and 6, notices 1 and 4. Alarms, alerts and NACKs
Extended-bolus status block, configurationState per-bit meaning, closedLoopLocked reason bits (byte 45) โ›” TBD offsets known, meanings not confirmed
Fresh pair โ†’ cassette โ†’ fill โ†’ prime โ†’ configure โ†’ basal โœ… Verified the cassette set-up wizard walks it, with Configure pump (all 20 settings writes) as one step. Setup and recovery ยง6.0โ€“6.1
Cassette removal / occlusion recovery without re-prime โœ… Verified the alarm recovery wizard offers the same-cassette / new-cassette choice. Setup and recovery ยง6.2โ€“6.3
Standard bolus 0x8400 + stop 0x8200 โœ… Verified max bolus is enforced by the pump. Delivery
Temp basal absolute 0x8102 + cancel 0x8104 โœ… Verified 0 or 0.10โ€“22.00 U/h, 30โ€“1440 min
Temp basal percent 0x8101 โœ… Verified 0โ€“200 %; 201 % and above refused 0x13EE
Basal start (0x800F verify โ†’ 0x8100) + stop 0x8103 + resume โœ… Verified
Extended / dual bolus โ›” TBD start path not mapped; only the stop opcode is known
Cannula fill 0x820A โœ… Verified 0.10 U and 0.70 U filled on the bench; the pump caps a fill at 0.70 U. Commands
Stop cannula fill 0x8202 โœ… Verified stopped a 0.70 U fill at 0.11 U; accepted as a no-op when nothing runs
Settings writes (all 20: patterns, delivery limits, insulin model, closed loop, alerts, audio, CGM, loop targets) โœ… Verified one Configure run, or one setting at a time; checked with verifyTherapySettings. While basal runs the pump refuses the delivery-limits write 0x800A (the others land), so TwiistOff does not send it then: an unchanged limits setting is left alone, and a change goes through the Change delivery limits wizard (stop basal, write, verify, start basal). Settings export / import moves the app's copy between phones. Setup and recovery ยง6.0
alarmReset 0x0D00 โœ… Verified restarts the pump; only while a resettable alarm is active
silenceAlarms 0x0700 ๐Ÿงช Identified payload = therapy number only; sent that way by TwiistOff (alarm wizard, Pump tools, /pump/silence) but not yet sent on the bench
0x0E00โ€“0x0E02 acknowledge notification audio unsupported refused by the pump as invalid; TwiistOff never sends them
setMaxBasalRate / setMaxBolus / quiet mode ๐Ÿงช Identified
Battery change keeping the cassette (batteryChange 0x8805) ๐ŸŸก Partial accepted once; the battery-change wizard walks the sequence; pump-side effect TBD. TwiistOff sends it only on RIS messages 13.54 or later; below that it refuses the battery change and sends nothing in its place
Firmware gates (minimum RIS version per command) โœ… Built read from e5332001; below a command's minimum TwiistOff does not send it. Only 13.76 has been run, so the minimums themselves are untested; this unit gates nothing. Command catalogue
Untested-firmware warning โœ… Built any firmware other than RIS messages 13.76 / events 14.32 raises a warning (banner, Monitor, Pump tools, firmwareWarning over REST); it blocks nothing. Tested firmware
setTime 0x800B โœ… Verified
Event-log read (therapy log) + decoding of bolus, alarm/alert/notice, audio, snapshot, settings records โœ… Verified 143 record types catalogued: 65 with a known meaning, 78 not yet understood (mostly engineering log); plus which command writes which record. History
Event-log read (engineering log) โ›” TBD reachable by a hand-built command only; undecoded
Provisioning-blob write ๐Ÿงช Identified write format known (packet numbers + CRC32; a correctly framed write is adopted) and built; TwiistOff's framed write not yet bench-tested. Readback โœ… in full
Provisioning end to end (a TwiistOff-written blob adopted, blob-to-pump binding) โ›” TBD open
Firmware update out of scope not a driver surface

Real looping drivers

Driver State Notes
AndroidAPS In progress; delivery locked not ready to loop; code not public yet

The driver is built to run for bench debugging with your own pump's key (LTSS). What stops anyone else from using it is the key, not the driver: see the provisioning rows above. Real looping drivers has the details.

Open questions (protocol)

Each item is TBD with the one thing that is missing.

  • Obtaining an LTSS. The whole channel is sealed with keys derived from it; a driver consumes one but cannot mint one. Missing: an owner-usable way to provision the key for a pump you own.
  • Blob adoption from TwiistOff. The write format is known and a correctly framed write is adopted, but TwiistOff's framed write has not been run on the bench pump; whether the pump binds its credentials to one unit is unknown. Missing: a TwiistOff write answered FF 00 whose readback matches.
  • Extended / dual bolus start path.
  • silenceAlarms, max basal/bolus setters, quiet mode โ€” bench acceptance and effect.
  • The loopStatus middle fields (notice / alert bits, presets, target override) with the loop on.
  • What batteryChange 0x8805 does on the pump before a battery swap.
  • e5332025 pushes โ€” the pump sends sealed frames there while delivering; contents undecoded.
  • configurationState per-bit map and the closedLoopLocked reason bits (byte 45).
  • 78 pump-log record types with no known meaning yet.
  • The 10-minute alarm silence โ€” an unhandled cassette-removal alarm stayed silent for exactly 10 minutes; whether that is fixed is unknown.
  • Impossible-ask behaviour beyond what is measured (see Alarms, alerts and NACKs).
  • Engineering log contents.
  • Key rotation across a deliberate re-registration (observed unchanged once).
  • Long-run reliability (reconnects, advertising windows, multi-day soak).

Known gaps in the app (not protocol unknowns)

These are understood but not built yet:

  • The raw command routes (/pump/command, /pump/command-token) are not gated by the condition table; they stay the bench escape hatch.