Skip to content

Instantly share code, notes, and snippets.

@ianjorgensen
Created August 8, 2014 23:02
Show Gist options
  • Save ianjorgensen/142eba5ff2930a91878d to your computer and use it in GitHub Desktop.
Save ianjorgensen/142eba5ff2930a91878d to your computer and use it in GitHub Desktop.
Bolus -v
INFO:decocare.stick:PROCESS:START:3557.873:TransmitPacket:PowerControl:data:unknown
INFO:decocare.stick:link Stick transmit[TransmitPacket:PowerControl:data:unknown] reader[None] download_i[False] status[None] poll_size[None] poll_i[None] command[<TransmitPacket:PowerControl:data:unknown>] processing TransmitPacket:PowerControl:data:unknown)
INFO:decocare.stick:send_force_read: attempt 0/5 send command, read until we get something within some timeout
INFO:decocare.stick:link Stick transmit[TransmitPacket:PowerControl:data:unknown] reader[None] download_i[False] status[None] poll_size[None] poll_i[None] command[<TransmitPacket:PowerControl:data:unknown>] sending TransmitPacket:PowerControl:data:unknown)
DEBUG:decocare.stick:[1, 0, 167, 1, 145, 57, 149, 128, 2, 85, 0, 0, 0, 93, 19, 1, 10, 162]
INFO:root:usb.write.len: 18
0000 0x01 0x00 0xa7 0x01 0x91 0x39 0x95 0x80 .....9..
0008 0x02 0x55 0x00 0x00 0x00 0x5d 0x13 0x01 .U...]..
0010 0x0a 0xa2 ..
DEBUG:decocare.stick:sleeping 0.001
INFO:root:usb.read.len: 64
INFO:root:usb.read.raw:
0000 0x01 0x55 0x00 0x00 0x00 0x00 0x00 0x00 .U......
0008 0x00 0x00 0x3c 0x00 0x00 0x00 0x3d 0x00 ..<...=.
0010 0x00 0x00 0x24 0x00 0x26 0x00 0x00 0x00 ..$.&...
0018 0x0a 0x00 0x19 0x00 0x0c 0x00 0x00 0x00 ........
0020 0x00 0x01 0x00 0x9d 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 ........
INFO:decocare.stick:quit send_force_read, found len: 64 expected 64 after 0 attempts
INFO:decocare.stick:finished processing TransmitPacket:PowerControl:data:unknown, bytearray(b'\x00\x00\x00\x00\x00\x00\x00<\x00\x00\x00=\x00\x00\x00$\x00&\x00\x00\x00\n\x00\x19\x00\x0c\x00\x00\x00\x00\x01\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
INFO:decocare.stick:PROCESS:END:3561.414:TransmitPacket:PowerControl:data:unknown
INFO:decocare.session:sleeping 17 before download
INFO:decocare.session:no download required
INFO:decocare.session:finished executing:PowerControl:data:unknown
INFO:decocare.commands:PowerControl:data:unknown:download:done?explain=found[0] expected[0]
INFO:decocare.session:manually download PowerControl serial 913995
INFO:decocare.stick:download:start:0
INFO:decocare.stick:Stick transmit[TransmitPacket:PowerControl:data:unknown] reader[None] download_i[1] status[None] poll_size[None] poll_i[None] command[<TransmitPacket:PowerControl:data:unknown>]:download(attempts[1],expect[0],results[0]:data[0]):begin first poll first sleep .250
DEBUG:decocare.stick:<Stick transmit[TransmitPacket:PowerControl:data:unknown] reader[None] download_i[1] status[None] poll_size[None] poll_i[None] command[<TransmitPacket:PowerControl:data:unknown>]>:STARTING POLL PHASE:attempt:0
DEBUG:decocare.stick:<Stick transmit[TransmitPacket:PowerControl:data:unknown] reader[None] download_i[1] status[None] poll_size[0] poll_i[0] command[<TransmitPacket:PowerControl:data:unknown>]>:poll:attempt:0
INFO:decocare.stick:PROCESS:START:20824.548:LinkStatus:0x03:status:size=64
INFO:decocare.stick:link Stick transmit[TransmitPacket:PowerControl:data:unknown] reader[None] download_i[1] status[None] poll_size[0] poll_i[0] command[<LinkStatus:0x03:status:size=64:size(64)>] processing LinkStatus:0x03:status:size=64)
INFO:decocare.stick:send_force_read: attempt 0/5 send command, read until we get something within some timeout
INFO:decocare.stick:link Stick transmit[TransmitPacket:PowerControl:data:unknown] reader[None] download_i[1] status[None] poll_size[0] poll_i[0] command[<LinkStatus:0x03:status:size=64:size(64)>] sending LinkStatus:0x03:status:size=64)
INFO:root:usb.write.len: 3
0000 0x03 0x00 0x00 ...
DEBUG:decocare.stick:sleeping 0.001
INFO:root:usb.read.len: 0
INFO:root:usb.read.raw:
INFO:decocare.stick:zero length READ, try once more sleep .250
INFO:root:usb.read.len: 64
INFO:root:usb.read.raw:
0000 0x01 0x55 0x00 0x00 0x02 0x01 0x00 0x0f .U......
0008 0x05 0x04 0x00 0x00 0x00 0x00 0x3d 0x00 ......=.
0010 0x00 0x00 0x24 0x00 0x26 0x00 0x00 0x00 ..$.&...
0018 0x0a 0x00 0x19 0x00 0x0c 0x00 0x00 0x00 ........
0020 0x00 0x01 0x00 0x9d 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 ........
INFO:decocare.stick:quit send_force_read, found len: 64 expected 64 after 0 attempts
INFO:decocare.stick:LinkStatus:0x03:status:size=15
INFO:decocare.stick:finished processing LinkStatus:0x03:status:size=15, 15
INFO:decocare.stick:PROCESS:END:21593.261:LinkStatus:0x03:status:size=15
INFO:decocare.stick:Stick transmit[TransmitPacket:PowerControl:data:unknown] reader[None] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[0] command[<LinkStatus:0x03:status:size=15:size(15)>]:STOP POLL after 1 attempts:size:15
INFO:decocare.stick:Stick transmit[TransmitPacket:PowerControl:data:unknown] reader[None] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<LinkStatus:0x03:status:size=15:size(15)>]:download(attempts[1],expect[15],results[0]:data[0]):end first poll
INFO:decocare.stick:Stick transmit[TransmitPacket:PowerControl:data:unknown] reader[None] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<LinkStatus:0x03:status:size=15:size(15)>]:download(attempts[1],expect[15],results[0]:data[0]):proceed to download packet
INFO:decocare.stick:Stick transmit[TransmitPacket:PowerControl:data:unknown] reader[None] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<LinkStatus:0x03:status:size=15:size(15)>]:download_packet:15
INFO:decocare.stick:PROCESS:START:21593.878:ReadRadio:size:15
INFO:decocare.stick:send_force_read: attempt 0/5 send command, read until we get something within some timeout
INFO:decocare.stick:link Stick transmit[TransmitPacket:PowerControl:data:unknown] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<ReadRadio:size:15>] sending ReadRadio:size:15)
INFO:root:usb.write.len: 5
0000 0x0c 0x00 0x00 0x0f 0xc6 .....
DEBUG:decocare.stick:sleeping 0.001
INFO:root:usb.read.len: 15
INFO:root:usb.read.raw:
0000 0x02 0x00 0x01 0x00 0xd2 0x80 0x01 0xa7 ........
0008 0x01 0x91 0x39 0x95 0x6d 0x00 0x00 ..9.m..
INFO:decocare.stick:quit send_force_read, found len: 15 expected 15 after 0 attempts
INFO:decocare.stick:readData validating remote raw[ack]: 02
INFO:decocare.stick:readData; foreign raw should be at least 14 bytes? 15 True
INFO:decocare.stick:readData; raw[retries] 0
INFO:decocare.stick:ReadRadio:size:15:eod:found eod (True)
INFO:decocare.stick:found packet len(1), link expects(1)
INFO:decocare.stick:PROCESS:END:21596.794:ReadRadio:size:15
INFO:decocare.stick:Stick transmit[TransmitPacket:PowerControl:data:unknown] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<ReadRadio:size:15>]:download(attempts[1],expect[15],results[1]:data[1]):adding segment
INFO:decocare.stick:Stick transmit[TransmitPacket:PowerControl:data:unknown] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<ReadRadio:size:15>]:download(attempts[1],expect[15],results[1]:data[1]):DONE
INFO:decocare.session:ENDING manual download:
0000 0x00 .
INFO:decocare.session:execute attempt: 1
INFO:decocare.session:session transferring packet
INFO:decocare.stick:transmit_packet:write:<TransmitPacket:ReadPumpModel:data:unknown>
INFO:decocare.stick:PROCESS:START:21597.933:TransmitPacket:ReadPumpModel:data:unknown
INFO:decocare.stick:link Stick transmit[TransmitPacket:ReadPumpModel:data:unknown] reader[ReadRadio:size:15] download_i[False] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<TransmitPacket:ReadPumpModel:data:unknown>] processing TransmitPacket:ReadPumpModel:data:unknown)
INFO:decocare.stick:send_force_read: attempt 0/5 send command, read until we get something within some timeout
INFO:decocare.stick:link Stick transmit[TransmitPacket:ReadPumpModel:data:unknown] reader[ReadRadio:size:15] download_i[False] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<TransmitPacket:ReadPumpModel:data:unknown>] sending TransmitPacket:ReadPumpModel:data:unknown)
DEBUG:decocare.stick:[1, 0, 167, 1, 145, 57, 149, 128, 0, 0, 2, 1, 0, 141, 174, 0]
INFO:root:usb.write.len: 16
0000 0x01 0x00 0xa7 0x01 0x91 0x39 0x95 0x80 .....9..
0008 0x00 0x00 0x02 0x01 0x00 0x8d 0xae 0x00 ........
DEBUG:decocare.stick:sleeping 0.001
INFO:root:usb.read.len: 64
INFO:root:usb.read.raw:
0000 0x01 0x55 0x00 0x00 0xd2 0x80 0x01 0xa7 .U......
0008 0x01 0x91 0x39 0x95 0x6d 0x00 0x00 0x00 ..9.m...
0010 0x00 0x00 0x24 0x00 0x26 0x00 0x00 0x00 ..$.&...
0018 0x0a 0x00 0x19 0x00 0x0c 0x00 0x00 0x00 ........
0020 0x00 0x01 0x00 0x9d 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 ........
INFO:decocare.stick:quit send_force_read, found len: 64 expected 64 after 0 attempts
INFO:decocare.stick:finished processing TransmitPacket:ReadPumpModel:data:unknown, bytearray(b'\x00\xd2\x80\x01\xa7\x01\x919\x95m\x00\x00\x00\x00\x00$\x00&\x00\x00\x00\n\x00\x19\x00\x0c\x00\x00\x00\x00\x01\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
INFO:decocare.stick:PROCESS:END:21601.805:TransmitPacket:ReadPumpModel:data:unknown
INFO:decocare.session:sleeping 0.5 before download
INFO:decocare.session:proceeding with download
INFO:decocare.stick:download:start:0
INFO:decocare.stick:Stick transmit[TransmitPacket:ReadPumpModel:data:unknown] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<TransmitPacket:ReadPumpModel:data:unknown>]:download(attempts[1],expect[0],results[0]:data[0]):begin first poll first sleep .250
DEBUG:decocare.stick:<Stick transmit[TransmitPacket:ReadPumpModel:data:unknown] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<TransmitPacket:ReadPumpModel:data:unknown>]>:STARTING POLL PHASE:attempt:0
DEBUG:decocare.stick:<Stick transmit[TransmitPacket:ReadPumpModel:data:unknown] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[0] poll_i[0] command[<TransmitPacket:ReadPumpModel:data:unknown>]>:poll:attempt:0
INFO:decocare.stick:PROCESS:START:22354.118:LinkStatus:0x03:status:size=64
INFO:decocare.stick:link Stick transmit[TransmitPacket:ReadPumpModel:data:unknown] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[0] poll_i[0] command[<LinkStatus:0x03:status:size=64:size(64)>] processing LinkStatus:0x03:status:size=64)
INFO:decocare.stick:send_force_read: attempt 0/5 send command, read until we get something within some timeout
INFO:decocare.stick:link Stick transmit[TransmitPacket:ReadPumpModel:data:unknown] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[0] poll_i[0] command[<LinkStatus:0x03:status:size=64:size(64)>] sending LinkStatus:0x03:status:size=64)
INFO:root:usb.write.len: 3
0000 0x03 0x00 0x00 ...
DEBUG:decocare.stick:sleeping 0.001
INFO:root:usb.read.len: 64
INFO:root:usb.read.raw:
0000 0x01 0x55 0x00 0x00 0x02 0x01 0x00 0x4e .U.....N
0008 0x05 0x04 0x00 0x95 0x6d 0x00 0x00 0x00 ....m...
0010 0x00 0x00 0x24 0x00 0x26 0x00 0x00 0x00 ..$.&...
0018 0x0a 0x00 0x19 0x00 0x0c 0x00 0x00 0x00 ........
0020 0x00 0x01 0x00 0x9d 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 ........
INFO:decocare.stick:quit send_force_read, found len: 64 expected 64 after 0 attempts
INFO:decocare.stick:LinkStatus:0x03:status:size=78
INFO:decocare.stick:finished processing LinkStatus:0x03:status:size=78, 78
INFO:decocare.stick:PROCESS:END:22357.02:LinkStatus:0x03:status:size=78
INFO:decocare.stick:Stick transmit[TransmitPacket:ReadPumpModel:data:unknown] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=78:size(78)>] poll_size[78] poll_i[0] command[<LinkStatus:0x03:status:size=78:size(78)>]:STOP POLL after 1 attempts:size:78
INFO:decocare.stick:Stick transmit[TransmitPacket:ReadPumpModel:data:unknown] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=78:size(78)>] poll_size[78] poll_i[False] command[<LinkStatus:0x03:status:size=78:size(78)>]:download(attempts[1],expect[78],results[0]:data[0]):end first poll
INFO:decocare.stick:Stick transmit[TransmitPacket:ReadPumpModel:data:unknown] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=78:size(78)>] poll_size[78] poll_i[False] command[<LinkStatus:0x03:status:size=78:size(78)>]:download(attempts[1],expect[78],results[0]:data[0]):proceed to download packet
INFO:decocare.stick:Stick transmit[TransmitPacket:ReadPumpModel:data:unknown] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=78:size(78)>] poll_size[78] poll_i[False] command[<LinkStatus:0x03:status:size=78:size(78)>]:download_packet:78
INFO:decocare.stick:PROCESS:START:22357.457:ReadRadio:size:78
INFO:decocare.stick:send_force_read: attempt 0/5 send command, read until we get something within some timeout
INFO:decocare.stick:link Stick transmit[TransmitPacket:ReadPumpModel:data:unknown] reader[ReadRadio:size:78] download_i[1] status[<LinkStatus:0x03:status:size=78:size(78)>] poll_size[78] poll_i[False] command[<ReadRadio:size:78>] sending ReadRadio:size:78)
INFO:root:usb.write.len: 5
0000 0x0c 0x00 0x00 0x4e 0x95 ...N.
DEBUG:decocare.stick:sleeping 0.001
INFO:root:usb.read.len: 78
INFO:root:usb.read.raw:
0000 0x02 0x00 0x03 0x00 0xcf 0x80 0x40 0xa7 ......@.
0008 0x01 0x91 0x39 0x95 0x03 0x03 0x35 0x35 ..9...55
0010 0x34 0x00 0x00 0x00 0x00 0x00 0x00 0x00 4.......
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 ........
0040 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0048 0x00 0x00 0x00 0x00 0x00 0xe0 ......
INFO:decocare.stick:quit send_force_read, found len: 78 expected 78 after 0 attempts
INFO:decocare.stick:readData validating remote raw[ack]: 02
INFO:decocare.stick:readData; foreign raw should be at least 14 bytes? 78 True
INFO:decocare.stick:readData; raw[retries] 0
INFO:decocare.stick:ReadRadio:size:78:eod:found eod (True)
INFO:decocare.stick:found packet len(64), link expects(64)
INFO:decocare.stick:PROCESS:END:22361.538:ReadRadio:size:78
INFO:decocare.stick:Stick transmit[TransmitPacket:ReadPumpModel:data:unknown] reader[ReadRadio:size:78] download_i[1] status[<LinkStatus:0x03:status:size=78:size(78)>] poll_size[78] poll_i[False] command[<ReadRadio:size:78>]:download(attempts[1],expect[78],results[64]:data[64]):adding segment
INFO:decocare.stick:Stick transmit[TransmitPacket:ReadPumpModel:data:unknown] reader[ReadRadio:size:78] download_i[1] status[<LinkStatus:0x03:status:size=78:size(78)>] poll_size[78] poll_i[False] command[<ReadRadio:size:78>]:download(attempts[1],expect[78],results[64]:data[64]):DONE
INFO:decocare.session:finished executing:ReadPumpModel:size[64]:data:'554'
INFO:decocare.commands:ReadPumpModel:size[64]:data:'554':download:done?explain=found[64] expected[64]
```
### PUMP MODEL: `ReadPumpModel:size[64]:data:'554'`
Namespace(dryrun=False, init=True, no_postlude=False, no_prelude=False, no_rf_prelude=False, port='/dev/ttyUSB0', serial='913995', strokes_per_unit=40, units=2.0, verbose=[1])
INFO:decocare.session:execute attempt: 1
INFO:decocare.session:session transferring packet
INFO:decocare.stick:transmit_packet:write:<TransmitPacket:Bolus:data:unknown>
INFO:decocare.stick:PROCESS:START:22362.38:TransmitPacket:Bolus:data:unknown
INFO:decocare.stick:link Stick transmit[TransmitPacket:Bolus:data:unknown] reader[ReadRadio:size:78] download_i[False] status[<LinkStatus:0x03:status:size=78:size(78)>] poll_size[78] poll_i[False] command[<TransmitPacket:Bolus:data:unknown>] processing TransmitPacket:Bolus:data:unknown)
INFO:decocare.stick:send_force_read: attempt 0/5 send command, read until we get something within some timeout
INFO:decocare.stick:link Stick transmit[TransmitPacket:Bolus:data:unknown] reader[ReadRadio:size:78] download_i[False] status[<LinkStatus:0x03:status:size=78:size(78)>] poll_size[78] poll_i[False] command[<TransmitPacket:Bolus:data:unknown>] sending TransmitPacket:Bolus:data:unknown)
DEBUG:decocare.stick:[1, 0, 167, 1, 145, 57, 149, 128, 2, 0, 2, 1, 0, 66, 226, 0, 80, 250]
INFO:root:usb.write.len: 18
0000 0x01 0x00 0xa7 0x01 0x91 0x39 0x95 0x80 .....9..
0008 0x02 0x00 0x02 0x01 0x00 0x42 0xe2 0x00 .....B..
0010 0x50 0xfa P.
DEBUG:decocare.stick:sleeping 0.001
INFO:root:usb.read.len: 64
INFO:root:usb.read.raw:
0000 0x01 0x55 0x00 0x00 0xcf 0x80 0x40 0xa7 .U....@.
0008 0x01 0x91 0x39 0x95 0x03 0x03 0x35 0x35 ..9...55
0010 0x34 0x00 0x00 0x00 0x00 0x00 0x00 0x00 4.......
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 ........
INFO:decocare.stick:quit send_force_read, found len: 64 expected 64 after 0 attempts
INFO:decocare.stick:finished processing TransmitPacket:Bolus:data:unknown, bytearray(b'\x00\xcf\x80@\xa7\x01\x919\x95\x03\x03554\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
INFO:decocare.stick:PROCESS:END:22370.603:TransmitPacket:Bolus:data:unknown
INFO:decocare.session:sleeping 0.5 before download
INFO:decocare.session:proceeding with download
INFO:decocare.stick:download:start:0
INFO:decocare.stick:Stick transmit[TransmitPacket:Bolus:data:unknown] reader[ReadRadio:size:78] download_i[1] status[<LinkStatus:0x03:status:size=78:size(78)>] poll_size[78] poll_i[False] command[<TransmitPacket:Bolus:data:unknown>]:download(attempts[1],expect[0],results[0]:data[0]):begin first poll first sleep .250
DEBUG:decocare.stick:<Stick transmit[TransmitPacket:Bolus:data:unknown] reader[ReadRadio:size:78] download_i[1] status[<LinkStatus:0x03:status:size=78:size(78)>] poll_size[78] poll_i[False] command[<TransmitPacket:Bolus:data:unknown>]>:STARTING POLL PHASE:attempt:0
DEBUG:decocare.stick:<Stick transmit[TransmitPacket:Bolus:data:unknown] reader[ReadRadio:size:78] download_i[1] status[<LinkStatus:0x03:status:size=78:size(78)>] poll_size[0] poll_i[0] command[<TransmitPacket:Bolus:data:unknown>]>:poll:attempt:0
INFO:decocare.stick:PROCESS:START:23122.99:LinkStatus:0x03:status:size=64
INFO:decocare.stick:link Stick transmit[TransmitPacket:Bolus:data:unknown] reader[ReadRadio:size:78] download_i[1] status[<LinkStatus:0x03:status:size=78:size(78)>] poll_size[0] poll_i[0] command[<LinkStatus:0x03:status:size=64:size(64)>] processing LinkStatus:0x03:status:size=64)
INFO:decocare.stick:send_force_read: attempt 0/5 send command, read until we get something within some timeout
INFO:decocare.stick:link Stick transmit[TransmitPacket:Bolus:data:unknown] reader[ReadRadio:size:78] download_i[1] status[<LinkStatus:0x03:status:size=78:size(78)>] poll_size[0] poll_i[0] command[<LinkStatus:0x03:status:size=64:size(64)>] sending LinkStatus:0x03:status:size=64)
INFO:root:usb.write.len: 3
0000 0x03 0x00 0x00 ...
DEBUG:decocare.stick:sleeping 0.001
INFO:root:usb.read.len: 64
INFO:root:usb.read.raw:
0000 0x01 0x55 0x00 0x00 0x02 0x01 0x00 0x0f .U......
0008 0x05 0x04 0x00 0x95 0x03 0x03 0x35 0x35 ......55
0010 0x34 0x00 0x00 0x00 0x00 0x00 0x00 0x00 4.......
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 ........
INFO:decocare.stick:quit send_force_read, found len: 64 expected 64 after 0 attempts
INFO:decocare.stick:LinkStatus:0x03:status:size=15
INFO:decocare.stick:finished processing LinkStatus:0x03:status:size=15, 15
INFO:decocare.stick:PROCESS:END:23126.015:LinkStatus:0x03:status:size=15
INFO:decocare.stick:Stick transmit[TransmitPacket:Bolus:data:unknown] reader[ReadRadio:size:78] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[0] command[<LinkStatus:0x03:status:size=15:size(15)>]:STOP POLL after 1 attempts:size:15
INFO:decocare.stick:Stick transmit[TransmitPacket:Bolus:data:unknown] reader[ReadRadio:size:78] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<LinkStatus:0x03:status:size=15:size(15)>]:download(attempts[1],expect[15],results[0]:data[0]):end first poll
INFO:decocare.stick:Stick transmit[TransmitPacket:Bolus:data:unknown] reader[ReadRadio:size:78] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<LinkStatus:0x03:status:size=15:size(15)>]:download(attempts[1],expect[15],results[0]:data[0]):proceed to download packet
INFO:decocare.stick:Stick transmit[TransmitPacket:Bolus:data:unknown] reader[ReadRadio:size:78] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<LinkStatus:0x03:status:size=15:size(15)>]:download_packet:15
INFO:decocare.stick:PROCESS:START:23126.418:ReadRadio:size:15
INFO:decocare.stick:send_force_read: attempt 0/5 send command, read until we get something within some timeout
INFO:decocare.stick:link Stick transmit[TransmitPacket:Bolus:data:unknown] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<ReadRadio:size:15>] sending ReadRadio:size:15)
INFO:root:usb.write.len: 5
0000 0x0c 0x00 0x00 0x0f 0xc6 .....
DEBUG:decocare.stick:sleeping 0.001
INFO:root:usb.read.len: 15
INFO:root:usb.read.raw:
0000 0x02 0x00 0x02 0x00 0xcf 0x80 0x01 0xa7 ........
0008 0x01 0x91 0x39 0x95 0x2c 0x09 0x82 ..9.,..
INFO:decocare.stick:quit send_force_read, found len: 15 expected 15 after 0 attempts
INFO:decocare.stick:readData validating remote raw[ack]: 02
INFO:decocare.stick:readData; foreign raw should be at least 14 bytes? 15 True
INFO:decocare.stick:readData; raw[retries] 0
INFO:decocare.stick:ReadRadio:size:15:eod:found eod (True)
INFO:decocare.stick:found packet len(1), link expects(1)
INFO:decocare.stick:PROCESS:END:23128.754:ReadRadio:size:15
INFO:decocare.stick:Stick transmit[TransmitPacket:Bolus:data:unknown] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<ReadRadio:size:15>]:download(attempts[1],expect[15],results[1]:data[1]):adding segment
INFO:decocare.stick:Stick transmit[TransmitPacket:Bolus:data:unknown] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<ReadRadio:size:15>]:download(attempts[1],expect[15],results[1]:data[1]):DONE
INFO:decocare.session:finished executing:Bolus:size[64]:data:bytearray(b'\t')
INFO:decocare.commands:Bolus:size[64]:data:bytearray(b'\t'):download:done?explain=found[1] expected[64]
INFO:decocare.session:execute attempt: 2
INFO:decocare.session:session transferring packet
INFO:decocare.stick:transmit_packet:write:<TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')>
INFO:decocare.stick:PROCESS:START:23129.313:TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')
INFO:decocare.stick:link Stick transmit[TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')] reader[ReadRadio:size:15] download_i[False] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')>] processing TransmitPacket:Bolus:size[64]:data:bytearray(b'\t'))
INFO:decocare.stick:send_force_read: attempt 0/5 send command, read until we get something within some timeout
INFO:decocare.stick:link Stick transmit[TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')] reader[ReadRadio:size:15] download_i[False] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')>] sending TransmitPacket:Bolus:size[64]:data:bytearray(b'\t'))
DEBUG:decocare.stick:[1, 0, 167, 1, 145, 57, 149, 128, 2, 0, 2, 1, 0, 66, 226, 0, 80, 250]
INFO:root:usb.write.len: 18
0000 0x01 0x00 0xa7 0x01 0x91 0x39 0x95 0x80 .....9..
0008 0x02 0x00 0x02 0x01 0x00 0x42 0xe2 0x00 .....B..
0010 0x50 0xfa P.
DEBUG:decocare.stick:sleeping 0.001
INFO:root:usb.read.len: 64
INFO:root:usb.read.raw:
0000 0x01 0x55 0x00 0x00 0xcf 0x80 0x01 0xa7 .U......
0008 0x01 0x91 0x39 0x95 0x2c 0x09 0x82 0x35 ..9.,..5
0010 0x34 0x00 0x00 0x00 0x00 0x00 0x00 0x00 4.......
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 ........
INFO:decocare.stick:quit send_force_read, found len: 64 expected 64 after 0 attempts
INFO:decocare.stick:finished processing TransmitPacket:Bolus:size[64]:data:bytearray(b'\t'), bytearray(b'\x00\xcf\x80\x01\xa7\x01\x919\x95,\t\x8254\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
INFO:decocare.stick:PROCESS:END:23133.405:TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')
INFO:decocare.session:sleeping 0.5 before download
INFO:decocare.session:proceeding with download
INFO:decocare.stick:download:start:0
INFO:decocare.stick:Stick transmit[TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')>]:download(attempts[1],expect[0],results[0]:data[0]):begin first poll first sleep .250
DEBUG:decocare.stick:<Stick transmit[TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')>]>:STARTING POLL PHASE:attempt:0
DEBUG:decocare.stick:<Stick transmit[TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[0] poll_i[0] command[<TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')>]>:poll:attempt:0
INFO:decocare.stick:PROCESS:START:23886.523:LinkStatus:0x03:status:size=64
INFO:decocare.stick:link Stick transmit[TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[0] poll_i[0] command[<LinkStatus:0x03:status:size=64:size(64)>] processing LinkStatus:0x03:status:size=64)
INFO:decocare.stick:send_force_read: attempt 0/5 send command, read until we get something within some timeout
INFO:decocare.stick:link Stick transmit[TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[0] poll_i[0] command[<LinkStatus:0x03:status:size=64:size(64)>] sending LinkStatus:0x03:status:size=64)
INFO:root:usb.write.len: 3
0000 0x03 0x00 0x00 ...
DEBUG:decocare.stick:sleeping 0.001
INFO:root:usb.read.len: 64
INFO:root:usb.read.raw:
0000 0x01 0x55 0x00 0x00 0x02 0x01 0x00 0x0f .U......
0008 0x05 0x04 0x00 0x95 0x2c 0x09 0x82 0x35 ....,..5
0010 0x34 0x00 0x00 0x00 0x00 0x00 0x00 0x00 4.......
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 ........
INFO:decocare.stick:quit send_force_read, found len: 64 expected 64 after 0 attempts
INFO:decocare.stick:LinkStatus:0x03:status:size=15
INFO:decocare.stick:finished processing LinkStatus:0x03:status:size=15, 15
INFO:decocare.stick:PROCESS:END:23889.397:LinkStatus:0x03:status:size=15
INFO:decocare.stick:Stick transmit[TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[0] command[<LinkStatus:0x03:status:size=15:size(15)>]:STOP POLL after 1 attempts:size:15
INFO:decocare.stick:Stick transmit[TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<LinkStatus:0x03:status:size=15:size(15)>]:download(attempts[1],expect[15],results[0]:data[0]):end first poll
INFO:decocare.stick:Stick transmit[TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<LinkStatus:0x03:status:size=15:size(15)>]:download(attempts[1],expect[15],results[0]:data[0]):proceed to download packet
INFO:decocare.stick:Stick transmit[TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<LinkStatus:0x03:status:size=15:size(15)>]:download_packet:15
INFO:decocare.stick:PROCESS:START:23889.839:ReadRadio:size:15
INFO:decocare.stick:send_force_read: attempt 0/5 send command, read until we get something within some timeout
INFO:decocare.stick:link Stick transmit[TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<ReadRadio:size:15>] sending ReadRadio:size:15)
INFO:root:usb.write.len: 5
0000 0x0c 0x00 0x00 0x0f 0xc6 .....
DEBUG:decocare.stick:sleeping 0.001
INFO:root:usb.read.len: 15
INFO:root:usb.read.raw:
0000 0x02 0x00 0x02 0x00 0xcf 0x80 0x01 0xa7 ........
0008 0x01 0x91 0x39 0x95 0x2c 0x09 0x82 ..9.,..
INFO:decocare.stick:quit send_force_read, found len: 15 expected 15 after 0 attempts
INFO:decocare.stick:readData validating remote raw[ack]: 02
INFO:decocare.stick:readData; foreign raw should be at least 14 bytes? 15 True
INFO:decocare.stick:readData; raw[retries] 0
INFO:decocare.stick:ReadRadio:size:15:eod:found eod (True)
INFO:decocare.stick:found packet len(1), link expects(1)
INFO:decocare.stick:PROCESS:END:23892.365:ReadRadio:size:15
INFO:decocare.stick:Stick transmit[TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<ReadRadio:size:15>]:download(attempts[1],expect[15],results[1]:data[1]):adding segment
INFO:decocare.stick:Stick transmit[TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')] reader[ReadRadio:size:15] download_i[1] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<ReadRadio:size:15>]:download(attempts[1],expect[15],results[1]:data[1]):DONE
INFO:decocare.session:finished executing:Bolus:size[64]:data:bytearray(b'\t')
INFO:decocare.commands:Bolus:size[64]:data:bytearray(b'\t'):download:done?explain=found[1] expected[64]
CRITICAL:decocare.session:this seems like a problem
response: Bolus:size[64]:data:bytearray(b'\t')
#### decoded:
```python
bytearray(b'\t')
```
### end stats
```
INFO:decocare.stick:PROCESS:START:23892.86:UsbStats:0x05 0x01
INFO:decocare.stick:link Stick transmit[TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')] reader[ReadRadio:size:15] download_i[False] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<UsbStats:0x05 0x01:size(64)>] processing UsbStats:0x05 0x01)
INFO:decocare.stick:send_force_read: attempt 0/5 send command, read until we get something within some timeout
INFO:decocare.stick:link Stick transmit[TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')] reader[ReadRadio:size:15] download_i[False] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<UsbStats:0x05 0x01:size(64)>] sending UsbStats:0x05 0x01)
INFO:root:usb.write.len: 3
0000 0x05 0x01 0x00 ...
DEBUG:decocare.stick:sleeping 0.001
INFO:root:usb.read.len: 64
INFO:root:usb.read.raw:
0000 0x01 0x55 0x00 0x00 0x00 0x05 0x00 0x00 .U......
0008 0x00 0x00 0xc6 0x00 0x00 0x00 0xcb 0x00 ........
0010 0xdd 0x00 0xcc 0x00 0xcb 0x04 0x00 0x00 ........
0018 0x05 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 ........
INFO:decocare.stick:quit send_force_read, found len: 64 expected 64 after 0 attempts
INFO:decocare.stick:finished processing UsbStats:0x05 0x01, {'errors.timeouts': 0, 'packets.transmit': 203L, 'errors.naks': 5, 'errors.sequence': 0, 'packets.received': 198L, 'errors.crc': 0}
INFO:decocare.stick:PROCESS:END:23896.718:UsbStats:0x05 0x01
INFO:decocare.stick:PROCESS:START:23896.817:RadioStats:0x05 0x00
INFO:decocare.stick:link Stick transmit[TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')] reader[ReadRadio:size:15] download_i[False] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<RadioStats:0x05 0x00:size(64)>] processing RadioStats:0x05 0x00)
INFO:decocare.stick:send_force_read: attempt 0/5 send command, read until we get something within some timeout
INFO:decocare.stick:link Stick transmit[TransmitPacket:Bolus:size[64]:data:bytearray(b'\t')] reader[ReadRadio:size:15] download_i[False] status[<LinkStatus:0x03:status:size=15:size(15)>] poll_size[15] poll_i[False] command[<RadioStats:0x05 0x00:size(64)>] sending RadioStats:0x05 0x00)
INFO:root:usb.write.len: 3
0000 0x05 0x00 0x00 ...
DEBUG:decocare.stick:sleeping 0.001
INFO:root:usb.read.len: 64
INFO:root:usb.read.raw:
0000 0x01 0x55 0x00 0x00 0x00 0x00 0x00 0x00 .U......
0008 0x00 0x00 0x43 0x00 0x00 0x00 0x44 0x00 ..C...D.
0010 0x00 0x00 0x28 0x00 0x2a 0x00 0x00 0x00 ..(.*...
0018 0x0b 0x00 0x1c 0x00 0x0e 0x00 0x00 0x00 ........
0020 0x00 0x01 0x00 0xac 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 ........
INFO:decocare.stick:quit send_force_read, found len: 64 expected 64 after 0 attempts
INFO:decocare.stick:finished processing RadioStats:0x05 0x00, {'errors.timeouts': 0, 'packets.transmit': 68L, 'errors.naks': 0, 'errors.sequence': 0, 'packets.received': 67L, 'errors.crc': 0}
INFO:decocare.stick:PROCESS:END:23902.078:RadioStats:0x05 0x00
```
```javascript
{'radio': {'errors.crc': 0,
'errors.naks': 0,
'errors.sequence': 0,
'errors.timeouts': 0,
'packets.received': 67L,
'packets.transmit': 68L},
'usb': {'errors.crc': 0,
'errors.naks': 5,
'errors.sequence': 0,
'errors.timeouts': 0,
'packets.received': 198L,
'packets.transmit': 203L}}
```
ian@ubuntu:~/decoding-carelink$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment