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 cc1101
for a CC1101 radio module-tags cc111x
for a CC1110 or CC1111 radio module flashed withsubg_rfspy
firmware-tags rfm69
for a RFM69HCW radio module-tags rfm95
for 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:
mdt
is a "Swiss army knife" application (analogous to the theopenaps use pump ...
commands)mmtune
scans for the best frequency to communicate with the pumppumphistory
retrieves pump history records and prints themfakemeter
sends a glucose value to the pump, as if from a connected glucometersetbasals
sets the pump's basal rate schedule from the command linelisten
waits for a packet or a timeout, for use in scriptssniff
listens for pump communications and prints the packets it receives