The top level medtronic
package provides a unified API for
communicating with Medtronic insulin pumps using SPI-connected radio
modules.
Documentation: https://godoc.org/github.com/ecc1/medtronic
This package provides high-level functions like GlucoseTargets
and SetTempBasal
and is intended as the primary API for applications.
Decoding of messages to and from the pump is derived almost entirely from Ben West's pioneering "Decoding Carelink" work.
The medtronic/radio
package provides a Go interface to
the SPI-attached radio hardware.
The following two types of radio hardware are currently supported.
Note that an antenna must be attached before using either module.
A CC1101 module designed for 915MHz is available here.
This module comes with a 26MHz crystal, which must be changed to a 24MHz crystal by following these instructions.
An RFM69HCW module on a convenient breakout board is available here or here.
An edge-mounted female SMA connector can be attached conveniently.
This directory contains a number of command-line applications,
including a "Swiss army knife" application mdt
(analogous to the the openaps use pump ...
commands).
The spilink
directory contains a backend server that can be used with
a proof-of-concept mmeowlink driver
for openaps.