Main Content

本页对应的英文页面已更新,但尚未翻译。 若要查看最新内容,请点击此处访问英文页面。

低功耗 Bluetooth 通信

读写低功耗 Bluetooth® 外围设备

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

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

  • macOS 10.13 High Sierra 或更高版本

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

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

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


blelist扫描附近的低功耗 Bluetooth 外围设备
ble连接到低功耗 Bluetooth 外围设备
characteristic访问低功耗 Bluetooth 外围设备的特征
descriptor访问低功耗 Bluetooth 外围设备上的描述符
read读取低功耗 Bluetooth 外围设备上的特征或描述符数据
write将数据写入低功耗 Bluetooth 外围设备的特征或描述符


Bluetooth Low Energy Communication Overview

Learn about the basic concepts and terminology for working with the Bluetooth Low Energy protocol.

Find Your Bluetooth Low Energy Peripheral Devices

Scan for and connect to a Bluetooth Low Energy peripheral device. You can view the advertising data of each device to determine the device type and whether it is connectable before creating a connection.

Work with Device Characteristics and Descriptors

Control Bluetooth Low Energy peripheral devices by reading or writing characteristics and descriptors. You can work with both standard and custom characteristics and descriptors.

Collect Data from Fitness Monitoring Devices

This example shows how to collect and plot data from fitness monitoring devices using Bluetooth® Low Energy communication.

Track Orientation of Bluetooth Low Energy Device

This example shows how to track device orientation with device motion sensor data using Bluetooth® Low Energy communication.

Troubleshooting Bluetooth Low Energy

Try these steps if you are having trouble with your device.