Skip to content
Go package for communicating with Medtronic insulin pumps via SPI-attached radio modules
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd Add -w option to specify Nightscout backfill window Feb 19, 2019
packet Simplify parseBytes function and make spaces optional Jul 4, 2018
testdata
LICENSE Add copyright and license Jan 20, 2017
README.md
basal.go Round basal rates and bolus amounts to model-specific resolution Jun 28, 2018
basal_test.go
battery.go
battery_test.go Use parseBytes for test data Jul 5, 2018
bolus.go Round basal rates and bolus amounts to model-specific resolution Jun 28, 2018
bolus_test.go Use parseBytes for test data Jul 5, 2018
button.go
carbratios.go Export TimeOfDay functions Jun 20, 2018
carbratios_test.go
carbunitstype_string.go Check in files generated by stringer tool Dec 3, 2017
cc1101.go Use build tags to specify radio hardware Apr 29, 2017
cc111x.go
cgmhistory.go Write CGM timestamp when required Jul 6, 2018
cgmpage.go
cgmrecord.go
cgmrecord_test.go
cgmrecordtype_string.go Check in file generated by stringer tool Dec 5, 2018
cleanup.go
clock.go
clock_test.go
command.go Fix off-by-one error when retrieving entire pump history Sep 11, 2018
command_string.go Fix off-by-one error when retrieving entire pump history Sep 11, 2018
common_test.go
firmware.go Add FirmwareVersion function Jun 16, 2018
historypage.go Fix off-by-one error when retrieving entire pump history Sep 11, 2018
historyrecord.go
historyrecord_test.go Add tests for changing insulin type on model 512/712 Feb 13, 2019
historyrecordtype_string.go
json.go
maxbasal.go
maxbolus.go Use consistent milliUnitsPerStroke variable Jun 16, 2018
mockradio_test.go
model.go
nightscout.go
pump.go
pumpbutton_string.go
pumperror_string.go
pumphistory.go
pumpid.go
reservoir.go Move all pump command codes to command.go Jun 16, 2018
reservoir_test.go Use parseBytes for test data Jul 5, 2018
rfm69.go
sensitivities.go
sensitivities_test.go
settings.go
settings_test.go Use insulin type in 512/712 settings to determine InsulinAction value Feb 13, 2019
status.go Move all pump command codes to command.go Jun 16, 2018
suspend.go Move all pump command codes to command.go Jun 16, 2018
targets.go Export TimeOfDay functions Jun 20, 2018
targets_test.go Use parseBytes for test data Jul 5, 2018
tempbasal.go
tempbasal_test.go Use parseBytes for test data Jul 5, 2018
tempbasaltype_string.go
time.go Fix warnings from gometalinter Jun 26, 2018
time_test.go Move common test functions to common_test.go Sep 10, 2018
units.go Add little-endian insulin decoding for basal rate schedules Jun 19, 2018
unmarshal.go
unmarshal_test.go
wakeup.go

README.md

medtronic

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.

Radio configuration

The medtronic package and any programs that use it must be built with the appropriate Go build tag for the radio. Currently supported radios:

Utility programs

The cmd directory contains a number of command-line applications:

  • mdt is a "Swiss army knife" application (analogous to the the openaps use pump ... commands)
  • mmtune scans for the best frequency to communicate with the pump
  • pumphistory retrieves pump history records and prints them
  • sniff listens for pump communications and prints the packets it receives

Documentation

https://godoc.org/github.com/ecc1/medtronic

You can’t perform that action at this time.