Lowenergyscanner Exampler: "Error occured when trying to connect to remote device."
-
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!
-
@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...
-
@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?
-
@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
-
@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.
-
@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 -
@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 .