蓝牙自动连接无法在Windows 10 1709上运行 [英] Bluetooth Le auto connecting is not working on windows 10 1709

查看:310
本文介绍了蓝牙自动连接无法在Windows 10 1709上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我刚刚更新到Windows 10 1709,自动连接无法在配对的蓝牙设备上运行。

I just updated to windows 10 1709, and auto connecting is not working on paired bluetooth le devices.


  • 我正在使用WPF,只是添加了使用蓝牙文库的参考( C:\Program Files(x86)\ Windows Wits\10\UnionMetadata \ Windows.winmd)
    -   查看详细信息
  • 配对和连接没问题。
  • 但是,连接断开后,Windows 10 1709上的自动连接不再起作用。
  • 蓝牙操作失败(下面是阅读特征时的错误信息) 
2017-10-24 12:34:05,429 [1] ERROR  : 6e400005-b5a3-f393-e0a9-e50e24dcca9e,
System.ArgumentException: 
   위치: System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   위치: System.Runtime.Compile

请给我任何线索来解决这个问题!

Please give me any clue to solve this problem!

## #for rerence

### for rerence

另外,我有权限问题,并通过编辑寄存器值解决(添加AccessPermission)  请参阅
详细信息

Also, I have an issue on authority, and solved by editing register values(To add AccessPermission) see detail




推荐答案

                _bluetoothLeDevice = await BluetoothLEDevice.FromIdAsync(DeviceInfo.Id);

                if (_bluetoothLeDevice == null)
                {
                    _logger.Error(


" FromIdAsync({Name})返回null" );
返回;
}
var result = await _bluetoothLeDevice.GetGattServicesAsync(BluetoothCacheMode.Uncached);
if(result.Status == GattCommunicationStatus.Success)
{
_logger.Error(" Success");
}
else
{
_logger.Error(" Unrechable");
}
"FromIdAsync({Name}) returned null"); return; } var result = await _bluetoothLeDevice.GetGattServicesAsync(BluetoothCacheMode.Uncached); if (result.Status == GattCommunicationStatus.Success) { _logger.Error("Success"); } else { _logger.Error("Unrechable"); }

*刚刚将Windows 10 SDK更改为10.0.16299.0,结果相同。 

* Just changed windows 10 SDK to 10.0.16299.0 and the result is same. 

*当我阅读服务时,总是_bluetoothLeDevice让我无法访问。

* When I read services, Always _bluetoothLeDevice gives me unreachable.

*  _bluetoothLeDevice.GetGattServicesAsync(BluetoothCacheMode.Uncached)仅在配对后成功。

* _bluetoothLeDevice.GetGattServicesAsync(BluetoothCacheMode.Uncached) is succeeded only after pairing.

 


这篇关于蓝牙自动连接无法在Windows 10 1709上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