Linux bluetooth development
 help / color / mirror / Atom feed
* [Bluez-users]   Re: pin code
@ 2007-03-02 11:43 Kelvin Xu
  2007-03-04 17:36 ` [Bluez-users] " Marcel Holtmann
  0 siblings, 1 reply; 7+ messages in thread
From: Kelvin Xu @ 2007-03-02 11:43 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/plain, Size: 6053 bytes --]

Hi,

i am faced with the sam problems as KS H. I have also cross compiled dBus 
and Bluez Util for ARM using Scratchbox.
I followed the similar steps provided by Prabhu. However, I do not have the 
message.pid entry in /var/run but have an additional "pid" entry in 
/var/run/dbus.

And when i try to execute hcid i received the following error:
# hcid -n -f /etc/bluetooth/hcid.conf
hcid[790]: Bluetooth HCI daemon
hcid[790]: Can't open system message bus connection: Failed to connect to 
socket /var/run/dbus/system_bus_socket: Connection refused
hcid[790]: Unable to get on D-Bus

Please advice. Thank you

Regards,
Kelvin


>From: "Prabhu nath" <gprabhunath@gmail.com>
>Reply-To: BlueZ users <bluez-users@lists.sourceforge.net>
>To: "BlueZ users" <bluez-users@lists.sourceforge.net>
>Subject: [Bluez-users]Re: [Bluez-users] ¦^ÂСG Re: pin code
>Date: Sat, 27 Jan 2007 12:02:33 +0530
>
>On 1/26/07, KS H <kspam1234@yahoo.com.hk> wrote:
>>
>>Hi
>>
>>I follow the configure described. When I execut 'dbus-daemon --system'
>>it return
>>
>>Failed to start message bus: Could not get UID and GID for username
>>"messagebus"
>>What is that mean?
>
>
><prabhu> U have to create a username by name *messagebus* <prabhu>   #
>adduser -D -H messagebus
>
>and also there is no blue-hcid.conf in hcid folder
>>but I found a file call bluetooth.conf. is that the same file you said
>
>
><prabhu> Sorry it is bluez-hcid.confRegards
>
>SH
>*Prabhu nath <gprabhunath@gmail.com>* »¡¡G
>
>>  You have to cross-compile dbus-1.0, and start dbus-daemon before
>>executing hcid.
>>dbus-daemon --system
>>
>>While cross-compiling dbus-1.0 and bluez-utils, pass the following
>>parameters for the configure script.
>>--localstatedir=/var --sysconfdir=/etc
>>
>>Once you do this, by default hcid will look for hcid.conf in
>>/etc/bluetooth directory.
>>
>>
>>*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.
>>
>>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.
>>
>>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/.
>>
>>next, when u start hcid, u should not get problem.
>>
>>-Prabhu
>>
>>
>>
>>
>>On 1/23/07, KS H <kspam1234@yahoo.com.hk> wrote:
>> >
>> > 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.
>> >
>> > > 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
>> >
>> > 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 - Â÷½u°T®§
>> > 
>>´Nºâ§A¨S¦³¤Wºô¡A§AªºªB¤Í¤´¥i¥H¯d¤U°T®§µ¹§A¡A·í§A¤Wºô®É´N¯à¥ß§Y¬Ý¨ì¡A¥ô¦ó»¡¸Ü³£ÉN¨«¥¢¡C
>> > http://messenger.yahoo.com.hk
>> >
>> >
>> > 
>>-------------------------------------------------------------------------
>> > Take Surveys. Earn Cash. Influence the Future of IT
>> > Join SourceForge.net's Techsay panel and you'll get the chance to share
>> > your
>> > opinions on IT & business topics through brief surveys - and earn cash
>> >
>> > 
>>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> >
>> > _______________________________________________
>> > Bluez-users mailing list
>> > Bluez-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/bluez-users
>> >
>> >
>> >
>>-------------------------------------------------------------------------
>>Take Surveys. Earn Cash. Influence the Future of IT
>>Join SourceForge.net's Techsay panel and you'll get the chance to share
>>your
>>opinions on IT & business topics through brief surveys - and earn cash
>>
>>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
>>Bluez-users mailing list
>>Bluez-users@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/bluez-users
>>
>>
>>_______________________________________
>>YM - Â÷½u°T®§
>>´Nºâ§A¨S¦³¤Wºô¡A§AªºªB¤Í¤´¥i¥H¯d¤U°T®§µ¹§A¡A·í§A¤Wºô®É´N¯à¥ß§Y¬Ý¨ì¡A¥ô¦ó»¡¸Ü³£ÉN¨«¥¢¡C
>>http://messenger.yahoo.com.hk
>>
>>-------------------------------------------------------------------------
>>Take Surveys. Earn Cash. Influence the Future of IT
>>Join SourceForge.net's Techsay panel and you'll get the chance to share
>>your
>>opinions on IT & business topics through brief surveys - and earn cash
>>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>
>>_______________________________________________
>>Bluez-users mailing list
>>Bluez-users@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/bluez-users
>>
>>
>>


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


>_______________________________________________
>Bluez-users mailing list
>Bluez-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bluez-users

_________________________________________________________________
Find singles online in your area with MSN Dating and Match.com! 
http://cp.intl.match.com/eng/msn/msnsg/wbc/wbc.html



[-- Attachment #2: Type: text/plain, Size: 345 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [Bluez-users] pin code
@ 2007-01-23 13:46 KS H
  2007-01-26  5:45 ` Prabhu nath
  0 siblings, 1 reply; 7+ messages in thread
From: KS H @ 2007-01-23 13:46 UTC (permalink / raw)
  To: Bluez


[-- Attachment #1.1: Type: text/plain, Size: 860 bytes --]

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.

> 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
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 - 離線訊息
 就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。
 http://messenger.yahoo.com.hk

[-- Attachment #1.2: Type: text/html, Size: 934 bytes --]

[-- Attachment #2: Type: text/plain, Size: 347 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-12-17  9:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-02 11:43 [Bluez-users] Re: pin code Kelvin Xu
2007-03-04 17:36 ` [Bluez-users] " Marcel Holtmann
2007-03-04 17:28   ` Kelvin Xu
2007-03-09  9:27   ` Kelvin Xu
  -- strict thread matches above, loose matches on Subject: below --
2007-01-23 13:46 KS H
2007-01-26  5:45 ` Prabhu nath
2007-12-17  9:10   ` Sumeet VERMA

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox