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

30th
Oct 2018
Ryan Dalisky
@rdalisky
Oct 30 2018 00:02
Twice in two days, the two radio LED's have gone constant-on. Running DEV on an explorer board. When I try to reflash the radio, I get an error that the chip is unsupported chip id = 0x00 any ideas besides reflashing the edison
?
Scott Leibrand
@scottleibrand
Oct 30 2018 00:03
re-seat the edison on the EB?
Ryan Dalisky
@rdalisky
Oct 30 2018 00:08
re-seat failed
Scott Leibrand
@scottleibrand
Oct 30 2018 00:11
failed how? didn't help? or broke something?
Ryan Dalisky
@rdalisky
Oct 30 2018 00:18
didnt help. still says it is an unsupported chip. I had to do a fresh install yesterday to rectify it. Are these starchy scrubs causing static to fry the radio programming?
Scott Leibrand
@scottleibrand
Oct 30 2018 00:18
dunno, maybe?
Ryan Dalisky
@rdalisky
Oct 30 2018 00:21
I'm just wearing the edison, taped to the battery, and in a pocket with my phone. never used to be a problem. any idea as far as getting this thing to flash?
Jon Cluck
@cluckj
Oct 30 2018 00:22
what's the command you're using to flash it?
(the radio, I mean)
Ryan Dalisky
@rdalisky
Oct 30 2018 00:22
wget https://github.com/EnhancedRadioDevices/subg_rfspy/releases/download/v0.8-explorer/spi1_alt2_EDISON_EXPLORER_US_STDLOC.hex
./ccprog -p 19,7,36 erase
./ccprog -p 19,7,36 write spi1_alt2_EDISON_EXPLORER_US_STDLOC.hex
Jon Cluck
@cluckj
Oct 30 2018 00:23
and a full reinstall fixed it?
Ryan Dalisky
@rdalisky
Oct 30 2018 00:24
I flashed yocto, then jubilinux, and then master openaps. reflashed, and then upgraded to DEV
It's FUBAR when this happens, need a tic-tac case or something!
Jon Cluck
@cluckj
Oct 30 2018 00:29
is reset_spi_serial.py installed on there?
running that might reset the radio...
Ryan Dalisky
@rdalisky
Oct 30 2018 00:53
didnt work, reflashing now.
Ryan Dalisky
@rdalisky
Oct 30 2018 03:33
reflashed it and it happened. It may be an issue with
DEV
Ill retry, having trouble rolling back to master though.
Scott Leibrand
@scottleibrand
Oct 30 2018 03:34
do you have another Explorer Board to swap and see if it has the same issue? if not, might want to order one to have on hand.
downgrading to 0.6.x is probably harder than just reflashing
Ryan Dalisky
@rdalisky
Oct 30 2018 03:37
No, I'm going to buy one tonight. Just a pain. is there anywhere to get another edison just in case
?
Scott Leibrand
@scottleibrand
Oct 30 2018 03:38
eBay is probably your best bet for that
Ryan Dalisky
@rdalisky
Oct 30 2018 03:38
Ok, thank you.
Is the Pi hat setup that much slower/bigger?
Scott Leibrand
@scottleibrand
Oct 30 2018 05:16
Enough so that we don’t use ours
Name
@orbarya
Oct 30 2018 06:54
I haven't built a rig yet because I don't understand how do you deal with keeping the rig connected to the internet? Using bluetooth tethering to the phone? Doesn't that drain the phone's battery extremely fast?
Isn't there a rig that we can build with built in sim card support?
Ivica Suran
@isuran
Oct 30 2018 07:03
@orbarya we get two days battery on samsung a6. you can add sim card to raspberry
Name
@orbarya
Oct 30 2018 07:06
@isuran thanks! And what battery life do you get from the rig? What rig do you use?
@isuran "you can add sim card to pi", can the sim card be added in addition with 915Mhz communication? Can you explain how?
Ivica Suran
@isuran
Oct 30 2018 07:09
we have raspberry py 3 + carelink, then edison + explorer block, then raspberry pi zero w + hat. with 2500 battery, around 10 hours. We use in school some samsung brick battery , it last 2 days.
sim card, I have tested this shield with carelink and rb3, worked ok. But It was to big altogether.
or u can use usb 4g modem, usually thera are no problems on linux with most models
Name
@orbarya
Oct 30 2018 07:19
@isuran What shield did you test? Is there one for the raspberry pi zero?
It should work with zero, but it's big. Edison is much smaller combination.
Name
@orbarya
Oct 30 2018 07:33
@isuran thank you!
Name
@orbarya
Oct 30 2018 08:37
What's stopping us from running OpenAPS on an android phone? I see that OpenAPS is written in python, and from what I see python can be packaged into an apk.
Ivica Suran
@isuran
Oct 30 2018 09:02
you have androidaps on phone. But phone cannot send data to medtronic pump. There is work in progress androidaps with rileylink for medtronic pump
Name
@orbarya
Oct 30 2018 09:04
Yes I know Androidaps, but I'm thinking of being able to compile any new version of OpenAPS into an apk using some script.
Indeed it will require to change the communication module to transmit the same commands over bluetooth to the rileylink
peterfulvi
@peterfulvi
Oct 30 2018 10:16
Does this mean i have a broken radio
Starting oref0-pump-loop at Tue Oct 30 06:15:03 EDT 2018 with 13 second wait_for                                                                                                                                                             _silence:
Waiting up to 4 minutes for new BG: First loop: not waiting

Listening for 13s: .No interfering pump comms detected from other rigs (this is                                                                                                                                                              a good thing!)
Continuing oref0-pump-loop at Tue Oct 30 06:15:05 EDT 2018
Preflight fail. Retry 1 of preflight
Preflight fail. Listening for 5s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Tue Oct 30 06:15:11 EDT 2018
Retry 2 of preflight
Preflight fail. Listening for 13s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Tue Oct 30 06:15:15 EDT 2018
Retry 3 of preflight
Preflight fail. Couldn't preflight
oref0-pump-loop failed. pump_loop_completed more than 15m old; waiting for 43 s silence before mmtuning
Listening for 43s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Tue Oct 30 06:15:19 EDT 2018
Listening for 43 s silence before mmtuning: Listening for 43s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Tue Oct 30 06:15:20 EDT 2018
mmtune: 2018/10/30 06:15:23 cannot connect to CC111x radio on /dev/spidev5.1
2018/10/30 06:15:23 cc111x: no response
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
Continuing oref0-pump-loop at Tue Oct 30 06:15:20 EDT 2018 mmtune: 2018/10/30 06:15:23 cannot connect to CC111x radio on /dev/spidev5.1 2018/10/30 06:15:23 cc111x: no response
Ediosn was loose
:confused:
Trying again
peterfulvi
@peterfulvi
Oct 30 2018 10:22
Got it :thumbsup:
Jon Cluck
@cluckj
Oct 30 2018 13:04
:clap:
Dana Lewis
@danamlewis
Oct 30 2018 15:40
@orbarya the old device toolkit is python; the latest device toolkit will be Go based. But the core decision making code regardless is javascript
Name
@orbarya
Oct 30 2018 15:49
@danamlewis Thanks for the info, if you are in the progress of rewriting the toolkit perhaps you should consider java? It would make it possible to run on all machines with JVMs including Android. But perhaps Go gives the same power? Im not familiar with it.
Do the toolkit and the core both run continuously on the rig?
Dana Lewis
@danamlewis
Oct 30 2018 16:00
Yes, they do. Go is the new radio rewrite currently in dev
As someone else mentioned, there's WIP to make a rileylink work with AndroidAPS to make medtronic pumps loopable with a phone instead of a rig, so you may want to check that out if you don't want to build a rig to loop with.
Name
@orbarya
Oct 30 2018 16:21
I know and very much appreciate the your work and AndroidAPS and I'm aware of the project to communicate with medtronic via Rileylink. I'm just wondering,
Perhaps if someone start to port the code to java, it will eventually be possible to run the entire system on an android phone as well on linux machines.
What happens right now when a change in the core of OpenAPS occurs, I imagine that the AndroidAPS team have to implement it as well on AndroidAPS
or even on a bug fix in the core of openaps
Zach Gohr
@zgohr
Oct 30 2018 16:35
My understanding is its a different implementation of the same algorithm, so likely not many one-for-one bugs
Name
@orbarya
Oct 30 2018 16:42
Right, not one to one, but dont you think it would be better to have one implementation of the algorithm?
Scott Leibrand
@scottleibrand
Oct 30 2018 17:39
I keep hearing lots of people suggesting that other people do lots of unrewarding work to refactor things, but I’m not hearing anyone volunteering to actually take on such work, so I don’t think it is likely to happen unless that changes.
Name
@orbarya
Oct 30 2018 17:51
I would like to actually try and do that, but I want to here the opinion of the developers of OpenAPS. Im a java developer so I definitely want to help with that
Scott Leibrand
@scottleibrand
Oct 30 2018 20:08
the main challenge is figuring out how to integrate whatever common-code thing you do with the rest of OpenAPS. not sure how much work it'd be to re-implement all that functionality with java instead of JS, and whether there'd be any resource or performance penalties to doing so.
Why not
@Whynot2018_gitlab
Oct 30 2018 21:20
@scottleibrand Is it possible to load old diasend database datas to NS? Thanks.
Scott Leibrand
@scottleibrand
Oct 30 2018 21:21
This message was deleted
Why not
@Whynot2018_gitlab
Oct 30 2018 21:22
@danamlewis Thanks.
Peter Miller
@ochenmiller
Oct 30 2018 21:41
You know it's an anniversary when you forget it! October 1 marked our 3 year anniversary looping full time with "Hank the Pank", aka OpenAPS. Forever grateful to everyone who've worked so hard to make this technology work and accessible. --- Peter Miller
Scott Leibrand
@scottleibrand
Oct 30 2018 21:41
:+1: :heart: :clap: :confetti_ball:
Jon Cluck
@cluckj
Oct 30 2018 21:53
:clap:
djnoor
@djnoor
Oct 30 2018 22:30
Trying to running OpenAPS 0.6.2 on an Intel Edison w/ Explorer Board. Running Putty on a Windows 10 laptop w/ Edison plugged in with USB. Installed Open APS following exactly the instructions here (https://openaps.readthedocs.io/en/latest/docs/Build%20Your%20Rig/OpenAPS-install.html). When I type "l" to view the logs, it gives the following output repeatedly. Have waited over 30 minutes and still keep getting this error.
Starting oref0-pump-loop at Tue Oct 30 17:21:03 CDT 2018 with 21 second wait_for_silence:
Waiting up to 4 minutes for new BG: jq: monitor/glucose.json: No such file or directory
jq: monitor/glucose.json: No such file or directory
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 OK. Profile less than 60m old; Profile valid. touch: failed to get attributes of ‘monitor/glucose.json’: No such file or directory
Couldn't touch /tmp/pump_loop_enacted -r monitor/glucose.json
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.612", 5, -52 No wait required.
If pump and rig are close enough, this error usually self-resolves. Stand by for the next loop.
Unsuccessful oref0-pump-loop at Tue Oct 30 17:23:33 CDT 2018
grep: monitor/temp_basal.json: No such file or directory
Any idea what's going on? I have the Medtronic 522 pump right next to the Edison.
djnoor
@djnoor
Oct 30 2018 22:40
Have tried both using the Carelink USB and not using it. Doesn't seem to make a difference. This page (https://openaps.readthedocs.io/en/latest/docs/Troubleshooting/oref0-setup-troubleshooting.html) says to use it. But this page (https://openaps.readthedocs.io/en/latest/docs/Resources/troubleshooting.html#dealing-with-the-carelink-usb-stick) says it's no longer recommended. So I was confused about that.
Dana Lewis
@danamlewis
Oct 30 2018 22:41
@ochenmiller :) <3 thanks for sahring! happy looping-versary!
@djnoor what type of cgm are you using?
djnoor
@djnoor
Oct 30 2018 22:41
Freestyle Libre
With MiaoMiao, sending data to Xdrip+ on an Android smartphone
Dana Lewis
@danamlewis
Oct 30 2018 22:41
ok. and is that data showing up in NS?
you'll need to get the Libre data to the rig - usually that's done via NS, so you'll need to set that up & get BG data flowing before looping will work
djnoor
@djnoor
Oct 30 2018 22:42
Yes, I've been collected data in Xdrip+ and sending it to Nightscout successfully for 30 days.
Dana Lewis
@danamlewis
Oct 30 2018 22:43
ok. you might cat your run-again then to make sure that your NS url and API secret are correct.
djnoor
@djnoor
Oct 30 2018 22:45
Thanks. By "cat your run-again" do you mean to rerun the setup script?
Dana Lewis
@danamlewis
Oct 30 2018 22:46
no, I mean look at what you've entered there first. cd ~/myopenaps && cat oref0-runagain.sh
and if there's typos/incorrect, then yes, edit and save and run again
djnoor
@djnoor
Oct 30 2018 22:52
Ok, I've run that command and confirmed that the NS url and API secret are correct. I choose "xdrip" as the cgm method. Not sure if that matters.
And "-tty=/dev/spidev5.1"
djnoor
@djnoor
Oct 30 2018 22:59
Not sure if the version of Node.js I'm running matters. I have 8.12.0.
Scott Leibrand
@scottleibrand
Oct 30 2018 23:23
also check which CGM you have configured in runagain
then check /var/log/openaps/ns-loop.log to see if it's successfully downloading BGs