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

7th
May 2018
Dana Lewis
@danamlewis
May 07 2018 03:41

Reminder - please test dev and comment on your setup. Expecting to release 0.6.1 end of this week if no major issues are spotted. See here for the list of things to test for this release.

To test, check out a fresh dev (instructions here, follow steps 1A, 2, and 3) and make sure to comment on openaps/oref0#816 to let us know how it's going.

Tim Gunn
@Tornado-Tim
May 07 2018 08:27
Whats happening with the PR: openaps/oref0#974 ?
NoKindOfSusie
@NoKindOfSusie
May 07 2018 09:12
hihi
Scott Leibrand
@scottleibrand
May 07 2018 15:44
@Tornado-Tim I forgot it wasn’t merged. Is now, thx.
Dana Lewis
@danamlewis
May 07 2018 15:56
@Tornado-Tim yes plz do test it in dev now :+1:
Been working well for me
Dave Acklam
@dcacklam
May 07 2018 16:50

Does anyone have an extra Edison Explorer board they'd be willing to part with?

I've got 2 that each have 'issues' (one can only operate on USB power, the other has something wrong with it's radio chipset & loses the ability to talk to a rig/flash the CC chip after a few minutes of operation)...

ERD never got the prototype HAT to me, and my day-to-day SRF rig is a power-hog (running the 0.6.1-dev version on a Pi Zero = 10hrs/6000mah)...

The one that is USB-only 'flashes' its lights (both power and the radio ones) when a charged battery is plugged in...
(has anyone else seen that issue?)
Eric
@ecc1
May 07 2018 16:55
I don't have any Explorer boards, but if you still have an Intel breakout board you can wire up an SRF radio to it.
Dave Acklam
@dcacklam
May 07 2018 16:55
I do have one of those as well, hadn't looked into that...
Eric
@ecc1
May 07 2018 17:03
If you do it, I'd recommend hooking it up via SPI (versus UART) so you have the option of using the same branch of code that the Explorer hat will use
Dave Acklam
@dcacklam
May 07 2018 17:07
Is there a diagram for what pins to solder where? I have some Arduino boards with an SRF soldered to them, that came with my slice-of-radio kits, I could cannibalize one of those if I knew which of the ~15 pins on the SRF module needed to be soldered to what on the Intel breakout...
Also, does the intel breakout board have a LIPO charging circuit?
(powering stuff via USB will result in USB ports being ripped off of PCBs, in the environment I'm taking this into)
cdiulus
@cdiulus
May 07 2018 17:18
I was away all weekend and had to use bluetooth for my rig because I couldn't get on the wifi at the rental house. Now I am home and I can't get on my home wifi. Here is the most recent log data: Starting oref0-pump-loop at Mon May 7 13:11:02 EDT 2018 with 2 second wait_for_silence:
Waiting up to 4 minutes for new BG: ......
Starting oref0-pump-loop at Mon May 7 13:13:02 EDT 2018 with 10 second wait_for_silence:
Waiting up to 4 minutes for new BG: ls: cannot access /tmp/pump_loop_completed: No such file or directory
Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Preflight mmeowlink.exceptions.CommsException: No acknowledgement from pump on wakeup. Is it out of range or is the battery too low?
fail. Retrying preflight
Preflight mmeowlink.exceptions.CommsException: No acknowledgement from pump on wakeup. Is it out of range or is the battery too low?
fail. Couldn't preflight
oref0-pump-loop failed. pump_loop_completed more than 15m old; waiting for 40s silence before mmtuning
Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Listening for 40s silence before mmtuning: .No interfering pump comms detected from other rigs (this is a good thing!)
mmtune: "916.636", 0, -99 waiting for 78 second silence before continuing
Radio ok. Listening: .

And here is how I have my wifi set up: root@aqua:~# cat-wifi

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1
network={
ssid="Lewis's Wi-Fi Network"
psk="xxxxxxxx"
}
network={
ssid="CCOC-PUBLIC"
psk="xxxxxxxx"
}

It just did this: [ 429.353126] f6894000 34b153f7 c1cc2640 c14c7734 f6ff1640 f6894000 f6ff1640 f6880b40
[ 429.353235] Call Trace:
[ 429.353288] [<c18b64f8>] dump_stack+0x16/0x18
[ 429.353344] [<c18b22e8>] schedule_bug+0x5e/0x70
[ 429.353402] [<c18ba9c5>]
schedule+0x7a5/0x7c0
[ 429.353458] [<c1247074>] ? irq_exit+0x74/0xb0
[ 429.353514] [<c14c7734>] ? trace_hardirqs_on_thunk+0xc/0x10
[ 429.353576] [<c18b007b>] ? relay_hotcpu_callback+0x29/0xad
[ 429.353635] [<c14c6581>] ? delay_tsc+0xb1/0xc0
[ 429.353688] [<c18baa03>] schedule+0x23/0x60
[ 429.353741] [<c153f41d>] serial_hsu_command+0x4cd/0x1010
[ 429.353800] [<c154004a>] serial_hsu_tasklet+0x1a/0x30
[ 429.353856] [<c12467e8>] tasklet_action+0x68/0x110
[ 429.353911] [<c1246d89>] __do_softirq+0xd9/0x240
[ 429.353966] [<c18bbeb0>] ? restore_all+0xf/0xf
[ 429.354020] [<c1246f11>] run_ksoftirqd+0x21/0x90
[ 429.354075] [<c1267ed6>] smpboot_thread_fn+0x116/0x270
[ 429.354132] [<c1267dc0>] ? lg_local_lock_cpu+0x50/0x50
[ 429.354188] [<c1260324>] kthread+0x94/0xa0
[ 429.354239] [<c18b0303>] ? blk_cpu_notify+0x7/0x63
[ 429.354297] [<c18c0cf7>] ret_from_kernel_thread+0x1b/0x28
[ 429.354354] [<c1260290>] ? kthread_create_on_node+0xc0/0xc0
l
Eric
@ecc1
May 07 2018 17:37
SRF-SPI-connection.jpg
@dcacklam here's a pinout:
The Intel BB handles LiPo charging if you connect the LiPo to the correct connector (see the Intel user's guide for the breakout board for details, as well as the pinout for the SPI connections on the Edison side)
Dana Lewis
@danamlewis
May 07 2018 17:56
Suggestion: this might be a good convo to move to hardware/dev
cdiulus
@cdiulus
May 07 2018 18:05
@danamlewis I posted above. I am home now and can't get my rig connected to my home wifi. So frustrating.
Dana Lewis
@danamlewis
May 07 2018 18:12
@cdiulis try deleting the update_config=1 from file and see if that fixes it
cdiulus
@cdiulus
May 07 2018 18:13
@danamlewis will do
cdiulus
@cdiulus
May 07 2018 18:29
@danamlewis That worked. I have no idea where that came from but back in business. Thanks so much.
Dana Lewis
@danamlewis
May 07 2018 18:34
Cool. Thanks for letting me know. There's an automated fix for that which will be in the next release
ejoe132
@ejoe132
May 07 2018 18:56
Any one have a pump theyd like to sell?
Dana Lewis
@danamlewis
May 07 2018 18:58
@ejoe132 some posted to the OpenAPS-dev Google group recently; or check the Facebook group where they're frequently posted; or offerup etc
ejoe132
@ejoe132
May 07 2018 19:19
@danamlewis Thank you
interesting new android powered things
Tim Gunn
@Tornado-Tim
May 07 2018 20:12
@dcacklam: yes one of my breakout boards did the exact same thing it only works via USB power, Lipo charging stuffed, got a replacement via enhanced radio
Jon Cluck
@cluckj
May 07 2018 20:53
@stavlor cool!
Martin Haeberli
@mhaeberli
May 07 2018 23:27
@scottleibrand - sorry - mis-posted this into cgm-remote-monitor channel:
@scottleibrand :
pursuant to our discussions yesterday: the most recent devicestatus shows:
{ "uploader" : { "batteryVoltage" : 3638, "battery" : 44 }, "_id" : "5af0c0403edc490011e4a911", "device" : "openaps://etghopenaps0", "openaps" : { "iob" : { "timestamp" : "2018-05-07T21:06:13.000Z", "bolusinsulin" : 15.4, "lastBolusTime" : 1525723780000, "iob" : 7.8890000000000002, "activity" : 0.075200000000000003, "lastTemp" : { "date" : 1525727086000, "started_at" : "2018-05-07T21:04:46.000Z", "timestamp" : "2018-05-07T14:04:46-07:00", "duration" : 2.8799999999999999, "rate" : 1.95 }, "bolusiob" : 9.2859999999999996, "netbasalinsulin" : -2.7000000000000002, "basaliob" : -1.397, "iobWithZeroTemp" : { "bolusinsulin" : 15.4, "time" : "2018-05-07T21:06:13.000Z", "iob" : 7.8890000000000002, "activity" : 0.075200000000000003, "bolusiob" : 9.2859999999999996, "netbasalinsulin" : -2.7000000000000002, "basaliob" : -1.397 } }, "suggested" : { "rate" : 0, "deliverAt" : "2018-05-07T21:06:42.679Z", "reason" : "If current system time Mon May 07 2018 14:06:42 GMT-0700 (PDT) is correct, then BG data is too old. The last BG data was read 12.3m ago at Mon May 07 2018 13:54:27 GMT-0700 (PDT). Canceling high temp basal of 1.95", "temp" : "absolute", "timestamp" : "2018-05-07T21:06:42.000Z", "duration" : 0 }, "enacted" : { "insulinReq" : 0, "sensitivityRatio" : 1, "COB" : 50, "temp" : "absolute", "timestamp" : "2018-05-07T21:04:47.000Z", "tick" : "+5", "reservoir" : "268.475", "deliverAt" : "2018-05-07T21:04:17.273Z", "bg" : 315, "eventualBG" : 401, "reason" : "COB: 50, Dev: 109, BGI: -13, ISF: 35, CR: 5.8, Target: 100, minPredBG 339, minGuardBG 318, IOBpredBG 180, COBpredBG 391, UAMpredBG 401; IOB 8.07 > max_iob 8; setting current basal of 1.95 as temp. ", "IOB" : 8.0700000000000003, "received" : true, "duration" : 30, "rate" : 1.95 } }, "pump" : { "status" : { "status" : "normal", "timestamp" : "2018-05-07T21:07:49.000Z", "bolusing" : false, "suspended" : false }, "reservoir" : 268.375, "clock" : "2018-05-07T14:06:13-07:00", "battery" : { "status" : "normal", "voltage" : 1.3899999999999999 } }, "created_at" : "2018-05-07T21:08:16.971Z" }
-the operative enact shows
May 07 14:04:17 etghopenaps0 pump-loop.log: enact/smb-suggested.json: {"temp":"absolute","bg":315,"tick":"+5","eventualBG":401,"insulinReq":0,"reservoir":"268.475","deliverAt":"2018-05-07T21:04:17.273Z","sensitivityRatio":1,"predBGs":{"IOB":[315,316,315,313,310,306,301,295,288,280,272,263,254,244,236,228,221,214,207,200,194,188,186,184,182,180,178,179,179,179,179,179,180],"ZT":[315,302,289,276,263,250,238,226,214,203,193,184,176,168,161,155,149,144,140,135,132,128],"COB":[315,317,318,319,319,319,320,320,320,320,321,321,322,323,325,326,328,330,331,333,334,335,340,344,348,352,355,360,365,370,374,377,380,383,385,387,389,390,391],"UAM":[315,319,323,327,330,333,335,337,339,341,344,346,349,351,353,356,359,362,364,366,368,369,374,379,383,386,389,394,399,401]},"COB":50,"IOB":8.07,"reason":"COB: 50, Dev: 109, BGI: -13, ISF: 35, CR: 5.8, Target: 100, minPredBG 339, minGuardBG 318, IOBpredBG 180, COBpredBG 391, UAMpredBG 401; IOB 8.07 > max_iob 8; setting current basal of 1.95 as temp. ","duration":30,"rate":1.95}
-the most recent enact shows
May 07 16:14:26 etghopenaps0 pump-loop.log: enact/smb-suggested.json: {"temp":"absolute","bg":152,"tick":-4,"eventualBG":221,"insulinReq":0,"reservoir":"256.925","deliverAt":"2018-05-07T23:14:25.997Z","sensitivityRatio":1,"predBGs":{"IOB":[152,148,143,138,132,126,120,114,107,101,94,87,80,73,67,61,55,51,46,42,39],"ZT":[152,145,138,130,123,115,108,101,94,87,80,74,68,63,58,53,49,47,45,43,41,40,39,40,41,42,43,45,47,48,50,53,56,60,64,69,73,78,82,87,91,96],"COB":[152,148,144,140,137,133,129,126,123,120,117,115,113,112,110,110,110,111,113,115,118,121,124,129,133,139,144,149,154,158,163,167,172,177,182,186,191,195,199,202,206,209,211,214,216,218,219,221],"UAM":[152,147,142,136,129,121,113,106,98,91,83,76,69,62,56,50,44,40,39]},"COB":38,"IOB":5.632,"reason":"COB: 38, Dev: 19, BGI: -7, ISF: 35, CR: 5.8, Target: 100, minPredBG 70, minGuardBG 35, IOBpredBG 39, COBpredBG 221, UAMpredBG 39; minGuardBG 35<70 80m left and 0 ~ req 0U/hr: no temp required"}
Scott Leibrand
@scottleibrand
May 07 2018 23:27
looks like your /api/v1/devicestatus.json doesn't have anything recent in it. is your devicestatus collection full?
Martin Haeberli
@mhaeberli
May 07 2018 23:28
I was thinking that - per mlab, the overall mlab collection is ‘only’ 400 MB of 500 MB - is there some other number (like a count) I should be looking at?
Scott Leibrand
@scottleibrand
May 07 2018 23:29
normally people see issues at 496 MB. wouldn't hurt to compact it though
Martin Haeberli
@mhaeberli
May 07 2018 23:29
also, trying to understand why this has been intermittent
Scott Leibrand
@scottleibrand
May 07 2018 23:29
normally full DB is not intermittent, agreed
Martin Haeberli
@mhaeberli
May 07 2018 23:29
ok, I’ll compact, and maybe even go through the donate / delete cycle again
Scott Leibrand
@scottleibrand
May 07 2018 23:30
we can also check the ns-loop.log to see what it says about its upload attempts
Martin Haeberli
@mhaeberli
May 07 2018 23:30
then post here for the community’s benefit
Scott Leibrand
@scottleibrand
May 07 2018 23:30
FWIW if you do donate, you only have to delete devicestatus: the other collections are fine
most NS reports use entries and treatments, so losing devicestatus is NBD once it's donated
Martin Haeberli
@mhaeberli
May 07 2018 23:30
gr8 what exactly should I look for? I mis-?remembered that it used to say ‘uploaded’
k thx
but ‘uploaded’ no longer showing meaningfully in my papertrail logs
Scott Leibrand
@scottleibrand
May 07 2018 23:32
so the errors to look for are IOB not found, No recent suggested.json found, Couldn't generate ns-status.json, or Couldn't upload devicestatus to NS
and if it's successful it will look like {"BG":92,"IOB":-0.186,"rate":0.06,"duration":30,"units":null}
or {"BG":109,"IOB":0.168,"rate":1.9,"duration":30,"units":0.2} with an SMB
Martin Haeberli
@mhaeberli
May 07 2018 23:39
most recent No recent suggested.json found at 14:34
NO Couldn't generate ns-status.json
NO Couldn't upload devicestatus to NS
May 05 04:40:17 etghopenaps0 ns-loop.log: {"BG":295,"IOB":5.232,"rate":0,"duration":60,"units":null} May 05 04:41:17 etghopenaps0 ns-loop.log: {"BG":295,"IOB":5.232,"rate":0,"duration":60,"units":null} May 05 04:42:16 etghopenaps0 ns-loop.log: {"BG":295,"IOB":5.232,"rate":0,"duration":60,"units":null}
i note also that the edison clocks are about 2 minutes fast!
about 1 - 2 minutes fast
so maybe I don’t have NTP time setting set up correctly on the Edisons !?
which may ALSO (does ALSO) explain why the Edisons keep on re-setting the pump clock every few days
not to say this relates to our ‘trouble’ here, but...
Martin Haeberli
@mhaeberli
May 07 2018 23:44
I am wondering why the Edison automatic NTP updates somehow are not working - where to look there?
Scott Leibrand
@scottleibrand
May 07 2018 23:51
does your Internet connection block NTP?
Martin Haeberli
@mhaeberli
May 07 2018 23:52
no - just manually NTP’d from one of the two devicers
devices
(can’t VPN to the other one at the moment)
btw,
NAME    DOCUMENTS    CAPPED?    SIZE 
devicestatus    78,845    false    297.32 MB
so not ‘capped’, but I’m about to donate / reset anyway… (cause I’m a data packrat and don’t want to throw away anything)
Scott Leibrand
@scottleibrand
May 07 2018 23:54
can you paste a full recent ns-loop.log run?
Martin Haeberli
@mhaeberli
May 07 2018 23:55
yes one mo'
May 07 16:56:02 etghopenaps2 autosens-loop.log: Starting oref0-autosens-loop at Mon May 7 16:56:02 PDT 2018: May 07 16:56:02 etghopenaps2 ns-loop.log: Starting oref0-ns-loop at Mon May 7 16:56:02 PDT 2018: May 07 16:56:02 etghopenaps2 autosens-loop.log: No need to refresh autosens yet: {"ratio":1} May 07 16:56:02 etghopenaps2 autosens-loop.log: Completed oref0-autons-loop at Mon May 7 16:56:02 PDT 2018 May 07 16:56:06 etghopenaps2 ns-loop.log: Found recent valid BG: May 07 16:56:06 etghopenaps2 ns-loop.log: {"glucose":110,"dateString":"2018-05-07T16:49:26-07:00"} May 07 16:56:07 etghopenaps2 ns-loop.log: Latest NS temptargets: {"target":125,"duration":480,"start":"2018-05-07T08:07:25.228Z"} May 07 16:56:07 etghopenaps2 ns-loop.log: Merging local temptargets: Temptargets merged: {"target":125,"duration":480,"start":"2018-05-07T08:07:25.228Z"} May 07 16:56:18 etghopenaps2 ns-loop.log: Refreshed carbhistory; COB: 29 May 07 16:56:18 etghopenaps2 ns-loop.log: {"batteryVoltage":3680,"battery":50} May 07 16:56:25 etghopenaps2 ns-loop.log: No new treatments to upload May 07 16:56:25 etghopenaps2 ns-loop.log: Completed oref0-ns-loop at Mon May 7 16:56:25 PDT 2018
(filtered to ONLY ns-loop.log)