Need to connect to transmitter before we can start sensor #3078
-
After 20230328 a change was rolled out to make sure there was a valid timestamp for transmitter days resulting in "Need to connect to transmitter before we can start sensor". I believe this timestamp happens shortly after a TX is activated. And the rationale was to make sure a TX was ready to take a sensor start command (and importantly avoid potential "stuck" commands in the xDrip TX queue). While I never suffered from a stuck command in my life... I seem to reliably get blocked from starting a sensor by this countermeasure, permanently. I have to roll back to 20230328 every time I change my sensor as a workaround. I have an Anubis and I factory reset it after every use (have two Anubis and alternate to overlap, sleeping the outgoing TX to save battery). For whatever reason TX days stays at NaN (or "/6214") until after I start it, making this a race condition in my situation. I can't start because of the block, and I can't get unblocked because of the start limitation. I know my TX connects to my phone because it takes a battery reading and the "Last Connected" seconds rolls over. Yet because the timestamp doesn't update I'm check mated. |
Beta Was this translation helpful? Give feedback.
Replies: 13 comments 29 replies
-
After you start by rolling back, how long does it take for transmitter days to show 0? Will it not do the same if you don't roll back? |
Beta Was this translation helpful? Give feedback.
-
I just recreated the problem by resetting the transmitter without removing the pairing from the phone. Let me run another test. |
Beta Was this translation helpful? Give feedback.
-
This time, I didn't use forget device. This time, I enabled |
Beta Was this translation helpful? Give feedback.
-
This is my understanding of what happens. Bluetooth pairing is a 2-way process. When there is a pairing established (pair request approved), xDrip stops looking for a transmitter to pair with. The allow OB1 unbonding, I believe, was put in place for exactly this situation. But, it caused more harm than help. So, we are telling everyone to disable it. The way I see it, you can enable allow OB1 unbonding if it does not cause frequent pair requests for you. I can see that others may get locked up the way you were using recommended settings. Please let me discuss this with others before we can see what we need to do next. |
Beta Was this translation helpful? Give feedback.
-
My screen shot has a battery reading but no transmitter days. My hunch is a
connection has occurred and it's G2G. Hence when I use an older version
without the check, I progress without issue.
I don't fully understand the other stuck command issue though. I'm guessing
I'm vulnerable to it somehow.
Maybe don't have a hard gate, but instead, auto clear any stuck commands
after a threshold and prompt user start has failed?
…On Tue, 12 Sept 2023, 8:52 am Navid, ***@***.***> wrote:
If that's not the case, meaning if xDrip can indeed read the battery
voltages without a pairing in place, then voltages being present is not a
valid representation that we have a link.
If we don't have a link, starting the sensor could cause a start command
getting stuck in the queue.
—
Reply to this email directly, view it on GitHub
<#3078 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGERF22TUAKAKRIF5JJDGJDXZ52YTANCNFSM6AAAAAA4TCRTN4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
@Navid200 Going through a changeover now. Tried each of the below, waiting for 15-20 minutes between trying each.
As before I get a battery read so I'm convinced a connection happens. It just feels like a race condition with this Anubis. |
Beta Was this translation helpful? Give feedback.
-
Rolled back versions and it started instantly (without the gate obviously) but as soon as the start command was issued the TX timestamp populated in status with a 0 days. @Navid200 any chance you can bury a setting to disable the gate so I can be done with this? Been slogging away all year :) Changeovers are stressful enough. |
Beta Was this translation helpful? Give feedback.
-
Discussion on the Anubis page and I have tagged the dev who chimed in https://www.facebook.com/groups/anubisg6/posts/843692667413110/ |
Beta Was this translation helpful? Give feedback.
-
I have been able to recreate this problem. In the meantime, you can do what you did, temporarily install an older xDrip to start. |
Beta Was this translation helpful? Give feedback.
-
xDrip has a persistent storage that contains information about a transmitter. After a transmitter is hard reset, the timestamp of the transmitter goes back to 0. If you perform a hard reset using xDrip, the persistent store data is also flushed from the transmitter data. As a result, on the next contact, xDrip will ask for all the data from the transmitter and loads the persistent store with updated values. If you use a different app to hard reset a transmitter, the data in the xDrip persistent store (the timestamp) will be incorrect. If you always use xDrip to perform a hard reset, you will never experience the lock situation. |
Beta Was this translation helpful? Give feedback.
-
I am doing a swapover now. Hard Reset Transmitter doesn't help to recover from the stuck state. It just says "Hard reset maybe failed". I have been in the stuck state for over an hour. Hard reset has been attempting for most of that time. |
Beta Was this translation helpful? Give feedback.
-
@Navid200 I was able to start the transmitter on my old phone, with a newer app version. So that (I guess) confirms it was something left over in local DB storage per your previous comments. |
Beta Was this translation helpful? Give feedback.
-
A new xDrip Nightly is supposed to address this: https://github.com/NightscoutFoundation/xDrip/releases/tag/2023.10.17 Please use it, or any after that, to address the problem. You still need to remove the transmitter from the list of previously paired devices on your phone. Otherwise, you will see deep sleeping error and experience malfunction. And you can hard reset using xDrip. But, you don't have to. This is addressed regardless of how you hard reset. |
Beta Was this translation helpful? Give feedback.
A new xDrip Nightly is supposed to address this: https://github.com/NightscoutFoundation/xDrip/releases/tag/2023.10.17
Please use it, or any after that, to address the problem.
You still need to remove the transmitter from the list of previously paired devices on your phone. Otherwise, you will see deep sleeping error and experience malfunction.
As long as you remove the hard reset transmitter from the list of previously paired devices, the behavior will be identical to that of a brand new standard transmitter.
So, you will need to approve a pair request. Then, you will need to wait for one or two consecutive read cycles after which, you will be able to start sensor.
And you can hard rese…