Skip to contentSkip to conversation

SDP server failing to connect

Bluez-users pramod gurav 2 participants 2 messages Feb 2, 2008 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

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

-------------------------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#1 lore raw

Hello,

Quoted 3 lines · pramod gurav

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