Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-27-2009, 02:43 AM
|
#1
|
LQ Newbie
Registered: Jan 2008
Posts: 14
Rep:
|
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
|
|
|
05-16-2010, 07:11 AM
|
#2
|
LQ Newbie
Registered: May 2010
Posts: 2
Rep:
|
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?
|
|
|
05-18-2010, 12:33 AM
|
#3
|
LQ Newbie
Registered: May 2010
Posts: 2
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 01:06 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|