Windows没有应答,BLE参数更新请求 [英] Windows does not answer BLE parameter update request

查看:311
本文介绍了Windows没有应答,BLE参数更新请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个蓝牙低功耗堆栈定制的嵌入式设备。该设备是广告本身,直到建立连接请求,我配对并通过蓝牙菜单在Windows 10连接到它,我可以使用下面的 BLE关贸总协定功能从Win32 API 的。

I have a custom embedded device with a Bluetooth low energy stack. The device is advertising itself until a connection is requested, I pair and connect to it via the Bluetooth menu in Windows 10, I can read/write to my custom GATT services using the following BLE GATT functions from the Win32 API.

有关我的申请,我需要让我能够使用相同的API,它与上面和接收正确的数据,但速度太慢,接收使用的特征通知高频数据。 Windows正在使用默认的连接参数是不够的,我想向他们这样我就可以在更高的频率接收通知事件,但Windows API不提供这样的功能。我有同样的问题,当连接到Android手机,我解决它从设备(在连接奴隶)和Android手机请求连接参数更新接受了它,一切工作正常。

For my application I need to receive high frequency data using notifications on a characteristic so I enable it using the same API as stated above and receive the correct data but too slow. The default connection parameters Windows is using is not enough and I want to update them so I can receive notification events at higher frequency, but Windows API does not provide such function. I had the same problem when connection to an Android phone, and I solved it by requesting connection parameters update from the device (the slave in the connection) and the Android phone accepted it and everything worked as expected.

唯一的问题是,当我试图在连接到Windows主索要从设备的连接参数更新,我没有收到任何回应(不接受也不拒绝),同时,我仍然收到通知事件等等我知道连接仍然有效。而奇怪的是,如果我持有设备靠近电脑的蓝牙天线它的确实收到回应并更新像意。连接参数

The only problem is when I'm trying to ask for a connection parameter update from the device when connected to a Windows master, I don't receive any response (no accept nor reject), meanwhile I still receive notification events so I know the connection is still active. And the weird thing is that if I hold the device closer to the computer's Bluetooth antenna it does receive a response and update the connection parameters like intended.

任何想法是怎么回事?它是在Windows堆栈中的错误?

Any idea what's going on? Is it a bug in Windows stack?

推荐答案

事实上,固定装置更接近天线有助于应该进行验证。多次尝试它以不同的方式。

The fact that holding device closer to antenna helps should be verified. Try it multiple times in a different way.

您提到的Andr​​oid,并保持设备在Android也进一步prevent连接参数更新?

You mentioned Android, does holding device further from Android also prevent connection parameters update?

如果这证明属实,我想说的设备故障。我想比较的行为不同设备之间,更好,如果他们是来自不同制造商或至少机型。

If this proves true, I'd say the device is faulty. I would compare the behavior between different devices, better if they are from different manufacturers or at least models.

这篇关于Windows没有应答,BLE参数更新请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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