2008-02-02 07:16:43

by pramod gurav

[permalink] [raw]
Subject: [Bluez-users] SDP server failing to connect

hi all
i am trying to connect to my BT headset to system which has a USB dongle on it.
But when i do
[root@localhost Pramod]# rfcomm connect 0 00:0F:DE:B1:02:42 1
Can't connect RFCOMM socket: Permission denied
Also when i try to browse services on headset
[root@localhost Pramod]# sdptool browse 00:0F:DE:B1:02:42
Failed to connect to SDP server on 00:0F:DE:B1:02:42: Permission denied

Whats the reason???
my hcid.conf file looks like this

# HCI daemon configuration file.
# HCId options
options {
autoinit yes;
security user;
pairing multi;

# Default PIN code for incoming connections
# passkey "147";
# pin_helper /etc/bluetooth/pin;
pin_helper /bin/bluepin;
# pin_helper /etc/bluetooth/feed-pin.sh;
}

# Default settings for HCI devices
device {
name "MistralBD";
class 0x000100;

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

iscan enable; pscan enable;
lm accept;

# Default link policy
lp rswitch,hold,sniff,park;
}
my /bin/bluepin(permission 755) has
#!/bin/sh
echo "PIN:G1UvjyBAx2WZ2ebc"
my rfcomm.conf has everything commented.....
I am not able to pair my headset with system.
the logs in /var/log/messages show that PIN request is being made
Feb 2 12:32:07 localhost hcid[3879]: pin_code_request (sba=00:00:00:00:00:00, dba=00:0F:DE:B1:02:42)
Feb 2 12:37:47 localhost hcid[3879]: pin_code_request (sba=00:00:00:00:00:00, dba=00:0F:DE:B1:02:42)

help please...
thanks in advance....

Pramod








Forgot the famous last words? Access your message archive online at http://in.messenger.yahoo.com/webmessengerpromo.php


Attachments:
(No filename) (228.00 B)
(No filename) (164.00 B)
Download all attachments

2008-02-02 10:55:14

by Guillaume Bedot

[permalink] [raw]
Subject: Re: [Bluez-devel] SDP server failing to connect

Hello,

On sam, 2008-02-02 at 12:46 +0530, pramod gurav wrote:
> my /bin/bluepin(permission 755) has
> #!/bin/sh
> echo "PIN:G1UvjyBAx2WZ2ebc"

As a headset (usually?) can't let you enter a pin code, there is a
default like "0000" or "1234".
Did you try these ?
The pin code is usually written in the documentation if you haven't got
it second-hand.

Regards,

Guillaume B.




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel