Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-44320

QBluetoothServiceDiscoveryAgent serviceDiscovered signal sends QBluetoothServiceInfo serviceUuid that is always "{00000000-0000-0000-0000-000000000000}"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.5.0
    • None
    • OS X 10.10.2
      Qt 5 dev branch built on 2015-02-04 ( Sorry I am not familiar with Git )

    Description

      I pulled source code and built Qt5 dev branch on 2015-02-04 as I was eager to test Qt5.5 Bluetooth support coming to OS X and iOS.

      commit 9347499e78f03710eaf24af3c1e7ac650d0ef81d
      Author: Qt Submodule Update Bot <qt_submodule_update_bot@ovi.com>
      Date: Thu Jan 29 05:34:55 2015 +0200

      Problem:
      ------------
      The QBluetoothServiceDiscoveryAgent serviceDiscovered signal sendsserviceUuid always sends QBluetoothServiceInfo serviceUuid that is always "

      {00000000-0000-0000-0000-000000000000}" for any device.

      For example:

      http://doc.qt.io/qt-5/qtbluetooth-btscanner-example.html

      void ServiceDiscoveryDialog::addService(const QBluetoothServiceInfo &info) { qDebug("dbg: === serviceDiscoveredHandler ==="); qDebug("dbg: found serviceUuid: \"%s\"", info.serviceUuid().toString().toStdString().c_str()); qDebug("dbg: found serviceName: \"%s\"", info.serviceName().toStdString().c_str()); if (info.serviceName().isEmpty()) return; QString line = info.serviceName(); if (!info.serviceDescription().isEmpty()) line.append("\n\t" + info.serviceDescription()); if (!info.serviceProvider().isEmpty()) line.append("\n\t" + info.serviceProvider()); ui->list->addItem(line); }

      dbg: === serviceDiscoveredHandler ===
      dbg: found serviceUuid: "{00000000-0000-0000-0000-000000000000}

      "
      dbg: serviceName: "Bluetooth Serial Port"

      When I try to ignore and connect to my device using the known good non-zero service ID supported by my device that works on Android it connects, but when I try to send data using QBluetoothSocket::write() I see:

      QMetaObject::invokeMethod: No such method QBluetoothSocketPrivateBase::qint64 QBluetoothSocketPrivate::writeData(const char *, qint64)()

      I am very excited about Qt 5.5 bringing Bluetooth support for OS X and iOS. Qt 5.4 Bluetooth works great for me on Android. I hope it will comes to Windows in the future.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ablasche Alex Blasche
              edofthemountain Ed Sutton
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes