Skip to content

Instantly share code, notes, and snippets.

@ianjorgensen
Created August 7, 2014 22:29
Show Gist options
  • Save ianjorgensen/3e066bfdf573673f1310 to your computer and use it in GitHub Desktop.
Save ianjorgensen/3e066bfdf573673f1310 to your computer and use it in GitHub Desktop.
554 pump
## do stuff with an insulin pump over RF
using ` Namespace(basal=True, clock=True, dryrun=False, init=False, minutes=30, no_postlude=False, no_prelude=False, no_rf_prelude=False, parsed_data=<open file '<stdout>', mode 'w' at 0x7f34233e8150>, port='/dev/ttyUSB0', reservoir=True, serial='913995', status=True, temp=True, verbose=None) `
```
```
```
```
```
```
```
```
```javascript
{'radio': {'errors.crc': 0,
'errors.naks': 0,
'errors.sequence': 0,
'errors.timeouts': 15,
'packets.received': 304L,
'packets.transmit': 320L},
'usb': {'errors.crc': 2,
'errors.naks': 5,
'errors.sequence': 0,
'errors.timeouts': 0,
'packets.received': 582L,
'packets.transmit': 589L}}
```
```
```
### PUMP MODEL: `ReadPumpModel:size[64]:data:'554'`
response: ReadSettings:size[64]:data:{'low_reservoir_warn_point': 30, 'keypad_lock_status': 0, 'maxBasal': 64, 'temp_basal': {'percent': 100, 'type': 'Percent'}, 'paradigm_enabled': 1, 'insulinConcentration': 50, 'audio_bolus_enable': True, 'variable_bolus_enable': False, 'alarm': {'volume': 3, 'mode': 2}, 'rf_enable': False, 'block_enable': False, 'timeformat': 80, 'auto_off_duration_hrs': 0, 'audio_bolus_size': 1.0, 'selected_pattern': 0, 'patterns_enabled': False, 'insulin_action_type': 5, 'maxBolus': 0.0, 'low_reservoir_warn_type': 0}
hexdump:
```python
0000 0x00 0x03 0x01 0x0a 0x00 0x00 0x0a 0x00 ........
0008 0x50 0x01 0x00 0x00 0x00 0x00 0x01 0x64 P......d
0010 0x01 0x05 0x00 0x1e 0x00 0x64 0x01 0x00 .....d..
0018 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0020 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0028 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0030 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0038 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
```
#### decoded:
```python
{'low_reservoir_warn_point': 30, 'keypad_lock_status': 0, 'maxBasal': 64, 'temp_basal': {'percent': 100, 'type': 'Percent'}, 'paradigm_enabled': 1, 'insulinConcentration': 50, 'audio_bolus_enable': True, 'variable_bolus_enable': False, 'alarm': {'volume': 3, 'mode': 2}, 'rf_enable': False, 'block_enable': False, 'timeformat': 80, 'auto_off_duration_hrs': 0, 'audio_bolus_size': 1.0, 'selected_pattern': 0, 'patterns_enabled': False, 'insulin_action_type': 5, 'maxBolus': 0.0, 'low_reservoir_warn_type': 0}
```
response: ReadRTC:size[64]:data:'2008-1-1T14:55:44'
hexdump:
```python
0000 0x0e 0x37 0x2c 0x07 0xd8 0x01 0x01 0x00 .7,.....
0008 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0010 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0018 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0020 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0028 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0030 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0038 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
```
#### decoded:
```python
'2008-1-1T14:55:44'
```
response: ReadPumpStatus:size[64]:data:{'status': 'normal', 'bolusing': False, 'suspended': False}
hexdump:
```python
0000 0x03 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0008 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0010 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0018 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0020 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0028 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0030 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0038 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
```
#### decoded:
```python
{'status': 'normal', 'bolusing': False, 'suspended': False}
```
response: ReadBasalTemp:size[64]:data:{'duration': 0, 'rate': 0.0}
hexdump:
```python
0000 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0008 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0010 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0018 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0020 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0028 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0030 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0038 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
```
#### decoded:
```python
{'duration': 0, 'rate': 0.0}
```
response: ReadProfile_STD512:size[64]:data:[]
hexdump:
```python
0000 0x00 0x00 0x00 0x00 0x00 0x06 0x00 0x00 ........
0008 0x10 0x00 0x00 0x16 0x00 0x00 0x1c 0x00 ........
0010 0x00 0x24 0x00 0x00 0x2c 0x00 0x00 0x00 .$..,...
0018 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0020 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0028 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0030 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0038 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
```
#### decoded:
```python
[]
```
response: ReadRemainingInsulin:size[64]:data:0.0
hexdump:
```python
0000 0x00 0x00 0x16 0x4e 0x00 0x00 0x00 0x00 ...N....
0008 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0010 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0018 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0020 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0028 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0030 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0038 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
```
#### decoded:
```python
0.0
```
find records since 2008-01-01T14:25:44
WARNING:decocare.stick:bad zero CRC?
WARNING:decocare.stick:bad zero CRC?
response: ReadHistoryData:size[1024]:[page][0]:data[1024]:
hexdump:
```python
0000 0x1e 0x01 0x32 0x42 0x0e 0x41 0x08 0x7b ..2B.A.{
0008 0x04 0x3b 0x42 0x0e 0x01 0x08 0x1c 0x00 .;B.....
0010 0x00 0x1f 0x20 0x00 0x43 0x0e 0x01 0x08 .. .C...
0018 0x1e 0x01 0x06 0x43 0x0e 0x41 0x08 0x7b ...C.A.{
0020 0x04 0x0f 0x43 0x0e 0x01 0x08 0x1c 0x00 ..C.....
0028 0x00 0x1f 0x20 0x0f 0x43 0x0e 0x01 0x08 .. .C...
0030 0x1e 0x01 0x11 0x43 0x0e 0x41 0x08 0x7b ...C.A.{
0038 0x04 0x13 0x43 0x0e 0x01 0x08 0x1c 0x00 ..C.....
0040 0x00 0x1f 0x20 0x13 0x43 0x0e 0x01 0x08 .. .C...
0048 0x1e 0x01 0x15 0x43 0x0e 0x41 0x08 0x7b ...C.A.{
0050 0x04 0x17 0x43 0x0e 0x01 0x08 0x1c 0x00 ..C.....
0058 0x00 0x1f 0x20 0x17 0x43 0x0e 0x01 0x08 .. .C...
0060 0x1e 0x01 0x1b 0x43 0x0e 0x41 0x08 0x7b ...C.A.{
0068 0x04 0x1f 0x43 0x0e 0x01 0x08 0x1c 0x00 ..C.....
0070 0x00 0x1f 0x20 0x1f 0x43 0x0e 0x01 0x08 .. .C...
0078 0x1e 0x01 0x24 0x43 0x0e 0x41 0x08 0x7b ..$C.A.{
0080 0x04 0x28 0x43 0x0e 0x01 0x08 0x1c 0x00 .(C.....
0088 0x00 0x1f 0x20 0x28 0x43 0x0e 0x01 0x08 .. (C...
0090 0x1e 0x01 0x28 0x43 0x0e 0x41 0x08 0x7b ..(C.A.{
0098 0x04 0x2a 0x43 0x0e 0x01 0x08 0x1c 0x00 .*C.....
00A0 0x00 0x1f 0x20 0x2a 0x43 0x0e 0x01 0x08 .. *C...
00A8 0x21 0x00 0x29 0x46 0x0e 0x01 0x08 0x03 !.)F....
00B0 0x00 0x00 0x00 0x30 0x37 0x46 0x2e 0x01 ...07F..
00B8 0x08 0x7b 0x04 0x0a 0x47 0x0e 0x01 0x08 .{..G...
00C0 0x1c 0x00 0x00 0x21 0x00 0x3b 0x4c 0x0e ...!.;L.
00C8 0x01 0x08 0x21 0x00 0x0f 0x4d 0x0e 0x01 ..!..M..
00D0 0x08 0x03 0x00 0x00 0x00 0x0c 0x25 0x53 ......%S
00D8 0x2e 0x01 0x08 0x7b 0x04 0x31 0x53 0x0e ...{.1S.
00E0 0x01 0x08 0x1c 0x00 0x00 0x7b 0x04 0x02 .....{..
00E8 0x54 0x0e 0x01 0x08 0x1c 0x00 0x00 0x03 T.......
00F0 0x00 0x02 0x00 0x02 0x37 0x53 0x0e 0x01 ....7S..
00F8 0x08 0x5b 0x00 0x31 0x55 0x0e 0x61 0x08 .[.1U.a.
0100 0x00 0x90 0x00 0x6e 0x26 0x38 0x00 0x00 ...n&8..
0108 0x00 0x00 0x00 0x00 0x00 0x00 0x38 0x01 ......8.
0110 0x00 0x01 0x00 0x01 0x00 0x00 0x00 0x31 .......1
0118 0x55 0x2e 0x61 0x08 0x5b 0x00 0x1d 0x57 U.a.[..W
0120 0x0e 0x61 0x08 0x00 0x90 0x00 0x6e 0x26 .a....n&
0128 0x38 0x00 0x00 0x00 0x00 0x00 0x00 0x00 8.......
0130 0x00 0x38 0x5c 0x05 0x01 0x0a 0x44 0x01 .8\...D.
0138 0x00 0x03 0x00 0x03 0x00 0x01 0x00 0x1d ........
0140 0x57 0x2e 0x61 0x08 0x5b 0x00 0x19 0x60 W.a.[..`
0148 0x0e 0x61 0x08 0x00 0x90 0x00 0x6e 0x26 .a....n&
0150 0x38 0x00 0x00 0x00 0x00 0x00 0x00 0x00 8.......
0158 0x00 0x38 0x5c 0x08 0x03 0x09 0x44 0x01 .8\...D.
0160 0x13 0x44 0x01 0x00 0x03 0x00 0x03 0x00 .D......
0168 0x04 0x00 0x1a 0x60 0x2e 0x61 0x08 0x5b ...`.a.[
0170 0x00 0x2d 0x63 0x0e 0x61 0x08 0x00 0x90 .-c.a...
0178 0x00 0x6e 0x26 0x38 0x00 0x00 0x00 0x00 .n&8....
0180 0x00 0x00 0x00 0x00 0x38 0x5c 0x08 0x06 ....8\..
0188 0x0c 0x44 0x01 0x16 0x44 0x01 0x00 0x03 .D..D...
0190 0x00 0x03 0x00 0x07 0x00 0x2d 0x63 0x2e .....-c.
0198 0x61 0x08 0x24 0x01 0x21 0x66 0x4e 0x01 a.$.!fN.
01A0 0x08 0x5b 0x00 0x2a 0x66 0x0e 0x61 0x08 .[.*f.a.
01A8 0x00 0x90 0x00 0x6e 0x26 0x38 0x00 0x00 ...n&8..
01B0 0x00 0x00 0x00 0x00 0x00 0x00 0x38 0x5c ......8\
01B8 0x0b 0x03 0x05 0x44 0x06 0x0f 0x44 0x01 ...D..D.
01C0 0x19 0x44 0x57 0x64 0x37 0x66 0x0e 0x01 .DWd7f..
01C8 0x08 0x5b 0x00 0x06 0x67 0x0e 0x61 0x08 .[..g.a.
01D0 0x00 0x90 0x00 0x6e 0x26 0x38 0x00 0x00 ...n&8..
01D8 0x00 0x00 0x00 0x00 0x00 0x00 0x38 0x5c ......8\
01E0 0x0b 0x03 0x06 0x44 0x06 0x10 0x44 0x01 ...D..D.
01E8 0x1a 0x44 0x0a 0x41 0x06 0x68 0x4e 0x01 .D.A.hN.
01F0 0x08 0x5b 0x41 0x18 0x68 0x0e 0x01 0x08 .[A.h...
01F8 0x00 0x90 0x00 0x6e 0x26 0x38 0x08 0x00 ...n&8..
0200 0x00 0x00 0x00 0x0c 0x00 0x00 0x38 0x5c ......8\
0208 0x0b 0x03 0x07 0x44 0x06 0x11 0x44 0x01 ...D..D.
0210 0x1b 0x44 0x0a 0x4b 0x2c 0x68 0x4e 0x01 .D.K,hN.
0218 0x08 0x0a 0x55 0x2a 0x69 0x4e 0x01 0x08 ..U*iN..
0220 0x5b 0x55 0x0a 0x6d 0x0e 0x61 0x08 0x00 [U.m.a..
0228 0x90 0x00 0x6e 0x26 0x38 0x1c 0x00 0x00 ..n&8...
0230 0x00 0x00 0x0c 0x00 0x10 0x38 0x5c 0x0b .....8\.
0238 0x03 0x0c 0x44 0x06 0x16 0x44 0x01 0x20 ..D..D.
0240 0x44 0x01 0x00 0x28 0x00 0x28 0x00 0x0c D..(.(..
0248 0x00 0x0a 0x6d 0x2e 0x61 0x08 0x00 0x00 ..m.a...
0250 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0258 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0260 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0268 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0270 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0278 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0280 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0288 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0290 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0298 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
02A0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
02A8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
02B0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
02B8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
02C0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
02C8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
02D0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
02D8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
02E0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
02E8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
02F0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
02F8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0300 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0308 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0310 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0318 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0320 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0328 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0330 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0338 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0340 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0348 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0350 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0358 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0360 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0368 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0370 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0378 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0380 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0388 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0390 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0398 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
03A0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
03A8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
03B0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
03B8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
03C0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
03C8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
03D0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
03D8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
03E0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
03E8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
03F0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
03F8 0x00 0x00 0x00 0x00 0x00 0x00 0x0b 0x00 ........
```
#### decoded:
```python
'0000 0x1e 0x01 0x32 0x42 0x0e 0x41 0x08 0x7b ..2B.A.{\n0008 0x04 0x3b 0x42 0x0e 0x01 0x08 0x1c 0x00 .;B.....\n0010 0x00 0x1f 0x20 0x00 0x43 0x0e 0x01 0x08 .. .C...\n0018 0x1e 0x01 0x06 0x43 0x0e 0x41 0x08 0x7b ...C.A.{\n0020 0x04 0x0f 0x43 0x0e 0x01 0x08 0x1c 0x00 ..C.....\n0028 0x00 0x1f 0x20 0x0f 0x43 0x0e 0x01 0x08 .. .C...\n0030 0x1e 0x01 0x11 0x43 0x0e 0x41 0x08 0x7b ...C.A.{\n0038 0x04 0x13 0x43 0x0e 0x01 0x08 0x1c 0x00 ..C.....\n0040 0x00 0x1f 0x20 0x13 0x43 0x0e 0x01 0x08 .. .C...\n0048 0x1e 0x01 0x15 0x43 0x0e 0x41 0x08 0x7b ...C.A.{\n0050 0x04 0x17 0x43 0x0e 0x01 0x08 0x1c 0x00 ..C.....\n0058 0x00 0x1f 0x20 0x17 0x43 0x0e 0x01 0x08 .. .C...\n0060 0x1e 0x01 0x1b 0x43 0x0e 0x41 0x08 0x7b ...C.A.{\n0068 0x04 0x1f 0x43 0x0e 0x01 0x08 0x1c 0x00 ..C.....\n0070 0x00 0x1f 0x20 0x1f 0x43 0x0e 0x01 0x08 .. .C...\n0078 0x1e 0x01 0x24 0x43 0x0e 0x41 0x08 0x7b ..$C.A.{\n0080 0x04 0x28 0x43 0x0e 0x01 0x08 0x1c 0x00 .(C.....\n0088 0x00 0x1f 0x20 0x28 0x43 0x0e 0x01 0x08 .. (C...\n0090 0x1e 0x01 0x28 0x43 0x0e 0x41 0x08 0x7b ..(C.A.{\n0098 0x04 0x2a 0x43 0x0e 0x01 0x08 0x1c 0x00 .*C.....\n00A0 0x00 0x1f 0x20 0x2a 0x43 0x0e 0x01 0x08 .. *C...\n00A8 0x21 0x00 0x29 0x46 0x0e 0x01 0x08 0x03 !.)F....\n00B0 0x00 0x00 0x00 0x30 0x37 0x46 0x2e 0x01 ...07F..\n00B8 0x08 0x7b 0x04 0x0a 0x47 0x0e 0x01 0x08 .{..G...\n00C0 0x1c 0x00 0x00 0x21 0x00 0x3b 0x4c 0x0e ...!.;L.\n00C8 0x01 0x08 0x21 0x00 0x0f 0x4d 0x0e 0x01 ..!..M..\n00D0 0x08 0x03 0x00 0x00 0x00 0x0c 0x25 0x53 ......%S\n00D8 0x2e 0x01 0x08 0x7b 0x04 0x31 0x53 0x0e ...{.1S.\n00E0 0x01 0x08 0x1c 0x00 0x00 0x7b 0x04 0x02 .....{..\n00E8 0x54 0x0e 0x01 0x08 0x1c 0x00 0x00 0x03 T.......\n00F0 0x00 0x02 0x00 0x02 0x37 0x53 0x0e 0x01 ....7S..\n00F8 0x08 0x5b 0x00 0x31 0x55 0x0e 0x61 0x08 .[.1U.a.\n0100 0x00 0x90 0x00 0x6e 0x26 0x38 0x00 0x00 ...n&8..\n0108 0x00 0x00 0x00 0x00 0x00 0x00 0x38 0x01 ......8.\n0110 0x00 0x01 0x00 0x01 0x00 0x00 0x00 0x31 .......1\n0118 0x55 0x2e 0x61 0x08 0x5b 0x00 0x1d 0x57 U.a.[..W\n0120 0x0e 0x61 0x08 0x00 0x90 0x00 0x6e 0x26 .a....n&\n0128 0x38 0x00 0x00 0x00 0x00 0x00 0x00 0x00 8.......\n0130 0x00 0x38 0x5c 0x05 0x01 0x0a 0x44 0x01 .8\\...D.\n0138 0x00 0x03 0x00 0x03 0x00 0x01 0x00 0x1d ........\n0140 0x57 0x2e 0x61 0x08 0x5b 0x00 0x19 0x60 W.a.[..`\n0148 0x0e 0x61 0x08 0x00 0x90 0x00 0x6e 0x26 .a....n&\n0150 0x38 0x00 0x00 0x00 0x00 0x00 0x00 0x00 8.......\n0158 0x00 0x38 0x5c 0x08 0x03 0x09 0x44 0x01 .8\\...D.\n0160 0x13 0x44 0x01 0x00 0x03 0x00 0x03 0x00 .D......\n0168 0x04 0x00 0x1a 0x60 0x2e 0x61 0x08 0x5b ...`.a.[\n0170 0x00 0x2d 0x63 0x0e 0x61 0x08 0x00 0x90 .-c.a...\n0178 0x00 0x6e 0x26 0x38 0x00 0x00 0x00 0x00 .n&8....\n0180 0x00 0x00 0x00 0x00 0x38 0x5c 0x08 0x06 ....8\\..\n0188 0x0c 0x44 0x01 0x16 0x44 0x01 0x00 0x03 .D..D...\n0190 0x00 0x03 0x00 0x07 0x00 0x2d 0x63 0x2e .....-c.\n0198 0x61 0x08 0x24 0x01 0x21 0x66 0x4e 0x01 a.$.!fN.\n01A0 0x08 0x5b 0x00 0x2a 0x66 0x0e 0x61 0x08 .[.*f.a.\n01A8 0x00 0x90 0x00 0x6e 0x26 0x38 0x00 0x00 ...n&8..\n01B0 0x00 0x00 0x00 0x00 0x00 0x00 0x38 0x5c ......8\\\n01B8 0x0b 0x03 0x05 0x44 0x06 0x0f 0x44 0x01 ...D..D.\n01C0 0x19 0x44 0x57 0x64 0x37 0x66 0x0e 0x01 .DWd7f..\n01C8 0x08 0x5b 0x00 0x06 0x67 0x0e 0x61 0x08 .[..g.a.\n01D0 0x00 0x90 0x00 0x6e 0x26 0x38 0x00 0x00 ...n&8..\n01D8 0x00 0x00 0x00 0x00 0x00 0x00 0x38 0x5c ......8\\\n01E0 0x0b 0x03 0x06 0x44 0x06 0x10 0x44 0x01 ...D..D.\n01E8 0x1a 0x44 0x0a 0x41 0x06 0x68 0x4e 0x01 .D.A.hN.\n01F0 0x08 0x5b 0x41 0x18 0x68 0x0e 0x01 0x08 .[A.h...\n01F8 0x00 0x90 0x00 0x6e 0x26 0x38 0x08 0x00 ...n&8..\n0200 0x00 0x00 0x00 0x0c 0x00 0x00 0x38 0x5c ......8\\\n0208 0x0b 0x03 0x07 0x44 0x06 0x11 0x44 0x01 ...D..D.\n0210 0x1b 0x44 0x0a 0x4b 0x2c 0x68 0x4e 0x01 .D.K,hN.\n0218 0x08 0x0a 0x55 0x2a 0x69 0x4e 0x01 0x08 ..U*iN..\n0220 0x5b 0x55 0x0a 0x6d 0x0e 0x61 0x08 0x00 [U.m.a..\n0228 0x90 0x00 0x6e 0x26 0x38 0x1c 0x00 0x00 ..n&8...\n0230 0x00 0x00 0x0c 0x00 0x10 0x38 0x5c 0x0b .....8\\.\n0238 0x03 0x0c 0x44 0x06 0x16 0x44 0x01 0x20 ..D..D. \n0240 0x44 0x01 0x00 0x28 0x00 0x28 0x00 0x0c D..(.(..\n0248 0x00 0x0a 0x6d 0x2e 0x61 0x08 0x00 0x00 ..m.a...\n0250 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0258 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0260 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0268 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0270 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0278 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0280 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0288 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0290 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0298 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n02A0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n02A8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n02B0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n02B8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n02C0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n02C8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n02D0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n02D8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n02E0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n02E8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n02F0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n02F8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0300 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0308 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0310 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0318 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0320 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0328 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0330 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0338 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0340 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0348 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0350 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0358 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0360 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0368 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0370 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0378 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0380 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0388 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0390 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n0398 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n03A0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n03A8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n03B0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n03B8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n03C0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n03C8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n03D0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n03D8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n03E0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n03E8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n03F0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........\n03F8 0x00 0x00 0x00 0x00 0x00 0x00 0x0b 0x00 ........'
```
SINCE 2008-01-01T14:25:44
* found record PumpSuspend 2008-01-01T14:02:50 head[2], body[0] op[0x1e] 2008-01-01 14:02:50
* found record BasalProfileStart 2008-01-01T14:02:59 head[2], body[3] op[0x7b] 2008-01-01 14:02:59
* found record PumpResume 2008-01-01T14:03:00 head[2], body[0] op[0x1f] 2008-01-01 14:03:00
* found record PumpSuspend 2008-01-01T14:03:06 head[2], body[0] op[0x1e] 2008-01-01 14:03:06
* found record BasalProfileStart 2008-01-01T14:03:15 head[2], body[3] op[0x7b] 2008-01-01 14:03:15
* found record PumpResume 2008-01-01T14:03:15 head[2], body[0] op[0x1f] 2008-01-01 14:03:15
* found record PumpSuspend 2008-01-01T14:03:17 head[2], body[0] op[0x1e] 2008-01-01 14:03:17
* found record BasalProfileStart 2008-01-01T14:03:19 head[2], body[3] op[0x7b] 2008-01-01 14:03:19
* found record PumpResume 2008-01-01T14:03:19 head[2], body[0] op[0x1f] 2008-01-01 14:03:19
* found record PumpSuspend 2008-01-01T14:03:21 head[2], body[0] op[0x1e] 2008-01-01 14:03:21
* found record BasalProfileStart 2008-01-01T14:03:23 head[2], body[3] op[0x7b] 2008-01-01 14:03:23
* found record PumpResume 2008-01-01T14:03:23 head[2], body[0] op[0x1f] 2008-01-01 14:03:23
* found record PumpSuspend 2008-01-01T14:03:27 head[2], body[0] op[0x1e] 2008-01-01 14:03:27
* found record BasalProfileStart 2008-01-01T14:03:31 head[2], body[3] op[0x7b] 2008-01-01 14:03:31
* found record PumpResume 2008-01-01T14:03:31 head[2], body[0] op[0x1f] 2008-01-01 14:03:31
* found record PumpSuspend 2008-01-01T14:03:36 head[2], body[0] op[0x1e] 2008-01-01 14:03:36
* found record BasalProfileStart 2008-01-01T14:03:40 head[2], body[3] op[0x7b] 2008-01-01 14:03:40
* found record PumpResume 2008-01-01T14:03:40 head[2], body[0] op[0x1f] 2008-01-01 14:03:40
* found record PumpSuspend 2008-01-01T14:03:40 head[2], body[0] op[0x1e] 2008-01-01 14:03:40
* found record BasalProfileStart 2008-01-01T14:03:42 head[2], body[3] op[0x7b] 2008-01-01 14:03:42
* found record PumpResume 2008-01-01T14:03:42 head[2], body[0] op[0x1f] 2008-01-01 14:03:42
* found record Rewind 2008-01-01T14:06:41 head[2], body[0] op[0x21] 2008-01-01 14:06:41
* found record Prime 2008-01-01T14:06:55 head[5], body[0] op[0x03] 2008-01-01 14:06:55
* found record BasalProfileStart 2008-01-01T14:07:10 head[2], body[3] op[0x7b] 2008-01-01 14:07:10
* found record Rewind 2008-01-01T14:12:59 head[2], body[0] op[0x21] 2008-01-01 14:12:59
* found record Rewind 2008-01-01T14:13:15 head[2], body[0] op[0x21] 2008-01-01 14:13:15
* found record Prime 2008-01-01T14:19:37 head[5], body[0] op[0x03] 2008-01-01 14:19:37
* found record BasalProfileStart 2008-01-01T14:19:49 head[2], body[3] op[0x7b] 2008-01-01 14:19:49
* found record BasalProfileStart 2008-01-01T14:20:02 head[2], body[3] op[0x7b] 2008-01-01 14:20:02
* found record Prime 2008-01-01T14:19:55 head[5], body[0] op[0x03] 2008-01-01 14:19:55
* found record BolusWizard 2008-01-01T14:21:49 head[2], body[15] op[0x5b] 2008-01-01 14:21:49
* found record Bolus 2008-01-01T14:21:49 head[8], body[0] op[0x01] 2008-01-01 14:21:49
* found record BolusWizard 2008-01-01T14:23:29 head[2], body[15] op[0x5b] 2008-01-01 14:23:29
* found record UnabsorbedInsulinBolus unknown head[5], body[0] op[0x5c] None
* found record Bolus 2008-01-01T14:23:29 head[8], body[0] op[0x01] 2008-01-01 14:23:29
* found record BolusWizard 2008-01-01T14:32:25 head[2], body[15] op[0x5b] 2008-01-01 14:32:25
* found record UnabsorbedInsulinBolus unknown head[8], body[0] op[0x5c] None
* found record Bolus 2008-01-01T14:32:26 head[8], body[0] op[0x01] 2008-01-01 14:32:26
* found record BolusWizard 2008-01-01T14:35:45 head[2], body[15] op[0x5b] 2008-01-01 14:35:45
* found record UnabsorbedInsulinBolus unknown head[8], body[0] op[0x5c] None
* found record Bolus 2008-01-01T14:35:45 head[8], body[0] op[0x01] 2008-01-01 14:35:45
* found record Base (2008, 1, 1, 14, 38, 33) head[2], body[0] op[0x24] None
* found record BolusWizard 2008-01-01T14:38:42 head[2], body[15] op[0x5b] 2008-01-01 14:38:42
* found record UnabsorbedInsulinBolus unknown head[11], body[0] op[0x5c] None
* found record Base (2008, 1, 1, 14, 38, 55) head[2], body[0] op[0x57] None
* found record BolusWizard 2008-01-01T14:39:06 head[2], body[15] op[0x5b] 2008-01-01 14:39:06
* found record UnabsorbedInsulinBolus unknown head[11], body[0] op[0x5c] None
* found record CalBGForPH 2008-01-01T14:40:06 head[2], body[0] op[0x0a] 2008-01-01 14:40:06
* found record BolusWizard 2008-01-01T14:40:24 head[2], body[15] op[0x5b] 2008-01-01 14:40:24
* found record UnabsorbedInsulinBolus unknown head[11], body[0] op[0x5c] None
* found record CalBGForPH 2008-01-01T14:40:44 head[2], body[0] op[0x0a] 2008-01-01 14:40:44
* found record CalBGForPH 2008-01-01T14:41:42 head[2], body[0] op[0x0a] 2008-01-01 14:41:42
* found record BolusWizard 2008-01-01T14:45:10 head[2], body[15] op[0x5b] 2008-01-01 14:45:10
* found record UnabsorbedInsulinBolus unknown head[11], body[0] op[0x5c] None
* found record Bolus 2008-01-01T14:45:10 head[8], body[0] op[0x01] 2008-01-01 14:45:10
```json
[
{
"_type": "BolusWizard",
"bg": 0,
"bg_target_high": 110,
"_description": "BolusWizard 2008-01-01T14:32:25 head[2], body[15] op[0x5b]",
"timestamp": "2008-01-01T14:32:25",
"sensitivity": 38,
"bg_target_low": 56,
"carb_ratio": 5.6,
"food_estimate": 0.0,
"unabsorbed_insulin_total": 0.0,
"correction_estimate": 0.0,
"carb_input": 0,
"bolus_estimate": 0.0
},
{
"_type": "Bolus",
"_description": "Bolus 2008-01-01T14:32:26 head[8], body[0] op[0x01]",
"timestamp": "2008-01-01T14:32:26",
"programmed": 0.075,
"amount": 0.075,
"unabsorbed": 0.1,
"duration": 0,
"type": "normal"
},
{
"_type": "BolusWizard",
"bg": 0,
"bg_target_high": 110,
"_description": "BolusWizard 2008-01-01T14:35:45 head[2], body[15] op[0x5b]",
"timestamp": "2008-01-01T14:35:45",
"sensitivity": 38,
"bg_target_low": 56,
"carb_ratio": 5.6,
"food_estimate": 0.0,
"unabsorbed_insulin_total": 0.0,
"correction_estimate": 0.0,
"carb_input": 0,
"bolus_estimate": 0.0
},
{
"_type": "Bolus",
"_description": "Bolus 2008-01-01T14:35:45 head[8], body[0] op[0x01]",
"timestamp": "2008-01-01T14:35:45",
"programmed": 0.075,
"amount": 0.075,
"unabsorbed": 0.175,
"duration": 0,
"type": "normal"
},
{
"_type": "BolusWizard",
"bg": 0,
"bg_target_high": 110,
"_description": "BolusWizard 2008-01-01T14:38:42 head[2], body[15] op[0x5b]",
"timestamp": "2008-01-01T14:38:42",
"sensitivity": 38,
"bg_target_low": 56,
"carb_ratio": 5.6,
"food_estimate": 0.0,
"unabsorbed_insulin_total": 0.0,
"correction_estimate": 0.0,
"carb_input": 0,
"bolus_estimate": 0.0
},
{
"_type": "BolusWizard",
"bg": 0,
"bg_target_high": 110,
"_description": "BolusWizard 2008-01-01T14:39:06 head[2], body[15] op[0x5b]",
"timestamp": "2008-01-01T14:39:06",
"sensitivity": 38,
"bg_target_low": 56,
"carb_ratio": 5.6,
"food_estimate": 0.0,
"unabsorbed_insulin_total": 0.0,
"correction_estimate": 0.0,
"carb_input": 0,
"bolus_estimate": 0.0
},
{
"timestamp": "2008-01-01T14:40:06",
"_type": "CalBGForPH",
"amount": 65,
"_description": "CalBGForPH 2008-01-01T14:40:06 head[2], body[0] op[0x0a]"
},
{
"_type": "BolusWizard",
"bg": 65,
"bg_target_high": 110,
"_description": "BolusWizard 2008-01-01T14:40:24 head[2], body[15] op[0x5b]",
"timestamp": "2008-01-01T14:40:24",
"sensitivity": 38,
"bg_target_low": 56,
"carb_ratio": 5.6,
"food_estimate": 0.0,
"unabsorbed_insulin_total": 0.3,
"correction_estimate": 0.2,
"carb_input": 0,
"bolus_estimate": 0.0
},
{
"timestamp": "2008-01-01T14:40:44",
"_type": "CalBGForPH",
"amount": 75,
"_description": "CalBGForPH 2008-01-01T14:40:44 head[2], body[0] op[0x0a]"
},
{
"timestamp": "2008-01-01T14:41:42",
"_type": "CalBGForPH",
"amount": 85,
"_description": "CalBGForPH 2008-01-01T14:41:42 head[2], body[0] op[0x0a]"
},
{
"_type": "BolusWizard",
"bg": 85,
"bg_target_high": 110,
"_description": "BolusWizard 2008-01-01T14:45:10 head[2], body[15] op[0x5b]",
"timestamp": "2008-01-01T14:45:10",
"sensitivity": 38,
"bg_target_low": 56,
"carb_ratio": 5.6,
"food_estimate": 0.0,
"unabsorbed_insulin_total": 0.3,
"correction_estimate": 0.7,
"carb_input": 0,
"bolus_estimate": 0.4
},
{
"_type": "Bolus",
"_description": "Bolus 2008-01-01T14:45:10 head[8], body[0] op[0x01]",
"timestamp": "2008-01-01T14:45:10",
"programmed": 1.0,
"amount": 1.0,
"unabsorbed": 0.3,
"duration": 0,
"type": "normal"
}
]
```
### end stats
```
```
```javascript
{'radio': {'errors.crc': 0,
'errors.naks': 0,
'errors.sequence': 0,
'errors.timeouts': 16,
'packets.received': 328L,
'packets.transmit': 346L},
'usb': {'errors.crc': 2,
'errors.naks': 5,
'errors.sequence': 0,
'errors.timeouts': 0,
'packets.received': 636L,
'packets.transmit': 643L}}
```
@bewest
Copy link

bewest commented Aug 8, 2014

554 has different memory layout. These values don't look right to me. Please run ./status-quo.sh /dev/ttyUSB0 913995 add results and csv, in PR if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment