NightscoutFoundation / xDrip

Nightscout version of xDrip+
https://jamorham.github.io/#xdrip-plus
GNU General Public License v3.0
1.4k stars 1.14k forks source link

Android 10+ asks every 5 minutes for pairing with Dexcom transmitter #1494

Closed vitalykekukh closed 3 years ago

vitalykekukh commented 3 years ago

After updating in October 2020 from android to samsung a50 every 5 minutes xdrip 2020 asks for dexcom Bluetooth connections. The xdrip app released in 2019 works fine. How to remove the request to connect dexcom via bluetooth on a50 smartphone?

Chris2001 commented 3 years ago

I have a Pixel3a as well, it holds the transmitter for aprox. 5 hours, then when the signal is lost, I have to re-pair it, sometimes two or three times ... when it happens at night it is kind of anoying of course ... does not SEEM to be a big programming problem, but then again, what do I know ... 😁 Started yesterday morning after I did the 'security update' ... Android 11

AppEternal commented 3 years ago

It appears that after an hour it has started doing it again.

Chris2001 commented 3 years ago

It appears that after an hour it has started doing it again.

It seems to start again e.g. when you miss a value ...

AppEternal commented 3 years ago

I see a fix is underway, but here's a basic Automate task I made so it could continue working while sleeping. https://m.imgur.com/a/Q6DZag6

WayneGriswold commented 3 years ago

I see a fix is underway, but here's a basic Automate task I made so it could continue working while sleeping. https://m.imgur.com/a/Q6DZag6

Thank you AppEternal. This is working perfectly! I don't even notice it when its called.

After the Android 10.security update this morning on my Note 10+, I started getting the re-pair notice every 10 minutes. Argh. I downgraded to the xdrip Dec-2019 release that was mentioned earlier, but I kept getting missed readings (that release never worked well for me).

Then I tried AppEternal's Automate work-around and it's working PERFECT. The only difference is, I had to remove my lock screen security.

cwpeterson commented 3 years ago

Is anyone actively working on this? The last nightly was on 10/1? Being in IT when a security fix drops I tend to install it, now whish I hadn't. Since my phone is company owned I can't disable the lock screen to use the Automate task provided nor roll back to a previous version of Android. I love xDrip I really hope we can keep using it. Dexcom follow option doesn't work for me as it's not supported on Pixel 4 XL.

nickb24 commented 3 years ago

Is anyone actively working on this? The last nightly was on 10/1? Being in IT when a security fix drops I tend to install it, now whish I hadn't. Since my phone is company owned I can't disable the lock screen to use the Automate task provided nor roll back to a previous version of Android. I love xDrip I really hope we can keep using it. Dexcom follow option doesn't work for me as it's not supported on Pixel 4 XL.

If you want to use a modified Dexcom app that ignores the phone compatibility check then you can take a look at the following: https://www.reddit.com/r/dexcom/comments/fqvpsf/oc_build_your_own_dexcom_app_update_base_version/

Note: If you ever have a problem with your transmitter, don't call Dexcom tech support. They will know that you are using a modified Dexcom app. That's the risk you take.

I'm using the official Dexcom app (not the modified one) and using Dexcom Share to read the data on xDrip. I've hidden the notification of Dexcom and disabled notifications from the Android settings. From the notification drawer everything looks as it did when only using xDrip.

cwpeterson commented 3 years ago

Is anyone actively working on this? The last nightly was on 10/1? Being in IT when a security fix drops I tend to install it, now whish I hadn't. Since my phone is company owned I can't disable the lock screen to use the Automate task provided nor roll back to a previous version of Android. I love xDrip I really hope we can keep using it. Dexcom follow option doesn't work for me as it's not supported on Pixel 4 XL.

If you want to use a modified Dexcom app that ignores the phone compatibility check then you can take a look at the following: https://www.reddit.com/r/dexcom/comments/fqvpsf/oc_build_your_own_dexcom_app_update_base_version/

Note: If you ever have a problem with your transmitter, don't call Dexcom tech support. They will know that you are using a modified Dexcom app. That's the risk you take.

I'm using the official Dexcom app (not the modified one) and using Dexcom Share to read the data on xDrip. I've hidden the notification of Dexcom and disabled notifications from the Android settings. From the notification drawer everything looks as it did when only using xDrip.

And you are able to enter treatment information and save statistics as though xDrip is doing the collection?

nickb24 commented 3 years ago

Is anyone actively working on this? The last nightly was on 10/1? Being in IT when a security fix drops I tend to install it, now whish I hadn't. Since my phone is company owned I can't disable the lock screen to use the Automate task provided nor roll back to a previous version of Android. I love xDrip I really hope we can keep using it. Dexcom follow option doesn't work for me as it's not supported on Pixel 4 XL.

If you want to use a modified Dexcom app that ignores the phone compatibility check then you can take a look at the following: https://www.reddit.com/r/dexcom/comments/fqvpsf/oc_build_your_own_dexcom_app_update_base_version/ Note: If you ever have a problem with your transmitter, don't call Dexcom tech support. They will know that you are using a modified Dexcom app. That's the risk you take. I'm using the official Dexcom app (not the modified one) and using Dexcom Share to read the data on xDrip. I've hidden the notification of Dexcom and disabled notifications from the Android settings. From the notification drawer everything looks as it did when only using xDrip.

And you are able to enter treatment information and save statistics as though xDrip is doing the collection?

Yes. However I did notice an issue that seems like it's by design. My glucose readings are not uploading to Nightscout anymore, but my treatments still are. But that is not very important for me at the moment. There is an option in the settings to backfill data to Nightscout that I could use in the future (which I think would work). I usually only use the Nightscout site to generate reports before a doctor's visit anyways.

cwpeterson commented 3 years ago

Is anyone actively working on this? The last nightly was on 10/1? Being in IT when a security fix drops I tend to install it, now whish I hadn't. Since my phone is company owned I can't disable the lock screen to use the Automate task provided nor roll back to a previous version of Android. I love xDrip I really hope we can keep using it. Dexcom follow option doesn't work for me as it's not supported on Pixel 4 XL.

If you want to use a modified Dexcom app that ignores the phone compatibility check then you can take a look at the following: https://www.reddit.com/r/dexcom/comments/fqvpsf/oc_build_your_own_dexcom_app_update_base_version/ Note: If you ever have a problem with your transmitter, don't call Dexcom tech support. They will know that you are using a modified Dexcom app. That's the risk you take. I'm using the official Dexcom app (not the modified one) and using Dexcom Share to read the data on xDrip. I've hidden the notification of Dexcom and disabled notifications from the Android settings. From the notification drawer everything looks as it did when only using xDrip.

And you are able to enter treatment information and save statistics as though xDrip is doing the collection?

Yes. However I did notice an issue that seems like it's by design. My glucose readings are not uploading to Nightscout anymore, but my treatments still are. But that is not very important for me at the moment. There is an option in the settings to backfill data to Nightscout that I could use in the future (which I think would work). I usually only use the Nightscout site to generate reports before a doctor's visit anyways.

I use Nightscout also, but it's more for my wife to be able to check up on me. LOL In my case I'm using a tSlim pump that uploads data automatically via the tSlim app so Nightscout isn't as important to me for my Dr visits any longer.

I'll see about setting this up so I can be rid of these non stop pairing messages. Thanks!

nickb24 commented 3 years ago

Is anyone actively working on this? The last nightly was on 10/1? Being in IT when a security fix drops I tend to install it, now whish I hadn't. Since my phone is company owned I can't disable the lock screen to use the Automate task provided nor roll back to a previous version of Android. I love xDrip I really hope we can keep using it. Dexcom follow option doesn't work for me as it's not supported on Pixel 4 XL.

