Skip to content
Eelke Jager edited this page May 3, 2019 · 158 revisions

Main/Extra Commands

Messages can have multiple commands in them. Each command with a single byte indicating the type of command: 0x1E for example, followed by a byte indicating the length of the command, except the 0x1D status response which has no message length.

Type

For status request, you can request different types of pod information, each of which have their own set of returning bytes.

The set insulin schedule uses 3 different table numbers (shown in the type column) and the extra command.

Model

Some commands also implements a specific model. A model can be function to set a hex code or a list with a fixed set of values to create fault descriptions, a basal entry in the application.

Example Code

Because we started with the implementation of these commands to be used as an Omnipod pumpmanager framework in Loop first, we added links to the files used for each command to aid other developers to see how a first working example is implemented to guide development for other platforms or programming languages. Development of earlier code like commands.py or rtlomni were stopped halfway during our development, so they are still missing a lot of parts.

Send Commands

Main Cmd Type Extra Cmd Wiki page Rileylink_ios Model
0x03 Setup Pod ConfigurePodCommand
0x07 Assign ID AssignAddressCommand
0x08 Configure Delivery Flags FaultConfigCommand
0x0E 0x00 0x01 0x02 0x03 0x05 0x06 0x46 0x50 0x51 Get Status GetStatusCommand
0x11 Acknowledge Alerts AcknowledgeAlertCommand AlertSlot
0x19 Configure Alerts ConfigureAlertsCommand AlertSlot
0x1A common Insulin Schedule SetInsulinScheduleCommand
0x1A 0x00 Basal BasalSchedule, BasalDeliveryTable
0x1A 0x13 Basal Extra BasalScheduleExtraCommand
0x1A 0x01 Temp Basal BasalDeliveryTable
0x1A 0x16 Temp Basal Extra TempBasalExtraCommand
0x1A 0x02 Bolus
0x1A 0x17 Bolus Extra BolusExtraCommand
0x1C Deactivate Pod DeactivatePodCommand
0x1E Diagnose Pod Not implemented
0x1F Cancel Delivery CancelDeliveryCommand AlertSlot

Pod Responses

Main Cmd Type Send Command Wiki page Rileylink_ios Model
0x01 0x03 0x07 Version VersionResponse
0x1D 0x0E (type=0x00) 0x11 0x19 0x1C 0x1A Pod Status StatusResponse
0x02 common 0x0E (type!=0x00) Pod Information PodInfo
0x02 0x01 Type 1 PodInfoConfiguredAlerts
0x02 0x02 Type 2 PodInfoFaultEvent FaultEventCode, LogEventErrorCode
0x02 0x03 Type 3 PodInfoDataLog
0x02 0x05 Type 5 PodInfoFault
0x02 0x06 Type 6 PodInfoTester
0x02 0x46 Type 46 PodInfoResetStatus
0x02 0x50 Type 50 PodInfoFlashLogRecent
0x02 0x51 Type 51 PodInfoFlashLogRecent
0x06 On nonce resync request or error Bad Nonce Error ErrorResponse
Clone this wiki locally