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

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.13.0
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      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

            Assignee:
            owolff Oliver Wolff
            Reporter:
            nhungpham Nhung Pham
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes