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

Bluetooth hostmode change Discoverable=>Connectable doesn't work on Android

    XMLWordPrintable

Details

    • Android
    • 8
    • b865d41be6 (qt/qtconnectivity/dev) 9cc19b3c4a (qt/qtconnectivity/6.3) 9cc19b3c4a (qt/tqtc-qtconnectivity/6.3) b865d41be6 (qt/tqtc-qtconnectivity/dev) e043bb633f (qt/tqtc-qtconnectivity/5.15) e043bb633f (qt/tqtc-qtconnectivity/5.15.10)
    • Team A Foundation Sprint 56

    Description

      QBluetoothLocalDevice provides a "setHostMode()" method to change the bluetooth host mode.

      According to code comments it is not possible on Android to go directly from Discoverable hostmode to Connectable hostmode, but the bluetooth device needs to be switched OFF first, for which there is a logic implemented in the qbluetoohlocaldevice_android.cpp.

      However at least on an Android-10 device this does not seem to work. While the code switches from Discoverable => PoweredOff, the code call to "BluetoothAdapter::enable()" does not change the hostmode to "Connectable" (nor switch the bluetooth ON).

      This can be seen by the failing tst_qbluetoothlocaldevice::tst_hostmodes

      Attachments

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

        Activity

          People

            vuokko Juha Vuolle
            vuokko Juha Vuolle
            Vladimir Minenko Vladimir Minenko
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: