Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 04 2017 03:25
    @scottleibrand banned @Prosulpump
John Clifton
@JohnClifton
Hello everyone, I hope someone can help. I have been running OpenAPS oref0 0.7.0 since January on a Pi Zero + Explorer HAT. Everything has been running fine until a few weeks ago when the loop started failing. I narrowed it down to mmtune and concluded that the HAT had failed. I have replaced the HAT with an Adafruit RFM69HCW bonnet, re-run setup and got everything working again. My problem is that the loop is failing and the whole rig appears to go down. I can’t communicate with it via SSH over wifi, my pump stops receiving temp basal commands, and the screen on the bonnet is not being updated. I thought it might be the Wi-fi that is failing so I plugged a monitor and keyboard directly into the Pi. Now I have the problem that the monitor screen goes blank after a few minutes,despite me setting console blank=0 in Raspbian so I haven’t been able to prove the Wi-fi theory. Seems unusual that the whole Pi would crash? I have tried to check and capture logs but not much consistency. I did see a message in one log: “no update to log in five minutes - killing processes”. Any help much appreciated.
tzachi-dar
@tzachi-dar
@JohnClifton pis zero are not the best hw out there, so they might be just halting.
In any case, on the file bin/oref0-cron-every-minute.sh on the last lines hdmi is disabled after 5 minutes, you can comment this lines.
on the openaps log files there is a network log file that you can look at. It is trying to check for connectivity every 5 minutes, so you can find out what is going on there.
Jens Heuschkel
@juehv
@JohnClifton This will not solve your problem, but maybe improve your user experience with the new display. Try to use the dev branch of the openaps menu: https://github.com/openaps/openaps-menu/tree/dev
You would have to go to src/openaps-menu/and checkout the dev branch git checkout dev.
Dromore1911
@Dromore1911

Hey everyone, I just got the new G6 sensor and I figured since my WiFi wasn't working on my edison rig I oughta reflash and start fresh. Well, that didn;t work out in my favor because everytime i try and run the bootstrap script i get this error W: There is no public key available for the following key IDs:
AA8E81B4331F7F50
W: GPG error: http://archive.debian.org jessie Release: The following signatures were invalid: KEYEXPIRED 1587841717
W: Failed to fetch http://security.debian.org/dists/jessie/updates/main/binary-i386/Packages Hash Sum mismatch

W: Failed to fetch http://security.debian.org/dists/jessie/updates/main/i18n/Translation-en Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.
Error executing command, exiting
Anyone know what is going on here? Thanks in advance

Eric
@ecc1
@Dromore1911 jessie is too old now; try posting on the intend-to-bolus channel here for more help
Dromore1911
@Dromore1911
@ecc1 Thank you
szymjaw
@szymjaw
@ecc1 is it possible rfm69 RF power management?
Eric
@ecc1
@szymjaw the primary way to reduce power is to keep the radio in standby (1 mA consumption) or sleep mode (1 μA), which should be the case most of the time (the usual pattern is effectively sleep -> transmit -> receive -> sleep). Or are you talking about RF power output?
szymjaw
@szymjaw
I was thinking about setting PA1 + PA2 and PA_BOOST.
Eric
@ecc1
@szymjaw I played around with that a little, but once I could communicate with the pump from across a room I left it alone. It can consume a lot more power, and it seems like the pump's power and/or internal antenna is the limiting factor, not the RFM69. But if you experiment with it, please let us know. You can tweak the settings in the rfm69/rf.go file, in the InitRF method. Also, IIRC not all radio modules wire the antenna to the PA output in the same way, so you'll have to experiment
josevicns
@josevicns
My explorer with 0.7.0 is continually resetting. any solution ?, is there a way to go back to 0.6.3?
Would there be a way to clone an edison with 0.6.3 to one with 0.7.0 that doesn't work?
princesaleonor
@princesaleonor
image.png
i have this problem when re-running the setup script. any hint?
tzachi-dar
@tzachi-dar
It is showing there openaps 0.22 version. This seems like a very old version to me.
princesaleonor
@princesaleonor
but my instalation is up to date. when I try to update it says that it's the latest version available
tzachi-dar
@tzachi-dar
@princesaleonor If anyone here does not have a better idea, I would start with removing everything and doing a clean install.
daniilaursulesei
@daniilaursulesei

Hi! I encountered a serious problem, maybe a bug! I've tested a rPI0 setup on myself for 3 weeks before handling the system to another person and my sensitivities to insulin were read right. Of course, when I gave the system to second person, only the first sensitivity was overwritten, the other ones were literally COPIED from my profile. Of course, when I set things up for the second person, I re-ran oref0-setup.sh with new pump SN and a new NS site.

A couple of days after this, I ran from beginning: (hoping that this may solve the problem)
"sudo bash
curl -s https://raw.githubusercontent.com/openaps/oref0/master/bin/openaps-install.sh > /tmp ...." (you may recognise the command line)

This time, the first day, the sensitivities were read from the pump and adjusted at first autotune, but the next day, it CAME BACK to first profile settings!

It was a real nightmare! Those sensitivities from first profile were 7 times smaller than the needs of second person, so 2 major hipoglycaemic episodes occured.

Please, can you fix this? Or at least, until fixing, write somewhere that this thing can happen. My first idea that comes into my mind is to format the microSD card and get again a raspbianOS installed. But this problem have to be fixed sometime.

tzachi-dar
@tzachi-dar
@daniilaursulesei I think that your issue is this: openaps/oref0#1251
There is a workaround in the first paragraph.
andyhandy
@andyhandy
Hi All. Hoping for some help as I'm completely stumped. My son's rig will connect to a wifi network but won't connect to any iphone hotspot. Any idea why that might be? Thanks
Sulka Haro
@sulkaharo
@andyhandy Can you describe the situation in more detail? iPhone doesn't usually actually have the hotspot on even if it's enabled, so to connect to it, the user has to open the hotspot screen to ensure the phone advertises the network. Can you test the rig by connecting something else to the hotspot to ensure it's on?
Also, if there's multiple networks online, you might want to check what the priority for each network is, to ensure it tries to connect to the hotspot even if other networks are available
andyhandy
@andyhandy
Thanks @sulkaharo. My son always the edison in his rig connected to the hotspot on his iphone (even at home). I always leave the phone on the hotspot screen when I lock it, which I find provides a steady uninterrupted mobile data connection. Today his edison disconnected from his phone hotspot while he was at school and wouldnt reconnect. When he got home I tested the phone hotspot with another device and the hotspot is working fine. Then i got into the edison using ssh and added my home wifi network to the wifi list and the edison connected to that perfectly and everything started running again. I tried changing the hotspot name and wifi order several times, rerunning the setup script, putting the edison onto a different Explorer board - none of that helped the edison to connect to the iphone hotspot.
tzachi-dar
@tzachi-dar
@andyhandy any chance the hotspot on the phone is on 5G while the edison is trying to connect to a 2.4G network.
Foxy7
@Foxy7
@andyhandy we use the bluetooth tethering for internet access, mainly android, but also iphone and following these steps works well, prodiving you put the MAC address in, you can add more than one, space separated if i recall. https://openaps.readthedocs.io/en/latest/docs/Customize-Iterate/bluetooth-tethering-edison.html?highlight=bluetooth#configure-bluetooth-tethering-on-edison-running-jubilinux-optional
andyhandy
@andyhandy
Thanks @Foxy7 and @tzachi-dar will try those
Magvaer1996
@Magvaer1996
In order to use the OPENAPS status history for the last 1.5 days for free. https://gist.github.com/Magvaer1996/797d8e7f5c5ffc02412021a45bdc0bcd
Krishna Rokhale
@krokhale
Hey everyone, so I have a medtronic 722 pump and have set up the rig, everyone working ok. The pump communication is off though. So i debugged and when it tries to "wake pump", it prints out "no response to wakeup". The weird thing is that if i were to go into the remote option in the pump and click on Add ID, just for a few moments it connects and identifies medtronic 722 in the logs. And then back to wakeup not working. What am I missing? Is there a hidden setting in the pump that i need to enable? Any hints are appreciated!
Distance is certainly not an issue, it's right besides the rig
Eric
@ecc1
@krokhale (you'll get more help in the intend-to-bolus channel; this is mainly for the openaps algorithm) what branch of openaps are you running? do you have both "meter" and "remote" set to ON on your pump?
Krishna Rokhale
@krokhale

@ecc1 Sure I'll take it up there. I pretty much followed this: https://openaps.readthedocs.io/en/latest/docs/Build%20Your%20Rig/pi-install.html
That says master branch.

Yes both the meter and remote are set to ON. I am using a adafruit bonnet , zero pi and using libre pro with a miao miao connected to a nightscout instance hosted on my personal server. I am pretty comfortable with command line programming. Looked through the logs and it seems like the radio is working fine. When I get the pump closer it identifies the pump correctly but fails with some errors while communicating with the pump thereafter.

Pump is a Medtronic 722 and I used G4-Go and WW option while installing openaps.

Screenshot 2021-01-19 at 10.38.22 AM.png
Screenshot 2021-01-19 at 10.37.52 AM.png
Andre Champy
@AndreChampy
@krokhale Hi Krishna, I just wanted to ask you a question. I have a similar same set-up: PiZero - Libre - miaomiao and a personnal NightScout (NS) site to record everything. I use the xDrip4IOS on my iPhone to write data from the miaomiao-Libre. Is there an other way to write the BG on a NS website in order to work with a rig? I tried to use the native Tomato app at first and it was writing the blood glucose readings (BG)s on my NS site but my rig could not work with the BGs from the Tomato app but it did work with the xDrip4IOS (this app is in development).
@krokhale I will bring this question on the intend-to-bolus channel
TranceCake
@TranceCake

Hey there, I am getting an interesting error in my loop and would like to hear your thoughts on what this might be and how to best approach fixing it!
Right after refreshing my pumphistory the loop prints 'meal.json' and then an error:
/usr/local/bin/oref0-pump-loop: line 942: 6801 Segmentation fault "$@"

I have looked in that file and it comes from the following function:

retry_return() {
    "$@" || { echo Retry 1 of $*; "$@"; } \
    || { wait_for_silence $upto10s; echo Retry 2 of $*; "$@"; } \
    || { wait_for_silence $upto30s; echo Retry 3 of $*; "$@"; } \
    || { echo "Couldn't $* - continuing"; return 1; }
}

I looked up segmentation fault and it has got something to do with memory access. Not sure if this is RAM or storage related. I hoped it had to do with reading a corrupt file, so I tried deleting settings.json / meal.json.new / carbhistory.json / pumphistory-24h-zoned.json but no luck so far

TranceCake
@TranceCake
to add to this, when it tries to mmtune there also seems to be an issue with parameters given to mmtune:
Listening for 12 s silence before mmtuning: Listening for 12s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Thu 18 Feb 12:50:28 CET 2021
mmtune: Usage: grep [OPTION]... PATTERNS [FILE]...
TranceCake
@TranceCake
interesting. I tried to run npm global install and it also says segmentation fault. Looks like something is fried in my system. I'm going to try reinstalling completely and see if that works. Otherwise I might need another SD card
tzachi-dar
@tzachi-dar
Might be also your RF hardware.
TranceCake
@TranceCake
hmm okay
think it's my sd card, I tried to run the install command and it also produces a segmentation fault
oleg-post
@oleg-post

'unbuild oref0@0.7.0
/root/src/oref0/node_modules/oref0 -> /usr/local/lib/node_modules/oref0 -> /root/src/oref0
(node:3954) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm ERR! cb() never called!
npm ERR! not ok code 0

npm ERR! oref0@0.7.0 global-install: npm install && sudo npm link && sudo npm link oref0 && sudo npm install -g && npm install -g
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the oref0@0.7.0 global-install script.
npm ERR! This is most likely a problem with the oref0 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm install && sudo npm link && sudo npm link oref0 && sudo npm install -g && npm install -g
npm ERR! You can get their info via:
npm ERR! npm owner ls oref0
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.19.66+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "run" "global-install"
npm ERR! cwd /root/src/oref0
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/src/oref0/npm-debug.log
npm ERR! not ok code 0
Checking mmeowlink installation
/root/src/oref0/bin/oref0-setup.sh: line 806: oref0-get-profile: command not found
Could not run oref0-get-profile'

can't install oref0
Foxy7
@Foxy7
@oleg-post best to try on https://gitter.im/nightscout/intend-to-bolus for help on install
jaybaron1
@jaybaron1
Try "rm -rf ~/src/oref0" this should remove the oref0 directory. Youll need to reinstall it using the installation script. That wouldbve my suggestion
oleg-post
@oleg-post
Yes, I did it. But it doesn't help
jaybaron1
@jaybaron1
Next suggestuon would be to git checkout dev and run the installl script again. PM me and i can help later tonight
oleg-post
@oleg-post
i did next:
'sudo npm install -g n'
Then just :
'sudo n latest'
after that the installation was done