读取蓝牙LE特性的响应时间慢? [英] Slow Response time for reading Bluetooth LE Characteristics?

查看:81
本文介绍了读取蓝牙LE特性的响应时间慢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是
在某些winRT应用程序上工作以连接基于蓝牙LE设备在加特的个人资料。  从其他操作系统来看,连接似乎非常快,而且滞后很少。


在Windows中,8.1当我正在拨打电话如beloe

in windows, 8.1 when i'm making calls such as beloe


GattReadResult readResult
等待 bodySensorLocationCharacteristics [0] .ReadValueAsync();

GattReadResultreadResult = awaitbodySensorLocationCharacteristics[0].ReadValueAsync();


这个电话很快回来了。但是,这些值总是被缓存而且永远不会改变。

the call come back pretty quick.  However, the values is always cached and never changes.


如果我打电话

if I call






GattReadResult readResult
=
等待 bodySensorLocationCharacteristics [0] .ReadValueAsync( < span style ="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px"> BluetoothCacheMode .Uncached);

GattReadResultreadResult =awaitbodySensorLocationCharacteristics[0].ReadValueAsync(BluetoothCacheMode.Uncached);


等待返回需要大约2到3秒,即使它只有一个设备配对,结果很小(即
1到4个字节)。  在使用我的曲面运行应用时,我收到了最好的结果。

it's taking about 2 to 3 seconds for the await to return, even it there is only one device paired, and the result is small (i.e. 1 to 4 bytes).  I've received the best results when using my surface to run the app.


对此功能有多少开销有什么期望?我在我们的自定义设备上注意到相同的内容,以及实现的现成心率监视器标准档案。

is there any expectation on how much overhead is associated with this function?  I'm noticing the same on our custom device, as well as with an off the shelf heartrate monitor that implements the standard profile.


我们每100ms采样数据,我希望能够在相似的时间范围内检索特征。

we are sampling data every 100ms, and i would like to be able to retrieve the characteristic in a similar time frame.









推荐答案

我喜欢软件,

欢迎光临!

请尝试

上显示的示例  http://code.msdn.microsoft.com/windowsapps/Bluetooth-Generic-5a99ef95

 http://code.msdn.microsoft.com/windowsapps/Bluetooth-Generic-5a99ef95

如果样品也很慢,请将蓝牙更换为另一个并重试,如果问题也存在,请与我分享测试报告的详细信息,并通过屏幕截图更好。

If the sample is slow too, please replace the Bluetooth with another one and try again, if the issue is also exist, please share with me the detail info about the test report and better with a screenshot.

问候!


这篇关于读取蓝牙LE特性的响应时间慢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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