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

Error "Could not await descriptor read result" when connect to service of BLE device

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.13.0
    • None
    • Windows

    Description

      I am trying to connect to my BLE device by function: 

      void Device::connectToService(QLowEnergyService *service)
      {
       if (!service)
       return;
       if (service->state() == QLowEnergyService::DiscoveryRequired) {
       service->discoverDetails();
       }
      }

      It works well on Mac OS. But on Win 10 the error "Could not await descriptor read result" happens. 

      Please tell me know when this error happens. What can I do to fix it. Thank so much!

      Below is the log.

      qt.bluetooth.winrt: QLowEnergyControllerPrivateWinRTNew::connectToDevice
      qt.bluetooth.winrt: QLowEnergyControllerPrivateWinRTNew::registerForStatusChanges
      qt.bluetooth.winrt: Service discovery initiated
      qt.bluetooth.winrt.service.thread: QLowEnergyControllerPrivateWinRTNew::onServiceDiscoveryFinished Changing service pointer from thread QThread(0x191d3b7fad0)
      qt.bluetooth.winrt.service.thread: QLowEnergyControllerPrivateWinRTNew::onServiceDiscoveryFinished Changing service pointer from thread QThread(0x191d3b7fad0)
      qt.bluetooth.winrt.service.thread: QLowEnergyControllerPrivateWinRTNew::onServiceDiscoveryFinished Changing service pointer from thread QThread(0x191d3b7fad0)
      qt.bluetooth.winrt.service.thread: QLowEnergyControllerPrivateWinRTNew::onServiceDiscoveryFinished Changing service pointer from thread QThread(0x191d3b7fad0)
      qt.bluetooth.winrt.service.thread: QLowEnergyControllerPrivateWinRTNew::onServiceDiscoveryFinished Changing service pointer from thread QThread(0x191d3b7fad0)
      qt.bluetooth.winrt: QLowEnergyControllerPrivateWinRTNew::discoverServiceDetails "{XXX}"
      qt.bluetooth.winrt.service.thread: QLowEnergyControllerPrivateWinRTNew::discoverServiceDetails Changing service pointer from thread QThread(0x191d3b7fad0)
      qt.bluetooth.winrt: QWinRTLowEnergyServiceHandlerNew::QWinRTLowEnergyServiceHandlerNew
      qt.bluetooth.winrt: QWinRTLowEnergyServiceHandlerNew::obtainCharList
      qt.bluetooth.winrt: Could not await descriptor read result

       

       

      Attachments

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

        Activity

          People

            owolff Oliver Wolff
            nhungpham Nhung Pham
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes