linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: nirav rabara <niravrabara@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Unable to get device name while discovery
Date: Tue, 9 Feb 2010 09:48:30 +0200	[thread overview]
Message-ID: <2d5a2c101002082348j263b46f7je0039b811ea31d0a@mail.gmail.com> (raw)
In-Reply-To: <912bb79a1002080934r5cab2823kded04a942cd4a993@mail.gmail.com>

hi,

On Mon, Feb 8, 2010 at 7:34 PM, nirav rabara <niravrabara@gmail.com> wrote:
> Hi,
>
> Most of the time I am unable to get device name while discovering for
> new device.
>
> I am using Dbus API to discover new devices, I am able to get the
> signal DeviceFound() , using this signal I am able to get device
> addresses, paired or not, connected or not, but some times its not
> showing the name of the device.

It may take some time to resolve the name, specially if there are many
devices to resolve their names.

> Can anybody suggest me what should i do to get device name while
> searching for the new devices.

If you want to display the name you should probably wait until it is
resolved, a new DeviceFound will be emitted with the resolved name.

> ( If the file names available at /var/lib/run/bluetooth/... then it's
> shows device name , as per my understanding while searching its trying
> to get device name from this "names " file , but if the file is not
> available it won't show the device name.  If the bluetooth dongle is
> connection at first time then no "names" file will be available , so
> how to get device name? )

The names file will be created if it doesn't exist, you just need to
keep the discovery session active to be able to resolve the devices
which may take some time, again once it is done you will receive a new
DeviceFound with the updated name.


-- 
Luiz Augusto von Dentz
Computer Engineer

      reply	other threads:[~2010-02-09  7:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-08 17:34 Unable to get device name while discovery nirav rabara
2010-02-09  7:48 ` Luiz Augusto von Dentz [this message]

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=2d5a2c101002082348j263b46f7je0039b811ea31d0a@mail.gmail.com \
    --to=luiz.dentz@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=niravrabara@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).