-
|
Hi @Navid200 I'd like to connect xdrip to a sensor that is already embedded and for example 9 days old and time travel back to day 3 manually to avoid the sensor stopping inconveniently on day 10. (or even just time travel 2 hours for a sensor that we put on early to avoid having to wait for warm up, so no down time for looping). I'm using a rebatteried G6 80 transmitter with firmware 1.6.5.25 which satisfies the requirements for preemptive restart as described here. I have two G6 80 TX active all the time running two different systems, one using xdrip+OpenAPS and the other using CamAPS+Bluejay GTS. Set Up 1: xdrip version is latest master 4th Oct 21. The sensor is started by xdrip in the first instance and connected for the entire duration of the sensor life. It appears that the time travel process is driven by this part of the code extended time travel triggered via code day 9. Neither of these sections of code are available via voice commands. Set Up 2: xdrip version is latest nightly build 8th Dec 21. It takes at least 15 mins to migrate over to xdrip as the TX has to forget the old bluetooth connection, so agree with these instructions. The TX connected correctly and xdrip read the sensor readings as expected, showing 9.1 days. however xdrip didn't trigger the automatic time travel event despite being 9 days old and having all the correct settings enabled for engineering mode and extended time travel as per set up 1. Consequently I manually ran the voice command "restart g5 session nearly ended", which asked "Needs Initial Calibration", but i don't want to provide calibrations since the sensor was working accurately. Calibrations aren't needed for an automatic extended time travel restart. Possibly linked to a comment i made previously is that the recent builds including Latest don't give the option to set the time/date of insertion even with correct firmware, which was always asked using last years xdrip builds, but this doesn't explain why the day 9 time travel does work for set up 1. So i uninstalled xdrip and loaded up an old version from last year, 25Jul20 and this time starting the sensor and the "Did you insert it today?" message appeared and i set the sensor start date to be three days ago. Alas, this also failed to start correctly and also asked for "Needs Initial Calibration", but the "Classic Status Page" did show the sensor age as 3d 2h old. After this i'd run out of time/patience and just did a normal sensor start and had to wait 2 hours. I only got the following screenshot of the logs and don't seem to have anything left i can show you now. Next sensor restart in 9 days as just put a new one on. I think the issue with the restart might be related to this instance of xdrip not knowing the calibration code to pass to the TX, as the TX needs that to avoid asking for calibration finger tests. Else it's like starting the sensor using code "0000" which is just calibrated to finger tests. Your suggestion on the chat was to use "set sensor code" (which i've never used before) prior to running the "restart g5 session nearly ended" if i understood you correctly? Any ideas on areas to investigate? Thanks for your help, it's very much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 24 replies
-
|
When xDrip picks up a session in progress, the data on the classic status page with respect to when sensor started is incorrect and disagrees with the information on the G5/G6 status page. My suspicion is that the preemptive restart code uses the information from the classic status page to decide when day 9 comes. And as long as you start the sensor with xDrip, there is no inconsistency and everything works fine. I don't want to ask too many questions like why do you have two transmitters running at the same time. |
Beta Was this translation helpful? Give feedback.
-
|
I've tested this out this evening, i put the CamAPS phone on flightmode was able to link xdrip to the sensor started via CamAPS and then switched it back to CamAPS, took about an 50 mins in total. xdrip gave the following results: As you expected, the Classic Status is out of sync, which you think is driving the preemptive restart task. I'll have a look at the code tomorrow, but i'm new to java so will take me some time to get through it. |
Beta Was this translation helpful? Give feedback.
-
|
I was thinking about this whole concept again. I know that t:slim needs to start the sensor. The reason is that if you start with xDrip, t:slim cannot pick up the session. |
Beta Was this translation helpful? Give feedback.
-
|
So going forward the answer for me is: Just as a reminder, this only works for G6 80/81 series firmware 1.6.5.25 Health warning, this restart is to give me the convenience of when we choose to put on a new sensor, which is usually around day 10, but avoids the sensor from stopping when inconvenient e.g. overnight or whilst away from home. Assumes xDrip is set up on the same phone as CamAPS and correctly enabled for preemptive restarts. Also assumes that the G6 sensor is on day 9. CamAPS
xDrip
CamAPS
|
Beta Was this translation helpful? Give feedback.




So going forward the answer for me is:
Just as a reminder, this only works for G6 80/81 series firmware 1.6.5.25
Health warning, this restart is to give me the convenience of when we choose to put on a new sensor, which is usually around day 10, but avoids the sensor from stopping when inconvenient e.g. overnight or whilst away from home.
Assumes xDrip is set up on the same phone as CamAPS and correctly enabled for preemptive restarts.
Also assumes that the G6 sensor is on day 9.
CamAPS