Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue reading recent glucose data #173

Closed
oskarpearson opened this issue Feb 27, 2016 · 1 comment
Closed

Issue reading recent glucose data #173

oskarpearson opened this issue Feb 27, 2016 · 1 comment

Comments

@oskarpearson
Copy link
Contributor

oskarpearson commented Feb 27, 2016

pi@pan ~/openaps-source/every-five-standard $ mm-send-comm.py tweak ReadCurGlucosePageNumber

do stuff with an insulin pump over RF

using Namespace(autoinit=False, begin=None, bytesPerRecord=None, command='tweak', descr=None, dryrun=False, effectTime=None, end=None, init=False, maxRecords=None, name=None, no_postlude=False, no_prelude=False, no_rf_prelude=False, other='ReadCurGlucosePageNumber', page=None, params=None, port='', postfix=None, prefix=None, prefix_path='', save=False, saveall=False, serial='XXXXX', session_life=10, verbose=None)

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

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

<class 'decocare.commands.ReadCurGlucosePageNumber'> {}
response: ReadCurGlucosePageNumber:size[64]:data:{'isig': 32, 'page': 95L, 'glucose': 32}
hexdump:

0000   0x00 0x00 0x00 0x5f 0x00 0x20 0x00 0x20    ..._. .
0008   0x00 0x20 0x00 0x20 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:

{'isig': 32, 'page': 95L, 'glucose': 32}

end stats

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

$ mm-send-comm.py tweak ReadGlucoseHistory --save --page 32

do stuff with an insulin pump over RF

using Namespace(autoinit=False, begin=None, bytesPerRecord=None, command='tweak', descr=None, dryrun=False, effectTime=None, end=None, init=False, maxRecords=None, name=None, no_postlude=False, no_prelude=False, no_rf_prelude=False, other='ReadGlucoseHistory', page=32, params=None, port='', postfix=None, prefix=None, prefix_path='', save=True, saveall=False, serial='XXXXX', session_life=10, verbose=None)

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

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

<class 'decocare.commands.ReadGlucoseHistory'> {'page': 32}
CRITICAL:decocare.session:this seems like a problem
response: ReadGlucoseHistory:size[1024]:[page][32]:data[2]:
hexdump:

0000   0x08 0x08                                  ..

decoded:

'0000   0x08 0x08                                  ..'

end stats

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants