mirror of
https://github.com/kk7ds/chirp
synced 2026-08-13 17:51:36 -04:00
Add support for Hiroyasu HI-8811 - fixes #10622
This commit is contained in:
parent
f8c3c1808d
commit
52db47faa0
4 changed files with 30 additions and 13 deletions
|
|
@ -190,7 +190,7 @@ TXPOWER_MID = 0x02
|
|||
ABR_LIST = ["On", "5 seconds", "10 seconds", "15 seconds", "20 seconds",
|
||||
"30 seconds", "1 minute", "2 minutes", "3 minutes"]
|
||||
ALMODE_LIST = ["Site", "Tone", "Code"]
|
||||
AUTOLK_LIST = ABR_LIST[:4]
|
||||
AUTOLK_LIST = ["Off"] + ABR_LIST[1:4]
|
||||
DTMFSPEED_LIST = ["50 ms", "100 ms", "200 ms", "300 ms", "500 ms"]
|
||||
DTMFST_LIST = ["Off", "KeyBoard Side Tone", "ANI Side Tone", "KB ST + ANI ST"]
|
||||
DUALTX_LIST = ["Off", "A", "B"]
|
||||
|
|
@ -257,6 +257,7 @@ SETTING_LISTS = {
|
|||
"pttid": PTTID_LIST,
|
||||
"pttlt": PTTLT_LIST,
|
||||
"qtsave": QTSAVE_LIST,
|
||||
"roger": ROGER_LIST,
|
||||
"rpste": RPSTE_LIST,
|
||||
"rptrl": RPSTE_LIST,
|
||||
"rxendtail": TONERXEND_LIST,
|
||||
|
|
@ -818,7 +819,7 @@ class JC8810base(chirp_common.CloneModeRadio):
|
|||
|
||||
if self.MODEL in ["RT-470"]:
|
||||
unwanted = [0, 7, 9]
|
||||
elif self.MODEL in ["RT-470L"]:
|
||||
elif self.MODEL in ["HI-8811", "RT-470L"]:
|
||||
unwanted = [9]
|
||||
else:
|
||||
unwanted = []
|
||||
|
|
@ -847,7 +848,7 @@ class JC8810base(chirp_common.CloneModeRadio):
|
|||
|
||||
if self.MODEL in ["RT-470"]:
|
||||
unwanted = [0, 7, 8, 9]
|
||||
elif self.MODEL in ["RT-470L"]:
|
||||
elif self.MODEL in ["HI-8811", "RT-470L"]:
|
||||
unwanted = [8, 9]
|
||||
else:
|
||||
unwanted = []
|
||||
|
|
@ -876,7 +877,7 @@ class JC8810base(chirp_common.CloneModeRadio):
|
|||
|
||||
if self.MODEL in ["RT-470"]:
|
||||
unwanted = [0, 7, 8, 9]
|
||||
elif self.MODEL in ["RT-470L"]:
|
||||
elif self.MODEL in ["HI-8811", "RT-470L"]:
|
||||
unwanted = [8, 9]
|
||||
else:
|
||||
unwanted = []
|
||||
|
|
@ -895,7 +896,7 @@ class JC8810base(chirp_common.CloneModeRadio):
|
|||
rset.set_apply_callback(apply_skey3s_listvalue, _settings.skey3_sp)
|
||||
basic.append(rset)
|
||||
|
||||
if self.MODEL in ["RT-470L"]:
|
||||
if self.MODEL in ["HI-8811", "RT-470L"]:
|
||||
# Menu 24: PF3 LONG PRESS (RT-470L)
|
||||
def apply_skey3l_listvalue(setting, obj):
|
||||
LOG.debug("Setting value: " + str(setting.value) +
|
||||
|
|
@ -905,7 +906,7 @@ class JC8810base(chirp_common.CloneModeRadio):
|
|||
val = SKEY2L_VALUES[index]
|
||||
obj.set_value(val)
|
||||
|
||||
if self.MODEL in ["RT-470L"]:
|
||||
if self.MODEL in ["HI-8811", "RT-470L"]:
|
||||
unwanted = [8, 9]
|
||||
else:
|
||||
unwanted = []
|
||||
|
|
@ -925,7 +926,7 @@ class JC8810base(chirp_common.CloneModeRadio):
|
|||
_settings.skey3_lp)
|
||||
basic.append(rset)
|
||||
|
||||
if self.MODEL in ["RT-470", "RT-470L"]:
|
||||
if self.MODEL in ["HI-8811", "RT-470", "RT-470L"]:
|
||||
# Menu 25: TOP KEY (RT-470L)
|
||||
def apply_skeytop_listvalue(setting, obj):
|
||||
LOG.debug("Setting value: " + str(setting.value) +
|
||||
|
|
@ -944,7 +945,7 @@ class JC8810base(chirp_common.CloneModeRadio):
|
|||
# Press) setting in CHIRP.
|
||||
# ==========
|
||||
unwanted = [0, 7, 8, 9]
|
||||
elif self.MODEL in ["RT-470L"]:
|
||||
elif self.MODEL in ["HI-8811", "RT-470L"]:
|
||||
unwanted = [8, 9]
|
||||
else:
|
||||
unwanted = []
|
||||
|
|
@ -974,7 +975,7 @@ class JC8810base(chirp_common.CloneModeRadio):
|
|||
rset = RadioSetting("ponmsg", "Power On Message", rs)
|
||||
basic.append(rset)
|
||||
|
||||
if self.MODEL == "RT-470L":
|
||||
if self.MODEL in ["HI-8811", "RT-470L"]:
|
||||
rs = RadioSettingValueList(TAILCODE_LIST,
|
||||
TAILCODE_LIST[_settings.tailcode])
|
||||
rset = RadioSetting("tailcode", "Tail Code", rs)
|
||||
|
|
@ -1213,7 +1214,8 @@ class RT470LRadio(JC8810base):
|
|||
# ==========
|
||||
|
||||
_fingerprint = [b"\x00\x00\x00\xfe\x00\x20\xAC\x04",
|
||||
b"\x00\x00\x00\x20\x00\x20\xCC\x04"]
|
||||
b"\x00\x00\x00\x20\x00\x20\xCC\x04",
|
||||
b"\x00\x00\x00\x20\x00\x20\x07\x00"]
|
||||
|
||||
POWER_LEVELS = [chirp_common.PowerLevel("H", watts=5.00),
|
||||
chirp_common.PowerLevel("M", watts=4.00),
|
||||
|
|
@ -1224,3 +1226,16 @@ class RT470LRadio(JC8810base):
|
|||
(220000000, 260000000),
|
||||
(330000000, 400000000),
|
||||
(400000000, 520000000)]
|
||||
|
||||
|
||||
@directory.register
|
||||
class HI8811Radio(RT470LRadio):
|
||||
"""Hiroyasu HI-8811"""
|
||||
VENDOR = "Hiroyasu"
|
||||
MODEL = "HI-8811"
|
||||
|
||||
# ==========
|
||||
# Notice to developers:
|
||||
# The HI-8811 support in this driver is curretnly based upon v1.17
|
||||
# firmware.
|
||||
# ==========
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@
|
|||
| <a name="Feidaxin_FD-460A"></a> Feidaxin_FD-460A | | | | 0.01% |
|
||||
| <a name="Feidaxin_FD-460UH"></a> Feidaxin_FD-460UH | | | | 0.01% |
|
||||
| <a name="Generic_CSV"></a> Generic_CSV | [@kk7ds](https://github.com/kk7ds) | 4-Dec-2022 | | |
|
||||
| <a name="Hiroyasu_HI-8811"></a> Hiroyasu_HI-8811 | [@KC9HI](https://github.com/KC9HI) | 4-Jun-2023 | Yes | |
|
||||
| <a name="HobbyPCB_RS-UV3"></a> HobbyPCB_RS-UV3 | [@kk7ds](https://github.com/kk7ds) | 9-Dec-2022 | Yes | 0.02% |
|
||||
| <a name="Icom_IC-208H"></a> Icom_IC-208H | [Probably works](https://github.com/kk7ds/chirp/blob/py3/chirp/drivers/icf.py) | 12-Dec-2022 | Yes | 0.05% |
|
||||
| <a name="Icom_IC-2100H"></a> Icom_IC-2100H | [Probably works](https://github.com/kk7ds/chirp/blob/py3/chirp/drivers/icf.py) | 12-Dec-2022 | Yes | 0.04% |
|
||||
|
|
@ -407,11 +408,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:** 404
|
||||
**Drivers:** 405
|
||||
|
||||
**Tested:** 85% (347/57) (93% of usage stats)
|
||||
**Tested:** 85% (348/57) (93% of usage stats)
|
||||
|
||||
**Byte clean:** 89% (363/41)
|
||||
**Byte clean:** 89% (364/41)
|
||||
|
||||
## Meaning of this testing
|
||||
|
||||
|
|
|
|||
BIN
tests/images/Hiroyasu_HI-8811.img
Normal file
BIN
tests/images/Hiroyasu_HI-8811.img
Normal file
Binary file not shown.
|
|
@ -75,6 +75,7 @@ CRT_Micron_UV,+Retevis_RT95,13-Nov-2022
|
|||
CRT_Micron_UV_V2,+Retevis_RT95,13-Nov-2022
|
||||
Explorer_QRZ-1,+TYT_TH-UV88,5-Dec-2022
|
||||
Generic_CSV,@kk7ds,4-Dec-2022
|
||||
Hiroyasu_HI-8811,@KC9HI,4-Jun-2023
|
||||
HobbyPCB_RS-UV3,@kk7ds,9-Dec-2022
|
||||
Icom_IC-208H,*icf,12-Dec-2022
|
||||
Icom_IC-2100H,*icf,12-Dec-2022
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue