Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

Bluetooth 低功耗通信

读写低功耗 Bluetooth® 外围设备

低功耗 Bluetooth(以前称为 Bluetooth Smart)是一种无线通信协议,该协议支持将 Bluetooth 用于低功耗外围设备。这些外围设备包括健身追踪器、健康监视器以及智能手表或无线耳机等个人电子设备。低功耗 Bluetooth 通信支持不同于 MATLAB® 中的 Bluetooth 通信 接口。

下列平台支持低功耗 Bluetooth 接口:

  • macOS 10.13 High Sierra 或更高版本

  • Windows® 10 版本 1709 或更高版本

要连接到支持低功耗 Bluetooth 的外围设备,您的计算机需要具有内置或外置 Bluetooth 4.0 适配器。连接到设备后,使用 MATLAB 对该设备进行数据读写。您可以使用标准和自定义服务、特性和描述符。

要了解有关低功耗 Bluetooth 通信的标准和设定的更多信息,请参阅 Bluetooth SIG

要仿真、分析和测试蓝牙通信系统,请参阅Bluetooth Toolbox

函数

blelist扫描附近的低功耗 Bluetooth 外围设备 (自 R2019b 起)
ble连接到低功耗 Bluetooth 外围设备 (自 R2019b 起)
characteristic访问低功耗 Bluetooth 外围设备的特征 (自 R2019b 起)
descriptor访问低功耗 Bluetooth 外围设备上的描述符 (自 R2019b 起)
read读取低功耗 Bluetooth 外围设备上的特征或描述符数据 (自 R2019b 起)
write将数据写入低功耗 Bluetooth 外围设备的特征或描述符 (自 R2019b 起)
subscribe订阅特征通知或指示 (自 R2019b 起)
unsubscribe取消订阅特征通知和指示 (自 R2019b 起)

主题

疑难解答

Troubleshooting Bluetooth Low Energy

Troubleshoot the Bluetooth Low Energy interface.