Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Usage about Qt Bluetooth



  • Hi all

    I want to know the difference about the data transfer between QBluetoothSocket and QLowEnergyBluetooth.

    I found I can connect my device with QLowEnergyBluetooth but I can't use these service uuid to connect with QBluetoothSocket, like this device as follow:

    "Generic Attribute"
             characteristic count 0
    "Unknown Service"
             characteristic count 2
                     characteristic name ""
                     description count 1
                            descriptor name "Client Characteristic Configuration"
                     characteristic name ""
                     description count 0
    "Generic Access"
             characteristic count 4
                     characteristic name "GAP Device Name"
                     description count 0
                     characteristic name "GAP Appearance"
                     description count 0
                     characteristic name "GAP Peripheral Preferred Connection Parameters"
                     description count 0
                     characteristic name ""
                     description count 0
    "Unknown Service"
             characteristic count 1
                     characteristic name ""
                     description count 1
                            descriptor name "Client Characteristic Configuration"
    "Device Information"
             characteristic count 3
                     characteristic name "Model Number String"
                     description count 0
                     characteristic name "Serial Number String"
                     description count 0
                     characteristic name "Firmware Revision String"
                     description count 0
    
    #Using QBluetoothSocket
    qt.bluetooth.bluez: SDP scan failure QProcess::ExitStatus(NormalExit) 126
    qt.bluetooth.bluez: SDP search failed for "F1:11:38:FE:CB:1E"
    

    I want to read/write data between the device and my program, what should I do?

    BTW, the sdpscanner is copied from .debug, and the serviceUuidsCompleteness is DataIncomplete. what should I do for it ?

    Best regards
    Mihan


Log in to reply