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

22nd
Feb 2017
renegadeandy
@renegadeandy
Feb 22 2017 00:06
@Kdisimone do you know who has tried it on this newer firmware and concluded it's a no go? When things are secured , there is nearly always a way around them and I'm interested in trying to help that effort!
Dana Lewis
@danamlewis
Feb 22 2017 00:13
No one has made any meaningful progress or inched at all. Feel free to take a whack at it
renegadeandy
@renegadeandy
Feb 22 2017 00:17
Ok @danamlewis - I will! Knowing who made the original RF interface (written in python I believe) would be useful. Can you help me contact this person? I did find this https://github.com/ps2/minimed_rf but believe this is not currently being used in the OpenAPS system.
Dana Lewis
@danamlewis
Feb 22 2017 00:19
Which original RF interface? There have been several people who have done several different types of things with RF. You probably want to take a look at decocare too
renegadeandy
@renegadeandy
Feb 22 2017 00:20
I believe it's decocare. Sorry maybe shouldn't have used the word original - I am just getting orientated with what has been done so far
renegadeandy
@renegadeandy
Feb 22 2017 00:25
@bewest you appear to be the brains behind decocare. Would you be available for a chat about the paradigm veo with firmware 3.1 which doesn't appear to work wth decocare, when it did work with firmware 2.6? I would be interested in helping making a fix if you believe it is feasible.
Scott Leibrand
@scottleibrand
Feb 22 2017 00:43
mmeowlink is what we use to talk directly to the pump. You'll be able to read from a non-loopable pump, but you can't write to it unless you manually put the pump into PC Connect mode, which times out after a couple minutes.
Scott Leibrand
@scottleibrand
Feb 22 2017 00:50
It might be possible to emulate the Medtronic remote, but that only supports boluses and suspends, not temp basals, so it can't be made walk-away (or dead-battery) safe like older pumps.
Another option in Europe is the Dana R with AndroidAPS.
Eric
@ecc1
Feb 22 2017 01:32
@renegadeandy Remote bolus is also disabled in the newer firmware. Basically, only "read-only" commands can be done, except in PC connect mode, and that's only usable for a short period of time.
Or, what @scottleibrand said :-)
Dana Lewis
@danamlewis
Feb 22 2017 01:45
:+1:
Scott Leibrand
@scottleibrand
Feb 22 2017 02:44
@Kdisimone one other detail: autotune uses the min and max from autosens. So changing autosens max from 1.2 to something higher would allow autotune to adjust to more than 20% resistance as well, if the data ever indicated that was necessary. You're a lot more likely to hit those limits with autosens than autotune if your pump settings are well tuned for your average basals and ratios though.
Jason Wittmer
@jbwittmer
Feb 22 2017 03:02
@scottleibrand Do you have any updates on the success or failure of the method in radio-reboot branch to fix the /dev/spidev5.1 already in use error that several have described? I think I saw that you have seen that occasionally on your rig as well. It doesn't happen us frequently, although twice today was irritating.
katie disimone
@Kdisimone
Feb 22 2017 03:04
@jbwittmer yes…the fix has worked for us…let me get link
Jason Wittmer
@jbwittmer
Feb 22 2017 03:06
@Kdisimone Fantastic. Thanks. Did I miss this document somewhere or is it something you'd typed up? Really helpful.
katie disimone
@Kdisimone
Feb 22 2017 03:08
I typed it up based on the fix suggested by someone (who’s name is not coming up when I try to type it here). I had to type it up because I was sending it to some others who aren’t on gitter regularly…and i don’t know how to properly PR this one into oref0 yet. If someone wants to take a stab…it would be great. The fix has worked solidly for us.
Jason Wittmer
@jbwittmer
Feb 22 2017 03:08
Thank you. We've seen rarely, overall, but when it happens when he's at school it's a pain in the rear.
katie disimone
@Kdisimone
Feb 22 2017 03:10
IMG_0503.JPG
IMG_0504.JPG
IMG_0505.JPG
My $2.89 case from Target is working great. Can plug in without taking it out. Ratcheted top is secure without messing with wires inside. It’s a Stanley Staples case. Nice and thick can add vents easily. and enough room to add a small (yellow) foam piece between lipo and board for added puncture protection. White piece on the side is just a little stuffing to keep the board stable when plugging in if needed.
Jason Wittmer
@jbwittmer
Feb 22 2017 03:13
Very nice. As in it was a case containing staples? Find it in the office supplies section?
Oh, no I think I found it. Hardware item. Like staples for staple gun?
katie disimone
@Kdisimone
Feb 22 2017 03:15
over in the home improvements section. kind of like this one, i believe. husband is on his way to buy me a couple more so I can confirm in a bit if it’s this exact one.
I just used a wood burning tool to take the tab off the top and make the usb holes.
peterfulvi
@peterfulvi
Feb 22 2017 03:30
Im pretty much giving up on the tethering.I tried it and it was working, had the same ip as lastnight. Turned off my network connection , SSH'D into it, then i turned everything off and on again it couldnt connect through that ip adress anymore, no bnep0 on my rig even though the network was shut off, do you have to setup a network connection every time you turn your phone on? Anyways im going to see about setting up nightscout. Do i need a minimed connect for a medtronic cgm?
Tim Street
@tim2000s
Feb 22 2017 08:36
@Kdisimone - if you search for @ceben80 In here, he did it as a single line in crontab.
Sacha M
@coolestkidsever
Feb 22 2017 08:37
Hi all, looking to setup the Edison/Explorer version, but can't find a supplier of LiPo batteries who will ship to NZ. Anyone else had this issue and come up with a solution?
Also, does the Explorer board include the Edison moduleor do I need to purchase that also?
katie disimone
@Kdisimone
Feb 22 2017 08:38
@tim2000s I did that and even suggested it as a PR...it did not get support as a solution. You can read up on it in the issue i made for Bt tethering and the PR I made using that cron line.
And by "that" I mean the single line cron addition you are suggesting vs the longer solution I typed up
@coolestkidsever need to buy Edison separately
Dana Lewis
@danamlewis
Feb 22 2017 08:40
openaps/oref0#411
katie disimone
@Kdisimone
Feb 22 2017 08:41
I was about to type that @danamlewis...just saw it
Dana Lewis
@danamlewis
Feb 22 2017 08:41
:+1:
katie disimone
@Kdisimone
Feb 22 2017 08:41
@tim2000s see dana's link. It stems from the discussion here. openaps/oref0#406
Scott Leibrand
@scottleibrand
Feb 22 2017 08:44
@Kdisimone @tim2000s and anyone else who's seen the spidev5.1 already in use error: I just opened openaps/oref0#411
heh, and now I see Dana already beat me to it. :)
Dana Lewis
@danamlewis
Feb 22 2017 08:45
:fire: ;)
katie disimone
@Kdisimone
Feb 22 2017 08:49

