-
Notifications
You must be signed in to change notification settings - Fork 46
Command 17 Bolus extra
The 0x17 command is a follow-on command for the Command 0x1A Table 2 case to deliver a normal or an extended bolus.
The PDM sends message 0x17 to the POD after the insulin schedule 0x1A message for the Table 2 (bolus) case. Unlike 0x1A, this command is not repeated, so presumably, this message either contains non-vital information or is duplicated in part in the 0x1A message. This command comes in a short form and a long form. The short form is used for a normal (immediate) bolus and its purpose is unknown. The long form is used for an extended (combo) bolus and presumably will contain details on the immediate and delayed bolus portion.
17 FF SS CCCC DDDD EEEE
Command format:
- byte
17
: The mtype. - FF:
0D
or10
. The length for the short form or long form. (Short form is used for immediate bolus, and long for combo bolus.) - SS: byte
3C
or7C
: 3C looks like sync word, 7C is unknown - CCCC: Checksum? It Gives a 10x UnitRate x 0,05
- DDDD: unknown, but this bitstream appears for all immediate boluses
- EEEE: unknown
17 FF SS CCCC DDDD EEEE
17 0d 3c 0190 0003 0d40
17 0d 3c 0190 0003 0d40
17 0d 3c 0190 0003 0d40
17 0d 3c 0190 0003 0d40
$0190 = 400 x 0,05 = 20 (= same sort of checksum used for 0140 which is also 10xUnitRate)
17 FF SS CCCC DDDD EEEE
17 0d 3c 00c8 0003 0d40
$00c8 = 200 x 0,05 = 10
17 FF SS CCCC DDDD EEEE
17 0d 3c 0064 0003 0d40
$0064 = 100 decimal
17 FF SS CCCC DDDD EEEE
17 0d 00 0064 0001 86a0000000000000