如何启用Android的高速蓝牙(3.0 + HS或4.0)? [英] How to enable high speed Bluetooth (3.0+HS or 4.0) in Android?

查看:1097
本文介绍了如何启用Android的高速蓝牙(3.0 + HS或4.0)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一个BT客户端,并在两个蓝牙4.0的Andr​​oid手机服务器应用程序。服务器等待通过

So I have a BT client and a server application on two Bluetooth 4.0 android phones. The server waits for a connection via

BluetoothServerSocket serverSocket = mBluetoothAdapter.listenUsingRfcommWithServiceRecord(SDP_NAME, UUID.fromString(SDP_UUID));

和客户端经由

socket = device.createRfcommSocketToServiceRecord(UUID.fromString(SDP_UUID));

然后,用AsyncTask的,我在从客户机到服务器的无端环发送数据。

Then, using a AsyncTask, I am sending data in an endless loop from the client to the server.

byte[] buffer = new byte[4096];
outputStream.write(buffer);

我计算出的速度,只得到周围230KByte / s,这恰好是2,1 Mbit / s的蓝牙EDR优惠。如何我通过蓝牙HS发送数据(24兆位/秒)?

I calculated the speed and only got around 230KByte/s, which is exactly the 2,1 MBit/s that Bluetooth EDR offers. How to I send the data via Bluetooth HS (24 MBit/s)?

推荐答案

BT 3.0 + HS就是高利率是由实际使用WiFi物理层实现的方案。因此,只有当你有正确的一种支持它的BT / WIFI组合芯片,这是不是真的很普通的工作。拥有一个4.0的设备并不意味着它3.0 + HS,它只是意味着它可以做BT低能量,这是低数据速率。

BT 3.0+HS is a scheme where the high rates are achieved by actually using Wifi physical layer. So it only works if you have the right kind of BT/Wifi combo chips that support it, which isn't really very common. Having a 4.0 device does not mean it does 3.0+HS, it just means it can do BT Low Energy, which is low data rate.

这篇关于如何启用Android的高速蓝牙(3.0 + HS或4.0)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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