Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QTBluetooth not discovering services
I tried to create a service by using Python on Linux device.
Problem :- I cannot detect service from QTBluetooth. However I am able to detect the service from Python client
QTBluetooth Chat example is also not working @Moderators Please check.
Check what? You did not provide your code or anything else. Are there any warnings in the terminal if you execute your application?
And why do you address moderators?
koahnig last edited by
Moderators are simple users as anybody trying to get help in this forum.
They are not responsible and not paid for anything to check. If you think that there is a problem with one of the examples, check with JIRA and eventually file a bug report.
Sorry for inconvenience. I will raise issue in JIRA
@jsulm If you want you can check the btchat example given in qt examples. For me the scanning goes on without finding the service created by qt Bluetooth Server code.
Only error code available is qt.bluetooth.bluez: SDP scan failure QProcess::ExitStatus(NormalExit) 3
That's not enough information for any of us to help, you also have to provide the exact version of Qt you are using, the OS you are running and since it's Bluetooth related, the hardware you are using.
SDP scan failure
Might be related to this
if using python with Qt version < 5.6.2
@mrjj thanks for replying
It seems that Bluetooth module of qt is not stable. There are many bugs
This one is the real one because of which I am facing problem.
i don't think this might be problem in commercial edition of qt
Its fixed in later version of Qt.
The commercial version is the same as the open source (for QWidgets)
but has extra classes/tools and commercial direct support.
However, the Bluetooth module is the same.
what version of Qt are you using ?
I am using QT 5.4. I am using a embedded linux device which has hardware limitations. I have to recompile it on hardware.
It has arm architecture which takes a lot of time.
Ok, the 5.6 series is long term support so Im afraid using 5.4 is not an option in your case.
Recompiling qt 5.6 on small arm device must be painful/ very time consuming.
So if you cant use a newer Qt, maybe just a pure python solution is faster to archive.
Just in case, there's a new LTS. It is 5.9.
On a side note, if you have access to more than one device, you should consider setting up a build farm with your boards.