Return-Path: Message-ID: <3e9cdced0806120412ic2904bai44cd6eee00179c2f@mail.gmail.com> Date: Thu, 12 Jun 2008 13:12:09 +0200 From: "Fritz Code" To: "BlueZ users" In-Reply-To: <3e9cdced0806120337p5043c4celf7092d086f937691@mail.gmail.com> MIME-Version: 1.0 References: <3e9cdced0806120309i7d7dd9e7ta299c4bd5c325437@mail.gmail.com> <1213266546.17870.44.camel@violet.holtmann.net> <3e9cdced0806120337p5043c4celf7092d086f937691@mail.gmail.com> Subject: Re: [Bluez-users] implement hcitool cc call with dbus interface Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1636264647==" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net --===============1636264647== Content-Type: multipart/alternative; boundary="----=_Part_16216_31045185.1213269129554" ------=_Part_16216_31045185.1213269129554 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Ok taking a look at hcitool.c I understand. I will simply take the functions hci_open_dev and hci_create_connection (provided by bluez-lib) in order to implement the hcitool cc call in my application. So the kernel handles the low-level stuff like socket-calls etc .... But anyway is there a way to do that through the comfortable dbus interface? I guess not. On Thu, Jun 12, 2008 at 12:37 PM, Fritz Code wrote: > hm but I have to setup a connection manually just like hcitool does > (hcitool cc --role=s) in my programm. > Is there now way to do that through the comfortable dbus interface? > So just the same as hcitool cc --role=s (this establishes a ACL > connection, right? ) but more comfortable to implement error-handling etc. > > >you don't have to do that at all. Never ever establish ACL links by > >yourself. Let the kernel do it for you. > > In which ways does the kernel that for me, or how can I initiate it? > I thought this can be done with socket-calls etc. as it done by a lot of > tools like hcitool etc. > > Thanks, > Fritz > > > > > On Thu, Jun 12, 2008 at 12:29 PM, Marcel Holtmann > wrote: > >> Hi Fritz, >> >> > hcitool cc --role=s >> > establishes a low level ACL connection. >> > >> > I have to do that in a self-written tool with error-handling etc. >> > How can this be done through the dbus-interface, I've actually found >> > no method in the interfaces listed here http://wiki.bluez.org/wiki >> > > >>you don't have to do that at all. Never ever establish ACL links by > >>yourself. Let the kernel do it for you. > >> >> >> Regards >> >> Marcel >> >> >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> Bluez-users mailing list >> Bluez-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/bluez-users >> > > > > -- > Regards, > --Codefritz > > > > -- Regards, --Codefritz ------=_Part_16216_31045185.1213269129554 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Ok taking a look at hcitool.c I understand.
I will simply take the functions hci_open_dev and hci_create_connection (provided by bluez-lib) in order to implement the
hcitool cc call in my application. So the kernel handles the low-level stuff like socket-calls etc ....

But anyway is there a way to do that through  the comfortable dbus interface? I guess not.

On Thu, Jun 12, 2008 at 12:37 PM, Fritz Code <codefritz@googlemail.com> wrote:
hm but I have to setup a connection manually just like hcitool does (hcitool cc --role=s) in my programm.
Is there now way to do that through the comfortable dbus interface?
So just the same as hcitool cc --role=s <bdaddr> (this establishes a ACL connection, right? ) but more comfortable to implement error-handling etc.


>you don't have to do that at all. Never ever establish ACL links by
>yourself. Let the kernel do it for you.

In which ways does the kernel that for me, or how can I initiate it?
I thought this can be done with socket-calls etc. as it done by a lot of tools like hcitool etc.

Thanks,
Fritz




On Thu, Jun 12, 2008 at 12:29 PM, Marcel Holtmann <marcel@holtmann.org> wrote:
Hi Fritz,

> hcitool cc --role=s <bdaddr>
> establishes a low level ACL connection.
>
> I have to do that in a self-written tool with error-handling etc.
> How can this be done through the dbus-interface, I've actually found
> no method in the interfaces listed here http://wiki.bluez.org/wiki

>>you don't have to do that at all. Never ever establish ACL links by
>>yourself. Let the kernel do it for you.


Regards

Marcel



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users



--
Regards,
--Codefritz






--
Regards,
--Codefritz



------=_Part_16216_31045185.1213269129554-- --===============1636264647== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php --===============1636264647== 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 --===============1636264647==--