Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Lowenergyscanner Exampler: "Error occured when trying to connect to remote device."

Lowenergyscanner Exampler: "Error occured when trying to connect to remote device."

Scheduled Pinned Locked Moved Solved General and Desktop
bluetooth low elowenergyscannebluetooth
7 Posts 3 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SpaceToon
    wrote on 1 Nov 2019, 11:47 last edited by
    #1

    Hello,

    Two weeks ago I tried the Bluetooth Low Energy Scanner Example for Windows with my BLE Device and it worked (scan, connect, show services and characteristics). I created an executeable and it worked on other PCs as well. But now it is not working anymore on my Laptop but it is working on another PC - I did not changed anything. The following Error occurs:

    "qt.bluetooth.winrt: Could not await characteristic read
    Error: "Error occured trying to connect to remote device.""

    So I think the problem is not the device, because the lowenergyscanner.exe, that I created, works on another PC with the same device. But as well running the excample from Qt as executing the created executable leads to this error. I tried to reinstall Qt and the Windows Build Tools etc. but it is still not working.

    Thank you!

    J 1 Reply Last reply 1 Nov 2019, 13:33
    0
    • S SpaceToon
      1 Nov 2019, 11:47

      Hello,

      Two weeks ago I tried the Bluetooth Low Energy Scanner Example for Windows with my BLE Device and it worked (scan, connect, show services and characteristics). I created an executeable and it worked on other PCs as well. But now it is not working anymore on my Laptop but it is working on another PC - I did not changed anything. The following Error occurs:

      "qt.bluetooth.winrt: Could not await characteristic read
      Error: "Error occured trying to connect to remote device.""

      So I think the problem is not the device, because the lowenergyscanner.exe, that I created, works on another PC with the same device. But as well running the excample from Qt as executing the created executable leads to this error. I tried to reinstall Qt and the Windows Build Tools etc. but it is still not working.

      Thank you!

      J Offline
      J Offline
      J.Hilk
      Moderators
      wrote on 1 Nov 2019, 13:33 last edited by
      #2

      @SpaceToon The answer is most likely:

      Windows Updates

      BlueToothLe support comes and goes currently with each Windows update, this is because Windows changes the API constantly, as it is full of bugs and errors...


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      S 1 Reply Last reply 1 Nov 2019, 18:07
      3
      • J J.Hilk
        1 Nov 2019, 13:33

        @SpaceToon The answer is most likely:

        Windows Updates

        BlueToothLe support comes and goes currently with each Windows update, this is because Windows changes the API constantly, as it is full of bugs and errors...

        S Offline
        S Offline
        SpaceToon
        wrote on 1 Nov 2019, 18:07 last edited by
        #3

        @J-Hilk Thank you for your reply. This could be the reason because when I tried an CS Dongle external Bluetooth Adapter, it worked.

        Is there an official statement from Microsoft, where you can read something like this in the future or where did you get this information?

        M 1 Reply Last reply 6 Apr 2020, 14:13
        0
        • S SpaceToon
          1 Nov 2019, 18:07

          @J-Hilk Thank you for your reply. This could be the reason because when I tried an CS Dongle external Bluetooth Adapter, it worked.

          Is there an official statement from Microsoft, where you can read something like this in the future or where did you get this information?

          M Offline
          M Offline
          martial123
          wrote on 6 Apr 2020, 14:13 last edited by
          #4

          @SpaceToon
          Hi SpaceToon , I have the same error like you :qt.bluetooth.winrt: Could not await services operation
          How you have solved this ??
          I have see on your last coment, when you use an external dongle, its work, how you do that ? I have nRF connect dongle but I don't know how to use this dongle instead of internal BLE of windows...
          Thank you for your precious answer..

          Martial

          S 1 Reply Last reply 8 Apr 2020, 18:26
          0
          • M martial123
            6 Apr 2020, 14:13

            @SpaceToon
            Hi SpaceToon , I have the same error like you :qt.bluetooth.winrt: Could not await services operation
            How you have solved this ??
            I have see on your last coment, when you use an external dongle, its work, how you do that ? I have nRF connect dongle but I don't know how to use this dongle instead of internal BLE of windows...
            Thank you for your precious answer..

            Martial

            S Offline
            S Offline
            SpaceToon
            wrote on 8 Apr 2020, 18:26 last edited by
            #5

            @martial123 said in Lowenergyscanner Exampler: "Error occured when trying to connect to remote device.":

            @SpaceToon
            Hi SpaceToon , I have the same error like you :qt.bluetooth.winrt: Could not await services operation
            How you have solved this ??
            I have see on your last coment, when you use an external dongle, its work, how you do that ? I have nRF connect dongle but I don't know how to use this dongle instead of internal BLE of windows...
            Thank you for your precious answer..

            Martial

            Hey, as J.Hilk mentioned above, it had to do with Windows Updates. After a couple of days there was another Windows Update, which I installed and then it worked again.

            You can use an USB dongle instead of the intern BLE with a tool called Zadig. An instruction for this you can find in this video.

            Hope it helps.

            M 1 Reply Last reply 9 Apr 2020, 13:53
            3
            • S SpaceToon
              8 Apr 2020, 18:26

              @martial123 said in Lowenergyscanner Exampler: "Error occured when trying to connect to remote device.":

              @SpaceToon
              Hi SpaceToon , I have the same error like you :qt.bluetooth.winrt: Could not await services operation
              How you have solved this ??
              I have see on your last coment, when you use an external dongle, its work, how you do that ? I have nRF connect dongle but I don't know how to use this dongle instead of internal BLE of windows...
              Thank you for your precious answer..

              Martial

              Hey, as J.Hilk mentioned above, it had to do with Windows Updates. After a couple of days there was another Windows Update, which I installed and then it worked again.

              You can use an USB dongle instead of the intern BLE with a tool called Zadig. An instruction for this you can find in this video.

              Hope it helps.

              M Offline
              M Offline
              martial123
              wrote on 9 Apr 2020, 13:53 last edited by
              #6

              @SpaceToon Hi SpaceToon , thank you a lot for your reply ! it help me a lot, I need to buy this type of dongle because mine, is not compatible like mentioned in this video.
              When i have news i come back to you,
              Great day !
              Martial

              S 1 Reply Last reply 10 Apr 2020, 13:46
              0
              • M martial123
                9 Apr 2020, 13:53

                @SpaceToon Hi SpaceToon , thank you a lot for your reply ! it help me a lot, I need to buy this type of dongle because mine, is not compatible like mentioned in this video.
                When i have news i come back to you,
                Great day !
                Martial

                S Offline
                S Offline
                SpaceToon
                wrote on 10 Apr 2020, 13:46 last edited by
                #7

                @martial123 These dongles are needed, if you use the node.js Bluetooth Low Energy library called "noble" (this video is actually about how to use noble), I only linked it because he also explains how to use Zadig. I don't know if your Dongle, that you have know, will work with Qt BluetoothLE library, just try it, if not, you could then try one of these listed in the video .

                1 Reply Last reply
                1

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved