Skip to content

Command 13 Extra Basal

Pete Schwamb edited this page Mar 29, 2018 · 86 revisions

The 0x13 command is a follow-on command of 0x1A for Basal schedule.

The generic format of the 0x13 basal schedule follow-on command format is:

13 LL 40 MM NNNN XXXXXXXX YYYY ZZZZZZZZ ... CCCC

  • LL = length of command
  • 40 = Always this value
  • MM = ? (Possibly schedule entry index. [0 .. number_of_schedule_entries - 1])
  • NNNN = Remaining insulin to deliver for current entry, in terms of # of pulses * 10
  • XXXXXXXX = Delay until next pulse, expressed in counts of 100kHz timer.
  • YYYY = Total insulin for this schedule entry, in terms of # of pulses * 10
  • ZZZZZZZZ = Delay between pulses, expressed in counts of a 100kHz timer. Example: 3.0U/hr = 60 pulses per hour = 60s between pulses = 6000000 counts = 0x5b8d80
  • CCCC = Checksum

Another set of YYYY ZZZZZZZZ fields are added with each additional entry in the schedule

Examples

0.05 U/hr for 24 hours

                    13 LL 40 MM NNNN XXXXXXXX YYYY ZZZZZZZZ CCCC
2018-03-09T21:47:44 13 0e 40 00 0017 01036640 00f0 15752a00 8269
2018-03-09T21:52:31 13 0e 40 00 0016 055d4a80 00f0 15752a00 01e3
2018-03-09T22:04:07 13 0e 40 00 0014 06dac2c0 00f0 15752a00 824b
2018-03-09T22:23:32 13 0e 40 00 0011 01ba8140 00f0 15752a00 80ac
2018-03-09T22:47:44 13 0e 40 00 000d 0112a880 00f0 15752a00 0017
2018-03-09T23:13:28 13 0e 40 00 0008 1054e880 00f0 15752a00 00ec
2018-03-09T23:20:01 13 0e 40 00 0007 0e4e1c00 00f0 15752a00 80e1
2018-03-24T00:48:35 13 0e 40 00 00e8 13ab6680 00f0 15752a00 81e6

3.0U/hr - 24 hours

                    13 LL 40 MM NNNN XXXXXXXX YYYY ZZZZZZZZ CCCC
2018-03-10T12:31:07 13 0e 40 00 1aea 001e8480 3840 005b8d80 83d1
2018-03-10T22:03:09 13 0e 40 00 0492 000f4240 3840 005b8d80 80af
2018-03-10T22:08:03 13 0e 40 00 0461 001e8480 3840 005b8d80 8123
2018-03-10T22:27:39 13 0e 40 00 039d 000f4240 3840 005b8d80 8347
2018-03-24T00:50:25 13 0e 40 00 3649 002dc6c0 3840 005b8d80 83f9
2018-03-24T11:01:12 13 0e 40 00 1e6d 005b8d80 3840 005b8d80 024f
2018-03-24T17:44:23 13 0e 40 00 0eae 001e8480 3840 005b8d80 0126
2018-03-24T17:48:23 13 0e 40 00 0e86 001e8480 3840 005b8d80 017d
2018-03-24T17:54:38 13 0e 40 00 0e47 004c4b40 3840 005b8d80 037c

29.95U/hr for 24 hours

                    13 LL 40 MM NNNN XXXXXXXX YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ CCCC
2018-03-29T10:25:58 13 1a 40 00 01bb 00056ce1 f5af 00092ba9 f5af 00092ba9 4632 00092ba9 8323
2018-03-29T10:30:13 13 1a 40 00 0013 0002bf09 f5af 00092ba9 f5af 00092ba9 4632 00092ba9 0200

30U/hr for 24 hours

                    13 LL 40 MM NNNN XXXXXXXX YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ CCCC
2018-03-24T17:38:27 13 1a 40 01 4ec5 000927c0 f618 000927c0 f618 000927c0 4650 000927c0 8025
2018-03-24T17:46:38 13 1a 40 01 4b95 00030d40 f618 000927c0 f618 000927c0 4650 000927c0 035e
2018-03-24T17:52:25 13 1a 40 01 4954 00061a80 f618 000927c0 f618 000927c0 4650 000927c0 81e5
2018-03-29T10:21:51 13 1a 40 00 0357 000927c0 f618 000927c0 f618 000927c0 4650 000927c0 011a
2018-03-29T10:28:38 13 1a 40 00 00af 000927c0 f618 000927c0 f618 000927c0 4650 000927c0 02fa
2018-03-29T10:31:35 13 1a 40 01 f5a2 00061a80 f618 000927c0 f618 000927c0 4650 000927c0 81bd

3.0U/hr for 1 hour, 0.05U/hr for 23 hours

                    13 LL 40 MM NNNN XXXXXXXX YYYY ZZZZZZZZ YYYY ZZZZZZZZ CCCC
2018-03-24T01:24:37 13 14 40 01 00e2 138ce200 0258 005b8d80 00e6 15752a00 808f
2018-03-24T01:34:22 13 14 40 01 00e1 0623a7c0 0258 005b8d80 00e6 15752a00 01df

0.05U/hr for 1 hour, 3U/hr for 23 hours

                    13 LL 40 MM NNNN XXXXXXXX YYYY ZZZZZZZZ YYYY ZZZZZZZZ CCCC
2018-03-24T01:32:07 13 14 40 01 34a8 003d0900 000a 15752a00 35e8 005b8d80 027a

3.0U/hr for 1 hour, 0.1 for 1 hour, 0.05U/hr for 22 hours

                    13 LL 40 MM NNNN XXXXXXXX YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ CCCC
2018-03-24T09:59:51 13 1a 40 02 008d 00d59f80 0258 005b8d80 0014 0aba9500 00dc 15752a00 0168

3.0U/hr for 1 hour, 0.1 for 1 hour, 0.05U/hr for 21 hours, 3.0U/hr for 1 hour

                    13 LL 40 MM NNNN XXXXXXXX YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ CCCC
2018-03-24T10:05:42 13 20 40 02 0082 016e3600 0258 005b8d80 0014 0aba9500 00d2 15752a00 0258 005b8d80 0208

1 hour each: 0.05, 0.10, 0.15, 0.20, 0.25, 0.30, 0.35, 0.40, 0.45, 0.50, 0.55, 0.60, 0.65, 0.70, then 0.05 from 2pm to 12am

                    13 LL 40 MM NNNN XXXXXXXX YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ CCCC
                                                   0.05          0.10          0.15          0.20          0.25          0.30          0.35          0.40          0.45          0.50          0.55          0.60          0.65          0.70          0.05              
2018-03-29T11:50:34 13 62 40 0b 0014 01406f40 000a 15752a00 0014 0aba9500 001e 07270e00 0028 055d4a80 0032 044aa200 003c 03938700 0046 0310bcdb 0050 02aea540 005a 02625a00 0064 02255100 006e 01f360e8 0078 01c9c380 0082 01a68d13 008c 01885e6d 0064 15752a00 8218
Clone this wiki locally