If you want to use a modified Dexcom app that ignores the phone compatibility check then you can take a look at the following: https://www.reddit.com/r/dexcom/comments/fqvpsf/oc_build_your_own_dexcom_app_update_base_version/ Note: If you ever have a problem with your transmitter, don't call Dexcom tech support. They will know that you are using a modified Dexcom app. That's the risk you take. I'm using the official Dexcom app (not the modified one) and using Dexcom Share to read the data on xDrip. I've hidden the notification of Dexcom and disabled notifications from the Android settings. From the notification drawer everything looks as it did when only using xDrip.

And you are able to enter treatment information and save statistics as though xDrip is doing the collection?

Yes. However I did notice an issue that seems like it's by design. My glucose readings are not uploading to Nightscout anymore, but my treatments still are. But that is not very important for me at the moment. There is an option in the settings to backfill data to Nightscout that I could use in the future (which I think would work). I usually only use the Nightscout site to generate reports before a doctor's visit anyways.

I use Nightscout also, but it's more for my wife to be able to check up on me. LOL In my case I'm using a tSlim pump that uploads data automatically via the tSlim app so Nightscout isn't as important to me for my Dr visits any longer.

I'll see about setting this up so I can be rid of these non stop pairing messages. Thanks!

If it's for your wife then she can use the official share app to follow at that point.

vitalykekukh commented 3 years ago

Is there any hope that xdrip will work the same as it did before the android update? Or do we need to use workarounds in the future? Will the current Android update work with the latest xdrip?

cwpeterson commented 3 years ago

I want to let everyone know that after my last posting, 10+ hours ago. I was still getting the pairing requests. I went into XDrip, tapped forget device on the status screen and then rebooted my phone.

After doing this, it hasn't missed a single connection.

I have fingers crossed that it will continue to work this way for me. I'm on a Pixel 4XL with the November security patch installed.

If it starts requesting pairing again, I will go the modified Dexcom app option until XDrip is updated.

Chris2001 commented 3 years ago

Yes, same here, but after aprox. 24 hrs I suddenly got another pairing request out of the blu. Very strange.

Chris2001 commented 3 years ago

And now it won't stop ... giving up for now ... switching phones. :(

Vaughanabe13 commented 3 years ago

I started having the same pair request problems as everyone else after installing the 11/2020 security update on my Pixel 3. It's super annoying, I agree. It makes xdrip borderline unusable now. During the night I was constantly hearing the "beep beep" vibration pattern to accept the pair request, which also wakes up the display too, and my Garmin watch is no longer reliable at displaying my glucose in the night and randomly throughout the day. At work it's really frustrating because the phone screen will light up every few minutes and my battery drain has gotten a lot worse.

I can also say that the security update HAS affected some of my other bluetooth devices, such as my car. Every time I start my car (Volkswagen Golf R) my phone prompts me for the message pairing request. However the car automatically pairs to audio, just not to messages for some reason. My garmin watch does not need to re-pair and neither do my bluetooth headphones, so it definitely seems specific to the way xdrip app is handling bluetooth pairing/bonding.

I found some settings that do seem to work reasonably well for now and I haven't been receiving pairing requests anymore as long as I keep the phone on my person. However if I leave the phone in another room and come back to it, I have to accept the pair request one time to resume the readings. This is at least a lot better than before, because now it will stay connected for much longer and I don't get the constant requests. Here are the settings I'm using:

In the xdrip G6 settings (latest nightly build) menu I have only the following ENABLED:

In the "less common settings->Bluetooth settings" I have only the following ENABLED:

In "Less common settings" I also have "Aggressive Service Restarts" enabled.

I really hope someone has ideas on how to fix this and make it compatible with the latest security updates. If I run into problems again I will probably use the Dexcom share workaround.

Update 1: I tried setting up Dex Share Follower according to the instructions in this thread. The dexcom app is working flawlessly for me. However setting up Xdrip+ as the Dex Share Follower with my account info does not work. I keep getting "Share login error: Synchronization of SSO account during login failed. HttpStatus='Unauthorized(401)'. Msg='Cannot Authenticate". errors:["BadUserNameOrPassword"]. Key='SSO_AuthenticatePasswordInvalid' code: 500. I have double and triple checked my username and password and both are entered correctly, and both work in the Dexcom app itself.

