Return-Path: From: Sumeet VERMA To: "'BlueZ users'" Date: Mon, 17 Dec 2007 14:40:02 +0530 Message-ID: <02ac01c8408c$9c33d1e0$832fc70a@dlh.st.com> MIME-Version: 1.0 In-Reply-To: <2e9fc96f0701252145x71b8810tfa22948c5a9e63d8@mail.gmail.com> Subject: Re: [Bluez-users] pin code Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1342106748==" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net This is a multi-part message in MIME format. --===============1342106748== Content-Type: multipart/alternative; boundary="----=_NextPart_000_02AD_01C840BA.B5EC0DE0" This is a multi-part message in MIME format. ------=_NextPart_000_02AD_01C840BA.B5EC0DE0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Prabhu I have a question. I have cross compiled dbus-0.93 and flashed the image = in my hardware platform. Now when i run dbus-daemon --system it gives me = an error Failed to open connection to system message bus: Failed to connect to = socket /usr/local/var/run/dbus/system_bus_socket: No such file or = directory I am a bit confused here because you write that system_bus_socket is = created when dbus-daemon is started. However in my case it is expecting = the socket file to be present when I start dbus-daemon. Can you please clarify how do i solve this problem? =20 Regards, Sumeet=20 =20 _____ =20 From: bluez-users-bounces@lists.sourceforge.net = [mailto:bluez-users-bounces@lists.sourceforge.net] On Behalf Of Prabhu = nath Sent: Friday, January 26, 2007 11:15 AM To: BlueZ users Subject: Re: [Bluez-users] pin code You have to cross-compile dbus-1.0, and start dbus-daemon before = executing hcid.=20 dbus-daemon --system =20 While cross-compiling dbus-1.0 and bluez-utils, pass the following = parameters for the configure script. --localstatedir=3D/var --sysconfdir=3D/etc =20 Once you do this, by default hcid will look for hcid.conf in = /etc/bluetooth directory.=20 =20 =20 Warning. Take a backup of /etc/dbus-1 and /etc/bluetooth, because this = will overwrite the previous config, which was already present in ur = system. =20 Run make install for dbus, and u need not run make install for = bluez-utils. U can directly copy the hcid.conf and blue-hcid.conf to = /etc/bluetooth and /etc/dbus-1/system.d directory respectively. =20 Now, when u start dbus-daemon --system, it will create a = system_bus_socket in /var/run/dbus and it will create a message.pid in = /var/run/.=20 =20 next, when u start hcid, u should not get problem. =20 -Prabhu =20 =20 On 1/23/07, KS H wrote:=20 Dear I cross compile the bluez3.8 and try to setup the bluetooth in arm. I = connect the arm with CSR BC03 with BCSP configuration. I am able to make = the Bluez discoverable and try to pair bluez. however i found that there = is no pin respond from Bluez. So i try to configure bluez using hcid.=20 > hcid -n -f /etc/bluetooth/hcid.conf it return hcid[481]: Can't connect to system message bus: Failed to connect to = socket /usr/local/var/run/dbus/system_bus_socket: No such file or = directory=20 hcid[481]: Unable to get on D-Bus My question 1. where can I found the missing file and what is that used for? 2. Is there any method to repsond the pin request other than using hcid Regards SH _______________________________________ YM - =E9=9B=A2=E7=B7=9A=E8=A8=8A=E6=81=AF =E5=B0=B1=E7=AE=97=E4=BD=A0=E6=B2=92=E6=9C=89=E4=B8=8A=E7=B6=B2=EF=BC=8C=E4= =BD=A0=E7=9A=84=E6=9C=8B=E5=8F=8B=E4=BB=8D=E5=8F=AF=E4=BB=A5=E7=95=99=E4=B8= =8B=E8=A8=8A=E6=81=AF=E7=B5=A6=E4=BD=A0=EF=BC=8C=E7=95=B6=E4=BD=A0=E4=B8=8A= =E7=B6=B2=E6=99=82=E5=B0=B1=E8=83=BD=E7=AB=8B=E5=8D=B3=E7=9C=8B=E5=88=B0=EF= =BC=8C=E4=BB=BB=E4=BD=95=E8=AA=AA=E8=A9=B1=E9=83=BD=E5=86=87=E8=B5=B0=E5=A4= =B1=E3=80=82 http://messenger.yahoo.com.hk =20 -------------------------------------------------------------------------= Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share = your=20 opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=3Djoin.php = &p=3Dsourceforge&CID=3DDEVDEV _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users = =20 ------=_NextPart_000_02AD_01C840BA.B5EC0DE0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable =EF=BB=BF
Hi=20 Prabhu
I have a=20 question. I have cross compiled dbus-0.93 and flashed the image in my = hardware=20 platform. Now when i run dbus-daemon --system it gives me an=20 error
Failed=20 to open connection to system message bus: Failed to connect to socket=20 /usr/local/var/run/dbus/system_bus_socket: No such file or=20 directory
I am a=20 bit confused here because you write that system_bus_socket is created = when=20 dbus-daemon is started. However in my case it is expecting the socket = file to be=20 present when I start dbus-daemon.

Can you please clarify how do i = solve this=20 problem?
 

Regards,
Sumeet

 


From: = bluez-users-bounces@lists.sourceforge.net=20 [mailto:bluez-users-bounces@lists.sourceforge.net] On Behalf Of = Prabhu=20 nath
Sent: Friday, January 26, 2007 11:15 AM
To: = BlueZ=20 users
Subject: Re: [Bluez-users] pin code

You have to cross-compile dbus-1.0, and start dbus-daemon before = executing=20 hcid.
dbus-daemon --system
 
While cross-compiling dbus-1.0 and bluez-utils, pass the following=20 parameters for the configure script.
--localstatedir=3D/var --sysconfdir=3D/etc
 
Once you do this, by default hcid will look for hcid.conf in = /etc/bluetooth=20 directory.
 
 
Warning. Take a backup of /etc/dbus-1 and = /etc/bluetooth,=20 because this will overwrite the previous config, which was already = present=20 in ur system.
 
Run make install for dbus, and u need not run make install for = bluez-utils.=20 U can directly copy the hcid.conf and blue-hcid.conf to /etc/bluetooth = and=20 /etc/dbus-1/system.d directory respectively.
 
Now, when u start dbus-daemon --system, it will create a = system_bus_socket=20 in /var/run/dbus and it will create a message.pid in /var/run/.
 
next, when u start hcid, u should not get problem.
 
-Prabhu
 


 
On 1/23/07, KS H=20 <kspam1234@yahoo.com.hk>=20 wrote:=20
Dear

I=20 cross compile the bluez3.8 and try to setup the bluetooth in arm. I = connect=20 the arm with CSR BC03 with BCSP configuration. I am able to make the = Bluez=20 discoverable and try to pair bluez. however i found that there is no = pin=20 respond from Bluez. So i try to configure bluez using hcid. =

> hcid=20 -n -f /etc/bluetooth/hcid.conf

it return

hcid[481]: = Can't=20 connect to system message bus: Failed to connect to socket=20 /usr/local/var/run/dbus/system_bus_socket:  No such file or = directory=20
hcid[481]: Unable to get on D-Bus

My question
1. where = can I=20 found the missing file and what is that used for?
2. Is there any = method to=20 repsond the pin request other than using = hcid

Regards
SH

_______________________________________
YM -=20 = =E9=9B=A2=E7=B7=9A=E8=A8=8A=E6=81=AF
=E5=B0=B1=E7=AE=97=E4=BD=A0=E6=B2= =92=E6=9C=89=E4=B8=8A=E7=B6=B2=EF=BC=8C=E4=BD=A0=E7=9A=84=E6=9C=8B=E5=8F=8B= =E4=BB=8D=E5=8F=AF=E4=BB=A5=E7=95=99=E4=B8=8B=E8=A8=8A=E6=81=AF=E7=B5=A6=E4= =BD=A0=EF=BC=8C=E7=95=B6=E4=BD=A0=E4=B8=8A=E7=B6=B2=E6=99=82=E5=B0=B1=E8=83= =BD=E7=AB=8B=E5=8D=B3=E7=9C=8B=E5=88=B0=EF=BC=8C=E4=BB=BB=E4=BD=95=E8=AA=AA= =E8=A9=B1=E9=83=BD=E5=86=87=E8=B5=B0=E5=A4=B1=E3=80=82
http://messenger.yahoo.com.hk=20 =


------------------------------------------------------= -------------------
Take=20 Surveys. Earn Cash. Influence the Future of IT
Join = SourceForge.net's=20 Techsay panel and you'll get the chance to share your
opinions on = IT &=20 business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3D= sourceforge&CID=3DDEVDEV

_________________________________= ______________
Bluez-users=20 mailing list
Bluez-users@lists.sourc= eforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users =



------=_NextPart_000_02AD_01C840BA.B5EC0DE0-- --===============1342106748== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace --===============1342106748== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users --===============1342106748==--