These are chat archives for nightscout/intend-to-bolus

15th
Feb 2015
Ben West
@bewest
Feb 15 2015 04:38
nifty:
stpa-control-loop.png
here's lane's
lane-loop-stpa.png
diabeticgonewild
@diabeticgonewild
Feb 15 2015 05:45
that's interesting
Matthias Granberry
@mgranberry
Feb 15 2015 06:21
has anyone worked on sniffing the dexcom share's bluetooth traffic?
Ben West
@bewest
Feb 15 2015 06:22
several people have done it
way it works is once you accomplish the pairing
it sends data in the same format as the usb protocol
here's the original:
thornberry-leveson-human-controller-model.png
diabeticgonewild
@diabeticgonewild
Feb 15 2015 06:28
Yeah that is very nice. Unfortunately I have been sick all day and night with abdominal pain and stuff. But intravenous immunoglobulin (IVIg) makes me sick for a few days too so I'm just hoping that most of being sick is that.
I will take a better look at that later.
Toby Canning
@TC2013
Feb 15 2015 07:48
This message was deleted
Toby Canning
@TC2013
Feb 15 2015 07:55
Ben, does that mean that NightScout is easy to use with the Bluetooth Dexcom?
Ben West
@bewest
Feb 15 2015 08:27
we need to add a few things for blue tooth
but in theory we should be able to support day 1
Matthias Granberry
@mgranberry
Feb 15 2015 17:47
Is it Bluetooth serial or BLE?
Ben West
@bewest
Feb 15 2015 17:47
ah, I believe it's BLE
not 100%
Jason Calabrese
@jasoncalabrese
Feb 15 2015 18:27
@StephenBlackWasAlreadyTaken has been working on communicating with the Share, not sure where it is yet, would be nice to have the normal NS uploader work for both bluetooth and usb
Tyler Rhodes
@trhodeos
Feb 15 2015 18:49
Should be easy enough to add it in. Just need an actual share device
Ben West
@bewest
Feb 15 2015 18:51
hmmm
Jason Calabrese
@jasoncalabrese
Feb 15 2015 18:53
@rnpenguin has one, not sure if @ktind has one, I bet a few are just collecting dust and would be given to us if we ask
no more cable to the dex will meen no hub for the carelink
Sulka Haro
@sulkaharo
Feb 15 2015 19:32
@mgranberry it'd be extremely weird for companies to launch classic Bluetooth in products in 2015, vs BLE. If for nothing else, the currently available nice to work with low power microcontroller chips have BLE. It's probably more expensive to build products with old Bluetooth now.
Matthias Granberry
@mgranberry
Feb 15 2015 19:34
@sulkaharo I wasn't expecting them to be using classic bluetooth. I was just surprised that the message lengths would all fit into BLE packets without any real change
BLE is perfect for this kind of thing, though, where you expect 1 value every 5 minutes
Matthias Granberry
@mgranberry
Feb 15 2015 19:39
If there are any questions about how to do the pairing etc, I have a radio that I can use for BLE decoding. I just don't have an iDevice or Share, so I was hoping someone else had done the fun part.
Sulka Haro
@sulkaharo
Feb 15 2015 20:56
I don't know the Dex protocol but at least the Enlite uses ridiculously small amount of bytes to send the CGM values. I assume it's all optimised to send the package as quickly as possible to avoid interference and reduce battery consumption.
diabeticgonewild
@diabeticgonewild
Feb 15 2015 22:48

Yeah, @bewest , those block diagrams are very nice. Two of them are basic conceptually, and Lane's is very, very interesting. You can have multiple controllers for an AP such as for the bolus calculator and the basal calculator, but ultimately you would integrate them all into a single controller. Looking at patent apps for ideas can be useful for things like that.

I also never got a reply from that dude about the mathematical modeling stuff, but that's OK. He probably has a life.

I also have to do some reading for this project again and reading isn't really my thing. Like I see a neuro-opthamologist for eye accommodation issues, due to autoimmune autonomic ganglionopathy. I usually don't read more than a few paragraphs at a time, so if I need to read more (like now) I turn to screenreaders like Kurzweil 3000.

Ben West
@bewest
Feb 15 2015 22:49
hope you feel better
yeah, it can be adopted to "control" any process
diabeticgonewild
@diabeticgonewild
Feb 15 2015 22:50
thank you. I do feel better now.
Ben West
@bewest
Feb 15 2015 22:51
idea is you get a clear picture of all the actual risks, whether they are social vs technical
it's called "stpa" by nancy leveson
diabeticgonewild
@diabeticgonewild
Feb 15 2015 22:51
nice :)
Ben West
@bewest
Feb 15 2015 22:51
so NS right now is the "display" portion of an AP
-ish
so the diagram still appies, but needs to be adjusted slightly
but I wanted to convince myself I could use the tool easily on a known graphic before getting creative
good old hello world :-)
diabeticgonewild
@diabeticgonewild
Feb 15 2015 22:53
yeah, I am hoping to use some of the graphs on a certain paper I have. It has some very interesting graphs. Actually, I can invite you to my dropbox. You won't be able to make sense out of the graphs, but it's basically determines where glucoses are going to change due to fluxes or drifts, which is valuable
I'm about to invite you, but I need to upload the paper.
diabeticgonewild
@diabeticgonewild
Feb 15 2015 23:01
sent, and uploaded the paper.
The graphs on page 7 in particular are what you want to look at. They're interesting, like 2nd derivative tests.
diabeticgonewild
@diabeticgonewild
Feb 15 2015 23:55
Hey, I did find an error (one of the two errors was not an error--I realized this after sending the email).
This message was deleted
Sorry, going to make it into a gist. I was being impulsive because I am excited!
See, he was awesome. And I told you I am a numbers freak!