mml_jc8810.py: Add Radtel RT-630 - fixes #11220

This commit is contained in:
Jim Unroe 2024-06-14 19:12:18 -04:00 committed by Dan Smith
parent 34652dc2f1
commit f08319b994
4 changed files with 50 additions and 5 deletions

View file

@ -847,6 +847,8 @@ class JC8810base(chirp_common.CloneModeRadio):
unwanted = [0, 5, 7, 9, 10, 11, 12]
elif self.MODEL in ["A36plus", "A36plus_8w"]:
unwanted = [0, 5, 7, 9, 10, 11]
elif self.MODEL in ["RT-630"]:
unwanted = [5, 9, 10, 11, 12]
else:
unwanted = []
SKEY2S_CHOICES = ALL_SKEY_CHOICES.copy()
@ -878,6 +880,8 @@ class JC8810base(chirp_common.CloneModeRadio):
unwanted = [0, 5, 7, 8, 10, 11, 12]
elif self.MODEL in ["A36plus", "A36plus_8w"]:
unwanted = [0, 5, 7, 8, 11, 12]
elif self.MODEL in ["RT-630"]:
unwanted = [5, 9, 10, 11, 12]
else:
unwanted = []
SKEY2L_CHOICES = ALL_SKEY_CHOICES.copy()
@ -909,6 +913,8 @@ class JC8810base(chirp_common.CloneModeRadio):
unwanted = [0, 5, 7, 8, 9, 10, 11, 12]
elif self.MODEL in ["A36plus", "A36plus_8w"]:
unwanted = [0, 5, 7, 8, 11]
elif self.MODEL in ["RT-630"]:
unwanted = [5, 9, 10, 11, 12]
else:
unwanted = []
SKEY3S_CHOICES = ALL_SKEY_CHOICES.copy()
@ -926,7 +932,7 @@ class JC8810base(chirp_common.CloneModeRadio):
rset.set_apply_callback(apply_skey3s_listvalue, _settings.skey3_sp)
basic.append(rset)
if self.MODEL in ["HI-8811", "RT-470L", "RT-470X", "RT-470"]:
if self.MODEL in ["HI-8811", "RT-470L", "RT-470X", "RT-470", "RT-630"]:
# Menu 24: PF3 LONG PRESS (RT-470L)
def apply_skey3l_listvalue(setting, obj):
LOG.debug("Setting value: " + str(setting.value) +
@ -938,6 +944,8 @@ class JC8810base(chirp_common.CloneModeRadio):
if self.MODEL in ["HI-8811", "RT-470L", "RT-470X", "RT-470"]:
unwanted = [8, 9, 10, 11, 12]
elif self.MODEL in ["RT-630"]:
unwanted = [5, 9, 10, 11, 12]
else:
unwanted = []
SKEY3L_CHOICES = ALL_SKEY_CHOICES.copy()
@ -999,7 +1007,7 @@ class JC8810base(chirp_common.CloneModeRadio):
rset = RadioSetting("ponmsg", "Power On Message", rs)
basic.append(rset)
if self.MODEL in ["HI-8811", "RT-470L", "RT-470X"]:
if self.MODEL in ["HI-8811", "RT-470L", "RT-470X", "RT-630"]:
rs = RadioSettingValueList(TAILCODE_LIST,
TAILCODE_LIST[_settings.tailcode])
rset = RadioSetting("tailcode", "Tail Code", rs)
@ -1496,3 +1504,38 @@ class AR730Radio(UVA37Radio):
(200000000, 260000000),
(350000000, 390000000),
(400000000, 520000000)]
@directory.register
class RT630Radio(JC8810base):
"""Radtel RT-630"""
VENDOR = "Radtel"
MODEL = "RT-630"
# ==========
# Notice to developers:
# The RT-630 support in this driver is currently based upon v0.07 firmware.
# ==========
_fingerprint = [b"\x00\x00\x00\x32\x00\x20\xD8\x04", # fw 0.07
]
POWER_LEVELS = [chirp_common.PowerLevel("H", watts=5.00),
chirp_common.PowerLevel("M", watts=4.00),
chirp_common.PowerLevel("L", watts=2.00)]
VALID_BANDS = [(18000000, 108000000),
(108000000, 136000000),
(136000000, 300000000),
(300000000, 660000000),
(840000000, 1000000000)]
_ranges = [
(0x0000, 0x2000),
(0x8000, 0x8040),
(0x9000, 0x9040),
(0xA000, 0xA140),
(0xB000, 0xB2C0),
(0xB500, 0xB740)
]
_memsize = 0xB740

View file

@ -282,6 +282,7 @@
| <a name="Radtel_RT-470L"></a> Radtel_RT-470L | [@KC9HI](https://github.com/KC9HI) | 5-May-2023 | Yes | |
| <a name="Radtel_RT-470X"></a> Radtel_RT-470X | [@KC9HI](https://github.com/KC9HI) | 10-Aug-2023 | Yes | |
| <a name="Radtel_RT-490"></a> Radtel_RT-490 | [@KC9HI](https://github.com/KC9HI) | 11-Nov-2023 | Yes | 0.08% |
| <a name="Radtel_RT-630"></a> Radtel_RT-630 | [@KC9HI](https://github.com/KC9HI) | 14-Jun-2024 | Yes | |
| <a name="Radtel_RT-730"></a> Radtel_RT-730 | [@KC9HI](https://github.com/KC9HI) | 11-May-2024 | Yes | |
| <a name="Radtel_T18"></a> Radtel_T18 | [@KC9HI](https://github.com/KC9HI) | 28-Nov-2022 | Yes | 0.07% |
| <a name="Retevis_H777S"></a> Retevis_H777S | [@KC9HI](https://github.com/KC9HI) | 22-Dec-2022 | Yes | |
@ -462,11 +463,11 @@
| <a name="Zastone_ZT-X6"></a> Zastone_ZT-X6 | [Implied by Retevis_RT22](#user-content-Retevis_RT22) | 9-Dec-2022 | Yes | 0.11% |
## Stats
**Drivers:** 459
**Drivers:** 460
**Tested:** 87% (402/57) (93% of usage stats)
**Tested:** 87% (403/57) (93% of usage stats)
**Byte clean:** 91% (420/39)
**Byte clean:** 91% (421/39)
## Meaning of this testing

Binary file not shown.

View file

@ -249,6 +249,7 @@ Radtel_RT-470,@KC9HI,2-Apr-2023
Radtel_RT-470L,@KC9HI,5-May-2023
Radtel_RT-470X,@KC9HI,10-Aug-2023
Radtel_RT-490,@KC9HI,11-Nov-2023
Radtel_RT-630,@KC9HI,14-Jun-2024
Radtel_RT-730,@KC9HI,11-May-2024
Radtel_T18,@KC9HI,28-Nov-2022
Retevis_H777S,@KC9HI,22-Dec-2022