bluez-hcidump - Analyses Bluetooth HCI packets//建议安装,方便调试
bluez-pcmcia-support - PCMCIA support files for BlueZ 2.0 Bluetooth tools//你的蓝牙适配器是PC卡接口时
bluez-pin - Bluetooth PIN helper with D-BUS support//连接蓝牙设备(比如耳机)时输入验证码的工具
bluez-utils - Bluetooth tools and daemons//核心支持,必须安装
bluez-btsco - Bluez Bluetooth SCO tool//连接蓝牙耳机必备
gnome-bluetooth - GNOME Bluetooth tools.//蓝牙设备扫描,用蓝牙收发文件的工具
alsaplayer-alsa - PCM player designed for ALSA (ALSA output module)//alsa相关工具,推荐
rfcomm0 {
bind yes;
# Bluetooth address of the device
device 00:03:89:4A:96:6D;
# # RFCOMM channel for the connection
channel 2;
# # Description of the connection
comment “ahlong-M3000″;
}
上面的channel的值是如何确定的呢?
sdptool records 00:03:89:4A:96:6D
这个命令用于扫描00:03:89:4A:96:6D支持多少种蓝牙应用。
下面是我的输出:
Service Name: M3000 by Plantronics
Service RecHandle: 0×10000
Service Class ID List:
“Headset” (0×1108)
“Generic Audio” (0×1203)
Protocol Descriptor List:
“L2CAP” (0×0100)
“RFCOMM” (0×0003)
Channel: 1
Language Base Attr List:
code_ISO639: 0×656e
encoding: 0×6a
base_offset: 0×100
Profile Descriptor List:
“Headset” (0×1108)
Version: 0×0100
Service Name: M3000 by Plantronics
Service RecHandle: 0×10001
Service Class ID List:
“Handsfree” (0×111e)
“Generic Audio” (0×1203)
Protocol Descriptor List:
“L2CAP” (0×0100)
“RFCOMM” (0×0003)
Channel: 2
Language Base Attr List:
code_ISO639: 0×656e
encoding: 0×6a
base_offset: 0×100
Profile Descriptor List:
“Handsfree” (0×111e)
Version: 0×0100