Open leinelissen opened 7 years ago
noble-uwp
doesn't do anything that would cause the device to disconnect after 30s as far as I know. I suspect it's a Windows problem. Can you reproduce the issue using the Windows Bluetooth APIs from C#? If so, I'd suggest asking about this on the UWP Developer Forum or other appropriate support channel.
This could be due to windows power management of the bluetooth radio connected to the host. I've had devices randomly disconnect at the 30s point when power management is turned on for a radio. Insignia adapters seem to have this on by default, while other Broadcom/CSR adapters I've tried don't.
Hello!
I am currently using noble-uwp as a replacement for noble on Windows 10 Fall Creators update, and I must say I am impressed how decent it works compared to the bluetooth-hci-socket implementation. Great work!
Currently we are investigating an issue with some of our custom-built BLE devices, where after almost exactly 30 seconds the device is disconnected from the PC. This happens on every connect, but weirdly only affects some devices. We have tested those devices with Noble on MacOS High Sierra and have encountered no issues whatsoever. Our device debug logs indicate that the device is disconnected by the PC, suggesting that the issue is either related to noble-uwp or the Windows Bluetooth API.
I have included both the logs from both our Electron app and the device. When trying to write to a characteristic, Noble will throw an error (
failed to write characteristic for device e9b98f92883e: Error: The object has been closed.
), if the write happens more than 30 seconds after connecting.Device Logs
Console Log