Re: Bluetooth low energy with gatttool and jawbone

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

 



Hi Christian,

On Mon, Mar 17, 2014 at 12:30 PM, Christian Bianchini
<christian.bianchini@xxxxxxxxxxxxx> wrote:
> Tried to connect with bluez:
> $ sudo bluez-simple-agent hci0 DC:7A:F8:10:AF:A5
> Creating device failed: org.bluez.Error.ConnectionAttemptFailed: Page Timeout

If you are using a 4.x BlueZ, you must run "test-discovery" until the
device appears, and then attempt the simple-agent command above. This
will feed an internal cache that allows BlueZ to know that this
address is from a LE device, not a BR/EDR one. Since BlueZ 5.0, this
is not necessary anymore.

If this does not work, please post the output from hcidump when you
run the "bluez-simple-agent" command.

> Stupid question, how do I read the firmware version? Sorry to ask
> silly questions but this my first attempt to use this kind of "AT
> commands" via GATT

Given that your connection is dropping after a few seconds, it is
difficult to run commands on the gatttool prompt before fixing this
connection timeout issue. Try running test-discovery + simple-agent as
described above, and then try gatttool again and see if it stays
connected.

> Here is the dump:
> [...]

Unfortunately, the log only says your device is disconnecting due to
"Connection Timeout". Are you getting this same error every time? And
for how long the link stays up before disconnecting? (you can pass
"-t" to hcidump to show the timestamp so you can measure easily).

This error usually means there is a poor connection between your
machine and the device, or that the device "disappeared" (i.e. became
out of range). Is the device fully charged?

Best Regards,
-- 
Anderson Lizardo
http://www.indt.org/?lang=en
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