Return-Path: Message-ID: Date: Wed, 9 May 2007 20:58:09 -0700 From: "Mark S. Townsley" To: "BlueZ users" In-Reply-To: <7D2A6046-AC66-4992-9875-28101C52FA20@gmail.com> MIME-Version: 1.0 References: <4641DA61.8040709@tao-group.com> <1178722356.8628.96.camel@aeonflux.holtmann.net> <4641E662.6080303@tao-group.com> <1178724426.8628.102.camel@aeonflux.holtmann.net> <4641EA96.7070204@tao-group.com> <1178726532.8628.107.camel@aeonflux.holtmann.net> <7D2A6046-AC66-4992-9875-28101C52FA20@gmail.com> Subject: Re: [Bluez-users] API documentation? Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1793878217==" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net --===============1793878217== Content-Type: multipart/alternative; boundary="----=_Part_77576_33339845.1178769489488" ------=_Part_77576_33339845.1178769489488 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Johan: Thanks for your reply. I am using the system bus on my client. And I have both DBus and hcid running. I am using all the low-level HCI calls and they are working fine. That is until I want to check linkkeys and remove some myself. The HCI method does not remove for me. And Marcel suggest using DBUS API HasBonding(). So my DBUS is running all along. My hcid is running all along. And inside my code, I am asking for system bus also. I will try to attach my code later but I am doing/checking all that you have mentioned. Thanks Mark On 5/9/07, Johan Hedberg wrote: > > Hi Mark, > > On May 9, 2007, at 19:27, Mark S. Townsley wrote: > > I am trying to follow your advice and use the D-BUS API instead of > > the low-level HCI API. > > However, no matter which D-BUS method I issued, I got back this error: > > > > The name org.bluez was not provided by any .service files > > > > I tried to search online but could not find any answer. I searched > > the archive, nothing comes up. Can you provide your expertise on > > this one? What are these .service files? How can I make one for > > org.bluez? > > I'm kind of surprised you haven't figured this out already. All you > need is a running hcid process, and you need to use the system bus > (it's not clear from your description whether you used the session or > the system bus). hcid provides the D-Bus well known name org.bluez on > the system bus. Because your D-Bus client doesn't find org.bluez > (i.e. hcid is not running) it tries to see if it is activatable but > does not find any .service file which would describe how to activate > it (because hcid is not meant to be activated by D-Bus, but should > e.g. be run from an init script). > > Johan > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Bluez-users mailing list > Bluez-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-users > ------=_Part_77576_33339845.1178769489488 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Johan:

Thanks for your reply.  I am using the system bus on my client.
And I have both DBus and hcid running.    I am using all the low-level HCI calls and they are working fine.  That is until I want to check linkkeys and remove some myself.  The HCI method does not remove for me.  And Marcel suggest using DBUS API HasBonding().
So my DBUS is running all along.  My hcid is running all along.  And inside my code, I am asking for system bus also.

I will try to attach my code later but I am doing/checking all that you have mentioned.
Thanks

Mark


On 5/9/07, Johan Hedberg <johan.hedberg@gmail.com> wrote:
Hi Mark,

On May 9, 2007, at 19:27, Mark S. Townsley wrote:
> I am trying to follow your advice and use the D-BUS API instead of
> the low-level HCI API.
> However, no matter which D-BUS method I issued, I got back this error:
>
>    The name org.bluez was not provided by any .service files
>
> I tried to search online but could not find any answer.  I searched
> the archive, nothing comes up.   Can you provide your expertise on
> this one?  What are these .service files?  How can I make one for
> org.bluez?

I'm kind of surprised you haven't figured this out already. All you
need is a running hcid process, and you need to use the system bus
(it's not clear from your description whether you used the session or
the system bus). hcid provides the D-Bus well known name org.bluez on
the system bus. Because your D-Bus client doesn't find org.bluez
(i.e. hcid is not running) it tries to see if it is activatable but
does not find any .service file which would describe how to activate
it (because hcid is not meant to be activated by D-Bus, but should
e.g. be run from an init script).

Johan


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

------=_Part_77576_33339845.1178769489488-- --===============1793878217== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --===============1793878217== 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 --===============1793878217==--