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