The medtronic package provides functions for communicating with
Medtronic insulin pumps using SPI-connected radio modules.
Decoding of messages to and from the pump is derived primarily from Ben West's pioneering "Decoding Carelink" work, along with Pete Schwamb's code for RileyLink.
The medtronic package and any programs that use it must be built
with the appropriate Go build tag for the radio. Currently supported radios:
-tags cc1101for a CC1101 radio module-tags cc111xfor a CC1110 or CC1111 radio module flashed withsubg_rfspyfirmware-tags rfm69for a RFM69HCW radio module-tags rfm95for a RFM95W radio module
The default is the CC111x driver if no tags are specified.
The cmd directory contains a number of command-line applications:
mdtis a "Swiss army knife" application (analogous to the theopenaps use pump ...commands)mmtunescans for the best frequency to communicate with the pumppumphistoryretrieves pump history records and prints themfakemetersends a glucose value to the pump, as if from a connected glucometersetbasalssets the pump's basal rate schedule from the command linelistenwaits for a packet or a timeout, for use in scriptssnifflistens for pump communications and prints the packets it receives