Update 2: I was able to get Dex Share Follower working by changing my password through Dexcom. I logged in to Dexcom on a desktop machine at dexcom.com and changed my password. I'm not sure if there was a password compatibility issue before or what, but the new password seems to work now with xdrip, and I can receive Share data successfully. The password needs to be 6-20 characters with at least one digit, and in my case I did not use any special characters either. I entered the new password on Dexcom's website and then I copied that password into xdrip and now it works.

cwpeterson commented 3 years ago

I've had to do the forget and reboot 3x now since I posted last. It's better than every 5 minutes at least and fortunately stayed connected overnight as I was woken up early with a serious low.

petervanrijt commented 3 years ago

Wrote a blog on this issue with some workarounds. Took me 2 nights with 4 hours of sleep for investigation and implementation of workaround but AndroidAPS setup works again. Will include a link to this pull request. Good luck all! https://petervanrijt.nl/2020/11/09/huge-bluetooth-problem-after-samsung-update-of-nov-1-with-dexcom-g6-sensor/

WayneGriswold commented 3 years ago

Here is what is working for me on my Samsung Note-10+ with Android-10 and the dreaded security patch installed:

1.) In the xDrip app settings, set "Hardware Data Source" to "Dexcom Share Follower".

2.) While still in the xDrip settings, fill in the "Share Username" and "Share Password" options that now appear below hardware after step 1. Use your Dexcom/Clarity login credentials.

3.) Force close xDrip.

4.) Go to Bluetooth settings and upair your transmitter.

5.) Install the Dexcom-G6 app from the playstore and configure it with your Transmitter and Sensor codes. Wait for it to connect and take a few readings (30 minutes).

6.) Enable Sharing on the Dexcom-G6 app. Create a Follower using your email. (I just ignored the email it sent, so the app shows "no active followers", but that's fine).

7.) Launch xDrip. It should start receiving the readings from the Dexcom-G6 app.

8.) Turn off notifications for Dexcom-G6 app so that you'll only have your normal xDrip notifications.

Seems to work fine. All my alarms and the widget work fine.

Caveat 1.) There is no backfill on xDrip - if you go out of range or reboot, the Dexcom-G6 app will pull in the backfill but it doesn't send those missed readings to xDrip.

Caveat 2.) I expect you can't extend the sensor. But I stopped doing that months ago. With the new transmitters, it never seems to work anyway.

Surprisingly, my transmitter is on day 92 and the Dexcom-G6 app doesn't seem to care. I wonder if it's going to expire the transmitter?

tolot27 commented 3 years ago

Wrote a blog on this issue with some workarounds. Took me 2 nights with 4 hours of sleep for investigation and implementation of workaround but AndroidAPS setup works again. Will include a link to this pull request. Good luck all!

@petervanrijt Thanks for the blog post. Just a minor thing: please can you update the post and replace "pull request" with "issue"? This here is the issue and the pull request fixing this issue is #1505. Thanks.

I'm waiting for feedback from @jamorham. Hopefully, he will create a new nightly soon.

tolot27 commented 3 years ago

jamorham solved this issue with commit d90388e which got merged into nightly 2020.11.15. We will focus on the depending issues, now.

jamorham commented 3 years ago

This issue should be resolved with the disabling by default of the Android 10 work-around which is to solve: https://github.com/NightscoutFoundation/xDrip/issues/1061 - That work-around was put in for a reason though and so it is possible that devices that have the november security patch may also need this work-around and they are incompatible with each other.

Because of this I have also implemented a new Avoid Scanning option in the Nov 15th nightly that is an attempt to resolve the Android 10 work-around in a different manner. Because of different implementations on different handsets/android versions and how the behavior may be affected by power-saving and only after a certain period of time I don't know for sure which of these strategies is needed on which handset. People should test and feedback what is working and what is not.

Chris2001 commented 3 years ago

Thanks Jon, seems to be working at first try over here with my Pixel3a, had to pair it once, now the second value came without asking for the pairing again.

WayneGriswold commented 3 years ago

