1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-25 06:21:04 +02:00
Commit Graph

12 Commits

Author SHA1 Message Date
kuhy
c9cb7d788e Garmin protocol: improve detection of successfully sent files (DataTransferHandler) 2024-05-03 20:28:12 +02:00
kuhy
5841058863 Garmin protocol: add support for AGPS data retrieval 2024-05-03 20:28:12 +02:00
Daniele Gobbetti
36781e6958 Garmin: fix regression in call handling
Add a fictitious action to the notification to enable reply/hangup/reject from the watch.
Also fixes the behavior on sms reply, which should also reject the incoming call.

Change the log level in case some of the canned messages types are left as default to info, as this is a supported scenario.
2024-05-03 20:28:12 +02:00
José Rebelo
eec88c3dd5 Garmin: Send location to watch 2024-05-03 20:28:12 +02:00
Daniele Gobbetti
7700154b16 Garmin: calendar integration improvements
use the protobuf fields described in the documentation[0]
build the message according to the requested fields

[0] https://gadgetbridge.org/internals/specifics/garmin-protocol/#calendarevent
2024-05-03 20:28:12 +02:00
José Rebelo
915d059c1c Garmin: Auto-detect canned messages support 2024-05-03 20:28:12 +02:00
José Rebelo
46ea7d87b1 Garmin: Add support for http weather requests 2024-05-03 20:28:12 +02:00
Daniele Gobbetti
a7d4f3df93 Garmin: Add support for custom replies (notifications and calls)
To enable custom replies an override must be defined in the devices coordinator that actually support custom replies.

The custom preferences allow to:
- enable / disable the default message suffix (Instinct 2 appends "sent from my $vendor device" to each reply by default)
- define custom messages to reply to calls and incoming messages (leaving those lists empty will enable the default messages to be used)

Also adds a new protobuf definition file of mostly unknown values that enable toggling the message suffix on Instinct 2.
2024-05-03 20:28:11 +02:00
Daniele Gobbetti
554e33adaa Garmin protocol: basic file transfer and notification handling
adds synchronization of supported files from watch to external directory
adds support for Activity and Monitoring files (workouts and activity samples), but those are not integrated yet
adds upload functionality (not used ATM and not tested)
adds notification support without actions
introduces centralized processing of "messageHandlers" (protobuf, file transfer, notifications)

also properly dispose of the music timer when disconnecting
2024-05-03 20:28:11 +02:00
Daniele Gobbetti
3ea737d89c Garmin protocol: use message enum instead of id in GFDI Messages 2024-05-03 20:28:11 +02:00
Daniele Gobbetti
4a38b7aee8 Garmin protocol: fixes
- fix DEVICE_SETTINGS message ID
- put all status messages in own package
- allow protobuf handler to change the returned status message to signal unsupported requests
- fix various bugs
2024-05-03 20:28:11 +02:00
Daniele Gobbetti
135073585e Garmin protocol: initial refactoring and basic functionalities
This commit takes aims to bring many new garmin devices up to a working status, with basic functionalities such as:
- garmin protocol initialization
- basic message exchange
- support for some messages in Garmin own format
- support for some messages in protobuf format
2024-05-03 20:28:11 +02:00