diff --git a/README.md b/README.md index 9ecc37d..e51b343 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ 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) @@ -21,8 +22,6 @@ Currently only Linux is supported. - [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. @@ -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 @@ -84,4 +101,4 @@ Sometimes no BT traffic actually gets sent to the PC and the pairing does not ev ## Debugging -Use btmon. You can also save a btsnoop file using the flag -w, that you can load with Wireshark later. \ No newline at end of file +Use btmon. You can also save a btsnoop file using the flag -w, that you can load with Wireshark later.