Multi-platform app that allows your devices to communicate
Find a file
Matthijs Tijink e77c1c87ac Add description of bluetooth multiplexing protocol
Summary:
As mentioned on telegram, there are some fundamental issues with bluetooth. The only approach I could get working was multiplexing: manually sending multiple streams of data over a single connection.

This is the description of that multiplexing protocol. I have an implementation of this protocol, but I'd first like some feedback to see if this is what we're going to use before finishing up those patches.

See the document itself for more details. I make the protocol forward-compatible, although I don't expect we will need ever that.

Test Plan: None, this is just a description.

Reviewers: #kde_connect, andyholmes, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: albertvaka, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D17987
2019-01-19 14:03:37 +01:00
app Add a progress slider to mpris remote in app 2018-12-18 02:50:54 +01:00
cli [cli] Show all reachable devices 2018-12-25 01:38:17 +01:00
cmake Move the generation of dbus interfaces into interfaces/ 2015-06-18 19:06:14 +02:00
core Add description of bluetooth multiplexing protocol 2019-01-19 14:03:37 +01:00
daemon SVN_SILENT made messages (.desktop file) - always resolve ours 2018-10-10 06:19:16 +02:00
data SVN_SILENT made messages (.desktop file) - always resolve ours 2019-01-14 05:31:55 +01:00
declarativeplugin Share RemoteKeyboard implementation 2018-11-08 02:20:34 +01:00
doc Reverted docs version as we didn't change them. 2016-07-22 13:13:30 +02:00
icon Merge icon CMake macros 2018-09-27 18:18:30 +02:00
indicator Add icons to indicator 2018-12-07 17:32:03 +01:00
interfaces [Desktop] Change ThreadID to long 2018-12-11 18:03:30 -07:00
kcm SVN_SILENT made messages (.desktop file) - always resolve ours 2019-01-06 05:29:27 +01:00
kcmplugin Clean-up requirements: cmake 3.0, qt 5.7, use min versions, deduplicate KF5 2018-03-17 23:34:33 +01:00
kio Just set UDSEntry::UDS_NAME to the actual directory name instead of the hardcoded string "folder" and don't set UDSEntry::UDS_DISPLAY_NAME at all 2019-01-16 14:56:24 +01:00
nautilus-extension Compat with python3 2018-05-29 21:09:45 +02:00
plasmoid Implement Drag n Drop file transfer on the plasmoid 2019-01-02 10:26:40 -07:00
plugins Just set UDSEntry::UDS_NAME to the actual directory name instead of the hardcoded string "folder" and don't set UDSEntry::UDS_DISPLAY_NAME at all 2019-01-16 14:56:24 +01:00
sfos use libkeepalive to wakeup daemon 2018-10-23 08:30:48 +01:00
smsapp [SMS App] Improve filter 2018-12-17 09:25:56 -07:00
tests Combine multiple upload jobs into a single KCompositeJob so only 1 notification will be shown 2018-11-30 08:26:00 +01:00
urlhandler SVN_SILENT made messages (.desktop file) - always resolve ours 2018-12-02 05:23:51 +01:00
.arcconfig Add arcconfig file, for phabricator integration 2017-05-25 00:28:11 +02:00
.arclint Add .arclint 2018-07-27 13:32:03 +02:00
.editorconfig Add editorconfig file 2018-10-31 16:51:32 +01:00
.gitignore Add .vscode to gitignore 2018-12-29 19:04:28 +01:00
CMakeLists.txt Add dependency for Qt Quick Controls 2 2018-11-07 09:59:50 -07:00
CONTRIBUTING.md Improve CONTRIBUTING.md 2018-05-16 22:31:16 +02:00
COPYING add missing licence file 2013-09-10 15:18:32 +01:00
kdeconnect-version.h.in Full version string 2018-05-30 21:01:12 +02:00
KDEConnectMacros.cmake Use the macro in ECM to install kdeconnect plugins 2016-06-01 05:16:40 +02:00
README.md Updated README.md 2018-11-28 14:38:20 +01:00

KDE Connect - desktop app

KDE Connect is a multi-platform app that allows your devices to communicate (eg: your phone and your computer).

(Some) Features

  • Shared clipboard: copy and paste between your phone and your computer (or any other device).
  • Notification sync: Read and reply to your Android notifications from the desktop.
  • Share files and URLs instantly from one device to another including some filesystem integration.
  • Multimedia remote control: Use your phone as a remote for Linux media players.
  • Virtual touchpad: Use your phone screen as your computer's touchpad and keyboard.
  • Presentation remote: Advance your presentation slides straight from your phone.

All this is done completely wirelessly, utilising TLS encryption.

Supported platforms

  • Computers running Linux with Plasma 5, Gnome 3, Elementary OS... any distro with Qt5 support given a little work :)
  • Android, by installing the KDE Connect app from the Play Store or F-Droid.

How to install

These instructions explain how to install KDE Connect on your computer. You will also need to install it on your Andriod device and pair them together in the app before using this application. The Android app repository can be found here

On Linux

Look in your distribution repo for a package called kdeconnect-kde, kdeconnect-plasma, or just kdeconnect. If it's not there and you know how to build software from sources, you just found the repo :), instructions are here

On Mac or Windows

Platforms other than Linux are not officially supported, as there has yet to be an official release of KDE Connect for MacOS or Windows. However, most of the features have already been ported to windows so you can compile KDE Connect for Windows using Craft. It hasn't yet been completely tested on MacOS, contributions and feedback are welcome!

On BSD

It should work, but no promises :)

How does it work?

KDE Connect consists of an UI-agnostic "core" library which exposes a series of DBus interfaces, and several UI components that consume these DBus interfaces. This way, new UI components can be added to integrate better with specific platforms or desktops, without having to reimplement the protocol or any of the internals. The core KDE Connect library is also divided in 4 big blocks:

  • LinkProviders: Are in charge of discovering other KDE Connect-enabled devices in the network and establishing a Link to them.
  • Devices: Represent a remote device, abstracting the specific Link that is being used to reach it.
  • NetworkPackets: JSON-serializable and self-contained pieces of information to be sent by the plugins between devices.
  • Plugins: Independent pieces of code which implement a specific feature. Plugins will use NetworkPackets to exchange information through the network with other Plugins on a remote Device.

The basic structure of a NetworkPacket is the following:

{
  "id": 123456789,
  "type": "com.example.myplugin",
  "body": {  },
  "version": 5
}

The content of the "body" section is defined by each Plugin. Hence, only the emisor and receiver plugins of a given packet type need agree on the contents of the body.

NetworkPackets can also have binary data attached that can't be serialized to JSON. In this case, two new fields will be added:

"payloadSize": The size of the file, or -1 if it is a stream without known size.
"payloadTransferInfo": Another JSON object where the specific Link can add information so the Link in the remote end can establish a connection and receive the payload (eg: IP and port in a local network). It's up to the Link implementation to decide how to use this field.

Contributing

To contribute patches, use KDE Connect's Phabricator. There you can also find a task list with stuff to do, and links to other relevant resources. It is a good idea to also subscribe to the KDE Connect mailing list. We can also be reached on IRC at #kdeconnect on freenode or on telegram, contributions and feedback are warmly welcomed.

License

GNU GPL v2 and GNU GPL v3

If you are reading this from Github, you should know that this is just a mirror of the KDE Project repo.