Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选 PDF转换器

首页 / 操作系统 / Linux / Linux下手机与蓝牙连接配置方案

我的设备如下:
电脑:安装Ubuntu 6.06 (6.06版本内核已自带蓝牙模块)
手机: Nokia 5500
电脑上装有USB蓝牙适配器

1.配置/etc/bluetooth/hcid.conf

#
# HCI daemon configuration file.
#

# HCId options
options {
# Automatically initialize new devices
autoinit yes;

# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
#修改成auto模式
security auto;

# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;

# Default PIN code for incoming connections
# 默认PIN码,与手机匹配时使用
passkey "1234";
}

# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
# 设置PC端的蓝牙名称,可随意设置
name "%h-%d";

# Local device class
class 0x3e0100;

# Default packet type
#pkt_type DH1,DM1,HV1;

# Inquiry and Page scan
iscan enable; pscan enable;
discovto 0;

# Default link mode
# none - no specific policy
# accept - always accept incoming connections
# master - become master on incoming connections,
# deny role switch on outgoing connections
lm accept;

# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
lp rswitch,hold,sniff,park;
}
  • 1
  • 2
  • 下一页
【内容导航】
第1页:Linux下手机与蓝牙连接配置方案第2页:Linux下手机与蓝牙连接配置方案
Ubuntu 笔记本没有声音的解决办法ubuntu下rar,unrar,axel常用软件相关资讯      蓝牙  Linux下手机与蓝牙连接 
  • 如何在Ubuntu 14.04中默认关闭蓝牙  (06/04/2014 10:57:40)
  • 底层之旅——Android蓝牙系统分析  (10/14/2011 20:25:22)
  • 什么事Bluetooth 4.0?它重要吗?  (10/11/2011 12:12:54)
  • 开源自动导航蓝牙机器人Bero上市  (11/12/2013 06:05:10)
  • iPhone 4S 是首款支持蓝牙 4.0 的  (10/13/2011 15:57:34)
  • 更方便省电的蓝牙 4.0  (10/08/2011 14:00:28)
本文评论 查看全部评论 (0)
表情: 姓名: 字数