pazaan / 600SeriesAndroidUploader

Your Medtronic 600-series pump data, direct to Nightscout
http://pazaan.github.io/600SeriesAndroidUploader/
MIT License
188 stars 311 forks source link

RFC: Documentation of data paths into the uploader #238

Open th122 opened 5 years ago

th122 commented 5 years ago

Been fiddling with mermaid for documentation of configuration options and data paths.

Any errors are my own - please comment if there's anything I got wrong or should change.

Data Path

Medtronic Enlite sensor ➔ Guardian™ 2 Link transmitter ➔ MiniMed™ 640G insulin pump ➔ (2.4 radio) ➔ Bayer Countour Next Link 2.4 ➔ (USB-OTG) ➔ Android device ➔ 600SeriesAndroidUploader ➔ Nightscout||xDrip||AndroidAPS

Graphics

unfortunately, Github doesn't seem to render Mermaid (Gitlab does). So here's source and a screenshot... ( I did another one dealing with the xDrip/AndroidAPS part, but it seems better to keep them modular, so I just added a hint of the connections outbound)

600series_uploader___33__ _issues_ _cgm___documentation___loop_ _gitlab

source for graphics

graph TD;
S ==> T;
T ==>|2.4GHz\nIEEE 802.15.4|P;
P ==>|2.4 GHZ|CNL;
CNL ==> |USB OTG|UP;

UP ==> NS;
UP ==> |Broadcast|xm;
UP ==> |Broadcast|AAPSnsc;
UP -.-> |BT|PW;

linkStyle 0 stroke-width:2px,fill:none,stroke:blue;
linkStyle 1 stroke-width:2px,fill:none,stroke:blue;
linkStyle 2 stroke-width:2px,fill:none,stroke:blue;
linkStyle 3 stroke-width:2px,fill:none,stroke:blue;

style NS fill:#9C9,stroke:#333,stroke-width:2px;
subgraph PWD;
  S(Enlite sensor);
  T(Guardian 2 Link transmitter);
  P(6x0G);
  end;
subgraph Receiver;
  CNL(Bayer Countour Next Link 2.4);
  end;
NS((Nightscout));
subgraph Android Telephone kept within reach;
  UP(600series Uploader);
  xm(xDrip master);
  AAPSnsc{AndroidAPS nsClient};
  end;
PW(Pebble Watch);
pazaan commented 5 years ago

This looks great, @th122. The only amendment I can think of is that the sensor can be an Enlite 1/2 or Guardian 3 sensor (and the transmitter can be the Guardian Link 3 as well as Guardian Link 2). The comms between 6x0G and CNL is also 802.15.4. I should probably clean up the wiki, and include this diagram in it ;)

snowstorm0182 commented 5 years ago

This might be offtopic. As you added hints of outbound links after the uploader, do you know of any existing middleware projects? For example ones by-passing USB otg.

pazaan commented 5 years ago

@snowstorm0182 - I’m not sure what you’re asking.