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

27th
Feb 2019
Riko L
@Ricco555
Feb 27 00:11
thnx.. trying it now.
Eric
@ecc1
Feb 27 01:36
@Ricco555 you wired your RFM69 according to the original Walrus pin configuration, so you'll need to pass the "walrus" build tag when doing the Go compilation (@cluckj is there a menu option for that?)
and the walrus configuration uses /dev/spidev0.0
Riko L
@Ricco555
Feb 27 01:45
thanx @ecc1 I guess I'll need some guideline to pass "walrus" build tag as it doesn't offer menu option. Also, I did chose spidev0.1 so that could be also wrong choice during setup.
Eric
@ecc1
Feb 27 01:59
it doesn't look like it's supported in the script, so I suggest you first choose the rfm69 radio and "build the Medtronic library from source" options. Once that's finished, one of us can provide instructions on how to rebuild for the walrus config (basically go build -tags "rfm69 walrus" in the right places and copying the resulting executables to the right places)
Riko L
@Ricco555
Feb 27 02:08
Thanks. script is running, but my eyes are shutting down. So, I'll postpone the last step after sleep.
Jon Cluck
@cluckj
Feb 27 02:39
nothing in the config menus to change that yet
@Ricco555 like @ecc1 said, specify /dev/spidev0.0 as the tty port and install Go libraries from source with rfm69 option, then run these three commands separately:
go get -u -v -tags "rfm69 walrus" github.com/ecc1/medtronic/...
cp -pruv $HOME/go/bin/* /usr/local/bin/
mv /usr/local/bin/mmtune /usr/local/bin/Go-mmtune
Jon Cluck
@cluckj
Feb 27 02:44
you may also want to remove the ~/src/openaps-menu directory since you won't need it and it may give you some weird errors while looping :)
lottainkeri
@lottainkeri
Feb 27 05:57

Help needed with wifi connection. My daughter has been usin OpenAPS for three months and suddenly we lost wifi connection in the middle of night two weeks ago. We took spare rig in use and it has also connectivity issues between rig and pump but that's another story...

I get this error message whenever I want to rerun the script (or connect to wifi):

"Removing any existing git in /root/myopenaps/.git
Removed any existing git
Checking openaps 0.2.1 installation with --nogit support
openaps 0.2.1-dev
Checking /root/myopenaps: mkdir: cannot create directory ‘/root/myopenaps’: File exists
/root/myopenaps initialized
/root/src/decocare/ already exists; pulling latest 0.1.0-dev
fatal: unable to connect to github.com:
github.com: Name or service not known

Couldn't pull latest decocare 0.1.0-dev"

I have done the ccprog (https://openaps.readthedocs.io/en/latest/docs/Resources/troubleshooting.html?highlight=ccprog#could-not-get-subg-rfspy-state-or-version-ccprog), 'openaps first-upload' and even flashing the Edison but still no sings of wifi connection. In addition, BT connection does not work. Or it connects with the phone but not to internet.

The loop works in offline mode though!

I'm starting to suspect that the Edison board is malfunctioning. Could that be the case or is there something else I could check? Is the flashing actually possible without connection or am I missing here something?

Thanks a lot for the help!

Dana Lewis
@danamlewis
Feb 27 06:18
That error is because it’s not online. So this is all connectivity stuff
What does your wpa supplicant file look like?
lottainkeri
@lottainkeri
Feb 27 09:27
@danamlewis sorry my daughter is now in daycare and I can't access the rig at the moment... Debugging with so small kid makes this a bit tricky.
But it does not contain 'update_config=1'
And I haven't changed anything in the settings so it should be ok.
I am starting to suspect the board itself.
lottainkeri
@lottainkeri
Feb 27 09:43

I checked from sparerig the wpa-supplicant file and it looks like this:

network={
ssid="ElisaKoti15"
psk="49Q2WV6G7CHNS"
}
network={
ssid="PK Urheilupuisto II"
psk="SuomiSata"
}

It's the same as in our main rig.

lottainkeri
@lottainkeri
Feb 27 12:47
The same problem occurs now with the spare rig. Could this be interference problem?
lottainkeri
@lottainkeri
Feb 27 12:59
How do I continue from here when there's no wifi/BT connection?
lottainkeri
@lottainkeri
Feb 27 13:24
Could it be also BT tethering issues? How do I disable BT manually when I can't rerun the script without connection?
lottainkeri
@lottainkeri
Feb 27 13:31

ifconfig results:

root@lottaboksi2:~# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

usb0 Link encap:Ethernet HWaddr 02:00:86:ba:94:de
inet addr:10.11.12.13 Bcast:10.11.12.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr fc:db:b3:94:4d:79
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:9576 (9.3 KiB)

I need to run now and will be back tomorrow'ish. Thanks for the help!
Eric
@ecc1
Feb 27 14:32
That usb0 entry in the ifconfig output is suspect, could be conflicting with IP address assignment from the router. If it's listed in/etc/network/interfaces I'd try deleting it
lottainkeri
@lottainkeri
Feb 27 14:38
@ecc1 thanks for that! I need to try that when back at home. Now on business trip until Saturday...
But actually when thinking it, our daughter carries the main rig at the daycare and also there it does not connect to wifi. It has in the past. So is it really the issue...?
She carries it along while it loops offline still
Eric
@ecc1
Feb 27 15:19
You're right. It was already unlikely for just your home router, but it has happened to others in this group. But having it happen at home and away would be almost impossible, so likely another cause.
Not everyone wants to go through the initial learning curve, but I find the command-line and text-GUI parts of network-manager to be very robust, both for wifi and BT tethering (nmcli and nmtui)
Something to try when you're home, if you can connect to the rig via serial USB: run "iwlist scan" and see what the signal levels are, just to make sure it's not something hardware-related (like the antenna on the Edison getting broken off)
Riko L
@Ricco555
Feb 27 16:59
@cluckj Thanks for guideline. I did what you suggested + did reference spidev0.0 during setup script. for some reason the logs show when mmtune is addressing radio it still tries to reference /dev/spidev0.1
I wonder if the go command did what it supposed to do. I must confess I am very new to using this golang . did I miss something obvious like I didn't purge the last mess what I did before tagging with "rfm69 walrus"?
Jon Cluck
@cluckj
Feb 27 17:40
it may not have compiled/copied the stuff properly, let me know if/when you're up for some debugging?
Riko L
@Ricco555
Feb 27 17:48
@cluckj I'll be online in ~1.5h onwards if you will still be here. Have to go taxiing a kid around.
In the mean time I tried to force it by deleting mmtune from $HOME/go/bin and rfm60 from /src directories. apparently the go get just downloaded the src files but didn't do anything else. tried the go build command on medtronic. Produced nothing much and go install with the same result. mmtune has not shown up in /bin folder. So I guess it didn't compile.
I apparently do not get it right and just doing random stuff. Trying to find the original go commands that were done when I was first executing to compile from source..
the commands I sent last night are the abridged version of what oref0-setup is doing
Riko L
@Ricco555
Feb 27 17:56
I'll try to remove the whole directory and run the commands manually step by step. should work then you have earned a barrel of beer.
Jon Cluck
@cluckj
Feb 27 17:58
yep, wiping out ~/go/src/github.com/and redoing the go get command :thumbsup:
Riko L
@Ricco555
Feb 27 20:04
@cluckj Fantatic.. works like a charm! :)
Riko L
@Ricco555
Feb 27 20:26
Successfully closed the loop. Thanks for the support.
Jon Cluck
@cluckj
Feb 27 20:27
great!
Riko L
@Ricco555
Feb 27 20:39
Thanks again @cluckj and @ecc1 . much appreciated.
Scott Leibrand
@scottleibrand
Feb 27 22:57
@lukaszarczynski you around?
wondering what problem you had with npm run global-install
I just ran it successfully on commit 5cb8f9227bf175da183794d70027adc372e46827 on my rig
Jeremy Cunningham
@jpcunningh
Feb 27 23:02
Is anybody else having issues with the server used to check whether the rig is online not responding today? It’s hit and miss for me.