科技行者

行者学院 转型私董会 科技行者专题报道 网红大战科技行者

知识库

知识库 安全导航

至顶网软件频道Ubuntu Linux 8.04蓝牙设备连接管理方法

Ubuntu Linux 8.04蓝牙设备连接管理方法

  • 扫一扫
    分享文章到微信

  • 扫一扫
    关注官方公众号
    至顶头条

本文将为大家介绍Ubuntu Linux 8.04蓝牙设备连接管理方法。

作者:sixth 来源:赛迪网 2008年6月13日

关键字: Linux 命令行 技巧

  • 评论
  • 分享微博
  • 分享邮件

1.启动蓝牙设备
sudo /etc/init.d/bluetooth restart
或者
sudo /etc/init.d/bluez-utils restart

2.使用hcitool dev查看计算机上的蓝牙设备
teapot@teapot:~$ hcitool dev
Devices:
hci0 00:16:CF:DB:B4:BF
teapot@teapot:~$

3.安装设备
查询设备地址
teapot@teapot:~$ sudo hidd --search
Searching ...
No devices in range or visible
如果sudo hidd --search没有搜索到,换hcitool scan搜索
我的T60 使用hcitool scan搜索到手机的蓝牙
teapot@teapot:~$ hcitool scan
Scanning ...
00:1D:E9:30:CE:55 PZF # 这是我的手机
teapot@teapot:~$ sudo hidd --connect 00:1D:E9:30:CE:55
teapot@teapot:~$ sudo hidd --show
teapot@teapot:~$

没有错误提示,也没有连接,不知道怎么回事了!

teapot@teapot:~$ sudo hcitool cc 00:1D:E9:30:CE:55
teapot@teapot:~$ sudo hcitool con
Connections:
teapot@teapot:~$
# 这时在蓝牙管理器的浏览设备中发现了PZF
# 建立配对
# 再查看连接
teapot@teapot:~$ sudo hcitool con
Connections:
< ACL 00:1D:E9:30:CE:55 handle 11 state 1 lm MASTER ENCRYPT

    • 评论
    • 分享微博
    • 分享邮件
    邮件订阅

    如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。

    重磅专题
    往期文章
    最新文章