/smartport_bluetooth

Frsky Smartport bluetooth client in Python

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Smartport bluetooth client

This is a Frsky Smartport client for devices with bluetooth written in Python 3

  • Supported OS: Android, Linux, OS X and Windows
  • Support for bluetooth 2. Bluetooth 4 (BLE) supported only in Linux
  • Support for ACCST X series. ACCST D series and ACCESS protocols not supported

Installation

Linux, OS X and Windows

Prerequisites:

  • Python 3
  • OpentTx 2.3.6

Install python modules (1)

Linux:

python3 -m pip install kivy pybluez plyer gattlib

To scan for BLE devices sudo privilieges are needed. To run as normal user change python capabilities:

sudo setcap cap_net_raw+ep /usr/bin/$(readlink /usr/bin/python3)

OS X and old windows:

python -m pip install kivy pybluez plyer

Windows 10:

python -m pip install kivy PyBluez-win10 plyer

Launch the app from src folder:

python3 main.py

(1) If pybluez does not install correctly:

sudo apt-get install libbluetooth-dev
pip install git+https://github.com/pybluez/pybluez.git#egg=pybluez
python3 -m pip install kivy plyer gattlib

Android

Install smartportbt_unsigned.apk

Pair the bluetooth device before launching the app

Usage

In Opentx go to Radio settings -> Hardware -> SP power -> ON

Attach bluetooth device to radio smartport