Skip to content

Latest commit

 

History

History
57 lines (57 loc) · 1.58 KB

current-cgm-page.markdown

File metadata and controls

57 lines (57 loc) · 1.58 KB

do stuff with an insulin pump over RF

using Namespace(command='sleep', dryrun=False, init=True, no_postlude=False, no_prelude=False, no_rf_prelude=False, port='/dev/ttyUSB0', postfix=None, prefix=['ReadCurPageNumber', 'ReadCurGlucosePageNumber'], prefix_path='', saveall=False, serial='584923', timeout=0.0, verbose=None)

{'radio': {'errors.crc': 0,
           'errors.naks': 0,
           'errors.sequence': 0,
           'errors.timeouts': 0,
           'packets.received': 0L,
           'packets.transmit': 0L},
 'usb': {'errors.crc': 0,
         'errors.naks': 0,
         'errors.sequence': 0,
         'errors.timeouts': 0,
         'packets.received': 3L,
         'packets.transmit': 3L}}
PowerControl SERIAL 584923

PUMP MODEL: ReadPumpModel:size[64]:data:'722'

sending <class 'decocare.commands.ReadCurPageNumber'>

response: ReadCurPageNumber:pages:21

decoded:

21L
sending <class 'decocare.commands.ReadCurGlucosePageNumber'>

response: ReadCurGlucosePageNumber:size[64]:data:{'isig': 20, 'page': 19L, 'glucose': 20}

decoded:

{'isig': 20, 'page': 19L, 'glucose': 20}

end stats

{'radio': {'errors.crc': 0,
           'errors.naks': 0,
           'errors.sequence': 0,
           'errors.timeouts': 0,
           'packets.received': 5L,
           'packets.transmit': 5L},
 'usb': {'errors.crc': 0,
         'errors.naks': 0,
         'errors.sequence': 0,
         'errors.timeouts': 0,
         'packets.received': 17L,
         'packets.transmit': 17L}}