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
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 themsniff
listens for pump communications and prints the packets it receives