These are chat archives for nightscout/intend-to-bolus

1st
May 2019
Jon Cluck
@cluckj
May 01 00:07
great! :thumbsup:
Denis Shevchenko
@denisshevchenko
May 01 16:29

Could you help me please? Just after installation I'm trying to check if Explorer HAT sees my pump. This is my command:

$ cd /root/myopenaps
$ openaps use pump read_settings

But I see this error:

...
  File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 490, in process
    raw = self.send_force_read( )
  File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 606, in send_force_read
    self.link.write(reader.format( ))
  File "/usr/local/lib/python2.7/dist-packages/decocare/link.py", line 47, in write
    r = self.serial.write( string )
  File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 531, in write
    raise portNotOpenError
serial.serialutil.SerialException: Attempting to use a port that is not open
How can I fix it?
philipgo
@philipgo
May 01 17:52
Has anyone heard of this project? theotherpancreas.org - sounds somewhat fishy...
Jon Cluck
@cluckj
May 01 17:58
yeah, it's straight-up dangerous
I'm not going to mince words about it
Eric
@ecc1
May 01 18:00
and far from open/transparent -- does anyone know if the code or hardware design is available after you go through the signup process?
Jon Cluck
@cluckj
May 01 18:01
seems likely
Eric
@ecc1
May 01 18:01
not that "it might kill you, but at least it's open source" would be that much better ...
Jon Cluck
@cluckj
May 01 18:02
what I've seen so far out of it is that the dev either hasn't appropriately or sufficiently considered the social, ethical, legal, or technical issues around this; or they're trying to hurt people
it's so underdeveloped that's it's almost "will kill you" :\
Denis Shevchenko
@denisshevchenko
May 01 18:04
@cluckj Maybe you know how can I fix it?
serial.serialutil.SerialException: Attempting to use a port that is not open
Jon Cluck
@cluckj
May 01 18:04
@denisshevchenko are you using the dev branch?
philipgo
@philipgo
May 01 18:04
I hope this is not the return of the veterinary insulin pump guy
Jon Cluck
@cluckj
May 01 18:05
it doesn't look like the same person
Denis Shevchenko
@denisshevchenko
May 01 18:05
@cluckj Yes
Jon Cluck
@cluckj
May 01 18:06
the mmeowlink toolchain doesn't work on dev, you'll need to use mdt commands to get pump settings
(and probably turn off your loop so the port is open)
Denis Shevchenko
@denisshevchenko
May 01 18:07
Do you mean that?
:~/src/oref0# mdt basal
2019/05/01 14:07:14 cannot connect to CC111x radio on /dev/spidev0.0
2019/05/01 14:07:14 /dev/spidev0.0: device is in use
device is in use
Raymond Richmond
@PedanticAvenger
May 01 18:09
Looking at that "pump" design even without my calculator in hand I can visualize a whole LOT of ways to die.
Now credit to at least trying but no force sensors to monitor actual delivery or not, etc.
And the resolution of that "lead screw" oy.
Jon Cluck
@cluckj
May 01 18:19
@denisshevchenko yep, turn off your loop with: systemctl stop cron && pkill -f oref0-pump-loop
Raymond Richmond
@PedanticAvenger
May 01 18:19
Now I kinda want to order their kit just to understand how bad it can really be. Looking close at that PCB (as close as one can in a video) they are monitoring screw revolutions , but more? Doubt it.
Jon Cluck
@cluckj
May 01 18:20
there's a couple Looped posts on it, and I'm trying not to swear lol
Raymond Richmond
@PedanticAvenger
May 01 18:20
I can appreciate the humor in naive design. But it doesn't belong in health.
Denis Shevchenko
@denisshevchenko
May 01 18:21
@cluckj Done. Now I see this error:
$ mdt battery
2019/05/01 14:21:01 connected to CC111x radio on /dev/spidev0.0
2019/05/01 14:21:01 setting frequency to 916.600
2019/05/01 14:21:03 waking pump
2019/05/01 14:21:16 no response to wakeup
Why 916??
I have WW-pump
Jon Cluck
@cluckj
May 01 18:29
maybe your frequency was set wrong? can you run oref0-mmtune?
Denis Shevchenko
@denisshevchenko
May 01 18:31

