Pummpcomm v2.5.1 API Reference

Modules

The blood glucose of the pump user

Carbohydrates consumed in either grams or exchanges

This module provides binary page decoding for Medtronic pump cgm pages. The main entrypoint is decode(page) which handles the crc check and parsing out event opcodes and translating those into event records

Adds timestamps to events based on the preceeding timestamps or timestamped events in a series of events

Decodes Pummpcomm.History and Pummpcomm.Cgm timestamps to NaiveDateTime.t

This module decodes a page of history from the pump into events and provides crc checking on the page

A Pummpcomm.History.StandardEvent tied to an alarm set in MAIN MENU > Utilities > Alarm Clock

An alarm raised by the pump about its internal operations

An alarm raised on the pump on behalf of the CGM

A blood glucose received from a meter

When a basal rate started

When a low-battery alert was raised

A normal bolus, entered by the user

A bolus reminder raised to the user

Inputs Bolus Wizard used to estimate needed bolus

When Bolus Wizard was setup

Calibration blood glucose for pump history

When the alarm clock is enabled/disabled

When the alarm clock time was changed

When the Alarm > Alert Type was changed

When the BG Reminder was enabled/disabled

When the offset after a bolus when the BG Reminder is shown changed

When the basal profile is changed

When the basal profile pattern was changed

When the Bolus Reminder was enabled/disabled

When the bolus reminder time was changed

When the bolus scroll step size was changed

When Bolus Wizard setting where changed

When Utilities > Capture Options is toggled On or Off

When carbohydrates units is switched between grams and exchanges

When the Child Block to lock out the controls is enabled/disabled

When the max allowed basal is changed

When max allowed bolus was changed

When ID of meter was added or removed

When Other Device ID is changed

When Paradigm Link ID is changed

When Low Reservoir Warning time is changed

When which alarms and how long the alarms are silenced is changed

When Fall Rate or Rise Rate alerts change

When the temporary basal_type is changed between :absolute and :percentage

When the pump’s time is changed

When the time display is changed between 12 and 24 hours

When a previously raised alarm is cleared by the user

The settings for the pump were cleared and reset to the factory defaults. The pump will stop insulin delivery until reprogrammed

Utilities > Daily Totals

Utilities > Daily Totals for Minimed 515

Utilities > Daily Totals for Minimed 522

Utilities > Daily Totals for Minimed 523

Decodes a page of history data

Utilities > Alarm Clock > Delete Alarm

Bolus > Bolus Setup > Missed Bolus Reminder > Delete Reminder

Utilities > Connect Devices > Other Devices > On > Delete ID

Bolus > Bolus Setup > Bolus Wizard Setup > Edit Settings > Wizard

When the remote was enabled/disabled

When user exercised

When user gave insulin without the pump

Low Battery alarm

Low Reservoir alarm

A Captured Event that is not one of the following:

When a new cannula was primed

When the pump screw was rewound to prepare for a new reservoir set

When user suspended pump from giving basal and bolus

The number of strokes and units given in a day

When settings were saved

When the basal profile was switched when using Basal Profile Patterns

When user initiated or pump self-initiated a pump self-test

When the user enables/disabled auto-off. Auto-off is a safety feature that stops insulin delivery after a defined time period (from 1 to 24 hours). If the pump detects that no buttons have been pressed for the selected amount of time in Auto-off, insulin delivery will stop and an alarm will sound. You may choose to program this feature into your pump based on the number of hours that you usually sleep at night

An event that only has a timestamp

When a temporary basal was started

The unabsorbed insulin remaining in the user’s body

This module provides high-level continuous glucose monitor functions, such as the ability to retrieve a specific number of historical minutes of cgm data. It manages the process of pulling the right number of cgm pages from the insulin pump, along with handling Medtronic cgm-specific details like writing reference timestamps for accurate cgm decoding

This module provides high-level access to the pump history information. It fetches history data to the specified minutes back, fetching multiple pages of history if necessary until the desired timeframe has been decoded

Model-specific options and information

This agent stores the state of the chip that should be used by pummpcomm

This module autodetects a compatible pump chip and returns a struct with the serial/pin configuration

This supervisor manages the underlying radio device processes once the chip type has been determined

A command issued during a Pummpcomm.Session

The context around executing a Pummpcomm.Session.Command.t

Acknowledge an exchange with pump during a session

Read the current page_number for CGM pages and page_count back of glucose and isig is available when using Pummpcomm.Session.Exchange.ReadCgmPage

Wakes up pump for communications

Read battery indicator and voltage

Reads blood glucose targets for throughout the day

Read open intervals for carb ratios throughout the day

Reads a CGM page. To get the valid range of page, use Pummpcomm.Session.Exchange.GetCurrentCgmPage

Reads insulin sensitivities throughout the day

Reads Pumpcomm.PumpModel.pump_model from pump

Reads status of pump: whether it’s bolusing or suspended

Reads remaining Pummpcomm.Insulin.units left in reservoir

Reads settings about max basal, max bolus, selected basal profile (for basal profile patterns) and the insulin action curve in hours

Reads standard pump basal profiles

Reads temporay basal from pump

Reads pump’s current time

Sets temporary basal on pump. This is the primary mechanism control for closed-loop users

Encodes and decodes data using 4x6 conversion. 4 bit nibbles are encoded into 6 bit sequences on the way out and decoded from 6 bit sequences into nibbles on the way back

A general packet for sending Pummpcomm.Session.Command.t and receive Pummp.Session.Response.t

This GenServer represents a logical pump session and wraps the commands and responses needed in order to communicate with a pump so that execution happens as effortlessly as possible (including listening for silence, waking the pump, and retries). The serial number of the pump is all that is needed to initialize the GenServer, and it will query and store the model number upon the first interaction with the insulin pump

This module provides basic pump command execution. Pump communication happens in packets, and there is often a short prelude packet that the pump acks, followed by a full command packet containing the command parameters. This module is where logical pump packet management happens

Fakes Pummpcomm.Session

This module is responsible for scanning the known US or WW pump frequencies and searching for the best one for a given pump. It samples 5 times in each of the 25 frequency steps within the range and measures the average rssi. The frequency which results in 5 successful responses and has the highest (closest to 0) rssi wins

Temporary Basal

Protocols