One pair request. Then five good readings. Then no readings for the last 40 minutes.

On Sun, Nov 15, 2020, 08:48 Chris notifications@github.com wrote:

Thanks Jon, seems to be working at first try over here with my Pixel3a, had to pair it once, now the second value came without asking for the pairing again. Pixel3a

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NightscoutFoundation/xDrip/issues/1494#issuecomment-727581282, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEAJANCJUOGAM6PCPB2MYG3SP7S27ANCNFSM4TGMLYVA .

Vaughanabe13 commented 3 years ago

Confirmed the nightly is working for me as well with no issues so far. I did a settings/storage clear and set up my G6 with all default settings using the wizard. Android 11 w/ nov20 update, Pixel 3. Jamorham you da real mvp!

WayneGriswold commented 3 years ago

Getting error: "Would have tried to unpair but preference setting prevents it. (unbond)"

On Sun, Nov 15, 2020, 09:01 Wayne Griswold griswoldcharter@gmail.com wrote:

One pair request. Then five good readings. Then no readings for the last 40 minutes.

On Sun, Nov 15, 2020, 08:48 Chris notifications@github.com wrote:

Thanks Jon, seems to be working at first try over here with my Pixel3a, had to pair it once, now the second value came without asking for the pairing again. Pixel3a

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NightscoutFoundation/xDrip/issues/1494#issuecomment-727581282, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEAJANCJUOGAM6PCPB2MYG3SP7S27ANCNFSM4TGMLYVA .

tolot27 commented 3 years ago

@WayneGriswold Please check if #1061 could be the cause and continue there. Otherwise, open a new issue and add the log entries.

michalhudecek commented 3 years ago

Did not help, now I get no readings at all.

I have Samsung Galaxy Note 10+.

EDIT: Here is a log:

image

Sgathach commented 3 years ago

Thank you! Updated new version, had 1 request to pair, second one worked fine. Hoping it lasts through the night now. Couldn't authorize miband, says it needs to be authenticated but doesn't give me an option to enter the code. Bit new still to all this so apologies if there is an obvious answer to this (the xdrip version before had a box to enter the code). Will update in a few hours to confirm if readings stayed stable throughout the night. (Galaxy S10+).

cwpeterson commented 3 years ago

Pixel 4xl here. With the new nightly installed. It pairs once then never connects again. Have deleted the device from Bluetooth settings, removed in xDrip and rebooted. It asks to pair, get one reading and then nothing. It just says connecting in the status screen.

cwpeterson commented 3 years ago

Pixel 4xl here. With the new nightly installed. It pairs once then never connects again. Have deleted the device from Bluetooth settings, removed in xDrip and rebooted. It asks to pair, get one reading and then nothing. It just says connecting in the status screen.

All of a sudden it's working after 10 minutes scanning. Will keep an eye on it.

Epod123 commented 3 years ago

Got a Pixel 3 here with the 11.15 the new nightly install. I got to be honest: I am not certain which options to select anymore... I have tried all manner of settings, restart collector, forget device, change out transmitter, change out sensor. Sorry for being so lost, but is there a way to get a recommendation on what the settings are so that this might work again? I pulled out an old phone last night and worked through the morning to get it to work with the October install, but I really don't want to carry two phones around all the time... I'm so tired...

I tried the November install this morning and 2 hour restart has, for some reason extended to over 3 hours now. I know I should probably shut it down and start over, but I'm loathe to invest another 2 more hours only to find that it won't work. I really have no idea what to try...Did anyone get this to work on a Pixel 3? Would you be willing to share your settings if you did? I don't mean this in any negative way because I know tons of people have worked tons and tons to get this to work, but I have to ask if anyone knows how does this experience differs from that of an iPhone (that is, is it worthwhile to just get the iPhone?)

I've got 15 screenshots of Bluetooth settings, g5-g6 debug settings, Event log settings, and system status shots. What would be the most valuable to share?

Thanks in advance for the help and if there is any way I can help please let me know!

cwpeterson commented 3 years ago

