/pumpX2

Primary LanguageJavaMIT LicenseMIT

PumpX2

Reverse-engineered Bluetooth protocol for the Tandem t:slim X2.

Currently functions as a basic Android application which pairs to the pump and allows sending read-only message requests and receiving responses about the pump's status and history. The Bluetooth protocol parsing code is exported as an Android library which can be used by other projects.

View supported request/response/history log messages

Discuss in #tslim-x2-dev on Discord

Currently supported:

  • Bluetooth connection
  • Pump authentication and pairing
  • currentStatus characteristic request messages

Partially supported:

  • History Log parsing

Not supported:

  • "V2" pump request/response messages (self-reported API version >= 2.2)
  • Control features

Setup

  • Download the most recent debug APK from the Actions tab in GitHub
  • adb install to your device
  • Disconnect from any tslim Bluetooth devices on your phone
  • If you have the official t:connect app, force quit or log out to avoid conflicts between the two applications. After pairing with pumpX2, you will need to log out and re-pair with the official Tandem app.
  • Enable the Mobile Connection in Bluetooth Settings on the pump, and Unpair Device if currently enabled
  • Open the app and accept the Bluetooth pairing
  • Enter the pairing code from Pair Device

The current implementation of the Bluetooth pairing code is not especially stable and is primarily a proof-of-concept. You may need to re-open the app, clear app data, and/or unpair and re-pair the devices to get things working.