Alarms, alerts and NACKs¶
How the pump reports trouble and refuses commands.
Alarm, alert and notice bits (pumpStatus)¶
| Bytes | Field |
|---|---|
| 2–3 | alarmNotificationBits (u16) — alarms stop delivery |
| 4–5 | alertNotificationBits (u16) — alerts are warnings |
| 6–7 | firstReportedAlarmInfoCode (u16) — the numeric suffix of the active alarm's display id |
| 82–83 | noticeBitfield (u16) — informational notices |
| 90 | alarmResetSupported — 1 while a resettable alarm is active |
| 91 | notificationAudioBitField — what the pump is sounding: 0x01 alert, 0x02 urgent alert, 0x04 alarm |
Bit numbers are the pump's own numbering (not sequential: notice bit 2, for example, is unused). Each
bit has a working name, and its Twiist title and display id. Raised live on the bench so far: alarm bits 6 baseDetached (cassette removed
while delivering; a removal with basal stopped raises nothing) and 8 occlusion; alert bits 0
reattachCassette, 3 bolusStopped, 4 noRemoteInterface (raised when the walk-away timeout 0x8007 ran out
with the phone out of contact; basal kept running) and 6 pumpIdle (raised 15:00 after delivery stopped with the idle
duration 0x8000 set to 15 min); notice bits 1 timeOffsetChanged and 4 utcTimeChanged.
| Bit | Alarm (bytes 2–3) | Alert (bytes 4–5) | Notice (bytes 82–83) |
|---|---|---|---|
| 0 | batteryDepleted Pump Battery Empty |
reattachCassette Reattach Cassette |
batteryLow Pump Battery Low |
| 1 | pumpFaultPossibleVolumeEffect Pump Error |
lowInsulin Cassette Low |
timeOffsetChanged System Time Updated |
| 2 | baseFaultPossibleVolumeEffect Cassette Error |
lowBattery Pump Battery Low |
— |
| 3 | spuriousReset Pump Error |
bolusStopped Interrupted Bolus |
primeMaxVolumeReached Prime Stopped |
| 4 | pumpFaultVolumeUnaffected Pump Error |
noRemoteInterface Communication Restored |
utcTimeChanged System Time Updated |
| 5 | baseFaultVolumeUnaffected Cassette Error |
checkPumpAndCassette Check Pump and Cassette |
obbProgramTimeout Bolus Programming Canceled |
| 6 | baseDetached Cassette Not Attached |
pumpIdle Pump Inactive |
obbProgramLimitExceeded Bolus Programming Canceled |
| 7 | noInsulin Cassette Empty |
— | obbButtonPressedDuringPlayback Bolus Programming Canceled |
| 8 | occlusion Line Blocked |
— | obbConfirmationTimeout Bolus Programming Canceled |
| 9 | — | — | obbCanceled Bolus Programming Canceled |
| 10 | — | openLoopTempBasalStopped Temporary Basal Stopped |
loopDisabledSensorWarmup Loop is Waiting |
| 11 | — | — | loopIsOff Loop is Off |
| 12 | — | — | cassetteChangeReminder Cassette Change Reminder |
| 13 | — | — | checkGlucoseReminder Timer Expired |
| 14 | — | — | primeTubingStopped Prime Stopped |
| Display id | 10<bit>-<info code>, info code = bytes 6–7 in decimal (106-9411, 108-6100) |
409-<bit as 4 digits> (409-0006) |
509-<bit as 4 digits> (509-0004) |
Every alarm carries the same message:
Disconnect the tubing from your infusion site.
Insulin delivery has been suspended.
Follow on-screen instructions for alarm recovery.
TwiistOff renders an alarm, alert or notice as <display id> <Title>, e.g. 106-9411 Cassette Not
Attached, 409-0006 Pump Inactive, 509-0004 System Time Updated. The same display ids appear in
the pump-log alarm / alert / notice records (History and log records).
Clear alerts with clearPumpAlert 0x0400 and notices with clearPumpNotice 0x0402 (therapy number +
bit mask).
Live behaviour (measured)¶
baseDetached: the pump enters cassette-change mode by itself, stops basal, sets byte 90 = 1. It was silent for exactly 10 minutes, then byte 91 went 0 → 4 and it sounded (repeating pattern). Whether that delay is fixed is TBD.occlusion: ~50 s after a bolus into a blocked line; came withbolusStopped; same pump state as a removal (cassette-change mode, byte 90 = 1).- Alarm and
pumpIdlealert can coexist in one frame. - Recovery from either alarm: Setup and recovery §6.2.
NACK frames¶
A refusal arrives as opcode 0xFF80 with a 26-byte payload, little-endian:
risCommand(1) | risSubcommand(1) | nackCode(u16) | nextValidTherapyNumber(u16)
| debugValue1..4 (4 × u32) | fileNumber(u16) | lineNumber(u16)
- The NACK echoes the request's
seq; match it to its request byseqand the opcode it names. nextValidTherapyNumber(bytes 4–5) is the number the pump will accept next. Every refused therapy-number-bearing command rotates it. Bytes 2–3 are the NACK code — reading those as the next number poisons the chain (the next command fails0x13F4).fileNumber/lineNumberfingerprint the refusal site in the pump firmware; log them.- Debug values: at the bolus range check
debugValue1= the offending value anddebugValue3= the limit (e.g. 2560 vs 600 = 25.60 U against a 6.00 U max bolus). Other sites are TBD.
NACK codes¶
nackCode values are explicit (not declaration order). Unlisted values in or outside
0x13EC…0x1409 have no case: treat them as UNKNOWN(raw) and a generic failure.
| Raw | Case | Meaning | What to do |
|---|---|---|---|
0x13EC |
NackTimeout |
pump-side timeout | one retry after fresh status at most |
0x13ED |
NackBadSequence |
measured meaning: "not valid in this state / at this step" — delivery on an unconfigured pump, a second temp basal while one runs, a fill in cassette-change mode before a reboot, alarmReset with no alarm |
fix the state (configure, cancel, reboot …); re-syncing does not help |
0x13EE |
NackRangeCheckFailed |
an argument is outside a pump-side limit (debug values carry value and limit) | fix the value; it is not the delivery gate |
0x13F2 |
NackBusy |
pump busy | bounded back-off, then retry |
0x13F3 |
NackActionAlreadyAcked |
already acknowledged | treat as success; do not retry |
0x13F4 |
NackRejectTherapyNumber |
wrong / stale therapy number | re-seed from the NACK (bytes 4–5) |
0x13F5 |
NackDuplicateTherapyNumber |
therapy number already used | refresh; resend only if the action was not applied |
0x13F7 |
NackInFailSafeMode |
pump in fail-safe — seen on startBasal after a cassette was removed while delivering and put back |
never retry; recover through a reboot |
0x13F8 |
NackDataHasBadCRC |
payload / record CRC mismatch | fix the encoding |
0x13FB |
NackRISInvalidCmdOrSub |
command not valid for this mode / version — seen for 0x0E00 |
do not retry that command |
0x13FC |
NackLogIDOutOfRange |
log id outside the valid window | clamp to the status counters |
0x13FD |
NackEventNotCreated |
event not created yet | treat as absent |
0x13FE |
NackEventErased |
event erased | skip |
0x13FF |
NackEventWrapped |
event wrapped out of the ring | skip; re-read the window |
0x1401 |
NackEventCrcBad |
stored record CRC bad | skip the record |
0x1402 |
NackUnknownLogError |
unspecified log error | retry once |
0x1403 |
NackInvalidMsgLength |
wrong payload length — the usual sign a therapy-numbered command went out without its number | fix the length |
0x1406 |
NackCrc32Mismatch |
CRC-32 mismatch (image transfer) | — |
0x1407 |
NackFlashBlockOperationFailed |
flash operation failed | — |
0x1408 |
NackBatterySoCTooLow |
battery too low for the operation | charge first |
0x1409 |
NackAppImageProblem |
application image problem | — |
The retry guidance is engineering judgement, not manufacturer behaviour. Treat 0x13F3 as success.
Refusals measured on the bench¶
| Ask | Answer |
|---|---|
| Bolus above the configured max | 0x13EE, with the requested amount and the limit in the debug values |
| Absolute temp basal 0.01–0.09 U/h or above the configured max basal, or duration < 30 / > 1440 min | 0x13EE, with the rate and the max basal in the debug values |
| Second temp basal while one runs (either form) | 0x13ED — cancel first |
Delivery on an unconfigured pump (configurationState 0) |
0x13ED |
| Fill in cassette-change mode before a reboot | 0x13ED |
alarmReset with no resettable alarm (byte 90 = 0) |
0x13ED, no reboot |
startBasal after a cassette removal while delivering, reattached, no reboot |
0x13F7 |
0x0E00 acknowledge notification audio |
0x13FB |
alarmReset / silenceAlarms with an empty payload |
0x1403 |