跳转到主要内容

英特尔® Edison开发板蓝牙*入门

editor 提交于

<br>英特尔® Edison 具备内置蓝牙* 功能。本文将演示如何启用蓝牙* 以及与设备的配对。</br>

运行下列命令,以激活蓝牙*:

rfkill unblock bluetooth

bluetoothctl

bluetoothctl 将启动 BlueZ 命令行实用程序,进入 BlueZ 命令行实用 程序后,您将看到每个命令行均以 [bluetooth]# 开始。

注册代理,并设置为默认模式:

agent KeyboardDisplay

default-agent

运行 scan on,扫描蓝牙设备*。 将显示可用的蓝牙设备。

scan on

配对蓝牙* 设备时需要输入设备 ID,以运行以下命令。

pair <Device ID>

设备配对成功后,运行下列命令连接该设备:

connect <Device ID>

如欲查看更多命令,输入 help。 如欲退出 BlueZ 命令行实用程序,输 入 exit。 有关该流程的截图请见图 1。

<center><img src="http://intel.eetrend.com/files/2016-03/wen_zhang_/100001203-747-601.jpg…; alt=""></center>
<center><i>图 1- Bluetooth* 设置截图</i></center>

<br>资源</br>

<a href="http://www.intel.com/support/edison/sb/CS-035381.htm">英特尔® Edison 蓝牙用户指南</a>

<a href="https://software.intel.com/zh-cn/articles/intel-edison-developer-resour…® Edison 开发 人员资源</a>

文章来源:<a href="https://software.intel.com/zh-cn/articles/intel-edison-board-getting-st…;英特尔开发人员专区