Questions tagged [qtbluetooth]

QtBluetooth is a module from the Qt Toolkit which provides an API for connectivity between Bluetooth enabled devices.

Documentation can be found here (Qt5).

26 questions
5
votes
1 answer

Bluetooth communication with Qt 5.2 on Android

I want to use the Qt framwork to enable my Android devices to communicate over Bluetooth. As of today Qt 5.2 is the newest and from what I understand Bluetooth is not supported yet. On this page: Qt Bluetooth information it says that Bluetooth is…
uniquenamehere
  • 1,869
  • 3
  • 31
  • 60
3
votes
0 answers

Discovering specific GATT service by UUID via PyQT5 QTBluetooth module on Windows OS

I am writing a BLE client under windows using PyQT5 library. I was able to discover all services using the following snapshot of code: if self.controller is None: self.controller =…
Rida Shamasneh
  • 767
  • 1
  • 6
  • 16
2
votes
1 answer

QtBluetooth Win10, how to check if bluetooth adapter is available and ON?

I'm using QtBluetooth under Win10. Works fine. However, as my app is deployed both on laptops (that may or may not have a BT adapter) and desktops (that are likely not to have an adapter), I'd like to programmatically check if the adapter is…
jpo38
  • 20,821
  • 10
  • 70
  • 151
2
votes
0 answers

Reading advertisement packet using QtBluetooth

Is there any way to read the contents of an advertisement packet advertised by a BLE device(peripheral) on BLE Central application developed in Qt using QtBluetooth.
Kuncheria
  • 1,182
  • 9
  • 16
2
votes
0 answers

Stuck with Qt and Bluetooth

I use Qt 5.4 for Windows and I'm trying to write a basic desktop program. I've tried all the examples for bluetooth bundled with Qt. (Scanning, chat, qml scanning...) None of them works. I've researched about that and many says "Compile with Dbus…
user22165
  • 21
  • 1
2
votes
0 answers

Can a computer be used as a headset with bluetooth?

With Qt Bluetooth module (qt 5.2 and up) is it possible to use a Linux computer as a audio gateway? Basically, I want to use computer as a headset and handle digital audio which comes from a mobile phone and send digital audio over bluetooth using…
2
votes
1 answer

Can't find QtBluetooth Header/Cant include it in QtCreator

its my first Question here :) Im trying to develop a C++ Application which i can use to control a Lego NXT remotely from my Desktop PC over Bluetooth. To achieve this i want to use the QBluetooth Library(and other QtGui Libs aswell). My Problem is…
2
votes
3 answers

Qt C++ BlueZ 5 QDbus Library

In BlueZ 5 the DBus API has changed substantially. I previously had a working QDbus controller library for BlueZ 4 based on this: https://gitorious.org/qt-bluez-demos/ I've been googling quite a bit and cannot find any existing starting point to…
PhilBot
  • 748
  • 18
  • 85
  • 173
1
vote
0 answers

Qt Bluetooth bonded devices

I would like to connect to already bonded bluetooth device. Is there a way in Qt Bluetooth that returns List of bonded devices like function getBondedDevices in android studio? Or do I have to scan through all of bluetooth devices and check if the…
maartiin
  • 21
  • 3
1
vote
0 answers

Could not detect bluetooth device - qt.bluetooth.bluez received advertising error

I am using ubuntu 18.4, bluez 5.58. The bluetooth module is executed with 'root' privilege. During power up of embedded device(using cypress BLE module), the advertising fails with error : "qt.bluetooth.bluez received advertising error". This issue…
Menon rp
  • 11
  • 1
1
vote
1 answer

QBluetooth BLE advertising does not work on ubuntu (BlueZ)

I tried to advertise a BluetoothLE service using Qt today. I started by testing the Bluetooth Low Energy Heart Rate Server Example and it worked just fine on my Android phone. On my Ubuntu 18.04 Laptop though, I could not get it to work. When I run…
1
vote
0 answers

Qt bluetooth: get Battery level value notifications

I am developing a program to read some characteristics from a smart watch (heart rate, battery level, humidity and temperature). To doing this, I am following the heart rate game example. From this example I am able to get notifications about heart…
Furla94
  • 59
  • 6
1
vote
1 answer

Can't load QtBluetooth 5.12.0 under Windows 7

I migrated some code from Qt 5.6.0 to Qt 5.12.0 both compiled with Visual Studio 2015. It has some code using QtBluetooth for regular (no "low energy") bluetooth. With 5.6.0, this used to work perfectly. With Qt 5.12.0, my app won't load. It reports…
jpo38
  • 20,821
  • 10
  • 70
  • 151
1
vote
1 answer

How to choose local adapter when connecting to service with QBluetoothSocket

In the presence of multiple Bluetooth adapters, is it possible to specify which local adapter to use when creating a QBluetoothSocket or calling QBluetoothSocket::connectToService()? I'm interested in Linux/BlueZ as well as Android (where it is not…
Ayberk Özgür
  • 4,986
  • 4
  • 38
  • 58
0
votes
0 answers

Qt 5.14.2 BLE not working as expected on Android

I made a simple app that write to a device a command, and the device reply with another command. On windows everything works fine, but on Android I'm not able to send the data. This is my code: #include "communicator.hpp" #include…
Fausto01
  • 171
  • 14
1
2