public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] using bluez dbus interface exposed from hcid with plain c code
Date: Sat, 17 May 2008 16:47:02 +0200	[thread overview]
Message-ID: <75FB41F6-49E1-4CEE-8A7F-87DCF21645F5@holtmann.org> (raw)
In-Reply-To: <3e9cdced0805170741i202cfe62kef18ca9a0c2e30c@mail.gmail.com>

Hi Fritz,

> since I don't have resources for Glib or another abstraction layer  
> on my Embedded Linux I can only use plain C for communication with  
> bluez through dbus.
> But so far I've only find howto's with GLib or Qt etc.
> Are there any documents that describe my case (plain c  
> communication) ?
>
> For general understanding of the bluez architecture and tools, a  
> statement and a question:
>
> hcid is the daemon which exposes different Interfaces through dbus,  
> e.g. the Interface "Adapter".
> Another Application can access bluez functionalities through dbus by  
> using the Interfaces exposed from hcid. (hopefully also by using  
> plain C).
>
> E.g.: You want to develop an application "example-app" which should  
> list available local buetooth devices, remote devices and its  
> services.
> In this case it is enough to start hcid and use its Interface  
> "Adapter" from "example-app" ?
>
> The other tools like, hcitool, hciconfig etc. are not necessary,  
> they are own applications, right.
> In order to use bluez features from another application (through  
> dbus) the only tool/util needed is hcid?
> And this is configured by hcid.conf?

if you use bluez-utils-3.31 or any later release, the only thing you  
need is hcid. It will do everything for you. The only exception is if  
your adapter is connected via an UART and using hci_uart driver, then  
you also need hciattach, but that is it.

And of course you can write a client application using D-Bus low-level  
(libdbus) only. It is a little bit more work than using high level  
languages, but it is possible. I still have plans to provide a D-Bus  
only replacement for hciconfig, hcitool etc.

Regards

Marcel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2008-05-17 14:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-17 14:41 [Bluez-users] using bluez dbus interface exposed from hcid with plain c code Fritz Code
2008-05-17 14:47 ` Marcel Holtmann [this message]
2008-05-17 16:55   ` Anders Eriksson
2008-05-17 18:38   ` Fritz Code
2008-05-18  0:04     ` Marcel Holtmann
2008-05-18  8:32       ` Fritz Code
2008-05-18  9:10         ` Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=75FB41F6-49E1-4CEE-8A7F-87DCF21645F5@holtmann.org \
    --to=marcel@holtmann.org \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox