Quantcast
Channel: 英特尔开发人员专区文章
Viewing all articles
Browse latest Browse all 583

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

$
0
0

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

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

     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。


图 1- Bluetooth* 设置截图

资源

英特尔® Edison 蓝牙用户指南

英特尔® Edison 开发 人员资源

 


Viewing all articles
Browse latest Browse all 583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>