android - 是否有任何实际的 Android 手机实现蓝牙 spp 配置文件

标签 android bluetooth rfcomm

有人知道目前有一款 Android 手机实际上支持蓝牙 SPP 配置文件吗?我在网上花了几天时间试图找到一款,但没有看到任何声称支持 SPP 配置文件的手机。此外,我注意到各种各样的帖子,其中人们无法让他们的应用程序正常工作,因为他们使用的手机不支持 SPP 配置文件,或者它已在他们的手机上被禁用。我在这里错过了什么吗?在我致力于为 Android 开发蓝牙应用程序之前,我想确保它确实可以完成。

我希望答案是我们通过蓝牙 API 实现 SPP 配置文件,因此我们可以在任何支持它的 Android 操作系统级别(即 2.0 或更高版本)上使用 RFCOMM。这是正确的吗?

最佳答案

SPP 是 RFCOMM,来自 the docs :

The most common type of Bluetooth socket is RFCOMM, which is the type supported by the Android APIs. RFCOMM is a connection-oriented, streaming transport over Bluetooth. It is also known as the Serial Port Profile (SPP).

所以,是的,任何 API 级别 5 (2.0) 或更高版本的设备都将支持 BluetoothSocket,因此支持 SPP。

关于android - 是否有任何实际的 Android 手机实现蓝牙 spp 配置文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4901093/

相关文章:

java - android 如何添加购物车数量?

android - "Error: The file name must end with .xml"使用 FileArrayAdapter 时

android - ORMLite 如何在同一个表中使用两列制作 '<='?

ios - 在 iOS 中比较蓝牙发送的 ASCII 字符时出现问题

android - 蓝牙 RFCOMM 连接 : read serial data from com port in Windows 7

android - 水平按钮系列

linux - BlueZ:如何从命令行设置 GATT 服务器

android - 连接 BTooth 模块时上传 Arduino 程序 avrdude : stk500_getsync(): not in sync: resp=0x45

Android 与 RFCOMM 设备配对无法连接

bluetooth - Windows 10 - 如何检测蓝牙设备何时在范围内