Re: Connecting to Bluetooth Low Energy devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Philipp,

On Thu, Sep 13, 2012 at 11:34 AM, Philipp Claves
<claves@xxxxxxxxxxxxxxxxxxxxxxxx> 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?

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

Regards,
-- 
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux