thinkpad笔记本与手机蓝牙互联,求救!!!
时间:2009-10-06
来源:互联网
新买了笔记本,试图在laptop和手机用bluetooth进行通信,参考http://www.gentoo.org/doc/en/bluetooth-guide.xml
http://www.thinkwiki.org/wiki/How_to_setup_Bluetooth
Gentoo Amd64 Kernel-2.6.30-R5的配置如下
Networking --->
<*> Bluetooth subsystem support --->
--- Bluetooth subsystem support
<M> L2CAP protocol support
<M> SCO links support
<M> RFCOMM protocol support[*] RFCOMM TTY support
<M> BNEP protocol support[*] Multicast filter support[*] Protocol filter support
<M> HIDP protocol support
Bluetooth device drivers --->
<M> HCI USB driver[*] SCO (voice) support
<M> HCI UART driver[*] UART (H4) protocol support[*] BCSP protocol support[*] Transmit CRC with every BCSP packet
<M> HCI BCM203x USB driver
<M> HCI BPA10x USB driver
<M> HCI BlueFRITZ! USB driver
<M> HCI DTL1 (PC Card) driver
<M> HCI BT3C (PC Card) driver
<M> HCI BlueCard (PC Card) driver
<M> HCI UART (PC Card) device driver
<M> HCI VHCI (Virtual HCI device) driver
USB support --->
<*> Support for Host-side USB
--- USB Host Controller Drivers
<M> EHCI HCD (USB 2.0) support
[ ] Full speed ISO transactions (EXPERIMENTAL)
[ ] Root Hub Transaction Translators (EXPERIMENTAL)
<*> OHCI HCD support
<*> UHCI HCD (most Intel and VIA) support
< > SL811HS HCD support
emerge net-wireless/bluez-libs-3.36
emerge net-wireless/bluez-utils-3.36
emerge usbutils-0.73
emerge obexftp-0.22
# lsusb
Bus 004 Device 001: ID 1d6b:0001
Bus 007 Device 001: ID 1d6b:0001
Bus 006 Device 001: ID 1d6b:0001
Bus 005 Device 001: ID 1d6b:0001
Bus 003 Device 003: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
Bus 003 Device 002: ID 0a5c:2110 Broadcom Corp.
Bus 003 Device 001: ID 1d6b:0001
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 002: ID 17ef:1004 ChipsBnk
Bus 002 Device 001: ID 1d6b:0002
# hciconfig
hci0: Type: USB
BD Address: 00:1F:3A:EE:E0
6 ACL MTU: 1017:8 SCO MTU: 64:8
UP RUNNING PSCAN
RX bytes:1223 acl:0 sco:0 events:28 errors:0
TX bytes:607 acl:0 sco:0 commands:28 errors:0
# hcitool dev
Devices:
hci0 00:1F:3A:EE:E0
6 (笔记本地址)
# hcitool scan
Scanning ...
00:12:47:10:82
8 SGH-D908i (手机地址)
# sdptool search DUN
Inquiring ...
Searching for DUN on 00:12:47:10:82
8 ...
Service Name: Dial-up Networking
Service RecHandle: 0x10002
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 3
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100
/etc/bluetooth/hcid.conf如下
# 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
#
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
passkey "0000";
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "thinkpad";
# Local device class
class 0x000100;
# Default packet type
#pkt_type DH1,DM1,HV1;
# Inquiry and Page scan
iscan enable; pscan enable;
# 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;
}
/etc/bluetooth/rfcomm.conf如下
rfcomm0 {
# # Automatically bind the device at startup
bind no;
#
# # Bluetooth address of the device
device 00:12:47:10:82
8;
# device 00:1F:3A:EE:E0
6;
#
# # RFCOMM channel for the connection
channel 3;
#
# # Description of the connection
# comment "Example Bluetooth device";
}
# l2ping 00:12:47:10:82
8
Ping: 00:12:47:10:82
8 from 00:1F:3A:EE:E0
6 (data size 44) ...
44 bytes from 00:12:47:10:82
8 id 0 time 27.89ms
44 bytes from 00:12:47:10:82
8 id 1 time 44.66ms
44 bytes from 00:12:47:10:82
8 id 2 time 57.67ms
^C3 sent, 3 received, 0% loss
故障现象描述
# rfcomm connect 00:12:47:10:82
8
Can't connect RFCOMM socket: Connection refused
# obexftp -b 00:12:47:10:82
8 -l
Browsing 00:12:47:10:82
8 ...
Connecting...failed: connect
error on connect(): Success
Still trying to connect
Connecting...failed: connect
error on connect(): Success
Still trying to connect
Connecting...failed: connect
error on connect(): Success
Still trying to connect
安装gnome-bluetooth后,可以在bluetooth-wizard中看见手机,但是无法通信,
手机设置没有问题,可以和其他手机还有windows xp进行互联,请各位牛人帮忙
谢谢!
http://www.thinkwiki.org/wiki/How_to_setup_Bluetooth
Gentoo Amd64 Kernel-2.6.30-R5的配置如下
Networking --->
<*> Bluetooth subsystem support --->
--- Bluetooth subsystem support
<M> L2CAP protocol support
<M> SCO links support
<M> RFCOMM protocol support[*] RFCOMM TTY support
<M> BNEP protocol support[*] Multicast filter support[*] Protocol filter support
<M> HIDP protocol support
Bluetooth device drivers --->
<M> HCI USB driver[*] SCO (voice) support
<M> HCI UART driver[*] UART (H4) protocol support[*] BCSP protocol support[*] Transmit CRC with every BCSP packet
<M> HCI BCM203x USB driver
<M> HCI BPA10x USB driver
<M> HCI BlueFRITZ! USB driver
<M> HCI DTL1 (PC Card) driver
<M> HCI BT3C (PC Card) driver
<M> HCI BlueCard (PC Card) driver
<M> HCI UART (PC Card) device driver
<M> HCI VHCI (Virtual HCI device) driver
USB support --->
<*> Support for Host-side USB
--- USB Host Controller Drivers
<M> EHCI HCD (USB 2.0) support
[ ] Full speed ISO transactions (EXPERIMENTAL)
[ ] Root Hub Transaction Translators (EXPERIMENTAL)
<*> OHCI HCD support
<*> UHCI HCD (most Intel and VIA) support
< > SL811HS HCD support
emerge net-wireless/bluez-libs-3.36
emerge net-wireless/bluez-utils-3.36
emerge usbutils-0.73
emerge obexftp-0.22
# lsusb
Bus 004 Device 001: ID 1d6b:0001
Bus 007 Device 001: ID 1d6b:0001
Bus 006 Device 001: ID 1d6b:0001
Bus 005 Device 001: ID 1d6b:0001
Bus 003 Device 003: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
Bus 003 Device 002: ID 0a5c:2110 Broadcom Corp.
Bus 003 Device 001: ID 1d6b:0001
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 002: ID 17ef:1004 ChipsBnk
Bus 002 Device 001: ID 1d6b:0002
# hciconfig
hci0: Type: USB
BD Address: 00:1F:3A:EE:E0

UP RUNNING PSCAN
RX bytes:1223 acl:0 sco:0 events:28 errors:0
TX bytes:607 acl:0 sco:0 commands:28 errors:0
# hcitool dev
Devices:
hci0 00:1F:3A:EE:E0

# hcitool scan
Scanning ...
00:12:47:10:82

# sdptool search DUN
Inquiring ...
Searching for DUN on 00:12:47:10:82

Service Name: Dial-up Networking
Service RecHandle: 0x10002
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 3
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100
/etc/bluetooth/hcid.conf如下
# 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
#
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
passkey "0000";
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "thinkpad";
# Local device class
class 0x000100;
# Default packet type
#pkt_type DH1,DM1,HV1;
# Inquiry and Page scan
iscan enable; pscan enable;
# 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;
}
/etc/bluetooth/rfcomm.conf如下
rfcomm0 {
# # Automatically bind the device at startup
bind no;
#
# # Bluetooth address of the device
device 00:12:47:10:82

# device 00:1F:3A:EE:E0

#
# # RFCOMM channel for the connection
channel 3;
#
# # Description of the connection
# comment "Example Bluetooth device";
}
# l2ping 00:12:47:10:82

Ping: 00:12:47:10:82


44 bytes from 00:12:47:10:82

44 bytes from 00:12:47:10:82

44 bytes from 00:12:47:10:82

^C3 sent, 3 received, 0% loss
故障现象描述
# rfcomm connect 00:12:47:10:82

Can't connect RFCOMM socket: Connection refused
# obexftp -b 00:12:47:10:82

Browsing 00:12:47:10:82

Connecting...failed: connect
error on connect(): Success
Still trying to connect
Connecting...failed: connect
error on connect(): Success
Still trying to connect
Connecting...failed: connect
error on connect(): Success
Still trying to connect
安装gnome-bluetooth后,可以在bluetooth-wizard中看见手机,但是无法通信,
手机设置没有问题,可以和其他手机还有windows xp进行互联,请各位牛人帮忙
谢谢!
作者: cya1111 发布时间: 2009-10-06
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28