Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ Currently only Linux is supported.

- [Table of contents](#table-of-contents)
- [How to use](#how-to-use)
- [Prerequisites](#prerequisites)
- [Fixing ATT\_MTU size](#fixing-att_mtu-size)
- [Fixing the Bluezero echo problem](#fixing-the-bluezero-echo-problem)
- [IO capability](#io-capability)
- [Pairing confirmation](#pairing-confirmation)
- [Random failures](#random-failures)
- [Debugging](#debugging)



## How to use

The goal is to connect to a 700-series Medtronic pump from our own computer, just like Medtronic's MiniMed Mobile app does, but with no mobile phone and no Medtronic software involved. The connection is over Bluetooth LE, so you will need a computer that supports it.
Expand All @@ -35,6 +34,24 @@ Pump and script then spend another couple of seconds in GATT discovery after whi

The script will currently simply restart the advertising after any problems in that process. You can stop it by pressing `Ctrl+C` in the terminal.

## Prerequisites

* Clone this repo with submodules
```sh
git clone --recurse-submodules git@github.com:OpenMinimed/PythonPumpConnector.git
```
* Install system dependencies
```sh
# Ubuntu/Debian (untested)
sudo apt install libcairo2-dev pkg-config python3-dev libgirepository1.0-dev libcairo-gobject2

# Fedora (tested on 43)
sudo dnf install cairo-devel pkg-config python3-devel gobject-introspection-devel cairo-gobject-devel
```
* Install Python dependencies
```sh
pip install -r requirements.txt
```

## Fixing ATT_MTU size

Expand Down Expand Up @@ -84,4 +101,4 @@ Sometimes no BT traffic actually gets sent to the PC and the pairing does not ev

## Debugging

Use <code>btmon</code>. You can also save a btsnoop file using the flag <code>-w</code>, that you can load with Wireshark later.
Use <code>btmon</code>. You can also save a btsnoop file using the flag <code>-w</code>, that you can load with Wireshark later.