scrapper / postrunner

Application to manage FIT files such as those produced by Garmin fitness devices
GNU General Public License v2.0
62 stars 14 forks source link

CPE ephemeris data url for newer Garmin watches #45

Open bbbbbr opened 7 months ago

bbbbbr commented 7 months ago

Regarding this:

Unfortunately, the download mechanism for CPE files used by the devices with GPS chipsets from Sony is still unknown and hence unsupported

In case this is useful for future device support or for other people

For some Garmin watches with Sony GPS chipsets here is what seems to work for downloading CPE ephemeris data (and copying to the device on Linux). No additional processing is required if wget (or perhaps curl) is used. This was from recording traffic with a Garmin Vivoactive 3.

wget -O CPE.BIN api.gcs.garmin.com/ephemeris/cpe/sony?coverage=WEEKS_1

gio copy --progress CPE.BIN /run/user/1000/gvfs/mtp:host=<VID_PID_MOUNT_OF_YOUR_WATCH_HERE>/Primary/GARMIN/RemoteSW

Update, some other collected info from other sources too:

For: Garmin Forerunner 245 From: https://gadgetbridge.org/internals/specifics/garmin-protocol/ This returns a unix tar file with four CPE bin files of varying sizes. The constellations parameter selects which CPE files are included in the tar file https://api.gcs.garmin.com/ephemeris/cpe/sony/lle?coverage=WEEKS_1&constellations=GPS,GLONASS,GALILEO,QZSS

For: Garmin Forerunner 935 From: http://www.cyber-neurones.org/tag/forerunner/?amp Possible url for it's EPO ephemeris data. Looks like it returns JSON. https://api.gcs.garmin.com/ephemeris/cpe/mtk/segments?segments=28