All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Davies <linux-bluetooth-list@steev.me.uk>
To: linux-bluetooth <linux-bluetooth@vger.kernel.org>
Subject: Re: Gone away BLE device still available in dbus
Date: Mon, 05 Oct 2015 16:32:50 +0100	[thread overview]
Message-ID: <56129822.3020105@steev.me.uk> (raw)
In-Reply-To: <CABBYNZLniquNpn15AzarWYoe4npyrAW8OJMZwAVFGXsbTvO1Og@mail.gmail.com>

Hi Luiz,

On 05/10/15 15:11, Luiz Augusto von Dentz wrote:
> Hi Steven,
>
> On Mon, Oct 5, 2015 at 2:59 PM, Steven Davies
> <linux-bluetooth-list@steev.me.uk> wrote:
>> I have two BLE devices which are visible to the bluetooth stack on my
>> host machine. One of them is at the edge of the reception range and
>> sometimes the host can't connect to it. I would expect bluez to remove
>> the record of this device after a timeout (3 minutes?) but it doesn't
>> seem to. Instead, when trying to connect to the device I see this debug
>> output:
>
> Only if the device is temporary, but as soon as you attempt to connect
> to it will be considered persistent since you want to connect to it
> later. Note that BlueZ does use passive scanning in case a driver has
> auto_connect flag so it would reconnect automatically if the device
> start advertising, in that case it is even more important to keep the
> device registered in the bus so that you can disable auto connect by
> calling Device1.Disconnect or Device1.Block.
Does this mean that after a Disconnect, the device will then time out
(if it isn't seen again my active/passive scanning)?
>> Oct  5 12:35:57 bang bluetoothd[3801]: src/device.c:device_connect_le()
>> Connection attempt to: B0:B4:48:B9:77:03
>> Oct  5 12:36:17 bang bluetoothd[3801]:
>> src/adapter.c:connect_failed_callback() hci0 B0:B4:48:B9:77:03 status 2
>> Oct  5 12:36:17 bang bluetoothd[3801]: plugins/policy.c:conn_fail_cb()
>> status 2
>> Oct  5 12:36:17 bang bluetoothd[3801]:
>> src/adapter.c:bonding_attempt_complete() hci0 bdaddr B0:B4:48:B9:77:03
>> type 1 status 0x2
>> Oct  5 12:36:17 bang bluetoothd[3801]:
>> src/device.c:device_bonding_complete() bonding (nil) status 0x02
>> Oct  5 12:36:17 bang bluetoothd[3801]:
>> src/device.c:device_bonding_failed() status 2
>> Oct  5 12:36:17 bang bluetoothd[3801]: src/adapter.c:resume_discovery()
>> Oct  5 12:36:17 bang bluetoothd[3801]: src/device.c:att_connect_cb()
>> connect error: Transport endpoint is not connected (107)
>> Oct  5 12:36:17 bang bluetoothd[3801]: src/device.c:att_error_cb()
>> Enabling automatic connections
>>
>> This returns the message "GDBus.Error:org.bluez.Error.Failed: Software
>> caused connection abort (36)" through dbus.
> We might need the HCI logs to know what could be causing this error,
> usually the error in case a page timeout occurs or passive scanning
> cannot find the device is host is down.
I can send an hcidump of when this next happens if that would help?

Thanks,
Steven Davies

      reply	other threads:[~2015-10-05 15:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-05 11:59 Gone away BLE device still available in dbus Steven Davies
2015-10-05 14:11 ` Luiz Augusto von Dentz
2015-10-05 15:32   ` Steven Davies [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=56129822.3020105@steev.me.uk \
    --to=linux-bluetooth-list@steev.me.uk \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.