Got a Pixel 3 here with the 11.15 the new nightly install. I got to be honest: I am not certain which options to select anymore... I have tried all manner of settings, restart collector, forget device, change out transmitter, change out sensor. Sorry for being so lost, but is there a way to get a recommendation on what the settings are so that this might work again? I pulled out an old phone last night and worked through the morning to get it to work with the October install, but I really don't want to carry two phones around all the time... I'm so tired...

I tried the November install this morning and 2 hour restart has, for some reason extended to over 3 hours now. I know I should probably shut it down and start over, but I'm loathe to invest another 2 more hours only to find that it won't work. I really have no idea what to try...Did anyone get this to work on a Pixel 3? Would you be willing to share your settings if you did? I don't mean this in any negative way because I know tons of people have worked tons and tons to get this to work, but I have to ask if anyone knows how does this experience differs from that of an iPhone (that is, is it worthwhile to just get the iPhone?)

I've got 15 screenshots of Bluetooth settings, g5-g6 debug settings, Event log settings, and system status shots. What would be the most valuable to share?

Thanks in advance for the help and if there is any way I can help please let me know!

I'm in the same boat. After my last post it simply will not get a reading after the initial connection. I actually downgraded to the 10/1 nightly. At least it'll stay connected for a few hours and gives me readings.

nickb24 commented 3 years ago

Got a Pixel 3 here with the 11.15 the new nightly install. I got to be honest: I am not certain which options to select anymore... I have tried all manner of settings, restart collector, forget device, change out transmitter, change out sensor. Sorry for being so lost, but is there a way to get a recommendation on what the settings are so that this might work again? I pulled out an old phone last night and worked through the morning to get it to work with the October install, but I really don't want to carry two phones around all the time... I'm so tired...

I tried the November install this morning and 2 hour restart has, for some reason extended to over 3 hours now. I know I should probably shut it down and start over, but I'm loathe to invest another 2 more hours only to find that it won't work. I really have no idea what to try...Did anyone get this to work on a Pixel 3? Would you be willing to share your settings if you did? I don't mean this in any negative way because I know tons of people have worked tons and tons to get this to work, but I have to ask if anyone knows how does this experience differs from that of an iPhone (that is, is it worthwhile to just get the iPhone?)

I've got 15 screenshots of Bluetooth settings, g5-g6 debug settings, Event log settings, and system status shots. What would be the most valuable to share?

Thanks in advance for the help and if there is any way I can help please let me know!

If the issue is causing you this much stress I suggest you use the official Dexcom app. If you want to use a modified Dexcom app that ignores the phone compatibility check then you can take a look at the following: https://www.reddit.com/r/dexcom/comments/fqvpsf/oc_build_your_own_dexcom_app_update_base_version/

With the Dexcom app you don't need to restart your current sensor session. If you have a session already started it will pick it up automatically after connecting to your transmitter.

Epod123 commented 3 years ago

Got a Pixel 3 here with the 11.15 the new nightly install. I got to be honest: I am not certain which options to select anymore... I have tried all manner of settings, restart collector, forget device, change out transmitter, change out sensor. Sorry for being so lost, but is there a way to get a recommendation on what the settings are so that this might work again? I pulled out an old phone last night and worked through the morning to get it to work with the October install, but I really don't want to carry two phones around all the time... I'm so tired... I tried the November install this morning and 2 hour restart has, for some reason extended to over 3 hours now. I know I should probably shut it down and start over, but I'm loathe to invest another 2 more hours only to find that it won't work. I really have no idea what to try...Did anyone get this to work on a Pixel 3? Would you be willing to share your settings if you did? I don't mean this in any negative way because I know tons of people have worked tons and tons to get this to work, but I have to ask if anyone knows how does this experience differs from that of an iPhone (that is, is it worthwhile to just get the iPhone?) I've got 15 screenshots of Bluetooth settings, g5-g6 debug settings, Event log settings, and system status shots. What would be the most valuable to share? Thanks in advance for the help and if there is any way I can help please let me know!

If the issue is causing you this much stress I suggest you use the official Dexcom app. If you want to use a modified Dexcom app that ignores the phone compatibility check then you can take a look at the following: https://www.reddit.com/r/dexcom/comments/fqvpsf/oc_build_your_own_dexcom_app_update_base_version/

With the Dexcom app you don't need to restart your current sensor session. If you have a session already started it will pick it up automatically after connecting to your transmitter.

Thanks. I'm on G5 and I have poured time into the official Dexcom G5 application for Android without any success (my Dexcom receiver has failed as well, but I really hate using that thing anyway). As far as the modified Dexcom app, I haven't had the time to experiment with that tack just yet. That said, I am really interested in investing time in a more stable solution.
At this point, the only thing that works so far is the old xDrip version on an older phone (thanks to Petervanrijt for the idea).

Thanks again for the ideas.

Sgathach commented 3 years ago

code

Mine lasted for most of the night, failed for about 35 minutes around 4am and now I woke up and it hasn't yet connected back. Tried restarting my phone ans it hasn't worked yet. Screenshot_20201116-071914_xDrip+

WayneGriswold commented 3 years ago

I went back to the Dexcom/Follower/xDrip option.

On Sun, Nov 15, 2020, 16:19 Sgathach notifications@github.com wrote:

code

Mine lasted for most of the night, failed for about 35 minutes around 4am and now I woke up and it hasn't yet connected back. Tried restarting my phone ans it hasn't worked yet. [image: Screenshot_20201116-071914_xDrip+] https://user-images.githubusercontent.com/62937600/99198468-15fb2100-27dc-11eb-8359-7394ee3a96e0.jpg

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NightscoutFoundation/xDrip/issues/1494#issuecomment-727646837, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEAJANHZODM7ISD6K6FPJXTSQBHY3ANCNFSM4TGMLYVA .

Sgathach commented 3 years ago

I went back to the Dexcom/Follower/xDrip option. On Sun, Nov 15, 2020, 16:19 Sgathach @.***> wrote: code Mine lasted for most of the night, failed for about 35 minutes around 4am and now I woke up and it hasn't yet connected back. Tried restarting my phone ans it hasn't worked yet. [image: Screenshot_20201116-071914_xDrip+] https://user-images.githubusercontent.com/62937600/99198468-15fb2100-27dc-11eb-8359-7394ee3a96e0.jpg — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1494 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEAJANHZODM7ISD6K6FPJXTSQBHY3ANCNFSM4TGMLYVA .

I'm trying to connect to dexcom now, waiting on 2h warm up period. On the search now to connect dexcom to xdrip and nightscout.

Vaughanabe13 commented 3 years ago

Sadly I'm also seeing connection issues now. It was flawless for a while but when I left the phone in another room and came back, I no longer got readings. I never got pairing requests either, it just didn't do anything. Restarting the phone didn't help. Clearing the app storage/cache and reconfiguring G6 didn't help. Adjusting the new scanning settings didn't help. :/

Switching back to the Dexcom share/follower strategy for now since that is working much better.

Quergestreift commented 3 years ago

Jamoran's tip works. I have a Samsung S10+ mobile with Android 10 on it. To solve the reconnection problem with the G6 transmitter, I installed the new xDrip+ nightly build version from 15/11/202020. Under Settings>Advanced Settings>Bluetooth Settings I had initially only activated "Trust Auto Restore". So it ran for about an hour. But then I didn't get any more blood glucose values and I could do what I wanted, xdrip didn't get any information. So I activated "minimize scanning" and "avoid scanning". I also still have activated "Trust Auto Restore". I haven`t disabled this function. Nevertheless the system works now about 16 hours.

major-moses commented 3 years ago

I'm running a Samsung Note 20 Ultra 5G with the newest security patch that was causing issues. The November 15 daily build seems to have fixed my problems, using a G6 sensor with the following options enabled in the debug settings:

Use the OB1 Collector Native Algorithm Minimize Scanning Avoid Scanning G6 Support Allow OB1 initiate bonding

For bluetooth settings, I have the following enabled:

Turn Bluetooth on Bluetooth Watchdog Trust Auto-Connect

It has only been running for 90 minutes at this point, so I will update if I run into any issues.

cwpeterson commented 3 years ago

I'm running a Samsung Note 20 Ultra 5G with the newest security patch that was causing issues. The November 15 daily build seems to have fixed my problems, using a G6 sensor with the following options enabled in the debug settings:

Use the OB1 Collector Native Algorithm Minimize Scanning Avoid Scanning G6 Support Allow OB1 initiate bonding

For bluetooth settings, I have the following enabled:

Turn Bluetooth on Bluetooth Watchdog Trust Auto-Connect

It has only been running for 90 minutes at this point, so I will update if I run into any issues.

Thanks I tried your settings and it looks like it is working better! Fingers crossed.

jamorham commented 3 years ago

The Avoid Scanning is likely the crucial option that you need to both work-around the Android 10 issues and the November security patch. You have to also enable Minimize Scanning before it will let you enable Avoid Scanning

EmGee5 commented 3 years ago

Thank you so much, Jamorham, this finally fixed it! Bless you for all your efforts 🙏

WayneGriswold commented 3 years ago

Yes! That seems to have solved my issue as well. Thank you!

michalhudecek commented 3 years ago

What exactly is the configuration that works for you? I tried everything but can't make the latest nightly build to work. I have Samsung Galaxy Note 10+ with the latest security patch and Dexcom G5.

cwpeterson commented 3 years ago

What exactly is the configuration that works for you? I tried everything but can't make the latest nightly build to work. I have Samsung Galaxy Note 10+ with the latest security patch and Dexcom G5.

These are the settings that worked for me and it has not dropped since I updated them. I am using Dexcom G6 on Pixel 4XL.

Use the OB1 Collector Native Algorithm Minimize Scanning Avoid Scanning G6 Support Allow OB1 initiate bonding

For bluetooth settings, I have the following enabled:

Turn Bluetooth on Bluetooth Watchdog Trust Auto-Connect

michalhudecek commented 3 years ago

What exactly is the configuration that works for you? I tried everything but can't make the latest nightly build to work. I have Samsung Galaxy Note 10+ with the latest security patch and Dexcom G5.

These are the settings that worked for me and it has not dropped since I updated them. I am using Dexcom G6 on Pixel 4XL.

Use the OB1 Collector Native Algorithm Minimize Scanning Avoid Scanning G6 Support Allow OB1 initiate bonding

For bluetooth settings, I have the following enabled:

Turn Bluetooth on Bluetooth Watchdog Trust Auto-Connect

I see. It looks like you have G6 not G5. Could that be the problem?

vytux-com commented 3 years ago

What exactly is the configuration that works for you? I tried everything but can't make the latest nightly build to work. I have Samsung Galaxy Note 10+ with the latest security patch and Dexcom G5.

Here are my G5 settings that have been working for the past 18 hours or so...

Use the OB1 Collector Minimize Scanning Avoid Scanning Allow OB1 unbonding Allow OB1 initiate bonding Android 10 workaround (to be honest I thought I turned that off, but it was on when I just checked now)

For bluetooth settings, I have the following enabled:

Turn Bluetooth on Bluetooth Watchdog G5 Bluetooth Watchdog Trust Auto-Connect

Screenshot_20201118-083451

michalhudecek commented 3 years ago

What exactly is the configuration that works for you? I tried everything but can't make the latest nightly build to work. I have Samsung Galaxy Note 10+ with the latest security patch and Dexcom G5.

Here are my G5 settings that have been working for the past 18 hours or so...

Use the OB1 Collector Minimize Scanning Avoid Scanning Allow OB1 unbonding Allow OB1 initiate bonding Android 10 workaround (to be honest I thought I turned that off, but it was on when I just checked now)

For bluetooth settings, I have the following enabled:

Turn Bluetooth on Bluetooth Watchdog G5 Bluetooth Watchdog Trust Auto-Connect

Screenshot_20201118-083451

And everything else is turned off on those screens? Unfortunately, this still doesn't work for me. No data at all.