-
Notifications
You must be signed in to change notification settings - Fork 103
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
Code Limitter #6
Comments
Hi Patrick, The outliers issue sounds strange to me, because i have never noticed such fake readings from my sensor or have not heard from another one about such a problem. So i guess it must be the 30s scan interval. In the Read_Memory() you see the "invalid trend check" comments. I have built in that check to avoid such outliers. To answer your big question: The LimiTTer fills an array (trend[j]) with all scanned trend values and compares lastGlucose variable to currentGlucose variable (trend-pointer -1). If the lastGlucose is higher than currentGlucose it knows, that glucose is falling and fetching the smallest trend value from the array. Conversely glucose is rising. An exeption is the apex case. I have find out that the libre reader sometimes displays a rising value even when the lastGlucose is higher than currentGlucose. Then the structure of the trend values are a bit different and the LimiTTer is also taking the highest trend value to emulate the original libre reader as effectively as possible. For your APS project - if you need smoother and slower acting sensor values just take the glucosePointer value. But if you need faster acting sensor readings, don't touch the Read_Memory() function. Please let me know if a change of the scan interval solve your problem. |
Hi Joern Thank you for your swift reply and sorry that it took me so long to reply. Have a nice day Patrick |
Another reason for your outliers could be that the antenna is a little bit away from the sensor. I had determined this for myself and had some outliers, too. Check it out ... |
I think the error checking in Read_Memory should actually be done per packet which should give a more robust model. My proposed fixes for this would be trixing@5cb9caf Let me know if you want these as pull request... |
Hi Thank you for the Software-Update. Regarding the pull request, I ‘m not very experienced with GitHub, but if it makes things easier, please do so. Have a nice weekend Patrick From: trixing [mailto:notifications@github.com] I think the error checking in Read_Memory should actually be done per packet which should give a more robust model. My proposed fixes for this would be trixing@5cb9cafhttps://github.com/trixing/LimiTTer/commit/5cb9caf37c167098ec83bd5d51a693a61d57de51 Let me know if you want these as pull request... — |
Hi
I am working for a research group in Norway with the aim of developing an artificial pancreas.
We are currently us the Freestyle Libre to monitor some of our experiments.
To improve this monitoring and to simplify our set-up, we are intersted in using the LimiTTer to read the Libres.
However, to be able to do so, we have to fully understand the code executed by the LimiTTer. Unfortunately I am struggling with the function Read_Memory(), where the LimiTTer reads the Libre.
I know that the LimiTTer gets a string of trends from the Libre.
The big question is now how does the LimiTTer decide which is the "right" value to forward to the xDrip?
This is very important to us, as we have to know if and to what extent we can trust the data submitted by the LimiTTer.
Furthermore i built already a LimiTTer and ran a few tests. We are currently sampling every 30s and at a distance of up to 2cm between the Libre and the LimiTTer. It is working quite well, but i am getting outliers every so often (ex. constant values of 6.5mmol/l and suddenly one measurement at 12mmol/l).
I have a few ideas about those outliers:
What's your opinion? Any suggestion from your side for those outliers?
Please contact me under patrick.c.bosch@ntnu.no
And if you're interested in our project: www.apt-norway.com
Thank you very much for a swift reply and have a nice day.
Patrick
The text was updated successfully, but these errors were encountered: