Re: [PATCH v2 06/11] Bluetooth: Advertising entries lifetime

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

 



Hi Johan,

On Tue, Jun 7, 2011 at 11:02 AM, Johan Hedberg <johan.hedberg@xxxxxxxxx> wrote:
> Hi Luiz,
>
> On Tue, Jun 07, 2011, Luiz Augusto von Dentz wrote:
>> Maybe we should not trigger the timer if the we are connected to the
>> device, this would be very convenient if a disconnect happen for
>> unknown reason e.g. bug or crash so we can quickly reconnect without
>> having to scan again, once disconnected then we start the entry timer,
>> what do you think?
>
> Initially this sounds like a good idea, however almost all of the
> devices we've tested with automatically disable advertising when
> connected so an immediate reconnect attempt like that would fail in most
> cases.

Correct. And by reading the connection procedures from specs, looks
like this is intentional, because they leave the "connectable mode".
Devices which want to be reconnected (e.g. which have a pending
indication) should reenter connectable mode manually. The spec also
describes when the adapter should re-attempt connection establishment.
Therefore, this is GATT profile specific and IMHO we cannot hard-code
connection mode behavior on the kernel.

Vol. 3, Part C, Section 9 describes all the available operational modes.

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