Created
August 8, 2014 22:36
-
-
Save ianjorgensen/a1fd442d0aa2f2ef162c to your computer and use it in GitHub Desktop.
Remote bolus 554
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ian@ubuntu:~/diacon/decoding-carelink$ sudo ./bin/mm-send-comm.py --port /dev/ttyUSB0 --serial 913995 --init tweak Bolus --params 0 --params 40 | |
## do stuff with an insulin pump over RF | |
using ` Namespace(begin=None, bytesPerRecord=None, command='tweak', descr=None, dryrun=False, effectTime=None, end=None, init=True, maxRecords=None, name=None, no_postlude=False, no_prelude=False, no_rf_prelude=False, other='Bolus', page=None, params=[0, 40], port='/dev/ttyUSB0', postfix=None, prefix=None, prefix_path='', save=False, saveall=False, serial='913995', verbose=None) ` | |
``` | |
``` | |
``` | |
``` | |
``` | |
``` | |
``` | |
``` | |
```javascript | |
{'radio': {'errors.crc': 0, | |
'errors.naks': 0, | |
'errors.sequence': 0, | |
'errors.timeouts': 0, | |
'packets.received': 14L, | |
'packets.transmit': 15L}, | |
'usb': {'errors.crc': 0, | |
'errors.naks': 5, | |
'errors.sequence': 0, | |
'errors.timeouts': 0, | |
'packets.received': 60L, | |
'packets.transmit': 65L}} | |
``` | |
``` | |
PowerControl SERIAL 913995 | |
``` | |
### PUMP MODEL: `ReadPumpModel:size[64]:data:'554'` | |
<class 'decocare.commands.Bolus'> {'params': [0, 40]} | |
CRITICAL:decocare.session:this seems like a problem | |
response: Bolus:size[64]:data:bytearray(b'\x0c') | |
hexdump: | |
```python | |
0000 0x0c . | |
``` | |
#### decoded: | |
```python | |
bytearray(b'\x0c') | |
``` | |
### end stats | |
``` | |
``` | |
```javascript | |
{'radio': {'errors.crc': 0, | |
'errors.naks': 0, | |
'errors.sequence': 0, | |
'errors.timeouts': 0, | |
'packets.received': 21L, | |
'packets.transmit': 22L}, | |
'usb': {'errors.crc': 0, | |
'errors.naks': 5, | |
'errors.sequence': 0, | |
'errors.timeouts': 0, | |
'packets.received': 74L, | |
'packets.transmit': 79L}} | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment