LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 01-27-2009, 02:43 AM   #1
ebinjose
LQ Newbie
 
Registered: Jan 2008
Posts: 14

Rep: Reputation: 0
bluez passkey-agent, fails


Hi,
{Just to give a background:
We are trying to build/run bluetooth stack on an imx.31 (arm based) platform which runs linux.
bluetooth chip is connected to imx.31 platform via a serial port.
I am trying to connect imx.31 to a sony-ericsson mobile handset.}


4) "passkey-agent" at times gives the following error
--------------------------------------------------------------------------------------
/usr/local/bin/passkey-agent --default "1234"
Can't register passkey agent
The name org.bluez was not provided by any .service files
process 1707: Applications must not close shared connections - see dbus_connection_close() docs. This is a bug in the application.
D-Bus not built with -rdynamic so unable to print a backtrace
Aborted
--------------------------------------------------------------------------------------

Any solutions ?
Thanks in advance.

Ebin
 
Old 05-16-2010, 07:11 AM   #2
purki
LQ Newbie
 
Registered: May 2010
Posts: 2

Rep: Reputation: 0
I have similar problem using passkey-agent. Use bluez-utils 3.36. Here is my printout.
Quote:
~ # hcid -n -d &
~ # hcid[375]: Bluetooth HCI daemon
hcid[375]: Enabling debug information
hcid[375]: syntax error line 40
hcid[375]: Starting SDP server
hcid[375]: Adding rec : 0x2ad3a838
hcid[375]: with handle : 0x1
hcid[375]: Adding rec : 0x2ad3a998
hcid[375]: with handle : 0x0
hcid[375]: Service classes 0x00
hcid[375]: Loading plugins /usr/lib/bluetooth/plugins
hcid[375]: /usr/lib/bluetooth/plugins/network.so
hcid[375]: Parsing /etc/bluetooth/network.conf failed: No such file or directory
hcid[375]: Config options: InterfacePrefix=bnep%d, PANU_Script=(null), GN_Script=(null), NAP_Script=(null), GN_Interface=pan0, NAP_Interface=pan1, Security=true
hcid[375]: bridge pan0 created
hcid[375]: Registered manager path:/org/bluez/network
hcid[375]: name network uuid 00001115-0000-1000-8000-00805f9b34fb
hcid[375]: name network uuid 00001116-0000-1000-8000-00805f9b34fb
hcid[375]: name network uuid 00001117-0000-1000-8000-00805f9b34fb
hcid[375]: Registering service object: network (/org/bluez/service_network)
hcid[375]: /usr/lib/bluetooth/plugins/audio.so
hcid[375]: Parsing /etc/bluetooth/audio.conf failed: No such file or directory
hcid[375]: Unix socket created: 14
hcid[375]: Couldn't find record for : 0x10000
hcid[375]: Adding record with handle 0x10000
hcid[375]: Adding rec : 0x2ad3cf90
hcid[375]: with handle : 0x10000
hcid[375]: Service classes 0x00
hcid[375]: Couldn't find record for : 0x10001
hcid[375]: Adding record with handle 0x10001
hcid[375]: Adding rec : 0x2ad3d548
hcid[375]: with handle : 0x10001
hcid[375]: Service classes 0x00
hcid[375]: SEP 0x2ad3d810 registered: type:0 codec:0 seid:1
hcid[375]: Couldn't find record for : 0x10002
hcid[375]: Adding record with handle 0x10002
hcid[375]: Adding rec : 0x2ad3db18
hcid[375]: with handle : 0x10002
hcid[375]: Service classes 0x08
hcid[375]: Couldn't find record for : 0x10003
hcid[375]: Adding record with handle 0x10003
hcid[375]: Adding rec : 0x2ad3d9e0
hcid[375]: with handle : 0x10003
hcid[375]: Service classes 0x08
hcid[375]: Couldn't find record for : 0x10004
hcid[375]: Adding record with handle 0x10004
hcid[375]: Adding rec : 0x2ad3dd68
hcid[375]: with handle : 0x10004
hcid[375]: Service classes 0x08
hcid[375]: Registered manager path:/org/bluez/audio
hcid[375]: name headset uuid 00001108-0000-1000-8000-00805F9B34FB
hcid[375]: name headset uuid 0000111E-0000-1000-8000-00805F9B34FB
hcid[375]: Registering service object: headset (/org/bluez/service_headset)
hcid[375]: name sink uuid 0000110B-0000-1000-8000-00805F9B34FB
hcid[375]: Registering service object: sink (/org/bluez/service_sink)
hcid[375]: name audio uuid 00001108-0000-1000-8000-00805F9B34FB
hcid[375]: name audio uuid 0000111E-0000-1000-8000-00805F9B34FB
hcid[375]: name audio uuid 00001112-0000-1000-8000-00805F9B34FB
hcid[375]: name audio uuid 0000111F-0000-1000-8000-00805F9B34FB
hcid[375]: name audio uuid 0000110D-0000-1000-8000-00805F9B34FB
hcid[375]: name audio uuid 0000110A-0000-1000-8000-00805F9B34FB
hcid[375]: name audio uuid 0000110B-0000-1000-8000-00805F9B34FB
hcid[375]: name audio uuid 0000110C-0000-1000-8000-00805F9B34FB
hcid[375]: name audio uuid 0000110E-0000-1000-8000-00805F9B34FB
hcid[375]: Registering service object: audio (/org/bluez/service_audio)
hcid[375]: /usr/lib/bluetooth/plugins/input.so
hcid[375]: Parsing /etc/bluetooth/input.conf failed: No such file or directory
hcid[375]: Registered input manager path:/org/bluez/input
hcid[375]: name input uuid 00001124-0000-1000-8000-00805f9b34fb
hcid[375]: Registering service object: input (/org/bluez/service_input)
hcid[375]: /usr/lib/bluetooth/plugins/serial.so
hcid[375]: Registered manager path:/org/bluez/serial
hcid[375]: name serial uuid 00001101-0000-1000-8000-00805F9B34FB
hcid[375]: name serial uuid 00001103-0000-1000-8000-00805F9B34FB
hcid[375]: Registering service object: serial (/org/bluez/service_serial)

~ # hciattach -n -s 115200 /dev/ttyS1 bcsp 115200 noflow &
~ # hcid[375]: HCI dev 0 registered
bcsp_recv: Out-of-order packet arrived, got 1 expected 0
hcid[375]: child 384 exited
hcid[375]: HCI dev 0 up
hcid[375]: Device hci0 has been added
hcid[375]: Starting security manager 0
hcid[375]: Device hci0 has been activated
hcid[375]: return_link_keys (sba=00:07:80:96:E4:CB, dba=00:15E:8B:83:BA)
hcid[375]: child 385 exited

~ # ./passkey-agent 00:15E:8B:83:BA 0000
Can't register passkey agent
Rejected send message, 1 matched rules; type="method_call", sender=":1.1" (uid=0 pid=387 comm="./passkey-agent) interface="org.bluez.Security" member="RegisterPasskeyAgent" error name="(unset)" requested_reply=0 destination="org.bluez" (uid=0 pid=375 comm="hcid))
~ #
~ # rfcomm bind /dev/rfcomm0 00:15E:8B:83:BA 1
~ # rfcomm connect /dev/rfcomm0 00:15E:8B:83:BA 1
bcsp_pkt_cull: Removed only 2 out of 1 pkts
bcsp_pkt_cull: Removed only 1 out of 0 pkts
hcid[375]: pin_code_request (sba=00:07:80:96:E4:CB, dba=00:15E:8B:83:BA)
hcid[375]: call_passkey_agent(): no agent available
Can't connect RFCOMM socket: Connection refused
~ # bcsp_pkt_cull: Removed only 2 out of 1 pkts
My cell phone ask me to input PIN to pair, but whatever I put, I can not get connected. Here is my /etc/bluetooth/hcid.conf
Quote:
#
# HCI daemon configuration file.
#
# 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 "%h-%d";
# Local device class
class 0x3e0100;
# 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, master;
discovto 0;
# 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;
}
I'm stuck in this, can smb give me some idea how to ger around this?
 
Old 05-18-2010, 12:33 AM   #3
purki
LQ Newbie
 
Registered: May 2010
Posts: 2

Rep: Reputation: 0
I recently update dbus package to latest 1.2.24, but no effect. Also trying with older version of bluez packages (3.10), but no effect. Please give me some tips.
 
  


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
kbluetoothd invalid arguments to passkey sfrdll Linux - Newbie 8 10-15-2007 10:47 AM
Error: Agent Configuration Agent (use Oracle with Linux) shipon_97 Linux - Enterprise 0 02-02-2007 12:11 AM
BitTorrent problem (Can Read The Passkey is my guess) Unknowndeepness Linux - Software 1 05-10-2006 03:48 PM
can't find ide.agent & block.agent for hotplug for 2.6 jg167 Linux - Newbie 1 06-23-2004 05:20 PM
Hotplug problems: RH 9, 2.6.6, PCMCIA-CS 3.2.7 (missing ide.agent & block.agent) jg167 Red Hat 1 06-23-2004 05:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 01:06 PM.

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