InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.75k stars 941 forks source link

Self send a notification when bluetooth disconnects #772

Open uniformbuffer opened 3 years ago

uniformbuffer commented 3 years ago

Pitch us your idea!

Self send a notification when bluetooth disconnects

Description

Hi, i was wondering if it could be possible to make InfiniTime self send a notification when bluetooth disconnects. There are some use cases where i think it could be very useful:

Thanks for listening, have a good day.

geekbozu commented 3 years ago

So are you thinking just having the watch vibrate or similar when BLE disconnects? This would very much need to be configurable. I leave my watch on the desk when I am at the office so I have probably >100 D/C events a day. Getting a buzz every time...would be interesting :)

uniformbuffer commented 3 years ago

So are you thinking just having the watch vibrate or similar when BLE disconnects?

Yes, a simple notification with written something like "Bluetooth disconnected" or similar would work (so that it would also trigger the one time vibration).

This would very much need to be configurable. I leave my watch on the desk when I am at the office so I have probably >100 D/C events a day. Getting a buzz every time...would be interesting :)

I see, i wrongly supposed that generally smartwatch and smartphone are on the person at the same time and if if not, something is going wrong. Having it configurable would be great. I have also tried to introduce this feature into my bluetooth daemon, but i have quickly realized that i cannot send a disconnect notification to a disconnected device, but it would need on device support ^^

heyhewmike commented 3 years ago

So are you thinking just having the watch vibrate or similar when BLE disconnects?

Yes, a simple notification with written something like "Bluetooth disconnected" or similar would work (so that it would also trigger the one time vibration). I have been searching for a similar feature. I had left my phone in a motel shuttle van. My bluetooth headset disconnect alert alerted me to my phone not being on me. Possibly have the one time vibration be different than the regular notification, such as an "Error" notification(SOS), would be preferred for me as it would stand out because sometimes I ignore the regular notifications.

This would very much need to be configurable. I leave my watch on the desk when I am at the office so I have probably >100 D/C events a day. Getting a buzz every time...would be interesting :)

I see, i wrongly supposed that generally smartwatch and smartphone are on the person at the same time and if if not, something is going wrong. Having it configurable would be great. I have also tried to introduce this feature into my bluetooth daemon, but i have quickly realized that i cannot send a disconnect notification to a disconnected device, but it would need on device support ^^

geekbozu commented 3 years ago

So after thinking about this more, Id love to have this as a configurable....I leave my phone in bad places all the time. Once we get a better way of sending programmatic notifications I'm sure someone will visit this :)

ildar commented 3 years ago

This feature is very handy per my experience with Samsung Gear S3. But technically I think that the detection delay will be huge due to BLE. Gear uses both BLE and normal BT connection so detection time is very short.