* [newbie] How does automatic reconnection work
@ 2022-08-10 10:02 Christian Eggers
2022-08-10 22:14 ` Luiz Augusto von Dentz
0 siblings, 1 reply; 2+ messages in thread
From: Christian Eggers @ 2022-08-10 10:02 UTC (permalink / raw)
To: linux-bluetooth
Many Bluetooth devices seem to have some kind of "reconnect behavior". For instance
an audio speaker reconnects automatically to a phone as soon as they are within an
appropriate distance.
On the web, there are also many instructions how to troubleshoot problems related to
"automatic reconnect" ([1], [2], [3]).
How is this feature actually implemented? What do I have to consider if I want to
automatically reconnect my product with the customers phone?
In my concrete case, I create a BNEP connection from my product to the customers phone
(which acts as a NAP, Bluetooth Tethering has to be enabled on the phone). I would like
to automatically reestablish the network connection as soon as the phone is within an
appropriate range.
regards
Christian
[1] https://techwiser.com/fix-bluetooth-device-doesnt-auto-connect-in-linux/
[2] https://unix.stackexchange.com/questions/334386/how-to-set-up-automatic-connection-of-bluetooth-headset
[3] https://stackoverflow.com/questions/32288670/bluez-auto-reconnect-devices
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [newbie] How does automatic reconnection work
2022-08-10 10:02 [newbie] How does automatic reconnection work Christian Eggers
@ 2022-08-10 22:14 ` Luiz Augusto von Dentz
0 siblings, 0 replies; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2022-08-10 22:14 UTC (permalink / raw)
To: Christian Eggers; +Cc: linux-bluetooth
Hi Christian,
On Wed, Aug 10, 2022 at 3:09 AM Christian Eggers <ceggers@arri.de> wrote:
>
> Many Bluetooth devices seem to have some kind of "reconnect behavior". For instance
> an audio speaker reconnects automatically to a phone as soon as they are within an
> appropriate distance.
>
> On the web, there are also many instructions how to troubleshoot problems related to
> "automatic reconnect" ([1], [2], [3]).
>
> How is this feature actually implemented? What do I have to consider if I want to
> automatically reconnect my product with the customers phone?
>
> In my concrete case, I create a BNEP connection from my product to the customers phone
> (which acts as a NAP, Bluetooth Tethering has to be enabled on the phone). I would like
> to automatically reestablish the network connection as soon as the phone is within an
> appropriate range.
Auto connection is controllable via main.conf:
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/src/main.conf#n263
That said that is not enabled for BNEP profiles by default, it is kind
weird thing actually given that phones in general don't have Bluetooth
tethering enabled all the time, in fact I believe the normal behavior
is to disable tethering when disconnected, so even if you managed to
reconnect it may not be tethering.
> regards
> Christian
>
>
> [1] https://techwiser.com/fix-bluetooth-device-doesnt-auto-connect-in-linux/
> [2] https://unix.stackexchange.com/questions/334386/how-to-set-up-automatic-connection-of-bluetooth-headset
> [3] https://stackoverflow.com/questions/32288670/bluez-auto-reconnect-devices
>
>
>
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-10 22:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-10 10:02 [newbie] How does automatic reconnection work Christian Eggers
2022-08-10 22:14 ` Luiz Augusto von Dentz
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).