Skip to content

Command 19 Configure Alerts

Joe Moran edited this page Jun 17, 2018 · 27 revisions

Command 19 is sent from the PDM during initial setup, it stops normally scheduled basal (aka Suspend). This command can also follow a Command-1F-Cancel-Request, when the user issues a suspend.

19 LL NNNNNNNN IXXX YYYY ZZZZ [IXXX YYYY ZZZZ]...

  • LL = Length of command
  • NNNNNNNN (4 bytes) = Nonce
  • IXXX (2 bytes) = iiiiabcx xxxxxxxx where iiii is the table index (0..7) and the a, b and c are control bits. x xxxxxxxx is a 9 bit value that gets multiplied by 60 and then stored. Possibly a countdown timer.
  • YYYY (2 bytes) = 14 bit value. If bit b is set this value is doubled and must not exceed 1000 (dec) (after doubling). If b is not set, this value must not exceed 4800 (dec).
  • ZZZZ (2 bytes) = 12 bit value. Usage unclear. Buzzer duration?

The three-word entries can be repeated an arbitrary number of times (to set different tables), but typically there is just one entry.

Example messages, showing the mtype/mlen, the nonce, and the three words. Examples can be found at Pod setup with known Lot and TID, Pairing 02 and Pairing 03. The initialization sequence typically sends command 19 three times, for indices 4, 7 and 3. Different initialization sequences are very similar, but can differ in word 2.

19 LL NNNNNNNN IXXX YYYY ZZZZ
19 0a 8c61ee59 4c00 00c8 0102
19 0a c0256620 7837 0005 0802
19 0a acf076ca 3800 10a4 0302
19 0a b83db892 4c00 0064 0102
19 0a d14d9c49 7837 0005 0802
19 0a fddb8e55 3800 0ff0 0302
19 0a c8a1e987 4c00 00c8 0102
19 0a e3955e60 7837 0005 0802
19 0a b76fae1a 3800 10a4 0302

During pairing

Command 19 also occurs during pairing, with $16 as the length byte. A couple of examples:

After address assignment:

19 LL NNNNNNNN IXXX YYYY ZZZZ
19 0a ae01a66c 4c00 0064 0102
19 0a 305a108b 7837 0005 0802

After prime:

19 LL NNNNNNNN IXXX YYYY ZZZZ
19 0a 365deab7 3800 0ff0 0302

After set basal schedule:

19 LL NNNNNNNN IXXX YYYY ZZZZ IXXX YYYY ZZZZ IXXX YYYY ZZZZ
19 16 ba952b8b 79a4 10df 0502 2800 1283 0602 020f 0000 0202

And a couple more from other pairing sessions after the set basal schedule:

19 LL NNNNNNNN IXXX YYYY ZZZZ IXXX YYYY ZZZZ IXXX YYYY ZZZZ
19 16 4aa23e25 79a4 10df 0502 2800 1283 0602 020f 0000 0202
19 16 feb6268b 79a4 10de 0502 2800 1282 0602 020f 0000 0202

Set Low Reservoir Alert (Lytrix) (1HR standard)

Set Low Reservoir Alert (Lytrix)

19 LL NNNNNNNN IXXX YYYY ZZZZ
19 0a 76305e3b 4c00 0064 0102 // 10U 
19 0a 84e4ce3d 4c00 0096 0102 // 15U
19 0a 25ceba2b 4c00 00c8 0102 // 20U
19 0a 260744b0 4c00 00fa 0102 // 25U
19 0a 483d195a 4c00 012c 0102 // 30U
19 0a 701a7f18 4c00 015e 0102 // 35U
19 0a c70532a2 4c00 0190 0102 // 40U
19 0a 29363c0a 4c00 01c2 0102 // 45U
19 0a df72f66d 4c00 01f4 0102 // 50U

Set Pod Expiration Alert ((10 Units standard)

Set-Pod-Expiration-Alert-(Lytrix)

19 LL NNNNNNNN IXXX YYYY ZZZZ
19 0a 997f9642 3800 10a0 0302 // 01H
19 0a 9d18848d 3800 1065 0302 // 02H
19 0a 681a38bc 3800 1029 0302 // 03H
19 0a cd665f5c 3800 0fed 0302 // 04H
19 0a 13ae006c 3800 0fb1 0302 // 05H
19 0a 71fcc666 3800 0f75 0302 // 06H
19 0a f3a41f97 3800 0f39 0302 // 07H
19 0a 0cde7b40 3800 0efd 0302 // 08H
19 0a 9d827ce7 3800 0ec1 0302 // 09H
19 0a 5c67daba 3800 0e85 0302 // 10H
19 0a 48843a93 3800 0e49 0302 // 11H
19 0a a767d583 3800 0e0d 0302 // 12H
19 0a ea764dd7 3800 0dd1 0302 // 13H
19 0a 15bad026 3800 0d95 0302 // 14H
19 0a 476eaddb 3800 0d59 0302 // 15H
19 0a a7318e50 3800 0d1d 0302 // 16H
19 0a 2935cbc0 3800 0ce1 0302 // 17H
19 0a 6500694d 3800 0ca5 0302 // 18H
19 0a 6012d12a 3800 0c69 0302 // 19H
19 0a ca334fac 3800 0c2d 0302 // 20H
19 0a 3372c7fb 3800 0bf0 0302 // 21H
19 0a 5239fe3f 3800 0bb4 0302 // 22H
19 0a bf4723b3 3800 0b78 0302 // 23H
19 0a 8f266624 3800 0b3c 0302 // 24H
Clone this wiki locally