Troubleshooting
Bench hardware only. If anything surprises you during delivery, stop it (STOP buttons, or remove
the pump battery) before you investigate.
For an ordered pass/fail walk of the whole path, run Self-diagnosis. REST-specific
errors and traps are in REST API §7.
Pairing and the session
| Symptom |
Cause / fix |
| Pump not in the scan |
It does not advertise until the physical reset (cassette off, battery out and back in); it can take tens of seconds to appear. Redo the reset, then scan; check Bluetooth permission. On an already-paired pump a ~5 s button hold re-opens advertising. |
| Connect fails |
During pairing: the pairing window closed, or another peer holds the link. Reset again, or unpair the old phone (the pump drops its old bond on a pairing reset). Once bonded: tap Reconnect (it connects to the bonded address, no scan or button needed); check the pump is in range and not connected to another phone. |
| No PIN dialog |
The Bond block / POST /setup/bond starts pairing; the pump's "insufficient authentication" refusal is what triggers it. The PIN is the 6-digit value on the pump label. |
| Bond fails with "peer removed pairing information" |
The pump performed a pairing reset (expected). Remove TwiistOff's old Android bond, then bond again. |
| Registration stage stays blocked |
By design: registration needs the official app. Skip it for an already-registered pump; it never blocks arming once a key is present. |
| Arm fails: "MTU" |
Granted ATT MTU is not 247; reconnect (or POST /mtu?value=247). |
| Arm fails: "handshake not confirmed" |
Wrong key for this unit, a stale link, or new session material: disconnect → connect → arm. Nothing is left armed. |
| The app stops answering while another app is in front or the screen is off; status arrives late, in a burst |
Android paused the app in the background. Menu › Permissions & files: allow Ignore battery optimisation, and check Background use is not restricted (Permissions and files). |
| Commands suddenly unanswered, status still arrives |
The pump rebooted (after alarmReset, or on its own); the old session no longer answers commands. TwiistOff re-arms once on the same link by itself, and once more if a command still goes unanswered; the activity line under the bottom buttons shows it. If commandPath (in GET /pump/state) shows REARM_FAILED, press Reconnect (or POST /setup/reconnect): it re-arms on the same link even when the link is up, and checks the pump answers. |
| A command failed and the phone said why |
The alert names the reason in plain words: a refusal by the pump (with the pump's own message, e.g. "Pump rejected the command. (5101)"), no answer ("it may or may not have run; not resent": check status and History before sending again), or the app holding it back (which condition, and what to do). The same text is in GET /pump/activity. |
Cassette, prime and delivery
| Symptom |
Cause / fix |
| Self-check stuck at 0 % |
The self-test starts when a cassette is attached (no command). Attach it; also check status is arriving (armed). In cassette-change mode a reattach does not start a self-test until the pump reboots. |
| Fill refused |
Must be armed with the self-test at 100 %; the command needs the therapy number. A 0x13ED refusal in cassette-change mode (pumpState bit 0x0400, e.g. after a cassette was pulled) clears only after a reboot (alarmReset while an alarm is up, or a battery change). |
| Prime won't stop |
Stop Prime is one tap (POST /setup/stop-prime). Removing the battery always stops it. |
Verify answers 00 |
The pump's settings differ from the app's record, or the pump is not configured yet (fresh pump: configurationState 0). Write the settings (Settings screens or REST), then verify again. |
startBasal refused 0x13F7 (fail-safe) |
A cassette was removed while delivering. Reattaching is not enough: reboot via alarmReset (allowed while status byte 90 = 1), let the self-test finish, then verify + start basal — no prime needed on the same cassette (Setup and recovery §6.2). |
Bolus refused 0x13EE |
An argument is outside a pump limit — most often the amount above max bolus, or the amount at the wrong byte offset (it is bytes 4–5). The NACK's debug values show the value and the limit. |
A second temp basal refused 0x13ED |
One is already running; cancel (0x8104) first. |
| Delivered reads 0 for a tiny bolus |
Bytes 56–57 track live progress; a 0.10 U bolus finishes between two 5 s pushes. Check lastBolusVolume (bytes 70–71) or the pump log record 0x005B. |
| "Delivered" equals "requested" but no fluid came out |
Delivered follows plunger travel, not flow; check the line. |
Provisioning blob
| Symptom |
Cause / fix |
| Blob write refused ("not armed") |
POST /setup/write-blob needs an armed session; for a pairing-mode write use POST /pump/replacement?unarmed=true. Either way, the write counts only when the pump answers FF 00 and a readback returns the new blob; TwiistOff's framed write is not yet bench-tested. |
| Readback timeout (0 notifications) |
The pump needs the trigger write-without-response to e5332027 (the default on GET /pump/replacement/readback) and MTU 247 (MTU 23 truncates the push). Check bond, notifications and MTU. |