maybe your frequency was set wrong?

I definitely remember that I set WW

$ oref0-mmtune
mmtune: "868.400", 3, -63 -- "868.450", 0, -128
Jon Cluck
@cluckj
May 01 18:34
export MEDTRONIC_FREQUENCY=868.4 and try the command again
Denis Shevchenko
@denisshevchenko
May 01 18:35
$ export MEDTRONIC_FREQUENCY=868.4
$ mdt status
2019/05/01 14:34:43 connected to CC111x radio on /dev/spidev0.0
2019/05/01 14:34:43 setting frequency to 868.400
2019/05/01 14:34:45 waking pump
2019/05/01 14:34:48 no response to wakeup
Freq is correct now
but no response
Jon Cluck
@cluckj
May 01 18:37
mdt wakeup
that'll spam the pump with model commands :)
Denis Shevchenko
@denisshevchenko
May 01 18:38
$ mdt wakeup
2019/05/01 14:37:50 connected to CC111x radio on /dev/spidev0.0
2019/05/01 14:37:50 setting frequency to 868.400
2019/05/01 14:37:52 waking pump
2019/05/01 14:37:55 no response to wakeup
:-(
Jon Cluck
@cluckj
May 01 18:39
:(
Denis Shevchenko
@denisshevchenko
May 01 18:42
Maybe I should set up export MEDTRONIC_FREQUENCY=868.45
?
nope, didn't help
Jon Cluck
@cluckj
May 01 18:49
is the serial number correct?
Denis Shevchenko
@denisshevchenko
May 01 18:50
$ echo $MEDTRONIC_PUMP_ID       
792849
I re-checked it again - 6 digits
correct ones
Jon Cluck
@cluckj
May 01 18:51
have you looped with it before?
Denis Shevchenko
@denisshevchenko
May 01 18:52
no
I'm trying to set it up
the first time
So I just want to make sure it sees the pump
Jon Cluck
@cluckj
May 01 18:54
if it's the appropriate model and firmware, make sure the pump battery has enough voltage and turn on "remote options" (with any serial number) in the utilities menu
Denis Shevchenko
@denisshevchenko
May 01 18:54

utilities menu

It's pump's menu, right?

Jon Cluck
@cluckj
May 01 18:54
yep
Denis Shevchenko
@denisshevchenko
May 01 18:56
Yes, that menu was off, now I switch it to on
But he asked me about ID of remote device
Jon Cluck
@cluckj
May 01 19:00
you can put in 000000 or 111111 or something, the numbers don't matter :)
Denis Shevchenko
@denisshevchenko
May 01 19:01
ok
$ export MEDTRONIC_FREQUENCY=868.45
$ mdt wakeup
2019/05/01 15:02:08 connected to CC111x radio on /dev/spidev0.0
2019/05/01 15:02:08 setting frequency to 868.450
2019/05/01 15:02:08 model 722 pump
2019/05/01 15:02:08 disconnecting CC111x radio on /dev/spidev0.0
$ mdt status
2019/05/01 15:02:23 connected to CC111x radio on /dev/spidev0.0
2019/05/01 15:02:23 setting frequency to 868.450
2019/05/01 15:02:23 model command required 2 retries
2019/05/01 15:02:23 model 722 pump
{
  "status": "normal",
  "bolusing": false,
  "suspended": false
}
2019/05/01 15:02:24 disconnecting CC111x radio on /dev/spidev0.0
YEAAAH!
It looks like it works
$ mdt firmware
2019/05/01 15:04:49 connected to CC111x radio on /dev/spidev0.0
2019/05/01 15:04:49 setting frequency to 868.450
2019/05/01 15:04:50 model command required 1 retry
2019/05/01 15:04:50 model 722 pump
"VER 2.4A1.1"
2019/05/01 15:04:50 disconnecting CC111x radio on /dev/spidev0.0
Jon Cluck
@cluckj
May 01 19:07
nice!
Denis Shevchenko
@denisshevchenko
May 01 19:07
Now I can re-run loop again?
Jon Cluck
@cluckj
May 01 19:08
yep, systemctl start cron should get it going in a minute
Denis Shevchenko
@denisshevchenko
May 01 19:11
Rebooting to fix radio errors!
The system is going down for reboot at Wed 2019-05-01 15:14:03 -04!

Broadcast message from root@Matvey (Wed 2019-05-01 15:11:05 -04):

The system shutdown has been cancelled
Should I reboot explicitly?
Jon Cluck
@cluckj
May 01 19:12
nope
it should get started looping before the reboot happens
Denis Shevchenko
@denisshevchenko
May 01 19:16
Starting oref0-pump-loop at Wed  1 May 15:14:05 -04 2019 with 29 second wait_for_silence:
MDT CGM configured; not waiting
Listening for 29s: ...No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Wed  1 May 15:15:00 -04 2019
Preflight OK. 
Attempting to retrieve MDT CGM data from pump
Retry 1 of mdt_get_bg
Listening for 2s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Wed  1 May 15:15:15 -04 2019
Retry 2 of mdt_get_bg
Listening for 29s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Wed  1 May 15:15:51 -04 2019
Retry 3 of mdt_get_bg
Couldn't mdt_get_bg
oref0-pump-loop failed. pump_loop_completed more than 15m old; waiting for 42 s silence before mmtuning
"HAT Display Updated"
Jon Cluck
@cluckj
May 01 19:17
are you using an enlite?
Denis Shevchenko
@denisshevchenko
May 01 19:18
yes
Jon Cluck
@cluckj
May 01 19:18
is it connected to that pump?
Denis Shevchenko
@denisshevchenko
May 01 19:18
yes
Jon Cluck
@cluckj
May 01 19:20
I'm not sure how to troubleshoot that, but brb :)
Denis Shevchenko
@denisshevchenko
May 01 19:29
@cluckj Thank you very much for your help!!
Jon Cluck
@cluckj
May 01 19:48
@denisshevchenko can you check in here to see if there's any more detailed failures? /var/log/openaps/cgm-loop.log
zasteph
@zasteph
May 01 22:43
A few questions, please…
  • While the rig “learns” night after night, does it ever change/re-write in the pump the initially configured basal rates?
  • While the target value is set to about 90, the system is sometimes “stuck” for hours at a higher value (around 200), without trying to move down. Any suggestion what should I check?
  • We are using mmol/L, not mg/dl; could that interfere in any way with the well-being of the system? The heroku app page is definitely confused sometimes when we enter BG values and/or boluses in the pump (i.e. if we enter 5.5 (mmol/L == 100 mg/dl), nightscout on heroku displays 55, etc.)
    Thank you.
samueldemers2
@samueldemers2
May 01 23:46
Maybe someone could answer a question about combatible pump. A canadian 754 with firmware 2.7, should it be able to close loop using openaps?
samueldemers2
@samueldemers2
May 01 23:49
I looked at it, but for the firmware it has it is not clear if it can close the loop (or just open loop)
zasteph
@zasteph
May 01 23:52
my interpretation is that with 2.7 you may only have access to "open loop", while starting at 2.8A is a clear no
samueldemers2
@samueldemers2
May 01 23:52
This is also what I understand
zasteph
@zasteph
May 01 23:53
I'm in the same boat, I got a second pump from ebay...
samueldemers2
@samueldemers2
May 01 23:54
I have a 715, but im affraid it could break and that I would lose all that I got with openaps. It was à pretty good deal!
Scott Leibrand
@scottleibrand
May 01 23:58
@zasteph on 1) no, it's up to you to update the pump basals if/when you want to. doing so adjusts the range of values that autotune is allowed to use, which by default is from 70% to 120% of the pump values.
@samueldemers2 can you have to pump owner tell you what's under Utilities, Connect Devices? https://openaps.readthedocs.io/en/latest/docs/Gear%20Up/pump.html#how-to-check-pump-firmware-check-for-absence-of-pc-connect