Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto reconnect is not aggressive enough #59

Open
TheKrafter opened this issue Feb 25, 2024 · 6 comments
Open

Auto reconnect is not aggressive enough #59

TheKrafter opened this issue Feb 25, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@TheKrafter
Copy link

After about 30 minutes to an hour of normal usage, the Watchmate eventually disconnects from the pinetime and does not reconnect, until I reopen the app and manually reacan.

This might be fixed by the intermittent scanning mechanism you referenced in #58.

Device: OnePlus 6
Host OS: postmarketOS edge
InfiniTime Version: 1.14.0
Watchmate Version: v0.5.1 (native package)

@azymohliad
Copy link
Owner

Roger that. All the more reason to look into intermittent scanning soon

@azymohliad azymohliad added the bug Something isn't working label Mar 2, 2024
@azymohliad
Copy link
Owner

azymohliad commented Mar 3, 2024

Hi! I've pushed some bluetooth-related fixes in #62, and I think it might be related to this issue too.

I want to include some more fixes and additions into the next release and test it more, so I'm not sure when I'm gonna release it. But if you'd like to try it earlier, you can install this test build from Flathub CI:

flatpak install --user https://dl.flathub.org/build-repo/87429/io.gitlab.azymohliad.WatchMate.flatpakref

UPD: Those fixes are now released as 0.5.2, but auto-reconnection is still not very reliable, and the plan is to implement secure pairing first, and then try another way of reconnection.

@magic-ian
Copy link

Sometimes it connects for awhile, other times it disconnects within minutes. All while sitting beside the host device. One time I saw it gave some pre-determined error about rejecting the device or something. I tried to collect logs with
flatpak run io.gitlab.azymohliad.WatchMate > watchmate-app.log 2>&1
however there was no output in the file

@azymohliad
Copy link
Owner

I tried to collect logs with flatpak run io.gitlab.azymohliad.WatchMate > watchmate-app.log 2>&1 however there was no output in the file

Hi! My guess is that WatchMate was already running in the background, so this command merely brought it to foreground. If you click "Quit" from the menu or press Ctrl+Q, then this command should collect the logs properly

@magic-ian
Copy link

magic-ian commented Apr 27, 2024

Right on, that was it. Here are the logs.

Line 1 is when the app first starts. Disconnect occurs with the unresolved GATT services, then it goes into device discovery mode, staying there until intervention. Clicking the device in the UI causes the device discovery to stop and successfully connect. So the first GATT service instance I manually reconnect, and the second time I don't manually reconnect. Second failure occurred within a few minutes of the first.

watchmate.log

@magic-ian
Copy link

magic-ian commented Jul 18, 2024

One other addition for context in case it helps. I've been running Watchmate from a desktop (since Linux mobile you have to choose still between battery life via suspend with frequent disconnects, or a continuous connection with frequent recharges), and the watch is always within range, but I still have these disconnection issues.

@azymohliad azymohliad mentioned this issue Sep 2, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants