View previous topic :: View next topic |
Author |
Message |
ILoveUNIX n00b
Joined: 10 Dec 2009 Posts: 7
|
Posted: Mon Jan 04, 2010 10:30 am Post subject: BLUETOOTH: Can't connect RFCOMM socket: Host is down |
|
|
Hi guy's,
i instaled bluetooth but not work ... Please help...
Code: |
[b]cat /etc/bluetooth/hcid.conf[/b]
options {
autoinit yes;
# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security user;
# 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 "90210";
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "Gentoo";
# 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;
}
cat /etc/bluetooth/rfcomm.conf
rfcomm0 {
# # Automatically bind the device at startup
bind yes;
#
# # Bluetooth address of the device
device 11:22:33:44:55:66;
#
# # RFCOMM channel for the connection
channel 1;
#
# # Description of the connection
comment "server";
}
[b]/etc/init.d/bluetooth restart[/b]
bluetooth | * Starting Bluetooth ...
bluetooth | * Starting hcid ... [ ok ]
bluetooth | * Starting rfcomm ... [ ok ]
(Where is sdpd ???)
...
[b]rfcomm connect 0[/b]
Can't connect RFCOMM socket: Host is down
|
|
|
Back to top |
|
|
honp Guru
Joined: 25 Sep 2006 Posts: 355 Location: Good old Prague, Czech rep.
|
Posted: Mon Jan 04, 2010 4:11 pm Post subject: |
|
|
device 11:22:33:44:55:66; is correct? |
|
Back to top |
|
|
ILoveUNIX n00b
Joined: 10 Dec 2009 Posts: 7
|
Posted: Mon Jan 04, 2010 8:25 pm Post subject: re |
|
|
honp wrote: | device 11:22:33:44:55:66; is correct? |
No. I changed "device 11:22:33:44:55:66;" to remote address "device 00:60:57:C2:8A:05;". Newly don't work.
Code: |
1)
sdpd not started
2)
rfcomm connect 0
Can't connect RFCOMM socket: Connection reset by peer
|
|
|
Back to top |
|
|
honp Guru
Joined: 25 Sep 2006 Posts: 355 Location: Good old Prague, Czech rep.
|
Posted: Tue Jan 05, 2010 7:53 am Post subject: |
|
|
And have you paired devices? |
|
Back to top |
|
|
|