Official pebble app seeks for bt device connections and re-establishes a connecting to watch once it's connected.
This functionality is missed in gadgetbridge, which forces users to reconnect manually.
@derlaft
Gadgetbridge tries to reconnect but only for a limited amount of time.
I don't know how the official App behaves, but I noticed that the Pebble itself tries to connect to the Phone which we currently do not support. Maybe Pebble uses that passive re-connection approach in their App?
I could add that feature and make it an option. Something like "listen to incoming connections from the Pebble". I have no idea however under which conditions and when the pebble connects and to which Phone if multiple Phones are paired.
I would also like an 'agressive reconnects' option. gadgetbridge would never stop trying reconnecting to the watch when enabled.
Just to throw some more weight on this issue, I have to manually reconnect the app several times a day. There are plenty of times when I will get far away from the phone, and it automatically reconnects when I get within range again, but sometimes it'll disconnect when I'm just a few feet away and never reconnect.
I will add either an option or raise the number of reconnect attempts.
@glitchphan
Your issue with the disconnects withing a few feets range is strange. The only thing I could think of is that the service got killed and restarted (out of memory). In any case we need a solution for that scenario.
This likely had nothing to do with BT range, and I'm betting I need to turn on some kind of logging to really know what's going on. I was in the next room over from the phone and the Pebble Time vibrated like it does when it disconnects. When I came into the room with the phone, I waited a little bit but it never connected. Turning on the screen and pulling down the notification drawer showed Gadgetbridge, but underneath that it just said "Gadgetbridge is running" rather than "... is initialized" or "... is not connected", the way it usually does. I have not noticed this behavior before when it doesn't reconnect on its own, but this is the new version. As for memory, I have 2gb, and a cat /proc/meminfo shows 500mb cached, 30mb in buffers, and 70mb free. Never really paid attention to these numbers before so I don't know how normal it is, but there is obviously more running/active at the moment as I type this than there was while it was sitting on my nightstand.
You can turn on logging in Gadgetbridge's settings. Maybe then we get an idea of what happens.
I don't think this has been introduced lately.
@glitchphan
If it says "Gadgetbridge is running" it means that the service had been restarted. That's clear.
If you did not get an error dialog from Android, that it should have been killed on purpose which is strange with 2GB RAM.
Anyway we could work around it by reconnecting when that happens.
Maybe it would be an good option to allow setting the Time between reconnects. I use 240 reconnects at time this mostly works but takes a lot of battery when iam not near my phone. Would be nice when i could set only to try to reconnect all 30 secs at example. I think the original app uses longer intervals between the reconnect attemts. Automatic reconnect with "Waiting for incomming connection" seems never to work
That is a good idea. I use 1200 currently.
Automatic reconnect with "Waiting for incomming connection" seems never to work here also (snowy/basalt).
"Waiting for incoming connection" works, but unfortunately the pebble does not connect when we expect.
Some working examples:
Strange, I know, but at least the feature is not useless.
But on original Pebble App this didnt work eigther. When i go out of range and come back, the original app needs more than an minute to reconnect. That says to me that the incomming reconnect dont work there too. The original app seems to try to connect all 1 or 2 minutes.
Anyway sleeping 15/30 seconds between attemps is a good idea
We'll have a look at getting automatic connect on notification to work for the pebble.
This seems to be much better with recent versions. Granted, I have switched devices a couple of times, but I'm confident even switching back would show the same results.
I'm new to GB. I soon found my pebble beeing diconnected from the phone and did some testing:
Most helpful comment
Just to throw some more weight on this issue, I have to manually reconnect the app several times a day. There are plenty of times when I will get far away from the phone, and it automatically reconnects when I get within range again, but sometimes it'll disconnect when I'm just a few feet away and never reconnect.