From: Philipp Claves <claves@budelmann-elektronik.com>
To: Anderson Lizardo <anderson.lizardo@openbossa.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Connecting to Bluetooth Low Energy devices
Date: Fri, 14 Sep 2012 10:55:58 +0200 [thread overview]
Message-ID: <6387889.teEb9JopTL@arawn> (raw)
In-Reply-To: <CAJdJm_MY_TZqay8L0=qOXy3kFkM4RMsXgRKKh1nK7ukokB7WqA@mail.gmail.com>
Hi Anderson
On Thu, Sep 13, 2012 at 12:54:26, Anderson Lizardo wrote:
> Hi Philipp,
>
> On Thu, Sep 13, 2012 at 11:34 AM, Philipp Claves
>
> <claves@budelmann-elektronik.com> wrote:
> > Hello
> >
> > Trying to get started with Bluetooth Low Energy devices, i used hcitool
> > and gatttool to enumerate device attributes, but did not get far:
> >
> > # hcitool lescan
> > LE Scan ...
> > <MAC-Device1> Battery V1.0
> > <MAC-Device1> (unknown)
> > <MAC-Device2> Battery V1.0
> > <MAC-Device2> (unknown)
> > ^C
> >
> > # gatttool -b <MAC-Device1> -I
> > [ ][<MAC-Device1>][LE]> connect
> > Connecting... connect error: connect error: Connection refused (111)
> > [ ][<MAC-Device1>][LE]>
> >
> > This is all i get.
>
> Which kernel version are you running?
Linux 3.5.3
Which is the minimum version required?
>
> > Am i doing something obviously wrong?
> > Any tips where to get more information about the error (dmesg shows
> > nothing)?
> run "hcidump -X" and check the logs while you run "hcitool lescan".
> Then check the type of advertising those devices are sending. They
> should be connectable advertisings to be able to connect to them. Also
> check the address type, if it is "Random" you need to pass "-t random"
> to gatttool.
Thanks, -t random did the trick.
But it's still strange, the device addresses never changed even once while
working with them. The bluetooth SIG talk about LE adresses mentioned random
adresses to change every 15 minutes or so....
I need to investigate this more.
Thanks for your help!
Philipp Claves
--
Budelmann Elektronik GmbH
Von-Renesse-Weg 60
48163 Münster
Germany
Tel. +49 (0)2501 9208440
Fax +49 (0)2501 5887024
claves@budelmann-elektronik.com
www.budelmann-elektronik.com
next prev parent reply other threads:[~2012-09-14 8:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-13 15:34 Connecting to Bluetooth Low Energy devices Philipp Claves
2012-09-13 16:54 ` Anderson Lizardo
2012-09-14 8:55 ` Philipp Claves [this message]
2012-09-17 0:44 ` Anderson Lizardo
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=6387889.teEb9JopTL@arawn \
--to=claves@budelmann-elektronik.com \
--cc=anderson.lizardo@openbossa.org \
--cc=linux-bluetooth@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).