More sub-ids.

This commit is contained in:
Markus Birth 2022-12-11 18:22:24 +01:00
parent 8711fad3c2
commit a7ad1934dd
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
2 changed files with 22 additions and 1 deletions

View File

@ -1,8 +1,10 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Some acronyms/abbreviations: # Some acronyms/abbreviations:
# * CTP - Capacitive Touch Panel
# * FFP - Final Factory Production # * FFP - Final Factory Production
# * FR - Forerunner # * FR - Forerunner
# * iR - inReach
# * RTL - Radar Tail Light (Garmin Varia) # * RTL - Radar Tail Light (Garmin Varia)
# * RVR - Rear View Radar (Garmin Varia) # * RVR - Rear View Radar (Garmin Varia)
# * SW - Software # * SW - Software
@ -511,6 +513,11 @@ DEVICES = {
10: "Flight Stream 110/210 v2.30", 10: "Flight Stream 110/210 v2.30",
11: "Flight Stream 110/210 v2.40", 11: "Flight Stream 110/210 v2.40",
20: "Flight Stream 110/210 v2.50", 20: "Flight Stream 110/210 v2.50",
40: "Flight Stream 110/210 v2.70",
50: "Flight Stream 110/210 v2.80",
51: "Flight Stream 110/210 v2.81",
60: "Flight Stream 110/210 v2.90",
61: "Flight Stream 110/210 v2.91",
}, },
1786: {0: "GPS 15x|15xH/xL|16x|18x OEM/5Hz 1786"}, 1786: {0: "GPS 15x|15xH/xL|16x|18x OEM/5Hz 1786"},
1788: {0: "GTR20/200"}, 1788: {0: "GTR20/200"},
@ -588,6 +595,14 @@ DEVICES = {
30: "Flight Stream 510 v2.30", 30: "Flight Stream 510 v2.30",
32: "Flight Stream 510 v2.32", 32: "Flight Stream 510 v2.32",
33: "Flight Stream 510 v2.33", 33: "Flight Stream 510 v2.33",
40: "Flight Stream 510 v2.40",
41: "Flight Stream 510 v2.41",
42: "Flight Stream 510 v2.42",
51: "Flight Stream 510 v2.51",
61: "Flight Stream 510 v2.61",
62: "Flight Stream 510 v2.62",
70: "Flight Stream 510 v2.70",
71: "Flight Stream 510 v2.71",
}, },
2024: {0: "Quatix China"}, 2024: {0: "Quatix China"},
2030: {0: "HAC 2CT"}, 2030: {0: "HAC 2CT"},
@ -1096,6 +1111,9 @@ DEVICES = {
3144: {0: "Forerunner 235 Lite APAC"}, 3144: {0: "Forerunner 235 Lite APAC"},
3145: {0: "Forerunner 245 APAC"}, 3145: {0: "Forerunner 245 APAC"},
3153: {0: "fenix 5 Plus, ANT_BLE_BT"}, 3153: {0: "fenix 5 Plus, ANT_BLE_BT"},
3155: {
50: "RB-IN1501 Stereo Update",
},
3157: {0: "Edge 830, ???"}, 3157: {0: "Edge 830, ???"},
3163: {0: "vivoactive 3 Music APAC, WiFi"}, 3163: {0: "vivoactive 3 Music APAC, WiFi"},
3164: {0: "vivoactive 3 Music APAC, Sensor Hub"}, 3164: {0: "vivoactive 3 Music APAC, Sensor Hub"},
@ -1359,6 +1377,7 @@ DEVICES = {
}, },
3579: { 3579: {
10: "RV-85x/RV-105x", 10: "RV-85x/RV-105x",
50: "RV-5x Stereo Update",
}, },
3589: {0: "Forerunner 745"}, 3589: {0: "Forerunner 745"},
3590: {0: "Forerunner 745, Sensor Hub"}, 3590: {0: "Forerunner 745, Sensor Hub"},

View File

@ -15,6 +15,7 @@ PROTO_API_GETALLUNITSOFTWAREUPDATES_URL = "http://omt.garmin.com/Rce/ProtobufApi
WEBUPDATER_SOFTWAREUPDATE_URL = "https://www.garmin.com/support/WUSoftwareUpdate.jsp" WEBUPDATER_SOFTWAREUPDATE_URL = "https://www.garmin.com/support/WUSoftwareUpdate.jsp"
GRMN_CLIENT_VERSION = "6.19.4.0" GRMN_CLIENT_VERSION = "6.19.4.0"
class UpdateInfo: class UpdateInfo:
def __init__(self): def __init__(self):
self.source = None self.source = None
@ -106,6 +107,7 @@ class UpdateInfo:
def __repr__(self): def __repr__(self):
return "[{}] {} {} {}".format(self.source, self.sku, self.device_name, self.fw_version) return "[{}] {} {} {}".format(self.source, self.sku, self.device_name, self.fw_version)
class UpdateServer: class UpdateServer:
def __init__(self): def __init__(self):
@ -235,7 +237,7 @@ class UpdateServer:
def get_unit_updates(self, device_xml): def get_unit_updates(self, device_xml):
query = GetAllUnitSoftwareUpdates_pb2.GetAllUnitSoftwareUpdates() query = GetAllUnitSoftwareUpdates_pb2.GetAllUnitSoftwareUpdates()
query.client_data.client = "express" query.client_data.client = "express"
query.client_data.language ="en_GB" query.client_data.language = "en_GB"
query.client_data.client_platform = "Windows" query.client_data.client_platform = "Windows"
query.client_data.client_platform_version = "1000 " query.client_data.client_platform_version = "1000 "
query.device_xml = device_xml query.device_xml = device_xml