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

Add "Find my phone" app. #2053

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

vchigrin
Copy link

This change set adds implementation of client for BLE "Immediate alert service", allowing companion apps get notifications from PineTime watch when requested by user.

Fixes: #343

@vchigrin
Copy link
Author

This pull request is result of joint work of @jmlich and @vchigrin, most of the code is written by Jozef (personal contributions can be found by commit history).

@vchigrin
Copy link
Author

That is how that app looks like
photo_2024-04-25_23-57-58
After user presses "Mild" or "High" button phone starts ringing and vibrating. User can stop this either by pressing "None" button on the PineTime, or by pressing button in GadgetBridge companion app on the phone.

To make this work some changes in GadgetBridge application were required, I suppose to upstream this after ensuring that this functionality will be accepted in InfiniTime.

Copy link

github-actions bot commented Apr 25, 2024

Build size and comparison to main:

Section Size Difference
text 379080B 1584B
data 940B 0B
bss 62660B -880B

@vchigrin
Copy link
Author

vchigrin commented May 1, 2024

Corresponding PR to GadgetBridge
https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/3746

@NitroNils
Copy link

And reverse? Find my watch? Make PineTime blink display and vibrate?
Don't know what this would take. Just a logical follow up 😁

@jmlich
Copy link

jmlich commented May 4, 2024

Find my watch already works. It is Alert Notification Service. In Amazfish -> Settings -> Debug page -> Phone Call.
Also Immediate Alert Service is implemented and shows None/Mild/High levels, but this is not right to find watch.

@crazycrystals
Copy link

Sorry if its offtopic, but is it also possible to have something like a signal strength indicator so you can see how close the device is and triangulate it?
Doing a ring with an app could be broken by do not disturb.

@jmlich
Copy link

jmlich commented May 6, 2024

The signal strength or more precisely RSSI (Received Signal Strength Indication) is specified/measured in BLE and Nimble can provide the value. I am not sure if it is reasonable reachable in the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Find My Phone" functionality with Gadgetbridge
4 participants