银河S3的Andr​​oid 4.3 BLE连接间隔 [英] connection interval for BLE on Galaxy S3 Android 4.3

查看:218
本文介绍了银河S3的Andr​​oid 4.3 BLE连接间隔的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从我的perifpheral(CC2541)到我的GalaxyS3(Android 4.3的)发送数据,我看到,无论我在设置连接区间的外围设备(7.5msec)我得到〜100毫秒间隔发送的报文。

when I send data from my perifpheral ( CC2541 ) to my GalaxyS3 ( Android 4.3 ) I see that regardless of the connection interval that I set in the peripheral ( 7.5msec ) I get packets sent at intervals of ~100msec.

这是数据传输速率真是可怜。

That is really poor data rate.

我怎么能加快速度有何建议?

Any advice of how I can speed things up?

(我已经关闭了WiFi)

( I already turned off the WiFi )

感谢

推荐答案

正如你可能已经知道,有没有办法来配置在Android BLE API的连接时间间隔,因此,剩下的唯一方法是从外围设备设置。您应该周边协商最佳连接间隔为它取决于设备的蓝牙硬件和它的蓝牙堆栈。

As you might already know, there's no way to configure the connection interval from Android BLE API, thus, the only way left is to set it from the peripheral device. Your peripheral should negotiate the best connection interval for it depending on the device bluetooth hardware and its bluetooth stack.

根据蓝牙低功耗规格,连接间隔决定数据分组交换序列的开始之间的时间称为连接的事件,并且它可以是从7.5毫秒到4秒。此值与功耗紧密相连,是更高的消费时的值越小。

According to Bluetooth Low Energy specs, the connection interval determines the time between the start of the data packet exchange sequence called connection events, and it can be from 7.5 ms to 4 seconds. This value is closely linked with the power consumption, being higher the consumption when the value is smaller.

外设应协商连接间隔提议为它的最小和最大值。如果该设备将拒绝该连接的时间间隔,你的周围应该尝试另一种价值,直到达到链接的最佳之一。

The peripheral should negotiate the connection interval proposing a minimum and maximum values for it. If the device rejects that connection interval, your peripheral should try another value until it reaches the optimum one for the link.

三星Galaxy S3的情况是那些谁需要一个更高的连接间隔之一。在我的测试之一,我取得了洽谈20毫秒〜连接间隔在Nexus 5的设备,但是当同样的测试进入S3进行的,它拒绝了这些小的值,并设置〜过48ms之一。

The case of the Samsung Galaxy S3 is one of those who need a higher connection interval. In one of my tests, I achieved to negotiate a connection interval of ~20ms in a Nexus 5 device but when the same test was performed into the S3, it rejected those small values and set one of ~48ms.

例如在iOS中,在他们的蓝牙设计指导文件他们建议使用20ms的最小连接间隔值。因此,正如我之前所说的,工作是在外围的手试图获得最大的价值。

For example in iOS, in their Bluetooth design guidelines document they suggest to use a minimum connection interval value of 20ms. So as I said before, the work is in hands of the peripheral trying to get the best value.

这篇关于银河S3的Andr​​oid 4.3 BLE连接间隔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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