LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-27-2009, 02:35 AM   #1
raghuram_c
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Rep: Reputation: 0
unable to pair bluetooth phone


hi community,

I am using Dreamlinux 3.5 desktop edition. I recently upgraded to bluez 4.42 and bluez-gnome 1.27-1. my device seems configured but i fail to pair my phone

raghu@DL:~$ sudo hciconfig -a
hci0: Type: USB
BD Address: 00:1D:D9:EF:BC:B2 ACL MTU: 1017:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:882 acl:0 sco:0 events:49 errors:0
TX bytes:461 acl:0 sco:0 commands:49 errors:0
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'DL-0'
Class: 0x5a210c
Service Classes: Networking, Capturing, Object Transfer, Telephony
Device Class: Computer, Laptop
HCI Ver: 2.0 (0x3) HCI Rev: 0x213b LMP Ver: 2.0 (0x3) LMP Subver: 0x41d3
Manufacturer: Broadcom Corporation (15)

raghu@DL:~$ hcitool scan
Scanning ...
00:1D:25:2C:DF:52 Kalyan
00:16:41:B9:D7:2A WEBLAYS02
00:1C:BD:7F:6C:AE Fly SX210

raghu@DL:~$ hcitool dev
Devices:
hci0 00:1D:D9:EF:BC:B2

however when i try to connect to my "fly sx210" mobile phone the pin is asked in the phone, when i enter the pin i get this

raghu@DL:~$ hidd --connect 00:1C:BD:7F:6C:AE
Can't get device information: Invalid exchange

raghu@DL:~$ sudo hcitool cc 00:1C:BD:7F:6C:AE
Can't create connection: Input/output error

then i check bluetoothd i get unable to get on DBus

raghu@DL:~$ sudo bluetoothd -nd
bluetoothd[8382]: Bluetooth daemon 4.42
bluetoothd[8382]: Enabling debug information
bluetoothd[8382]: parsing main.conf
bluetoothd[8382]: discovto=0
bluetoothd[8382]: pairto=0
bluetoothd[8382]: pageto=8192
bluetoothd[8382]: name=%h-%d
bluetoothd[8382]: class=0x5a210c
bluetoothd[8382]: discov_interval=0
bluetoothd[8382]: Key file does not have key 'DeviceID'
bluetoothd[8382]: Unable to get on D-Bus

then i did modprobe btusb reset =1 still i get the same result

my /etc/Dbus-1/system.conf is like this

<policy context="default">
<!-- All users can connect to system bus -->
<allow user="*"/>

<!-- Holes must be punched in service configuration files for
name ownership and sending method calls -->
<deny own="*"/>
<deny send_type="method_call"/>

<!-- Signals and reply messages (method returns, errors) are allowed
by default -->
<allow send_type="signal"/>
<!-- commented out part
<allow send_requested_reply="true" send_type="method_return"/>
<allow send_requested_reply="true" send_type="error"/>
-->
<!-- Newly added line to fix permission problems -->
<allow send_requested_reply="true" />
<!-- All messages may be received by default -->
<allow receive_type="method_call"/>
<allow receive_type="method_return"/>
<allow receive_type="error"/>
<allow receive_type="signal"/>

<!-- Allow anyone to talk to the message bus -->
<allow send_destination="org.freedesktop.DBus"/>
<!-- But disallow some specific bus services -->
<deny send_destination="org.freedesktop.DBus"
send_interface="org.freedesktop.DBus"
send_member="UpdateActivationEnvironment"/>
</policy>

my hcid.conf is as follows

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 "1234";

}

# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "%h-%d";

# Local device class
class 0x5a210c;

# 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;
}

no matter what i try my bluetoothd cant get on DBus and also my bluetooth applet does not appear as it says

raghu@DL:~$ bluetooth-applet
Bluetooth OBEX server failed: Could not create server socket
Bluetooth FTP server failed: Could not create server socket

please suggest a solution as everthing used to work perfectly before the upgrade, it has been a very frustrating week.

my email is raghuramconu@gmail.com

thanks in advance

Raghuram
 
Old 09-29-2009, 02:58 AM   #2
raghuram_c
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Solved

hi community,
solved the issue by downgrading to bluez-utils 3.xx latest. everything works now
thanx
 
Old 01-24-2010, 09:05 AM   #3
abourke
Member
 
Registered: Dec 2006
Distribution: Fedora
Posts: 118

Rep: Reputation: 18
bluetooth pairing problem

Hey,

I have the same problem you had. I installed bluez-utils-3.36-9.1.i586 but it didnt work for me. Is there some command you have to type to get the bluetooth to work?

Regards
ABourke.
 
Old 01-25-2010, 07:19 AM   #4
raghuram_c
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
hai, please check if all other aspects like dbus permissions, hcid configuration, and be sure to start the bluetoothd daemon or hcid. hope this helped. see my post to check all the steps and add this line to your dbus - system.conf
<!-- Newly added line to fix permission problems -->
<allow send_requested_reply="true" />
regards
raghu
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting blue tooth phone to pair with my laptop. lifeforce4 Slackware 3 05-24-2009 01:57 PM
unable to connect my phone to my laptop using bluetooth biralma Linux - Newbie 3 01-01-2009 09:28 AM
unable to connect bluetooth dongle to phone crash_override_me Linux - General 2 06-16-2008 12:51 AM
How to pair bluetooth devices? JET-33 Linux - Software 1 08-24-2007 12:24 PM
kbluepin not showing up when trying to pair phone to pc johngreenwood Linux - General 3 02-17-2007 06:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration