-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Unihertz Atom Bluetooth Connection Lost Dexcom G6 #734
Comments
It sounds like the phone's bluetooth stack has problems. I don't have one of these phones to test with. If anyone can loan me one I should be able to discover more quite quickly. |
The Atom BT stack is quite messed up it seems. It would be good if you could contact the tech support of unihertz. They will give you a guide how to send them system logs. I hope if they get them with different setups they will find a fix. |
Hi, We are the technical support of unihertz. |
Hey guys, I am currently using ATOM (latest firmware) together with xDrip (latest nightly) reading G6 and AAPS (latest dev) with Dana RS pump. It works so far (> 1-2 weeks) without the need to do regular restarts. I was in contact with Unihertz since I got the phone back in October and we have tried to identify what's amiss (I guess the log above is from mine from end of Nov) but without any success. I really would like to use the ATOM with my setup together with a smartwatch - this would be my idea of a perfect system for looping. Please let me know if I can help with any testing. I have made screenshots of my current system and app settings for your reference: https://photos.app.goo.gl/bi8axT9pnRTHBuH9A Adrian, Unihertz says on their ATOM FB group that the patch level was updated with their latest FW but not recognized by Google. |
@tech-support-unihertz I am the developer of the OB1G5Service. The dexcom transmitter wakes up periodically (every 5 minutes) for a short period of time and during that wake up window we need to connect to it to retrieve the data. That is what the service is doing. I don't have an atom device to test here in the lab but the reports from users have been that the whole phone needs to be rebooted which in my experience implies that it is quite likely the android bluetooth subsystem itself is crashing. |
@jamorham Can you help analyze this log? (Thanks for the log provider @2flea :) |
As far as I remember the log set above was done with the pre-release firmware including the "Bluetooth has stopped" message not the current version. Also I had different settings in the Atom battery saving. |
Hey guys, I am also currently using ATOM (latest firmware) together with xDrip (latest nightly) reading G6, and fitbit versa and have struggled to keep a connection to bluetooth when adding a smartwatch (Fitbit Versa) to the configuration. History: Test2: Updated atom firmware to November (latest) and tuned xdrip, fitbit, and android settings. Also "Forgot" Sensor in Bluetooth, and let xdrip populate a new Dexcom Bluetooth connection. Still using versa smartwatch. Test3: Did a factory reset with latest november atom firmware installed. Installed xdrip but not fitbit versa yet. Test4: Will install fitbit versa on atom, and try to use Versa smartwatch with Test 3 configuration and collecting log data on xdrip and per unihertz instructions. |
I have received a unihertz atom phone to test with. It is early days, but my initial findings are that the problems are due to the manufacturers power saving additions to android which shut down xDrip.
This happens even though the custom setting for the app " The MTK setting for xDrip is running a foreground service and does not target oreo sdk (targets sdk 23) This is running on an atom with build number As far as I can tell the custom setting for whether |
Could someone from Unihertz please comment on what can be done to get this
fixed, so that we can use the phones and watches effectively with Bluetooth
CGM softwares?
…On Tue, Feb 12, 2019, 5:22 AM JamOrHam ***@***.***> wrote:
I have received a unihertz atom phone to test with. It is early days, but
my initial findings are that the problems are due to the manufacturers
power saving additions to android which shut down xDrip.
PowerSaveService: forceStopThirdApp processName:
com.eveningoutpost.dexdrip pid: 6814, packageName:com.eveningoutpost.dexdrip
This happens even though the custom setting for the app "Background
activity" is enabled for xDrip and that xDrip is already supposed to be
excluded from battery optimization via its standard android runtime
permission for the same.
The MTK setting for Intelligent power saving standby is also disabled as
well as battery saver in the general battery settings.
xDrip is running a foreground service and does not target oreo sdk
(targets sdk 23)
This is running on an atom with build number 20181130
As far as I can tell the custom setting for whether Background activity
is allowed for a specific app either is not implemented or doesn't work
within the framework. I could be wrong but that is exactly how it looks
from my initial testing.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#734 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGoAaDFEYkQPCrNbCFEEKj0UTdWmLq_Jks5vMpX0gaJpZM4ZySTM>
.
|
Okay, I think I have found where this is actually controlled: Go in to |
100% capture rate so far on G5 with that setting applied. Using 10th Feb nightly. |
Yes we have tried it with that setting and it works!
But....the biggest issue we are having now is if we try to use a Bluetooth
watch with the phone it seems to break the Bluetooth stack on the phone.
…On Wed, Feb 13, 2019, 7:19 AM JamOrHam ***@***.***> wrote:
100% capture rate so far on G5 with that setting applied.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#734 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGoAaLZUDF3UOaCty38XIkLOGS7GHZh-ks5vNALRgaJpZM4ZySTM>
.
|
Dear Sir,
Sorry for the late reply.
The attached file will guide to keep the apps not be cleaned up by the background.
Regards,
Technical Support
+86-21-62207593 Ext 8007
www.unihertz.com
From: JamOrHam
Date: 2019-02-13 17:40
To: NightscoutFoundation/xDrip
CC: tech-support-unihertz; Mention
Subject: Re: [NightscoutFoundation/xDrip] Unihertz Atom Bluetooth Connection Lost Dexcom G6 and Fitbit Versa (#734)
Okay, I think I have found where this is actually controlled:
Go in to Android Settings -> Smart Assist -> Power Save Manager -> Tick xDrip on in the whitelist
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I assume you have a patch file or something? It was not linked to or attached to your last message.... |
|
Thanks for those instructions. My xdrip has been running fine on atom with
those settings.
The issue is that within minutes of indroducing another Bluetooth device to
the phone(atom) - especially a watch (Fitbit versa), the watch fails
to.sync after one or.two syncs and then the phone fails to collect
readings.from the.sensor.as.well???
It is.acting like.a.crashed.bluetooth stack??
…On Wed, Feb 13, 2019, 10:01 PM tech-support-unihertz < ***@***.***> wrote:
I assume you have a patch file or something? It was not linked to or
attached to your last message....
How to ensure App will not be cleaned up.pdf
<https://github.com/NightscoutFoundation/xDrip/files/2863094/How.to.ensure.App.will.not.be.cleaned.up.pdf>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#734 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGoAaD4CHtkym23DhBNH3cR5PyiYri8Uks5vNNGBgaJpZM4ZySTM>
.
|
Okay so we have resolved the power saving issues with xDrip getting shut down. Now beyond that in extended testing (>12 hours run) I can see what looks like bluetooth stack crashing which I'm looking at now. |
Dear Sir,
Some users feedback that this issues may be related to colleagues using Watches.
We think we need more log file for analysis this issues.
Wolud you please open the MTKlog, restart the phone,when you find the abnormal bluetooth connect with your watch, record the time(make a screenshot), then send us the log file and the screenshot.
The attachment will guide you how to catch the log file.(BTW: Click the menu Open Bluetooth log Tool-> More Settings -> Firmware Test Situation: -> choose debug)
Wait for you feedback.
|
Thank you for your support. If you have any questions about the Bluetooth stack, please feel free to communicate with us. Thank you. |
The attachment will guide you how to catch the log file.(BTW: Click the menu Open Bluetooth log Tool-> More Settings -> Firmware Test Situation: -> choose debug) |
@jamorham The same issue seems to be the case for the FINOW Q1 PRO --. Android 6 (using as collector and uploader to nightscout for a G6). Linked to #648 Exactly same issue. It is very unstable because of this. Only solution found to turn off and on the BT until it eventually connects again. Otherwise it keeps scanning without success. Let me know if I should send some logs as well or it is not necessary. |
@jamorham - any luck identifying bluetooth stack crashing or what is causing it? |
Hello,
Some users feedback that this issues may be related to colleagues using Watches.
So can you please confirm whether you use the watch at the same time?Can xDrip be used normally after removing the watch.
Wait for you feedback.
|
After removing the watch and restarting the phone xdrip starts working fine again. It is not possible to use watch and xdrip at the same time |
And I am pretty sure that the only reason that xdrip works by itself is
because it has a automatic in app feature that allows it to restart the
unihertz atom Bluetooth stack after it crashes.
…On Sat, Mar 2, 2019, 1:36 PM Ringelschlingel ***@***.***> wrote:
After removing the watch and restarting the phone xdrip starts working
fine again. It is not possible to use watch and xdrip at the same time
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#734 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGoAaIpMG2QJU43ZFX2mnu_veP6IFFwEks5vSsTKgaJpZM4ZySTM>
.
|
@roco5 I think you're right ! |
Edit - two days later (since using the watch the last time) and I still have several crashes which make it necessary to restart the phone :-( |
We need a new log to analyze the problem. The attachment will guide you how to catch the log file.(BTW: Click the menu Open Bluetooth log Tool-> More Settings -> Firmware Test Situation: -> choose debug) |
@evalisapphire If you want to downgrade the version to 8.1, the only way is to flash a rom. Here is the rom of 8.1: https://drive.google.com/file/d/1MPk6-68wbBIN7Yf8VTh9Wf-fc5Jn8yqE/view?usp=sharing Please follow the instruction document for operation. |
@Pallesauka |
The bluetooth problem with dexcom is still there with android 9 on the atom. How about solving this unihertz? |
I downloaded Bluetooth-2019042316_g35v63c2k_dfl-ota.zip and followed the instructions to flash a rom, but I got the same problem as @evalisapphire : the SP-Multidownload app says that the scatter file (scatter.txt) is invalid. |
@rgcstats |
Thanks for this, but I already found a work-around, which seems to be doing
the job. I flashed the stock ROM for 8.1 (not the build with the bluetooth
fix) following your instructions - the scatter file was fine for stock 8.1.
Then I did a local install of the 20190423 build (with the BT fix) - this
way 20190423 was installed without needing to use the dodgy scatter file.
I've now been running 20190423 for 24 hours and it's definitely better
though still not perfect - I'm getting some BT dropouts but this may be
because I'm still tweaking the battery optimisation options.
…On Mon, Dec 30, 2019 at 12:39 PM tech-support-unihertz < ***@***.***> wrote:
@rgcstats <https://github.com/rgcstats>
"2019030120_g35v63c2k_dfl.zip" is the correct ROM, please download it from
the following URL, thank you!
Here is the rom of 8.1:
https://drive.google.com/file/d/1MPk6-68wbBIN7Yf8VTh9Wf-fc5Jn8yqE/view?usp=sharing
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#734?email_source=notifications&email_token=AD4MEFVH4YNCSB3FUKWQBL3Q3FGLXA5CNFSM4GOJETGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHZNA6Q#issuecomment-569561210>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD4MEFSLMQ3Z2XAB4BZAYMLQ3FGLXANCNFSM4GOJETGA>
.
|
@rgcstats |
The firmware on a new replacement atom phone you sent (v.20190722) does not seem to Question: At this point, what are my options and what is working for everyone? OTA Update or Flash the ROM back to 20190322 ? |
Hi @tech-support-unihertz , I will attempt to flash to Android 8.1 as per your document. |
Hello,
Do you want to upgrade back to Android8.1?
Here is the rom of android 8.1 and operation instructions: https://drive.google.com/drive/folders/1RYcxHLfp3huxY79C3fAGtoe-hnLVdWpX
If you have any question,please feel free to contact us.
Regards,
Technical Support
+86-21-62207593 Ext 8007
www.unihertz.com
…-------------------------------------------------------------------------------------
From: Thebigedge82
Date: 2020-08-26 11:13
To: NightscoutFoundation/xDrip
CC: tech-support-unihertz; Mention
Subject: Re: [NightscoutFoundation/xDrip] Unihertz Atom Bluetooth Connection Lost Dexcom G6 (#734)
Hi @tech-support-unihertz ,
I'm having trouble with xdrip connect to atom:
Android 9.0
Build Number: 20191114
I will attempt to flash to Android 8.1 as per your document.
As per your document 'check the model of your device and get the correct ROM!'- will the document supplied in this thread work with this device?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi,
Please refer to the attached guidance document, download and copy the. Zip file from Google driver to your mobile phone for ota package upgrade.
After the new version is upgraded, has the Bluetooth problem been solved?
ota package:
https://drive.google.com/file/d/1hMLsE52PN5gmM9JcZ0yv_tD_NJONLnqV/view?usp=sharing
Best Regards!
----------------------------------------------------------------------
…------------------------------------------------------------------
发件人:Thebigedge82 <notifications@github.com>
发送时间:2020年8月26日(星期三) 11:13
收件人:NightscoutFoundation/xDrip <xDrip@noreply.github.com>
抄 送:tech-support-unihertz <tech-support@unihertz.com>; Mention <mention@noreply.github.com>
主 题:Re: [NightscoutFoundation/xDrip] Unihertz Atom Bluetooth Connection Lost Dexcom G6 (#734)
Hi @tech-support-unihertz ,
I'm having trouble with xdrip connect to atom:
Android 9.0
Build Number: 20191114
I will attempt to flash to Android 8.1 as per your document.
As per your document 'check the model of your device and get the correct ROM!'- will the document supplied in this thread work with this device?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Anyone tried the new atom xl to see if the bluetooth stack works better? |
@rgcstats I have an Atom XL running with AAPS & xdrip+. Everything is very smooth if you have the battery optimization cleaned up. Very good battery time (2 days) and 100% capture rate in xdrip+. I use an omnipod so also this AAPS branch with RileyLink via bluetooth works fine. |
If screen property is a bigger issue one can also replace the funny icons for IOB COB TBR and Sens with text. 2 of these icons (COB & TBR) have display functions depending on status, so you will lose these if you only do text. Text_instead_of_Icons_on_Info-Fragment_and_Large_Skin_adjusted.patch.zip This patch also includes an adjustment to the Large Skin, to extend the first graph fully on a Huawei P20 Pro. |
Hi Robert, this is great. I'm not particularly literate when it comes to
app building: would you mind sharing a walkthrough of how to enable the
skinclassic.kt tweaks?
…On Thu, Sep 10, 2020 at 9:11 PM Robert ***@***.***> wrote:
I have an Atom XL running with AAPS & xdrip+. Everything is very smooth if
you have the battery optimization cleaned up. Very good battery time (2
days) and 100% capture rate in xdrip+. I use an omnipod so the also this
AAPS branch with RileyLink via bluetooth works fine.
There is 2 tweaks you can do in skinClassic.kt in order to get maximum use
of your screen for the first graph and put 2 further graphs down for
scrolling down one page:
override val mainGraphHeight: Int get() = 290
override val secondaryGraphHeight: Int get() = 210
[image: Screenshot_20200910-130710]
<https://user-images.githubusercontent.com/539276/92721820-f6bcbf00-f366-11ea-9b76-5c9530a3815e.png>
[image: Screenshot_20200910-130715]
<https://user-images.githubusercontent.com/539276/92721833-fae8dc80-f366-11ea-8df1-9e0c6194e3cd.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#734 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQXQ6HJFTFKAOUBF35BU3HDSFCX47ANCNFSM4GOJETGA>
.
|
@Thebigedge82 it is pretty straight forward in Android Studio: |
Thanks very much @mountrcg, I might get myself the atom L for Christmas in that case. Can you give a few tips about getting the battery optimisation right? It seems like there are battery-related settings in multiple places, and I was never sure with the atom that I'd turned them all off. |
@rgcstats |
It looks to me that the problem is caused by the Unihertz BT stack and not by xDrip. Or is it solved, meanwhile? @mountrcg Thank you for your screen size adaption. Please can you create a separate feature request to not further mix up this issue? |
@tech-support-unihertz : Downloaded the 2020072319_g35v63c2k_dfl_bt-ota.zip onto an Atom. Installed 8.1 very nicely and I configured everything for this use. The collection seems to work well, but for some reason my IMEIs are set to 11111111111111 and 22222222222222 respectively, so I can't use any SIM card functionality (it will not register onto any network). Is there another version I can try? |
Hi, Mention
For Atom with android 8.1 version, please input *#*#8#*#* in dial app, enter and edit the correct IMEI for SIM1 and SIM2, then click SAVE button, Restart your Atom.
Thanks!
|
@tech-support-unihertz Thanks for swift reply. But I am afraid it didn't work. I get the dialog, enter the correct IMEIs, press Save, restart and the IMEIs are still 111111111111111 and 222222222222222.. |
Hi,
Try to use this tool to write IMEI :
https://drive.google.com/drive/folders/1Y3fZ-5EDs8FGdpdU68JrKg1c7fNvYi9b?usp=sharing
Best Regards!
|
Thanks for your reply. I couldn't make this tool work. I simply cannot get a VCom port to the Atom. I can get ADB access, but then I would need to have root access I think? In order not to hog this thread anymore, would you consider e-mailing me please? Thanks in advance! |
Xdrip will not stay connected to the sensor, as after about 15-20 mins of being disconnected, xdrip phone gets stuck in the "Scanning" state and the only way I can get it to connect again, after losing the connection, is to restart the phone. I have tested seemingly every setting in xdrip, android, fitbit, and specific to atom, and can't say that any configuration has helped at all.
Settings:
Unihertz Atom running new November 2018 build of firmware
Xdrip 12/27/2018 Nightly Build
Fitbit Versa running Glance and new 3.0 software
Observations:
The connection seems very stable between sensor and xdrip when the phone and sensor are in range - to get readings. When the phone goes out of range for more than 1 or two readings, the data stops getting captured from the sensor and the phone gets stuck "Scanning". The only way I know how to resolve this is to reboot the phone (Restarting the collector does not seem to reslove this.)
One user has suggested that when they try to use SSW3 watch and atom phone, with xdrip, they have the same connectivity problems I do, but when they don't use the watch the phone functions much better. I have a Fitbit Versa with updated 3.0 Fitbit firmware and need to be able to use the phone and watch combination, so I am reluctant to call it a problem using a watch.
It also seems possible that after watching a video or surfing on the phone, the phone misses a couple of readings and gets stuck scanning as well, but I have not completely verified this.
+++
The phone has a perfect form factor for a collector, and I would very much like to work with you to get it to function properly, for me and for others. Thank you for your assistance.
The text was updated successfully, but these errors were encountered: