-
Notifications
You must be signed in to change notification settings - Fork 46
Command 13 Extra Basal
Joe Moran edited this page Jun 8, 2018
·
86 revisions
The 0x13 command is a follow-on command for the Command 0x1A Table 0 case to set the basal schedule.
The generic format of the 0x13 basal schedule follow-on command format is:
13 LL RR MM NNNN XXXXXXXX YYYY ZZZZZZZZ [YYYY ZZZZZZZZ ...]
-
LL
= length of command -
RR
(1 byte): Reminders 0crrrrrr: c bit ($40) for Confidence Reminder beeps, rrrrrrr # of minutes ($3c = 60 minutes) between Program Reminder beeps; typical values of $00, $3c, $40 and $7c -
MM
= 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
Another set of YYYY ZZZZZZZZ fields are added with each additional entry in the schedule.
13 LL RR MM NNNN XXXXXXXX YYYY ZZZZZZZZ
2018-03-09T21:47:44 13 0e 40 00 0017 01036640 00f0 15752a00
2018-03-09T21:52:31 13 0e 40 00 0016 055d4a80 00f0 15752a00
2018-03-09T22:04:07 13 0e 40 00 0014 06dac2c0 00f0 15752a00
2018-03-09T22:23:32 13 0e 40 00 0011 01ba8140 00f0 15752a00
2018-03-09T22:47:44 13 0e 40 00 000d 0112a880 00f0 15752a00
2018-03-09T23:13:28 13 0e 40 00 0008 1054e880 00f0 15752a00
2018-03-09T23:20:01 13 0e 40 00 0007 0e4e1c00 00f0 15752a00
2018-03-24T00:48:35 13 0e 40 00 00e8 13ab6680 00f0 15752a00
13 LL RR MM NNNN XXXXXXXX YYYY ZZZZZZZZ
2018-03-10T12:31:07 13 0e 40 00 1aea 001e8480 3840 005b8d80
2018-03-10T22:03:09 13 0e 40 00 0492 000f4240 3840 005b8d80
2018-03-10T22:08:03 13 0e 40 00 0461 001e8480 3840 005b8d80
2018-03-10T22:27:39 13 0e 40 00 039d 000f4240 3840 005b8d80
2018-03-24T00:50:25 13 0e 40 00 3649 002dc6c0 3840 005b8d80
2018-03-24T11:01:12 13 0e 40 00 1e6d 005b8d80 3840 005b8d80
2018-03-24T17:44:23 13 0e 40 00 0eae 001e8480 3840 005b8d80
2018-03-24T17:48:23 13 0e 40 00 0e86 001e8480 3840 005b8d80
2018-03-24T17:54:38 13 0e 40 00 0e47 004c4b40 3840 005b8d80
13 LL RR MM NNNN XXXXXXXX YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ
2018-03-29T10:25:58 13 1a 40 00 01bb 00056ce1 f5af 00092ba9 f5af 00092ba9 4632 00092ba9
2018-03-29T10:30:13 13 1a 40 00 0013 0002bf09 f5af 00092ba9 f5af 00092ba9 4632 00092ba9
13 LL RR MM NNNN XXXXXXXX YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ
2018-03-24T17:38:27 13 1a 40 01 4ec5 000927c0 f618 000927c0 f618 000927c0 4650 000927c0
2018-03-24T17:46:38 13 1a 40 01 4b95 00030d40 f618 000927c0 f618 000927c0 4650 000927c0
2018-03-24T17:52:25 13 1a 40 01 4954 00061a80 f618 000927c0 f618 000927c0 4650 000927c0
2018-03-29T10:21:51 13 1a 40 00 0357 000927c0 f618 000927c0 f618 000927c0 4650 000927c0
2018-03-29T10:28:38 13 1a 40 00 00af 000927c0 f618 000927c0 f618 000927c0 4650 000927c0
2018-03-29T10:31:35 13 1a 40 01 f5a2 00061a80 f618 000927c0 f618 000927c0 4650 000927c0
13 LL RR MM NNNN XXXXXXXX YYYY ZZZZZZZZ YYYY ZZZZZZZZ
2018-03-24T01:24:37 13 14 40 01 00e2 138ce200 0258 005b8d80 00e6 15752a00
2018-03-24T01:34:22 13 14 40 01 00e1 0623a7c0 0258 005b8d80 00e6 15752a00
13 LL RR MM NNNN XXXXXXXX YYYY ZZZZZZZZ YYYY ZZZZZZZZ
2018-03-24T01:32:07 13 14 40 01 34a8 003d0900 000a 15752a00 35e8 005b8d80
13 LL RR MM NNNN XXXXXXXX YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ
2018-03-24T09:59:51 13 1a 40 02 008d 00d59f80 0258 005b8d80 0014 0aba9500 00dc 15752a00
13 LL RR MM NNNN XXXXXXXX YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ YYYY ZZZZZZZZ
2018-03-24T10:05:42 13 20 40 02 0082 016e3600 0258 005b8d80 0014 0aba9500 00d2 15752a00 0258 005b8d80
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 RR 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
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