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

23rd
Feb 2019
Zakm0n
@Zakm0n
Feb 23 00:12
@cluckj I'll be replacing the screen on my hat here in the next hour. Gotta love same day amazon shipping. I'll let you know how it goes
Jon Cluck
@cluckj
Feb 23 00:17
desolder from the top (screen part) on both screens and re-use the pins
there are a couple traces on the HAT that are really easy to melt if you desolder the pins
and take pictures if you can, for docs reasons :)
Zakm0n
@Zakm0n
Feb 23 00:19
Yeah, I left the pins in the hat
I wish I had low profile headers so I could just swap if it breaks
Jon Cluck
@cluckj
Feb 23 00:23
I wonder if the HAT could have some tinkering in the next HW revision for something like that
@straykatz that's really weird
Dana Lewis
@danamlewis
Feb 23 00:53
@cluckj yes we were just discussing w Morgan
Want to create an issue for their repo and list some suggestions? I also suggested considering a non-screen batch
Jon Cluck
@cluckj
Feb 23 00:59
the repo with the specs in it?
Dana Lewis
@danamlewis
Feb 23 01:01
Sure. Anywhere they’ll see it
Dana Lewis
@danamlewis
Feb 23 01:06
@cluckj help me remember if you can - g6 stuff got merged to dev right? So @straykatz since she’s in dev can just plug g6 in now? Or did we have to do some releases of the other repos before those worked?
Confirming from Scott it’s still waiting on Ben or Oscar to give perms, so that requires a dev branch of Dexcom reader I think?
@straykatz sorry. Not all the way in dev, and I’m not on a computer to help walk through it, but @cluckj or someone else may be able to give you step by step for grabbing that branch of Dexcom reader so you can plug g6 in
Jon Cluck
@cluckj
Feb 23 01:14
I think part of it got merged, but not all
yeah
Jon Cluck
@cluckj
Feb 23 01:21
there was one PR that will make it easier for the support to happen that was merged, but the support isn't merged yet
just needs openaps/openaps#139
fidoman
@efidoman
Feb 23 02:08
my rig is down - can't connect to pump and I think I need to reflash the radio edison/exp board. How do I install MRAA or is there some other way to flash the edison exp board radio now?
./ccprog -p 19,7,36 write spi1_alt2_EDISON_EXPLORER_US_STDLOC.hex
./ccprog: error while loading shared libraries: libmraa.so.0: cannot open shared object file: No such file or directory
Here's what I get in the pump log repeating
mmtune: 2019/02/22 21:06:49 cannot connect to CC111x radio on /dev/spidev5.1
I'm running the dev branch
fidoman
@efidoman
Feb 23 02:36
I got ccprog to work by following these instructions
sudo find / -name libmraa.so.0
i found library in /home/.rootfs/usr/local/lib/i386-linux-gnu/libmraa.so.0 directory
after that i copy this file to /home/.rootfs/usr/lib/libmraa.so.0
However, now I get that my chip id isn't supported. Did the edison / explorer board get a new chip id?
root@eddie1:~/src/ccprog# ./ccprog -p 19,7,36 erase
Using pins: DC=19, DD=7, RESET=36
Erasing chip.
This code is only tested on CC1110. Unsupported chip id = 0x00.
Chip erase failed.
ahhh - my chip id is 0x00 ... that's a different problem isn't it?
Jon Cluck
@cluckj
Feb 23 02:39
yeah; did you try re-seating the board?
fidoman
@efidoman
Feb 23 02:41
yes, that was first thing I tried.
I've got a couple of spare edison/exp boards. I could try swapping the radio, huh?
Jon Cluck
@cluckj
Feb 23 02:51
:)
fidoman
@efidoman
Feb 23 02:58
Yep, that fixed it. So is the other explorer board toast then? How do I know for sure? Is there a way to try to revive it?
Jon Cluck
@cluckj
Feb 23 03:20
probably, and I'm not sure
Zakm0n
@Zakm0n
Feb 23 04:38
So, something I've noticed today. my rig only seems to be getting like every third cgm reading from nightscout.
I can't ssh in either
straykatz
@straykatz
Feb 23 05:15
@danamlewis Thank you - I finally got one rig working <big phew>. I don't need offline anytime soon - but it's definitely a thing when I go snowboarding-backpacking-have surgery-an-interview with-USCIS ... just to name a few situations lately when offline looping was making life good. so hopefully by the time that comes up again this is an option (thank you to everyone of you working these issues). Else, it's Enlites :) Let me know if I can help with testing. At this moment, I am using Dexcom G6 app / NS bridge for uploading to NS, and the G5 sensor setup in OpenAPS. When I get some time I'll play around with Spike again, but not before there is a "backup rig that works" set up and working.
straykatz
@straykatz
Feb 23 05:34
So I was playing Civilization the other day (being on LOA after surgery made me think it's fun to <gasp> download a game on my computer). The game has these weighty pop-ups when you advance in some technology. One of them made me 1) LOL and 2) idenfiy hard and 3) think of this group. It goes along the lines of " Normal people say: If it ain't broken, don't fix it. Engineers say: If it ain't broken, it does not have enough features. "
David Klapan
@dklapan_twitter
Feb 23 06:20
Just to confirm. I've turned on remote and kept rig few meters in the room I sleep without walls in the way. The rig works better for two nights in the row.
tepidjuice
@tepidjuice
Feb 23 09:05
@ecc1 cloned https://github.com/ecc1/cc1111
it's a lot of c code should I compile this?
Oops wrong repo found the go one now.
tepidjuice
@tepidjuice
Feb 23 09:18
@ecc1 output of ./probe is:
./probe version: subg_rfspy 0.8 state: OK old frequency: 0 new frequency: 0
amspoke
@amspoke
Feb 23 09:48
@Ebgineer @PedanticAvenger you were right, the cables were switched, i put them in the right place and voila! 4.1v on the battery and everything working. Thanks for the support!
Jens Heuschkel
@juehv
Feb 23 10:56
@cluckj @philipgo @dramageek Thanks for your help :) :thumbsup:
fidoman
@efidoman
Feb 23 11:29
@cluckj - The edison is still good so I'm just going to buy another explorer board from enhanced radio so I'll still have 1 primary and 2 spare edison/exp rigs. Thank you for your help.
Jon Cluck
@cluckj
Feb 23 14:31
:thumbsup:
Eric
@ecc1
Feb 23 15:13
@tepidjuice that's the expected output (the frequency should only be non zero if you have v1. 0 firmware, not required for openaps). Can you do some individual mdt commands? Make sure loop isn't running and you have pump id set in your environment
djnoor
@djnoor
Feb 23 15:49
Are there any advantages to looping with a 523/723 vs. a 522/722?
renegadeandy
@renegadeandy
Feb 23 18:19
if i am on dev branch 53e49f, and do a git pull, will i need to rerun setup?
Abigail Cember
@acember
Feb 23 20:07
@Zakm0n I also can't ssh in! Do you have any idea what's up with this? The really mysterious thing is that I was able to ssh in on @cluckj 's home network, but never on my own.
renegadeandy
@renegadeandy
Feb 23 20:07
@acember are you connected via USB atm? can you run ifconfig?
Abigail Cember
@acember
Feb 23 20:07
I also cannot even see the rig listed when I try to run ipconfig and then arp -a
renegadeandy
@renegadeandy
Feb 23 20:07
& what ip are you trying to onnect to
Abigail Cember
@acember
Feb 23 20:08
I'm just trying to ssh into my rig, which is currently online via my home wifi.
Let me try to show you a screenshot from ifconfig...
*ipconfig
image.png
Is that legible when clicked on?
The only thing I see is my computer...how can that be?
renegadeandy
@renegadeandy
Feb 23 20:09
Hang on
Can you connect via serial to the rig?
Abigail Cember
@acember
Feb 23 20:10
No, I don't think so :(
renegadeandy
@renegadeandy
Feb 23 20:10
(yes its legible)
Why not? What doesn't work about that?
Abigail Cember
@acember
Feb 23 20:11
Well, for starters, I don't think I have the right cable. But I can use HDMI to get into the rig directly. I just am really mystified that ssh doesn't work.
renegadeandy
@renegadeandy
Feb 23 20:12
Ok, can you log into your router
what ssh command are you trying?
what IP are you trying to connect to?
Jon Cluck
@cluckj
Feb 23 20:13
can you plug in the hdmi and do ifconfig on your rig?
Abigail Cember
@acember
Feb 23 20:14
@cluckj Yeah, let me try that. @renegadeandy I'm not sure what you mean by "what ssh command" -- and I thought I knew the IP address of my rig, but it's not listed there
renegadeandy
@renegadeandy
Feb 23 20:14
well, you are doing ssh root@someip
what ip?
you are probs using dynamic ips, and its changed
Abigail Cember
@acember
Feb 23 20:18
Yeah, that;s what I figured, which is why I was hoping to look it up .. OK, just got my rig plugged in by HDMI
So: if I do ifconfig on the rig, I get the last "paragraph" of stuff with a line saying "inet 192.168.1.146" with some other stuff
which is the IP address I just tried to ssh into
am I misinterpreting here?
Jon Cluck
@cluckj
Feb 23 20:22
yeah, that should be your rig's ip
Abigail Cember
@acember
Feb 23 20:22
why doesn't that address show up when I do ipconfig on my PC?
and why can't I ssh into it?
Jon Cluck
@cluckj
Feb 23 20:23
are you vpn'd into the uni? sometimes I get tripped up connected to my library proxy
Abigail Cember
@acember
Feb 23 20:23
No, right now I'm at home on my home network.
But at work, I use an ethernet connection (which they have completely unsecured!!) which also provides internet just fine but no ssh-ing ability.
Jon Cluck
@cluckj
Feb 23 20:24
is ssh giving you an error when you try to connect? like a timeout or connection refused?
Abigail Cember
@acember
Feb 23 20:25
I always get 'connection timed out'
And if I try to ping the rig from my computer, I get "destination host unreachable"
Jon Cluck
@cluckj
Feb 23 20:30
:/ can you connect to or see other stuff on your LAN?
(gotta drive home, be back in an hour or so)
Abigail Cember
@acember
Feb 23 20:34
Ok, no rush! This isn't urgent because I can look just fine, but I really want to be able to edit preferences.json from a terminal app in my phone, which requires ssh to work. Because plugging something into a monitor just isn't that convenient.
I thought I would bring it up again, because apparently @Zakm0n, who otherwise seems to know what he's doing, said he also had this problem.
*loop, not look
renegadeandy
@renegadeandy
Feb 23 20:38
@acember can you do a ps -aux | grep sshd
id like to make sure ssh is running
renegadeandy
@renegadeandy
Feb 23 21:13
In autotune, what does 'days missed' mean?
its in autotune_recommendations
renegadeandy
@renegadeandy
Feb 23 21:46
added a pull request to dev openaps/oref0#1210
Mike Stebbins
@mikestebbins
Feb 23 22:53
I'm trying to install OpenAPS per the docs onto a brand-new Pi 0 / Pi-Hat combo. I switch to the Dev branch, per the docs, then run the interactive setup. It chugs for a while, and then I keep getting the following error having to do with Pi-Buttons:
Already on 'master'
Your branch is up-to-date with 'origin/master'.
Already up-to-date.
Make and install pi-buttons...
gcc -c -o pi-buttons.o pi-buttons.c -I../include
In file included from pi-buttons.c:26:0:
/usr/include/stdio.h:691:18: error: expected '=', ',', ';', 'asm' or 'attribute' before '' token
extern int fputs const char0restrict s, FILE restrkc▒ stream);
^
/usr/include/stdio.h:691:62: error: stray '\364' in program
extern int fputs const char0restrict s, FILE restrkc▒ stream);
^
/usr/include/stdio.h:697:19: error: expected ')' before '.' token
extern int puus (c.nst char s);
^
/usr/include/stdio.h:704:8: error: expected '=', ',', ';', 'asm' or 'attribute' before 'int'
extepn int ungetc (int c, FILE▒strdqm);
^~~
/usr/include/stdio.h:704:33: error: stray '\240' in program
extepn int ungetc (int c, FILE▒strdqm);
^
/usr/include/stdio.h:707:1: error: stray '\257' in program
▒▒ Read chunks of generic data from STREAM.
^
/usr/include/stdio.h:707:2: error: stray '\252' in program
▒▒ Read chunks of generic data from STREAM.
^
/usr/include/stdio.h:707:4: error: unknown type name 'Read'
▒▒ Read chunks of generic data from STREAM.
^~~~
/usr/include/stdio.h:707:16: error: expected '=', ',', ';', 'asm' or 'attribute' before 'of'
▒▒ Read chunks of generic data from STREAM.
^~
/usr/include/stdio.h:707:16: error: unknown type name 'of'
/usr/include/stdio.h:710:18: error: stray '\' in program
marked with \HRNW. /
^
/usr/include/stdio.h:712:2: error: stray '\10' in program
shze_t!n, FILE jrestrict stream) wur;
^
/usr/include/stdio.h:717:41: error: stray '\362' in program
extern size_t fwrite (const void rest▒hct(ptr, size_t size,
^
/usr/include/stdio.h:717:42: error: expected ';', ',' or ')' before 'hct'
extern size_t fwrite (const void *rest▒hct(ptr, size_t size,
^~~
/usr/include/stdio.h:721:2: error: invalid preprocessing directive #ifduv

ifduv __USA_GNU
^~~~~
/usr/include/stdio.h:730:2: error: invalid preprocessing directive #e

e~daf
^
/usr/include/stdio.h:733:39: error: missing terminating " character
/. Faster vgrsions whel locking is nmt"necessary.
^~~
In file included from pi-buttons.c:26:0:
/usr/include/stdio.h:23:0: error: unterminated #ifndef

ifndef _STDIO_H
Makefile:20: recipe for target 'pi-buttons.o' failed
make: * [pi-buttons.o] Error 1
Couldn't install pi-buttons
Any thoughts on what might be going on?
Eric
@ecc1
Feb 23 23:06
Those source files are corrupted. Bad SD card perhaps?
"ifduv USA_GNU" lol
Jon Cluck
@cluckj
Feb 23 23:09
:laughing:
@acember can you ssh in from your phone on your home wifi?
tepidjuice
@tepidjuice
Feb 23 23:32
@ecc1 what do you mean pump id set in env?
and how do I set it?
Jon Cluck
@cluckj
Feb 23 23:39
@tepidjuice export MEDTRONIC_PUMP_ID=yourpumpserialnumber
Mike Stebbins
@mikestebbins
Feb 23 23:41
Thank you, @ecc1, I'll try a new SD card.
tepidjuice
@tepidjuice
Feb 23 23:41
@ecc1 output of mdt model 2019/02/24 10:40:44 connected to CC111x radio on /dev/spidev0.0 2019/02/24 10:40:44 setting frequency to 916.600 2019/02/24 10:40:45 waking pump 2019/02/24 10:40:48 no response to wakeup
@cluckj oh it's a bash env variable. Thanks!
Jon Cluck
@cluckj
Feb 23 23:41
spam it till you get a response :D
or run oref0-mmtune and it'll figure out a better frequency
Eric
@ecc1
Feb 23 23:46
one problem with mmtune is that it only works if the pump has already woken up; if you're really far off in frequency it might never see a respone. I've thought about adding a "4-wheel drive mode" where it does the long wakeup sequence at every frequency, rather than just 3 "get model" requests. it would take a long time though
tepidjuice
@tepidjuice
Feb 23 23:46
I've been spamming and getting no response.
Could it be a hardware issue with the pi?
Eric
@ecc1
Feb 23 23:47
This is a 915 MHz band pump, right? Double check your antenna too, the U.FL connectors are fidgety
tepidjuice
@tepidjuice
Feb 23 23:48
Attenna on the pi?
*antenna
Eric
@ecc1
Feb 23 23:48
on the Pi HAT
(Explorer HAT rather)
tepidjuice
@tepidjuice
Feb 23 23:51
where are they on the board?
is there a schematic?
Eric
@ecc1
Feb 23 23:55
it's near the top, to the left of the display. you should have a wire antenna about 82mm long attached there
I think ERF includes one with the Explorer HAT, maybe it's already attached. But if not, that's definitely a problem
schematic is in ERF's github repo, picture is here: https://www.enhancedradio.com/products/900mhz-explorer-hat
tepidjuice
@tepidjuice
Feb 23 23:56
Ok I didn't get an antenna with my hat :(
Is there a hack?
Eric
@ecc1
Feb 23 23:58
if you're very good at fine-pitch soldering, you could solder a wire directly to the center conductor of the U.FL connector, but I wouldn't recommend it. you can buy one separately though from a number of sources