-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Final Release? #2
Comments
Hi @dhermanns v2.1-alpha.3 is the last I have done - 9 months ago. My T1D had been using releases on the project releases page. Most people are on the 1.0 download, but the newer ones should improve stability/sanity. I would love people to try it - I'm very, very, happy to and will fix the software where bugs are found. My T1D was moved to a newer Medtronic device - one of the more crypto-d-to-the-hilt ones - so we're on the mainstream Nightscout project now (which is a huge upgrade in terms of software quality) using Medtronic's own USB carelink reader - but which doesn't have the 10M+ range of our old home-brew devices.. (sigh). Hence I can no longer test my work on my own user - so it's not had the degree of testing I need to call it a final release. But.. I do have a few archives of message data, and a USB-USB null modem to generate fake messages or replay old ones :-) so I can do a reasonable amount of testing, and with consent I can turn on remote logging to test too for any user that is willing to work with me on any issues. Let me know if you need anything. Best wishes |
Hi David, thx for the fast reply. I tried to use this release: But it seem to stop uploading after a few hours. The latest version isn't installable on my Nexus 5 with Android 6.0.1 Device: It simply stops installation of the apk. Any ideas? |
Hi - I saw intermittent stopping of uploading in the past, which was one reason I booted out the unsupported and old USB library and used a new more debuggable one in the latest version. I've rebuilt with a fresher JDK and Android Studio today, in the hope that this supports the Nexus 6 better.. it's on the github releases page. Can you give that a try? |
Thanks a lot. I have a Nexus 5. But I got the same effect: After installing the Alpha5, it immediately says "not installed" and that's it. Mabye due to the old Android 6.0.1? |
I rebuild the APK for Android 6.0. Installed fine now. It shows a received blood glucose of 0 right now. I calibrated and it says I should wait 15-20 minutes now. Is this behavior intended? |
That's right -- give it 30 mins to calibrate and it should be good to
continue!
Best wishes
David
…On Sun, 7 Apr 2019, 19:50 dhermanns, ***@***.***> wrote:
I rebuild the APK for Android 6.0. Installed fine now. It shows a received
blood glucose of 0 right now. I calibrated and it says I should wait 15-20
minutes now. Is this behavior intended?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AeG6Oph6bqvB5tysl_ARg91ZyyqIpQXVks5vej4AgaJpZM4cgZMz>
.
|
Yes - works fine now :-). Great work. Your Repo should be the one that is referenced in the nightscout doku. Arbox0 seems to be abandoned. I will see next night how stable the uploader is now ;-). Why did you introduce the calibration time period? |
@dhermanns - When you rebuilt the APK - presumably a change to min/max/target sdk version - which one made the difference (all of?). I will commit the change to make this go back to an earlier one (perhap 4.4, which still has > 5% usage - some people will want to use an old phone for their nightscout). I introduced the calibration period for a couple of reasons.. I should've I'd wrote down why I chose what I did as I don't recall exactly now.
However, it probably doesn't do any harm to consider the readings in 0-15 mins as "good enough" with the actual glucometer at that 0 mins point, so I think it's safe to remove this delay in posting the data.. however the calibration value should still be set at 15 mins point with the CGM reading gathered around 15 mins in.. Thoughts? |
The master has the same problem for me: it stops uploading after at most 2 hours. If I open up the App again, it shows the latest readings just fine. But looks like the App just can‘t upload anymore. But I have to press Stop/Start Button to make it upload again. No errors in the console... |
And yes - I changed the target SDK to 23.0 if I remember correctly. |
Great. Do you mind if I turn on logging - you won't notice it, and don't need to do anything, but I can then collect the logs from the app (on bugfender.com which has been really really helpful, even my relative with T1D was a flight away from me so logging has been critical). I ask because it means the logs will contain your device IDs (which are hardly secret on that version of medtronic transmitter) and URL - these will be in my private bugfender account for a week. |
No problem- let’s give it a try! |
Great, it's on, so just try to use as normal and please comment in this ticket as soon as it stops logging. |
So you have the remote debugging activated on your branch version? So my self compiled version contains it, right? |
Yes, the debugging is activated, I'm seeing logs, so just let me know when it stops working. |
I did an auto restart every hour. So it works rock stable now ;-). I will disable it during the day and let you know when it hangs again. Thanks for your help so far! 🙏 |
I disabled the restart today. It seems to hang now. The last value I got was from about 7:40am. |
HI - Ok - what I see is connection time-out at 07:38 central Europe time. After 12:57, it tries to connect and gets connection time out again, and again, almost all afternoon. It first succeeds again at 19:41. So, is there a phone connectivity issue? Or the website hanging? Or maybe we have some other issue like too many open connections (if it's not properly disconnecting after sending data, say, I don't know how possible that is.. will do some investigating).
|
I've just made another couple of commits - better exception handling for those timeouts (and removed some overly verbose logging), but I don't see it likely to fix the problem. Looking at the log I saw earlier - it really does look like a persistent web timeout - it's giving it a full 30 seconds before erroring each time. I'm wondering if you're using Wifi or mobile. There's an option of "wifi-hack" in the settings - it seems to turn wifi on and off every now and again - but I have no idea why this hack was put in, or when, and everyone seems to say it's not needed. I didn't have much luck with Google. |
Yes - they were separated til about 1pm. But the phone had an internet
connection all time. Looks like the Rest upload was broken and we get only
30 seconds timeouts.
|
Does it try to do the web timeouts all day long?
|
It only tries to send the data it has once, so it wasn't retrying for the
period when it was separated from the device -- but once the device
returned, it had data to try sending.
My gut says that WiFi connection is somehow lost, perhaps there is a sleep
or background mode that the app is not properly handling.. I will try to
find more over the weekend.
…On Fri, 12 Apr 2019, 05:21 dhermanns, ***@***.***> wrote:
Does it try to do the web timeouts all day long?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AeG6OgugPW9Hm4_T-vrozqsJALvckmsVks5vgAnjgaJpZM4cgZMz>
.
|
I saw that the used Apache Httpclient is deprecated and updated the uploader to the new HttpURLConnection logic. Hopefully this brings more stability to the upload. |
Hi - did the change make a difference?
…On Fri, Apr 12, 2019 at 5:05 PM dhermanns ***@***.***> wrote:
I saw that the used Apache Httpclient is deprecated and updated the
uploader to the new HttpURLConnection logic.
Hopefully this brings more stability to the upload.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AeG6OuL451cm9pQVyGZqRbXDrarF54Lrks5vgK7UgaJpZM4cgZMz>
.
|
No - same problems. The app runs fine for 60-120 minutes. At some point, we get SocketTimeoutExceptions every time the app tries to send to the nightscout backend :-/ . |
Thanks. OK - I will not be able to work on this for a few days, but my theories are (a) configuration - some Android thing that needs to be set to retain Wifi/network access; (b) resource exhaustion ; (c) and a long-shot.. the Nightscout website actually not accepting connections. If you have a moment - can you do something simple like add a HTTP request to GET a known reliable webpage like www.google.com - immediately before the POST to the Nightscout site. If that get fails/time outs after two hours, the problem is certainly (a) or (b). |
Good idea - I will see how I can drilldown the problem a bit... |
Hi - have you managed to triage the connection problem yet? I'm thinking we could have some doze mode issue https://developer.android.com/guide/background - as you mentioned your device is Android 6.0, or just some other sleeping/network issue; there's nothing in the logs that provide any evidence for this though - but if we add a few network/device status calls/listeners we might be able to rule it out/in.. |
No - not yet :-/. I did some more experiments. It‘s not just an Android 6 issue. It happens on another Android 8.1 phone exactly with the same SocketTimeoutExceptions. I changed a few more things like using ip addresses, http instead of https. Deactivated ipv6 in my router. But still the same. |
Hi - The sleep/doze mode started in Android 6, so Android 8.1 would also
have this- a feature not a bug :-). Does it seem to be exactly 2 hours (?),
or does it vary if you are not using the phone or if you are? If the
problem is happening even when the screen is active and you're using the
phone, then it is unlikely to be related to dozing/sleeping/battery-saving.
…On Sat, Apr 27, 2019 at 11:06 AM dhermanns ***@***.***> wrote:
No - not yet :-/. I did some more experiments. It‘s not just an Android 6
issue. It happens on another Android 8.1 phone exactly with the same
SocketTimeoutExceptions.
I changed a few more things like using ip addresses, http instead of
https. Deactivated ipv6 in my router. But still the same.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHQ3UOSKYMMLU7YVLBWKU73PSQQRVANCNFSM4HEBSMZQ>
.
|
Ah ok. It definitely varies. Sometimes event after 15-30 minutes. But the display is always off. |
I managed to keep it up for 24h without a restart now. I think the point was activating the „Wifi Hack“ Switch in the uploader. But I changed a couple of other parameters. I will reset them and see if it’s still stable. |
Hi Can you build that - see if it helps, see if we can remove the wifi-hack! |
Interesting - I will try that. Thanks for your help! |
Amazing - it seems to be that this was really the root cause: The battery saving of android. I turned of the wifi hack and my new build is running stable for 2 days now: I created a pull request with my changes: I think this could be pretty useful for others who are on the old medtronic paradigm veo pump 5xx. |
Thanks for the pull request - this is merged and we have a new release! |
Your latest apk can't be installed on android 6. Did you loose my changed build target from my PR during merge? |
Hm - your app/build.gradle sdk version looks fine. I will try later on android 8... |
It has to be something else. I can't install your new apk on Android 8 either. |
I have rebuilt and re-issued the release. The problems were two-fold:
I think we're working now! |
Hi!
Is there a final release already?
The text was updated successfully, but these errors were encountered: