Raspberry Pi3 and QTbluetooth rfcomm server
-
Hi,
I am getting below error while using QTBluetooth rfcomm server.qt.bluetootg.bluez: Device does not support Bluetooth .
-
Hi
Did you test and verify that BT is up and running and working?
https://www.cnet.com/how-to/how-to-setup-bluetooth-on-a-raspberry-pi-3/ -
I had already installed bluez blueman and all the required packages. I have written native c++ code for bluetooth .
Native code -working
Qt bluetooth -not working
Regards,
Avtansh Sharma -
Ok most likely something to do with Qt expected version
and the actual installed version of Bluez -
Hi,
QT version details are
Qt Creator 3.2.1
Based on Qt 5.3.2 (GCC 4.9.2, 32 bit)Built on May 11 2016 at 17:13:20
Copyright 2008-2014 Digia Plc. All rights reserved.
The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
I have installed below packages on Raspberry pi 3
sudo apt-get install libbluetooth-dev bluetooth blueman bluez libusb-dev libdbus-1-dev bluez-hcidump bluez-tools
Bluez version
bluetoothctl --version
5.45Can someone please verify which version is required.
-
@Avtansh-Sharma This is not Qt version, but QtCreator version + Qt which was used to build QtCreator.
-
Hi
for Bluez 5 i think you need at least Qt 5.4
https://blog.qt.io/blog/2015/06/29/qt-bluetooth-and-its-state-of-the-union/I assume you are also using an older Qt since you have such older Creator ?
-
Hi,
I read the blog it says Bluez 4.x versions will be supported for lower Qt versions
If try the reverse direction. Lower the bluez version instead of upgrading the QT it should work.
Compiling and building QT for Raspberry Pi3 will be tedious.Quote from blog
"From its first release in Qt 5.2 onwards, it has grown and improved in every Qt release.In light of the forthcoming Qt 5.5 release, I’d like to tell you a bit more about the current status of Qt Bluetooth. It started out as a solution to interact with Bluetooth devices on Linux using Bluez 4.x."
Regards.
Avtansh Sharma -
Hi
What version of Qt are you using ? -
Hi,
I tried to lower the bluez version but unsuccessful in gettin qt bluetooth work for me
bluetoothd -v
4.101According to blog it should have worked. Can you please give a official link from where I can get what is the compatible version of bluez with my qt version