What's the commands to change and try?

'cd ~/src/oref0 && git checkout radio-reboot && git pull' and then??? Or am I even doing that wrong.

renegadeandy
@renegadeandy
Feb 22 2017 09:05
@scottleibrand @ecc1 I am going to in for a battle with this pump I can tell! So with pc connect on, it will all work? Or are you saying that it still won't work in pc connect mode @ecc1 ?
Scott Leibrand
@scottleibrand
Feb 22 2017 09:17
It will work temporarily in PC Connect mode, but there's no way to extend that except by pressing the buttons manually on the pump. So it doesn't help for looping.
@Kdisimone Also `npm run global-install" and re-run oref0-setup to add the cron line.
renegadeandy
@renegadeandy
Feb 22 2017 09:20
@scottleibrand aha right. So I need to experiment finding a way to get pc connect mode to remain on even when you are not on that menu item etc. Have you done much work trying to get this to work?
Scott Leibrand
@scottleibrand
Feb 22 2017 09:21
Pretty sure they made it impossible, since that was kinda the point of adding it. I probably spent an hour trying various ways to make it work.
But if you do figure out a workaround, that would be awesome.
renegadeandy
@renegadeandy
Feb 22 2017 09:23
What did you try? Sorry to be a pain but it'd be useful to get an idea of starting points!
Scott Leibrand
@scottleibrand
Feb 22 2017 09:24
Stuff like sending button press commands to try to get it to extend, sending commands continually to see if it would stay on longer, etc.
I didn't do anything like "try all the opcodes", for risk of bricking the pump. I think Ben did that once, and though he'd bricked it, but just had turned the contrast all the way down, and had to find the command to turn it back up. :smile:
renegadeandy
@renegadeandy
Feb 22 2017 09:26
Ok cool, is this stuff documented somewhere? I would be happy to experiment and may be braver than others before me with things like op codes!
Scott Leibrand
@scottleibrand
Feb 22 2017 09:28
See the decocare repo, as well as mmeowlink etc.
renegadeandy
@renegadeandy
Feb 22 2017 09:33
Ok will check those out - any others? I found this : https://github.com/ps2/minimed_rf
Scott Leibrand
@scottleibrand
Feb 22 2017 09:41
Yeah that one too. Basically check out all of @bewest @ps2 and @oskarpearson's stuff.
peterfulvi
@peterfulvi
Feb 22 2017 12:26
@lukas-ondriga Im interested in using my pebble watch with http push. That would just require me pairing or wouldit require metehering and shutting of my wifi setttings in my rig?
lukas-ondriga
@lukas-ondriga
Feb 22 2017 12:28
@peterfulvi you need to be able to access your rig from the mobile phone paired with pebble. I use bluetooth tethering for this.
JustineAnne
@MicheleJustine
Feb 22 2017 12:29
Hi, I use a dexcom G5 sensor and the dexcom share app to view my bg on my phone, would it be possible to use this with openaps setup instead of nightscout?
Tim Street
@tim2000s
Feb 22 2017 12:56
Hi @peterfulvi have you got your OpenAPS rig running fully now?
peterfulvi
@peterfulvi
Feb 22 2017 13:00
Ok. Im havng some difficulty with the tethering process( which is to my already paired phone) .I establish the connection. run ifconfig benep0.and get the IP address( my network connection on my phone and rig are turned off), the i ssh into my rig via Bluetooth, it works the first time then when i try to tunnel back into it says it does not have a network connection (which is port 22). Then when i go and run
ifconfig bnep 0 the Bluetooth IP address is not there any more. Once i can get my rig to be permanently tethered then i can move on. Any help or input would be great. Yes @tim2000s its up and running , im working on getting it to tether to my pebble or phone so i can send temp Bg commands to it, its a work in progress but well worth it.
Tim Street
@tim2000s
Feb 22 2017 13:10
I'd recommend starting the tethering process again. Unpair Your Edison from the phone and remove your phone from bluetoothctl. Then start the process again. That worked for me.
kenstack
@kenstack
Feb 22 2017 13:45
@scottleibrand @tim2000s I have my edison tethered via ble working well. What is best practice on ssh’ing in over ble ? I use cathode on my iphone which works fine if I know the local IP on my subnet, so right now Im just loooking at all the devices on that network with a network scan app, and picking out the iphone (right now I dont tether anything else so its clear). Is there a better way to use a hostname or something? I tried using the name.local which obviously works on wifi but that doesnt work over ble. thanks! Im most intersted in the situation where there is no internet connectivity ie offline - I have a reverse tunnel for normal everyday interaction.
Tim Street
@tim2000s
Feb 22 2017 13:51
@kenstack I use Termius on android the same way. The bt ip doesn't seem to change.
kenstack
@kenstack
Feb 22 2017 13:52
@tim2000s ok cool - thanks!
Tim Street
@tim2000s
Feb 22 2017 13:52
I haven't found a way to attribute a host name for bt.
kenstack
@kenstack
Feb 22 2017 14:13
@tim2000s ok thanks! I figured this is the best “offline” solution - I think I was successful in cutting the trace on a prototype explorer board so I am going to run some offline tests today wtih the receiver connected directly.
peterfulvi
@peterfulvi
Feb 22 2017 14:16
Great thanks
ejoe132
@ejoe132
Feb 22 2017 14:34
Have a quick question, I have my targets set at 120-130, but on ns it reads "Target:130; 130-180 in range no action required;" Why is it adding this range 130-180 when my setting is 120-130? and it also seems to shift it, a minute ago it said 131-178
Chris Oattes
@cjo20
Feb 22 2017 14:37
It's not saying that your target is 130-180. It's saying it is predicting your BG will end up in the 130-180 range. 130 would be in range, so it's not going to change your dose
ejoe132
@ejoe132
Feb 22 2017 14:40
Itll normally have target:120-130; then eventual:-.--; does it change to the range when moving fast? Just curious why it is reading different at time
Chris Oattes
@cjo20
Feb 22 2017 14:41
huh?
Depending on the situation, it can make decisions based on your upper target, lower target, or both
which is why sometimes it will compare to one, or both, of those values. The "X-Y in range, no action required" just means that the predicted BG overlaps with your target range. X-Y is where it thinks your BG will end up, which changes over time as the data openaps gets changes.
ejoe132
@ejoe132
Feb 22 2017 14:47
Ok just wasnt sure were it was coming up with saying 130-180 in range no action required, when set target is 120-130 and while BG is 147
Chris Oattes
@cjo20
Feb 22 2017 14:51
yeah, it reacts based on what it predicts will happen in the future, not what the numbers are now
The predicted range will shrink as you get farther from events that cause fluctuations (boluses / food)
ejoe132
@ejoe132
Feb 22 2017 15:17
Ok I get what your saying, its does that when it has variables affecting large change. Thank you
renegadeandy
@renegadeandy
Feb 22 2017 16:46
@scottleibrand @ecc1 do you know if the rf projects from @bewest @ps2 and @oskarpearson work with the contour next link USB reader as that has since replaced the white Medtronic care link USB Radio device and I can't find my old carelink?
JELCRAWFORD
@JELCRAWFORD
Feb 22 2017 17:26
@MicheleJustine I think the following link will take you to documentation that will assist you in knowing what you will need for setup for dex G5 plus share. I'm not totally sure, but a quick look suggests that Nightscout will still be necessary. It is easy to set up thou - don't let that be a barrier! http://www.nightscout.info/wiki/welcome/nightscout-with-xdrip-and-dexcom-share-wireless
katie disimone
@Kdisimone
Feb 22 2017 17:27
@kenstack like this? I wrote up the setup (steps1-4 apply...the end goal of adding a wifi network is extraneous to the other parts you're interested in). http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-2/on-the-go-wifi-adding.html
JustineAnne
@MicheleJustine
Feb 22 2017 17:29
Ok, thank you @JELCRAWFORD 🙂
JELCRAWFORD
@JELCRAWFORD
Feb 22 2017 17:37
@ejoe132 - I was confused by this too (target info in OpenAPS pill) - I wonder if it would be simple to add the word 'eventual' in front of that target when the output is generated?
Chris Oattes
@cjo20
Feb 22 2017 17:41
JELCRAWFORD: What part is unclear?
JELCRAWFORD
@JELCRAWFORD
Feb 22 2017 17:43
@cjo20 I was confused by the output not realizing it was using a projected number for that range - Scott cleared this up last week or the week before when we were working through a COB issue.
Tim Street
@tim2000s
Feb 22 2017 18:02
Can anyone tell me what the COB issue number was?
JELCRAWFORD
@JELCRAWFORD
Feb 22 2017 18:04
@tim2000s 387 and 390 - different issues.
kenstack
@kenstack
Feb 22 2017 18:17
@Kdisimone looks like exactly what I did up until the last part - I'm not sure if you are on ble you need to add any networks - your phone and your Edison are already on the "local" network which is your hotspot - the rest looks great ! And maybe I'm missing the point on the last part ?
katie disimone
@Kdisimone
Feb 22 2017 18:19
(that last part was just specifically for a question that had kept coming up from fellow moms about sleepovers with the rig and not wanting to run up data plan)
Tim Street
@tim2000s
Feb 22 2017 18:27
Thanks @JELCRAWFORD
kenstack
@kenstack
Feb 22 2017 18:56
@Kdisimone ahh :) very cool writeup !
JELCRAWFORD
@JELCRAWFORD
Feb 22 2017 18:59
@Kdisimone - I second the two thumbs up on your documentation efforts and changes!
Eric
@ecc1
Feb 22 2017 19:01
@renegadeandy you can also look at the code I wrote in Go to talk to the pump over SPI-connected radio modules: https://github.com/ecc1/medtronic
@Kdisimone Nice idea for a case. I'm also using a slightly-flexible plastic case, and have found one problem: if I "squish" it by accident, it's possible for the Edison to get levered off its connector, since it's only anchored at 2 corners. Curious whether you will encounter this or think up a workaround!
Eric
@ecc1
Feb 22 2017 19:09
@renegadeandy None of those projects, nor mine, directly support the CNL. I know people are working on it but I haven't followed it. But a Carelink stick, even if you found yours, would be an exercise in frustration. I'd suggest getting a radio module (CC111x or RFM69) and talking to the pump directly.
JELCRAWFORD
@JELCRAWFORD
Feb 22 2017 19:48
@tim2000s - great article!
Tim Street
@tim2000s
Feb 22 2017 19:59
:+1: @JELCRAWFORD
peterfulvi
@peterfulvi
Feb 22 2017 20:29
@thebookins Iorderedti tobe printed. itshould behere in a few days. It is black rsin with a clear lid. I also orderedsome thread tappers for m3-m12. Im actually also trying a simple design myself, learning autodesk
Paul Dickens
@thebookins
Feb 22 2017 20:33
@peterfulvi have you shared your design anywhere? I'd love to have a look. I actually found that the m2 screws works fine without tapping. Did you see my comments above about the lid not securing properly. It's fine with some tape but I would like to refine the design at some point.
dan lightner
@danimaniac
Feb 22 2017 21:29
@thebookins @peterfulvi This morning I posted a revised design of my case. I tried to address @thebookins loose lid issue by including a boss inside the case body and a boss inside the lid. In essence the Explorer Board itself holds the case together. I also borrowed some venting design cues from @thebookins case. https://github.com/danimaniac/OpenAPS-Explorer-Board-Edison-vented-case/blob/master/OpenAPS%20Explorer%20Edison%20Case%202017-02-22.stl
peterfulvi
@peterfulvi
Feb 22 2017 22:00
@danimaniac Very nice diagrams can i get the specs for the board with the edison on it. Prticularly the screw holes. Imin the geginning ofmine,learning as i go
image.png
3mm size holes for m4 screws
Colin Lennon
@colinlennon
Feb 22 2017 22:11
Hi all. New issue tonight for me... The two small red LEDs on my Explorer board are suddenly always on and I'm getting Could not get subg_rfspy state or version. Have you got the right port/device and radio_type? Even a reboot or a power off and back on doesn't clear this, so my loop is completely down at the moment. Anyone else seen anything similar?
I think this happened at around the time my phone ran out of juice, which would've caused the rig to lose its BT tethered connection. That might just be a coincidence though.
Dana Lewis
@danamlewis
Feb 22 2017 22:16
openaps/oref0#411 @colinlennon give that a test and please thumb up it if it helps
Colin Lennon
@colinlennon
Feb 22 2017 22:20
@danamlewis I think this is different though - I'm not getting "already in use" errors and a reboot doesn't resolve it
Eric
@ecc1
Feb 22 2017 22:25

@scottleibrand I think the instructions could be improved by using allow-hotplug wlan0 rather than auto wlan0 in the setup of /etc/network/interfaces. The former tries to bring up WiFi during the boot sequence, which will often fail. The latter only does it when the the wlan0 interface is created (i.e. after firmware loading etc.) and seems more robust.

The same applies to the bnep0 interface for BT tethering. WIth allow-hotplug, the system will take care of running DHCP and assigning an IP address whenever bnep0 gets created by bt-pan, which can simplify the oref0-online script.

Scott Leibrand
@scottleibrand
Feb 22 2017 22:26
Sounds good. Care to PR?
Colin Lennon
@colinlennon
Feb 22 2017 22:28
Does anyone know what it means when those two small red LEDs are always on? Wondering if I have a hardware failure on this Explorer board
Eric
@ecc1
Feb 22 2017 22:30
@scottleibrand I'm hesitant since I don't have an actual openaps setup to test it on ... I'm just trying to bulletproof my own wifi/BT switchover and happened to notice that.
Colin Lennon
@colinlennon
Feb 22 2017 22:38
Okay, so I commented out the cron entry that executes reset_spi_serial.py at startup, powered down, back up, and those two LEDs didn't light up. Still seeing the same sub_rfspy state or version errors though. I ran reset_spi_serial.py manually, and the two LEDs lit up and have stayed on. Still getting the same errors. :worried:
Scott Leibrand
@scottleibrand
Feb 22 2017 22:40
Try re-flashing the cc1110 with ccprog
any volunteers to try out @ecc1's allow-hotplug suggestion?
@ecc1 maybe also add a comment to openaps/oref0#406 ?
Colin Lennon
@colinlennon
Feb 22 2017 22:51
@scottleibrand Thanks Scott, had just spotted that someone else had the same issue earlier in the month. I've just re-flashed using ccprog and that has fixed it. :smile:
Paul Dickens
@thebookins
Feb 22 2017 22:51
@danimaniac great idea about putting two of the screw bosses on the lid - I might steal it :smile:
dan lightner
@danimaniac
Feb 22 2017 22:56
@peterfulvi The Explorer Board dimensions (L x W x H) are: 54mm x 30mm x 8.0mm. The Intel Edison dimensions (L x W x H) are: 35.5mm x 25.0mm x 3.9mm. Nobody seems to have a 3d model for the Explorer Board and it looks somewhat complicated to create one from the Ki-CAD files so I just created a block with the stated dimensions. The Intel Edison model is in my repo. I will have to adjust a few dimensions for my design when I finally receive my Explorer Board (still on backorder). Keep up the good work!
@thebookins That's what it's all about, right? Share and share alike!
Paul Dickens
@thebookins
Feb 22 2017 23:02
:+1: @danimaniac
Scott Leibrand
@scottleibrand
Feb 22 2017 23:12
Please also PR your cases to the OpenAPS docs hardware page wth the other.
*other ones.
dan lightner
@danimaniac
Feb 22 2017 23:26
@scottleibrand #677
Dana Lewis
@danamlewis
Feb 22 2017 23:39
:+1:
Terri Lyman
@tatigger
Feb 22 2017 23:45
I have a quick question. It doesn't look as though it is easily interchangeable to use X Drip for offline mode and switch back to online when available for more rapid updates to Nightscout. So I think I will elect to use the otg to usb option for times when I need to be offline (road trips with no cell signal, etc) I will usually have internet/Nightscout access. So my question is: Will OpenAPS/Edison upload the missing data to Nightscout when the internet access is available again?
Scott Leibrand
@scottleibrand
Feb 22 2017 23:47
Depends how you configure it. I don't recall how far back it pulls by default when configure for uploading, but I think it's a few hours.
Terri Lyman
@tatigger
Feb 22 2017 23:50
Thanks, @scottleibrand, I don't want to lose a lot of data! Am I correct in assuming it is not a simple switch back and forth with X Drip?
Also, has anyone resolved automatic internet switching on the Edison? I am still unable to get the Edison/Explorer Board to automatically switch back to house internet when my Android Phone Hotspot is shut when I am home to save data on the cellular network.
Terri Lyman
@tatigger
Feb 22 2017 23:57
As I am reading through things, when folks are having trouble with BT tethering, are they talking about with IPhones specifically? Not an Android phone using X Drip?