DBus-Problem

Sandeep Gopisetty sandeep.gopisetty at igate.com
Thu Apr 11 01:55:04 PDT 2013


Hi kumar,

Thanks for your instant help,actually i tried that yesterday it doesnt work.
Today also i tried that following is the output.

root@(none):/data/bluetooth/new/bluez_utils/bin<mailto:root@(none):/data/bluetooth/new/bluez_utils/bin># bluetoothd
root@(none):/data/bluetooth/new/bluez_utils/bin<mailto:root@(none):/data/bluetooth/new/bluez_utils/bin># ps -ae | grep bluetoothd
 1439 ?        00:00:00 bluetoothd
root@(none):/data/bluetooth/new/bluez_utils/bin<mailto:root@(none):/data/bluetooth/new/bluez_utils/bin># hcid -n
hcid[1442]: Bluetooth HCI daemon
hcid[1442]: Could not become the primary owner of org.bluez.
hcid[1442]: Unable to get on D-Bus

I dont understand why it is not running.
I am able to transfer the file from my ARM board to nokia mobile sucessfully using OPUSH profile.It doesnt require pairing.Directly i can send file using particular MAC address.

root@(none):/data/bluetooth/ob/bin# obex_test -b A0:4E:04:06:4B:C1 9
Using Bluetooth RFCOMM transport
OBEX Interactive test client/server.
> c
Connect OK!
Version: 0x10. Flags: 0x00
> p
PUT file (local, remote)> /test te
name=/test, size=6
Going to send 6 bytes
PUT successful!
Ø      q

Here file was transferred without pairing,but our team wants to send the file only after pairing.
My requirement is to generate the password for bluettoth through passkey-agent or through /etc/hcid/hcid.conf.Because my ARM board doesnt have GUI to get the workdone.
So i have to use commandline utilities.
For doing this file i did'ntstarted hcid,dbus-daemon also,then i came to know to start hcid,first we need to start dbus-daemon,so i started dbus-daemon,initially i faced some problems in starting dbus-daemon,but somome suggestions,i am able to solve that,now i am stuck here.

Both passkey-agent and hcid internally uses dbus.
I think there is a common prob;em for both the issue.But i am unable to find the issue.
Please help me regarding these


Thanks & Regards
Sandeep Gopisetty

________________________________
From: aji.kumar at accenture.com [mailto:aji.kumar at accenture.com]
Sent: Thursday, April 11, 2013 1:58 PM
To: Sandeep Gopisetty; dbus at freedesktop.org
Subject: RE: DBus-Problem

Hi Sandeep,
This error says "bluetoothd" is not running.
Please check "ps -ae | grep bluetoothd"
If not running start bluetoothd and then try.
Regards
Aji.
From: dbus-bounces+aji.kumar=accenture.com at lists.freedesktop.org [mailto:dbus-bounces+aji.kumar=accenture.com at lists.freedesktop.org] On Behalf Of Sandeep Gopisetty
Sent: Thursday, April 11, 2013 1:42 PM
To: dbus at freedesktop.org
Subject: RE: DBus-Problem
Hi
Unable to get on D-Bus message is coming when i run hcid -n because function call input_dbus_init() is failing.
In input_dbus_init function:connection = init_dbus("org.bluez.input", NULL, NULL);
In init_dbus("org.bluez.input", NULL, NULL); Control is going to the following code and it is generating the message :
The name org.bluez was not provided by any .service files
if (dbus_bus_request_name(conn, name, 0, &err) !=
   DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER ) {
   error("Could not become the primary owner of %s.", name);
   return NULL;
  }
For Passkey-agent, I verified the source code Passkey-agent.c,from which the error message is getting.
root@(none):~# passkey-agent default 1000
Can't register passkey agent --------------------------------------------------->this is getting because(Please see below ----)
The name org.bluez was not provided by any .service files
dbus_connection_send_with_reply_and_block(conn, msg, -1, &err);-------->This API is failing due to which the wrrir message is generated.
Code is actually checking the return value of the above API,and if it is -1 it is generating the error message.
Please tell what to do also hcid -n is failing.
Please help me.
Thanks & Regards
Sandeep
________________________________
From: Sandeep Gopisetty [mailto:sandeep.gopisetty at igate.com]
Sent: Thursday, April 11, 2013 10:58 AM
To: Krzysztof Konopko
Cc: dbus at freedesktop.org
Subject: RE: DBus-Problem
Hi Krzysztof Konopko,
For Passkey-agent, I verified the source code Passkey-agent.c,from which the error message is getting.
root@(none):~# passkey-agent default 1000
Can't register passkey agent --------------------------------------------------->this is getting because(Please see below ----)
The name org.bluez was not provided by any .service files
dbus_connection_send_with_reply_and_block(conn, msg, -1, &err);-------->This API is failing due to which the wrrir message is generated.
Code is actually checking the return value of the above API,and if it is -1 it is generating the error message.
Please tell what to do also hcid -n is failing.
Please help me.
Thanks & Regards
Sandeep
________________________________
From: Krzysztof Konopko [mailto:krzysztof.konopko at gmail.com]
Sent: Wednesday, April 10, 2013 5:37 PM
To: dbus at freedesktop.org
Cc: Sandeep Gopisetty
Subject: Re: DBus-Problem
Apologize for not sending to the mailing list in the first place.
It looks like you've got all your service and policy files missing or wrong.  Check where you system.conf file points to find service and additional policy (configuration) files.
HTH,
Kris
2013/4/10 Sandeep Gopisetty <sandeep.gopisetty at igate.com<mailto:sandeep.gopisetty at igate.com>>
Hi Krzysztof Konopko
Thanks for your immediate reply
Previous issue was solved,ehen I manually added message group in /etc/group and user in /etc/shadow.
Now I am able to run dbus-daemon -system.
Now I am stuck with the following
Even the D-BUS is running hcid -n is giving the same error
hcid[1710]: Bluetooth HCI daemon
hcid[1710]: Could not become the primary owner of org.bluez.
hcid[1710]: Unable to get on D-Bus
Then I ran passkey-agent (an utility to generate the password commandline),it is also giving the error related to d-bus
root@(none):~# passkey-agent default 1000
Can't register passkey agent
The name org.bluez was not provided by any .service files
Please help me and provide me some solution.I am in very much need to do this.
Thanks & Regards
Sandeep Gopisetty
________________________________
From: Krzysztof Konopko [mailto:krzysztof.konopko at gmail.com<mailto:krzysztof.konopko at gmail.com>]
Sent: Wednesday, April 10, 2013 1:15 PM
To: Sandeep Gopisetty
Subject: Re: DBus-Problem
Hi Sandeep,
On your system, could you check the following:
id messagebus
And if there's no `id' utility on your system:
grep messagebus /etc/{passwd,group}
Kris
2013/4/10 sandeep <sandeep.gopisetty at igate.com<mailto:sandeep.gopisetty at igate.com>>
Hi,
My name is sandeep,currently i am working in adding bluetooth support in
ARM board.I inserted the drivers:rfcomm,btusb,bnep,bluetooth.
I cross compiled bluez-utils and all the other required utilitie.
when i am starting hcid it is giving unable to get on DBus
root@(none):/data/bluetooth/dbus/bin# hcid -n
hcid[605]: Bluetooth HCI daemon
hcid[605]: Unable to get on D-Bus

So i came to know that i have to launch dbus.I am using dbus-1.6.8 version
Following are the outputs of varioys commands
dbus-launch
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-
rNfAdnokq0,guid=db0383402b883abe589c9e26000005f7
DBUS_SESSION_BUS_PID=611
root@(none):/data/bluetooth/dbus/bin# dbus-uuidgen
9a4bd04bd3d7991a146d51f3000005fd

dbus-daemon --config-file=/data/bluetooth/dbus/etc/dbus-1/system.conf

Failed to start message bus: Could not get UID and GID for
username "messagebus"


Then i created UID and GID for messagebus
 groupadd -g 101 messagebus
 useradd -u 101 messagebus

Even then also i am getting the same error
dbus-daemon --config-file=/data/bluetooth/dbus/etc/dbus-1/system.conf

Failed to start message bus: Could not get UID and GID for
username "messagebus"


Please help me what to do,i need help.Now i am in full trouble.

Please Please help me and give me suggestions as early as possible.

Thanks in advance

_______________________________________________
dbus mailing list
dbus at lists.freedesktop.org<mailto:dbus at lists.freedesktop.org>
http://lists.freedesktop.org/mailman/listinfo/dbus

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Disclaimer~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Information contained and transmitted by this e-mail is confidential and proprietary to iGATE and its affiliates and is intended for use only by the recipient. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or use of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator or mailadmin at igate.com<mailto:mailadmin at igate.com>. iGATE does not enter into any agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of iGATE. iGATE is not responsible for the consequences of any actions taken on the basis of information provided, through this email. The contents of an attachment to this e-mail may contain software viruses, which could damage your own computer system. While iGATE has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checks before opening an attachment. To know more about iGATE please visit www.igate.com<http://www.igate.com>.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Disclaimer~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Information contained and transmitted by this e-mail is confidential and proprietary to iGATE and its affiliates and is intended for use only by the recipient. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or use of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator or mailadmin at igate.com<mailto:mailadmin at igate.com>. iGATE does not enter into any agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of iGATE. iGATE is not responsible for the consequences of any actions taken on the basis of information provided, through this email. The contents of an attachment to this e-mail may contain software viruses, which could damage your own computer system. While iGATE has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checks before opening an attachment. To know more about iGATE please visit www.igate.com<http://www.igate.com>.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Disclaimer~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Information contained and transmitted by this e-mail is confidential and proprietary to iGATE and its affiliates and is intended for use only by the recipient. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or use of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator or mailadmin at igate.com<mailto:mailadmin at igate.com>. iGATE does not enter into any agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of iGATE. iGATE is not responsible for the consequences of any actions taken on the basis of information provided, through this email. The contents of an attachment to this e-mail may contain software viruses, which could damage your own computer system. While iGATE has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checks before opening an attachment. To know more about iGATE please visit www.igate.com<http://www.igate.com>.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

________________________________
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited.

Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.

______________________________________________________________________________________

www.accenture.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Disclaimer~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Information contained and transmitted by this e-mail is confidential and proprietary to iGATE and its affiliates and is intended for use only by the recipient. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or use of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator or mailadmin at igate.com <mailto:mailadmin at igate.com>. iGATE does not enter into any agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of iGATE. iGATE is not responsible for the consequences of any actions taken on the basis of information provided, through this email. The contents of an attachment to this e-mail may contain software viruses, which could damage your own computer system. While iGATE has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checks before opening an attachment. To know more about iGATE please visit www.igate.com <http://www.igate.com>.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20130411/f83a4c59/attachment-0001.html>


More information about the dbus mailing list