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] notification of baseband conection establishment
Date: Tue, 19 Dec 2006 14:28:54 +0100	[thread overview]
Message-ID: <1166534934.7309.0.camel@violet> (raw)
In-Reply-To: <c49421c50612190525h197663fcu79da33f496526f45@mail.gmail.com>

Hi Loreno,

> does anybody know some facility for a called device to detect the
> establishment of a baseband connection? That is, say we have two
> devices, A and B, and A attempts a paging to B. The idea is fire an
> event in B as soon as the baseband connection is established. 
> 
> I thought two ideas for this: first, when the synchronous call to
> "hci_create_connection" returns, A then invokes, via SDP, a service
> advertised on B, which fires the event on that device (it is
> reasonable in my context to assume that B advertises a service such
> like that). Second, some application in B runs a thread that
> constantly monitors the availability of baseband connections through
> "hci_for_each_dev function". Such an application would maintain a data
> structure for controling existent conections. When a new conection is
> established, B updates the data structure and fires the event. 

look at the D-Bus API for BlueZ. It sends you a signal once a device has
been connected or disconnected.

Regards

Marcel



-------------------------------------------------------------------------
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

  reply	other threads:[~2006-12-19 13:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-19 13:25 [Bluez-users] notification of baseband conection establishment Loreno Oliveira
2006-12-19 13:28 ` Marcel Holtmann [this message]
2006-12-19 13:32 ` Pierre-Yves Paulus

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=1166534934.7309.0.camel@violet \
    --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