Ian Morrish wrote:Hi,
If it is a USB adapter (even some laptops built in Bluetooth can be on the usb bus rather than PCIe), find the USB hub in device manager and disable power management options from properties.
Otherwise try changing the Windows Power Plan to high performance to see if that keeps the connection up.
Thanks Ian for that quick reply. I disabled power management on my 4 x USB Root Hubs (disabling "Allow the computer to turn off this device to save power") and I had more success on being able to connect to the camera and subscribe to the services and characteristics. It took a couple of attempts before it stuck.
I then re-enabled the power settings on the USB Root Hubs and restarted my computer. I un-paired the camera (via Windows Settings) and tried again, which included Pairing the device, and it managed to stick this time and I could see and connect to the services and characteristics. So, rather odd, and I can't explain why it's connecting every time now.
However, the power settings helped me establish that initial connection, so thank you!
---
Continuing on my investigation - I found that if I tried to connect and pair the camera via the Windows Bluetooth settings my application would be able to see the services that the camera has but it wouldn't be able to subscribe to any characteristic events.
However, if I unpaired the camera (from the Windows Bluetooth settings) and paired the camera in the application instead, then I was able to successfully subscribe to service/characteristic events.
I'm using Microsoft's Bluetooth Low Energy example applications for this (if anyone is interested in going down this path):
https://docs.microsoft.com/en-us/sample ... uetoothle/Note: I tried the C++/WinRT version but it didn't pair correctly (no number entry to pair). The C# version worked.
This was with power management enabled on the USB Root Hubs. So, this seems to be a good place to start.
---
I'll continue to work with it, based on Microsoft's code base and see how far I can get.
Thanks for your help Ian!