public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Bea Lam <blam@trolltech.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Adapter API - Devices property not updated if connection initiated by remote device
Date: Fri, 12 Dec 2008 14:52:37 +1000	[thread overview]
Message-ID: <200812121452.37564.blam@trolltech.com> (raw)
In-Reply-To: <1229046197.22285.21.camel@violet.holtmann.net>

Hi Marcel,

Yes, FindDevice() is useful when I need to check whether a particular device 
is connected at the moment. But what if I don't know the address of the 
connecting device? That is, should BlueZ also be able to tell me when some 
random, unknown device connects to me?

thanks

Bea


On Friday 12 December 2008 11:43:17 am Marcel Holtmann wrote:
> Hi Bea,
>
> > When using the org.bluez.Adapter interface, if I initiate a connection to
> > a remote device, then the adapter's Devices property is updated to
> > include the remote device, as expected. However, if the remote device
> > initiates the connection to my device instead, it isn't added to the
> > Devices list. This would appear to be a bug.
> >
> > This can be problematic if I am trying to identify whether any remote
> > devices are currently connected to the local adapter; it is not possible
> > to identify the connected devices if they have initiated the connection.
> >
> > It would be much appreciated if someone could look into this. Perhaps the
> > adapter->devices list could be updated when adapter_add_active_conn() is
> > called, but I'm not sure if this is correct.
>
> I know that Johan fixed a bug where FindDevice would not give any result
> for temporary devices. So you can use FindDevice to get the device
> object. Adding it to the device list? I am not sure about that.
>
> Regards
>
> Marcel

  reply	other threads:[~2008-12-12  4:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-11  3:57 Adapter API - Devices property not updated if connection initiated by remote device Bea Lam
2008-12-12  1:43 ` Marcel Holtmann
2008-12-12  4:52   ` Bea Lam [this message]
2008-12-12 10:58     ` Marcel Holtmann
2008-12-12 13:28       ` Johan Hedberg
2008-12-13  1:02         ` Luiz Augusto von Dentz

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=200812121452.37564.blam@trolltech.com \
    --to=blam@trolltech.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=marcel@holtmann.org \
    /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