diff options
49 files changed, 241 insertions, 138 deletions
@@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: chirp -Version: 20240901 +Version: 20240905 Summary: A cross-platform cross-radio programming tool Home-page: https://chirp.danplanet.com Requires-Python: >=3.10,<4 diff --git a/chirp.egg-info/PKG-INFO b/chirp.egg-info/PKG-INFO index c09df98..d5c7f7b 100644 --- a/chirp.egg-info/PKG-INFO +++ b/chirp.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: chirp -Version: 20240901 +Version: 20240905 Summary: A cross-platform cross-radio programming tool Home-page: https://chirp.danplanet.com Requires-Python: >=3.10,<4 diff --git a/chirp/__init__.py b/chirp/__init__.py index 2b1d856..12ad848 100644 --- a/chirp/__init__.py +++ b/chirp/__init__.py @@ -1 +1 @@ -CHIRP_VERSION = "next-20240901" +CHIRP_VERSION = "next-20240905" diff --git a/chirp/chirp_common.py b/chirp/chirp_common.py index 65a99b0..3ec4f37 100644 --- a/chirp/chirp_common.py +++ b/chirp/chirp_common.py @@ -2063,3 +2063,11 @@ def mem_to_text(mem): elif mode == 'DTCS': pieces.append('D%03i' % tone) return '[%s]' % '/'.join(pieces) + + +def in_range(freq, ranges): + """Check if freq is in any of the provided ranges""" + for lo, hi in ranges: + if lo <= freq <= hi: + return True + return False diff --git a/chirp/directory.py b/chirp/directory.py index 2e0695f..0c029ee 100644 --- a/chirp/directory.py +++ b/chirp/directory.py @@ -193,6 +193,12 @@ def get_radio_by_image(image_file): ex.metadata = metadata raise ex else: + # If we don't find anything else and the file appears to be a CSV + # file, then explicitly open it with the generic driver so we can + # get relevant errors instead of just "Unknown file format". + if image_file.lower().endswith('.csv'): + rclass = get_radio('Generic_CSV') + return rclass(image_file) raise errors.ImageDetectFailed("Unknown file format") diff --git a/chirp/drivers/__init__.py b/chirp/drivers/__init__.py index 6eb412b..db62d3d 100644 --- a/chirp/drivers/__init__.py +++ b/chirp/drivers/__init__.py @@ -163,8 +163,8 @@ from chirp.drivers import ksun_m6 from chirp.drivers import mml_jc8810 from chirp.drivers import radtel_rt490 from chirp.drivers import retevis_ra87 -from chirp.drivers import tdh8 from chirp.drivers import uvk5 from chirp.drivers import uvk5_egzumer from chirp.drivers import yaesu_clone -__all__ = ['anytone', 'btech', 'anytone778uv', 'anytone_ht', 'anytone_iii', 'baofeng_common', 'baofeng_uv3r', 'baofeng_wp970i', 'bf_t1', 'bf_t8', 'boblov_x3plus', 'fake', 'fd268', 'ft1500m', 'ft1802', 'ft1d', 'ft2800', 'ft2900', 'ft4', 'ft450d', 'ft50', 'ft2d', 'ft60', 'ft70', 'ft7100', 'ft7800', 'ft8100', 'ft817', 'ft818', 'ft857', 'ft90', 'ftlx011', 'ftm3200d', 'ftm350', 'ftm7250d', 'ga510', 'generic_csv', 'generic_tpe', 'gmrsuv1', 'gmrsv2', 'h777', 'hf90', 'hg_uv98', 'alinco', 'bj9900', 'ic2100', 'hobbypcb', 'ic208', 'ic2300', 'ic2720', 'ic2200', 'ic2730', 'ic2820', 'ic9x_ll', 'ic9x', 'ic9x_icf', 'icf', 'ic9x_icf_ll', 'icomciv', 'icp7', 'icq7', 'ict8', 'icv80', 'ict70', 'ict7h', 'icv86', 'id51', 'icx90', 'icw32', 'icx8x', 'id31', 'id5100', 'id51plus', 'id800', 'id880', 'idrp', 'kg935g', 'kguv8d', 'iradio_uv_5118', 'kenwood_hmk', 'kenwood_itm', 'kenwood_live', 'kguv8e', 'kyd', 'kguv8dplus', 'kguv920pa', 'kguv980p', 'kguv9dplus', 'lt725uv', 'kyd_IP620', 'leixen', 'mursv1', 'puxing', 'ap510', 'puxing_px888k', 'radioddity_r2', 'radtel_t18', 'retevis_rb15', 'retevis_rb17p', 'retevis_rb28', 'retevis_rt1', 'retevis_rt21', 'retevis_rt22', 'retevis_rt23', 'retevis_rt26', 'retevis_rt76p', 'retevis_rt87', 'retevis_rt98', '__init__', 'bjuv55', 'rh5r_v2', 'tdxone_tdq8a', 'template', 'tg_uv2p', 'th350', 'th7800', 'th9000', 'th9800', 'th_uv3r', 'th_uv3r25', 'th_uv8000', 'th_uv88', 'th_uvf8d', 'thd72', 'thd74', 'thuv1f', 'tk270', 'tk3140', 'tk760', 'tk760g', 'tk8102', 'tk8160', 'tk8180', 'tmd710', 'tmv71', 'tmv71_ll', 'ts2000', 'ts480', 'ts590', 'ts850', 'uv5r', 'uv5x3', 'uv6r', 'uvb5', 'vgc', 'vx170', 'vx2', 'vx3', 'vx5', 'vx510', 'vx6', 'vx7', 'vx8', 'vxa700', 'wouxun', 'wouxun_common', 'alinco_dr735t', 'baofeng_uv17', 'baofeng_uv17Pro', 'iradio_uv_5118plus', 'kenwood_d7', 'ksun_m6', 'mml_jc8810', 'radtel_rt490', 'retevis_ra87', 'tdh8', 'uvk5', 'uvk5_egzumer', 'yaesu_clone'] +from chirp.drivers import tdh8 +__all__ = ['anytone', 'btech', 'anytone778uv', 'anytone_ht', 'anytone_iii', 'baofeng_common', 'baofeng_uv3r', 'baofeng_wp970i', 'bf_t1', 'bf_t8', 'boblov_x3plus', 'fake', 'fd268', 'ft1500m', 'ft1802', 'ft1d', 'ft2800', 'ft2900', 'ft4', 'ft450d', 'ft50', 'ft2d', 'ft60', 'ft70', 'ft7100', 'ft7800', 'ft8100', 'ft817', 'ft818', 'ft857', 'ft90', 'ftlx011', 'ftm3200d', 'ftm350', 'ftm7250d', 'ga510', 'generic_csv', 'generic_tpe', 'gmrsuv1', 'gmrsv2', 'h777', 'hf90', 'hg_uv98', 'alinco', 'bj9900', 'ic2100', 'hobbypcb', 'ic208', 'ic2300', 'ic2720', 'ic2200', 'ic2730', 'ic2820', 'ic9x_ll', 'ic9x', 'ic9x_icf', 'icf', 'ic9x_icf_ll', 'icomciv', 'icp7', 'icq7', 'ict8', 'icv80', 'ict70', 'ict7h', 'icv86', 'id51', 'icx90', 'icw32', 'icx8x', 'id31', 'id5100', 'id51plus', 'id800', 'id880', 'idrp', 'kg935g', 'kguv8d', 'iradio_uv_5118', 'kenwood_hmk', 'kenwood_itm', 'kenwood_live', 'kguv8e', 'kyd', 'kguv8dplus', 'kguv920pa', 'kguv980p', 'kguv9dplus', 'lt725uv', 'kyd_IP620', 'leixen', 'mursv1', 'puxing', 'ap510', 'puxing_px888k', 'radioddity_r2', 'radtel_t18', 'retevis_rb15', 'retevis_rb17p', 'retevis_rb28', 'retevis_rt1', 'retevis_rt21', 'retevis_rt22', 'retevis_rt23', 'retevis_rt26', 'retevis_rt76p', 'retevis_rt87', 'retevis_rt98', '__init__', 'bjuv55', 'rh5r_v2', 'tdxone_tdq8a', 'template', 'tg_uv2p', 'th350', 'th7800', 'th9000', 'th9800', 'th_uv3r', 'th_uv3r25', 'th_uv8000', 'th_uv88', 'th_uvf8d', 'thd72', 'thd74', 'thuv1f', 'tk270', 'tk3140', 'tk760', 'tk760g', 'tk8102', 'tk8160', 'tk8180', 'tmd710', 'tmv71', 'tmv71_ll', 'ts2000', 'ts480', 'ts590', 'ts850', 'uv5r', 'uv5x3', 'uv6r', 'uvb5', 'vgc', 'vx170', 'vx2', 'vx3', 'vx5', 'vx510', 'vx6', 'vx7', 'vx8', 'vxa700', 'wouxun', 'wouxun_common', 'alinco_dr735t', 'baofeng_uv17', 'baofeng_uv17Pro', 'iradio_uv_5118plus', 'kenwood_d7', 'ksun_m6', 'mml_jc8810', 'radtel_rt490', 'retevis_ra87', 'uvk5', 'uvk5_egzumer', 'yaesu_clone', 'tdh8'] diff --git a/chirp/drivers/ga510.py b/chirp/drivers/ga510.py index e16385d..9e10102 100644 --- a/chirp/drivers/ga510.py +++ b/chirp/drivers/ga510.py @@ -35,6 +35,7 @@ LOG = logging.getLogger(__name__) DTCS_CODES = tuple(sorted(chirp_common.DTCS_CODES + (645,))) DTMFCHARS = '0123456789ABCD*#' +AIRBAND = (108000000, 136000000) def reset(radio): @@ -1046,6 +1047,33 @@ class Senhaix8800Radio(RadioddityGA510Radio): _mem_format = MODEL_SHX8800_FORMAT _magic = b'PROGROMSHXU' + def get_features(self): + rf = super().get_features() + rf.valid_bands = rf.valid_bands + [AIRBAND] + rf.valid_modes = rf.valid_modes + ['AM'] + return rf + + def get_memory(self, number): + m = super().get_memory(number) + if chirp_common.in_range(m.freq, [AIRBAND]): + m.mode = 'AM' + return m + + def validate_memory(self, mem): + msgs = [] + if chirp_common.in_range(mem.freq, [AIRBAND]): + if not mem.mode == 'AM': + msgs.append(chirp_common.ValidationWarning( + _('Frequency in this range requires AM mode'))) + if mem.duplex or mem.tmode: + msgs.append(chirp_common.ValidationError( + _('AM mode does not allow duplex or tone'))) + elif not chirp_common.in_range( + mem.freq, [AIRBAND]) and mem.mode == 'AM': + msgs.append(chirp_common.ValidationWarning( + _('Frequency in this range must not be AM mode'))) + return msgs + super().validate_memory(mem) + @directory.register class RadioddityGS5BRadio(Senhaix8800Radio): diff --git a/chirp/drivers/generic_csv.py b/chirp/drivers/generic_csv.py index 8275065..e19e4f8 100644 --- a/chirp/drivers/generic_csv.py +++ b/chirp/drivers/generic_csv.py @@ -218,6 +218,10 @@ class CSVRadio(chirp_common.FileBackedRadio): lineno += 1 if lineno == 1: header = line + for field in header: + # Log unknown header names for the UI to capture and expose + if field not in chirp_common.Memory.CSV_FORMAT: + LOG.error('Header line has unknown field %r' % field) self.file_has_rTone = "rToneFreq" in header self.file_has_cTone = "cToneFreq" in header continue @@ -348,7 +352,9 @@ def find_csv_header(filedata): filedata = filedata[1:] while filedata.startswith('#'): filedata = filedata[filedata.find('\n') + 1:] - return filedata.startswith('Location,') + delims = ['', '"', "'"] + return any([filedata.startswith('%sLocation%s,' % (d, d)) + for d in delims]) @directory.register diff --git a/chirp/drivers/retevis_rt21.py b/chirp/drivers/retevis_rt21.py index f946617..083b4e7 100644 --- a/chirp/drivers/retevis_rt21.py +++ b/chirp/drivers/retevis_rt21.py @@ -1928,6 +1928,12 @@ class RB26Radio(RT21Radio): @directory.register +class RB626(RB26Radio): + MODEL = 'RB626' + _gmrs = False + + +@directory.register class RT76Radio(RT21Radio): """RETEVIS RT76""" VENDOR = "Retevis" diff --git a/chirp/drivers/tdh8.py b/chirp/drivers/tdh8.py index 53a6af0..2dd4867 100644 --- a/chirp/drivers/tdh8.py +++ b/chirp/drivers/tdh8.py @@ -811,13 +811,6 @@ TD_H3 = b"\x50\x56\x4F\x4A\x48\x5C\x14" RT_730 = b"\x50\x47\x4F\x4A\x48\xC3\x44" -def in_range(freq, ranges): - for lo, hi in ranges: - if lo <= freq <= hi: - return True - return False - - def _do_status(radio, block): status = chirp_common.Status() status.msg = "Cloning" @@ -1259,9 +1252,9 @@ class TDH8(chirp_common.CloneModeRadio): FREQHOP_VALUES, FREQHOP_VALUES[_mem.freqhop])) mem.extra.append(rs) - if in_range(mem.freq, self._rxbands): + if chirp_common.in_range(mem.freq, self._rxbands): mem.duplex = 'off' - if in_range(mem.freq, [AIRBAND]): + if chirp_common.in_range(mem.freq, [AIRBAND]): mem.mode = 'AM' return mem @@ -1328,7 +1321,7 @@ class TDH8(chirp_common.CloneModeRadio): else: _mem.txfreq = mem.freq / 10 - if in_range(mem.freq, self._rxbands): + if chirp_common.in_range(mem.freq, self._rxbands): _mem.txfreq.fill_raw(b'\xFF') _mem.rxfreq = mem.freq / 10 @@ -2463,13 +2456,14 @@ class TDH8(chirp_common.CloneModeRadio): def validate_memory(self, mem): msgs = [] - if in_range(mem.freq, [AIRBAND]) and not mem.mode == 'AM': + if chirp_common.in_range(mem.freq, [AIRBAND]) and not mem.mode == 'AM': msgs.append(chirp_common.ValidationWarning( _('Frequency in this range requires AM mode'))) - if not in_range(mem.freq, [AIRBAND]) and mem.mode == 'AM': + if not chirp_common.in_range(mem.freq, [AIRBAND]) and mem.mode == 'AM': msgs.append(chirp_common.ValidationWarning( _('Frequency in this range must not be AM mode'))) - if not in_range(mem.freq, self._txbands) and mem.duplex != 'off': + if (not chirp_common.in_range(mem.freq, self._txbands) and + mem.duplex != 'off'): msgs.append(chirp_common.ValidationWarning( _('Frequency outside TX bands must be duplex=off'))) return msgs + super().validate_memory(mem) diff --git a/chirp/locale/es/LC_MESSAGES/CHIRP.mo b/chirp/locale/es/LC_MESSAGES/CHIRP.mo Binary files differindex 7da0bfb..b245bd3 100644 --- a/chirp/locale/es/LC_MESSAGES/CHIRP.mo +++ b/chirp/locale/es/LC_MESSAGES/CHIRP.mo diff --git a/chirp/wxui/bugreport.py b/chirp/wxui/bugreport.py index 33ad15a..6bd2e8e 100644 --- a/chirp/wxui/bugreport.py +++ b/chirp/wxui/bugreport.py @@ -422,6 +422,9 @@ class BugUpdateInfo(BugReportPage): _('(Describe what you expected to happen)'), '', _('(Describe what actually happened instead)'), + '', + _('(Has this ever worked before? New radio? ' + 'Does it work with OEM software?)'), ])) return len(self.details.GetValue()) > 10 diff --git a/chirp/wxui/common.py b/chirp/wxui/common.py index 33cce0e..e735a56 100644 --- a/chirp/wxui/common.py +++ b/chirp/wxui/common.py @@ -22,7 +22,6 @@ import os import platform import shutil import tempfile -import textwrap import threading import wx @@ -711,8 +710,51 @@ def temporary_debug_log(): return dst +class MultiErrorDialog(wx.Dialog): + def __init__(self, *args, **kw): + super().__init__(*args, **kw) + vbox = wx.BoxSizer(wx.VERTICAL) + self.SetSizer(vbox) + + self.choices = [] + self.choice_box = wx.ListBox(self) + vbox.Add(self.choice_box, border=10, proportion=0, + flag=wx.EXPAND | wx.ALL) + + self.message = wx.TextCtrl(self) + self.message.SetEditable(False) + vbox.Add(self.message, border=10, proportion=1, + flag=wx.EXPAND | wx.ALL) + + buttons = self.CreateButtonSizer(wx.OK) + vbox.Add(buttons, border=10, flag=wx.ALL) + + self.Bind(wx.EVT_BUTTON, self._button) + self.choice_box.Bind(wx.EVT_LISTBOX, self._selected) + + self.SetMinSize((600, 400)) + self.Fit() + self.Center() + + def _button(self, event): + self.EndModal(wx.ID_OK) + + def select(self, index): + error = self.choices[index] + self.message.SetValue('%s in %s:\n%s' % ( + error.levelname, error.module, error.getMessage())) + + def _selected(self, event): + self.select(event.GetInt()) + + def set_errors(self, errors): + self.choices = errors + self.choice_box.Set([x.getMessage() for x in self.choices]) + self.select(0) + + @contextlib.contextmanager -def expose_logs(level, root, label, maxlen=128): +def expose_logs(level, root, label, maxlen=128, parent=None): if not isinstance(root, tuple): root = (root,) @@ -725,9 +767,7 @@ def expose_logs(level, root, label, maxlen=128): lines = list(itertools.chain.from_iterable(x.get_history() for x in histories)) if lines: - msg = os.linesep.join(textwrap.shorten(x.getMessage(), maxlen) - for x in lines) - d = wx.MessageDialog( - None, str(msg), label, - style=wx.OK | wx.ICON_INFORMATION) + d = MultiErrorDialog(parent) + d.SetTitle(label) + d.set_errors(lines) d.ShowModal() diff --git a/chirp/wxui/main.py b/chirp/wxui/main.py index 81b481f..54bb91a 100644 --- a/chirp/wxui/main.py +++ b/chirp/wxui/main.py @@ -551,7 +551,8 @@ class ChirpMain(wx.Frame): self.enable_bugreport() CSVRadio = directory.get_radio('Generic_CSV') label = _('Driver messages') - with common.expose_logs(logging.WARNING, 'chirp.drivers', label): + with common.expose_logs(logging.WARNING, 'chirp.drivers', label, + parent=self): if exists: if not os.path.exists(filename): raise FileNotFoundError( @@ -1356,7 +1357,7 @@ class ChirpMain(wx.Frame): r = d.ShowModal() if r == wx.ID_YES: with common.expose_logs(logging.WARNING, 'chirp.drivers', - _('Import messages')): + _('Import messages'), parent=self): radio = directory.get_radio_by_image(filename) self.current_editorset.current_editor.memedit_import_all(radio) elif r == wx.ID_NO: @@ -5,7 +5,7 @@ setup(name='chirp', description='A cross-platform cross-radio programming tool', packages=find_packages(include=["chirp*"]), include_package_data=True, - version='20240901', + version='20240905', url='https://chirp.danplanet.com', python_requires=">=3.10,<4", install_requires=[ diff --git a/tests/__pycache__/__init__.cpython-310.pyc b/tests/__pycache__/__init__.cpython-310.pyc Binary files differindex dc57593..e42885a 100644 --- a/tests/__pycache__/__init__.cpython-310.pyc +++ b/tests/__pycache__/__init__.cpython-310.pyc diff --git a/tests/__pycache__/base.cpython-310.pyc b/tests/__pycache__/base.cpython-310.pyc Binary files differindex 403cbdf..e20be95 100644 --- a/tests/__pycache__/base.cpython-310.pyc +++ b/tests/__pycache__/base.cpython-310.pyc diff --git a/tests/__pycache__/conftest.cpython-310-pytest-7.1.3.pyc b/tests/__pycache__/conftest.cpython-310-pytest-7.1.3.pyc Binary files differindex 1223caf..03ae60d 100644 --- a/tests/__pycache__/conftest.cpython-310-pytest-7.1.3.pyc +++ b/tests/__pycache__/conftest.cpython-310-pytest-7.1.3.pyc diff --git a/tests/__pycache__/icom_clone_simulator.cpython-310.pyc b/tests/__pycache__/icom_clone_simulator.cpython-310.pyc Binary files differindex 2bc353b..da26a52 100644 --- a/tests/__pycache__/icom_clone_simulator.cpython-310.pyc +++ b/tests/__pycache__/icom_clone_simulator.cpython-310.pyc diff --git a/tests/__pycache__/test_banks.cpython-310-pytest-7.1.3.pyc b/tests/__pycache__/test_banks.cpython-310-pytest-7.1.3.pyc Binary files differindex e84bd22..e174c66 100644 --- a/tests/__pycache__/test_banks.cpython-310-pytest-7.1.3.pyc +++ b/tests/__pycache__/test_banks.cpython-310-pytest-7.1.3.pyc diff --git a/tests/__pycache__/test_brute_force.cpython-310-pytest-7.1.3.pyc b/tests/__pycache__/test_brute_force.cpython-310-pytest-7.1.3.pyc Binary files differindex ed36ab4..5691216 100644 --- a/tests/__pycache__/test_brute_force.cpython-310-pytest-7.1.3.pyc +++ b/tests/__pycache__/test_brute_force.cpython-310-pytest-7.1.3.pyc diff --git a/tests/__pycache__/test_clone.cpython-310-pytest-7.1.3.pyc b/tests/__pycache__/test_clone.cpython-310-pytest-7.1.3.pyc Binary files differindex dcdb9d9..e682551 100644 --- a/tests/__pycache__/test_clone.cpython-310-pytest-7.1.3.pyc +++ b/tests/__pycache__/test_clone.cpython-310-pytest-7.1.3.pyc diff --git a/tests/__pycache__/test_copy_all.cpython-310-pytest-7.1.3.pyc b/tests/__pycache__/test_copy_all.cpython-310-pytest-7.1.3.pyc Binary files differindex f2ced53..37bf8e0 100644 --- a/tests/__pycache__/test_copy_all.cpython-310-pytest-7.1.3.pyc +++ b/tests/__pycache__/test_copy_all.cpython-310-pytest-7.1.3.pyc diff --git a/tests/__pycache__/test_detect.cpython-310-pytest-7.1.3.pyc b/tests/__pycache__/test_detect.cpython-310-pytest-7.1.3.pyc Binary files differindex 44fbdbc..6b3ff8e 100644 --- a/tests/__pycache__/test_detect.cpython-310-pytest-7.1.3.pyc +++ b/tests/__pycache__/test_detect.cpython-310-pytest-7.1.3.pyc diff --git a/tests/__pycache__/test_drivers.cpython-310-pytest-7.1.3.pyc b/tests/__pycache__/test_drivers.cpython-310-pytest-7.1.3.pyc Binary files differindex fb953ba..282654d 100644 --- a/tests/__pycache__/test_drivers.cpython-310-pytest-7.1.3.pyc +++ b/tests/__pycache__/test_drivers.cpython-310-pytest-7.1.3.pyc diff --git a/tests/__pycache__/test_edges.cpython-310-pytest-7.1.3.pyc b/tests/__pycache__/test_edges.cpython-310-pytest-7.1.3.pyc Binary files differindex 50ab9fd..9de638f 100644 --- a/tests/__pycache__/test_edges.cpython-310-pytest-7.1.3.pyc +++ b/tests/__pycache__/test_edges.cpython-310-pytest-7.1.3.pyc diff --git a/tests/__pycache__/test_features.cpython-310-pytest-7.1.3.pyc b/tests/__pycache__/test_features.cpython-310-pytest-7.1.3.pyc Binary files differindex 27acc5e..7af8662 100644 --- a/tests/__pycache__/test_features.cpython-310-pytest-7.1.3.pyc +++ b/tests/__pycache__/test_features.cpython-310-pytest-7.1.3.pyc diff --git a/tests/__pycache__/test_settings.cpython-310-pytest-7.1.3.pyc b/tests/__pycache__/test_settings.cpython-310-pytest-7.1.3.pyc Binary files differindex 750bf2a..fc0c17c 100644 --- a/tests/__pycache__/test_settings.cpython-310-pytest-7.1.3.pyc +++ b/tests/__pycache__/test_settings.cpython-310-pytest-7.1.3.pyc diff --git a/tests/images/Generic_CSV.csv b/tests/images/Generic_CSV.csv index e50f849..a595c06 100644 --- a/tests/images/Generic_CSV.csv +++ b/tests/images/Generic_CSV.csv @@ -1,104 +1,96 @@ -Location,Name,Frequency,Duplex,Offset,Tone,rToneFreq,cToneFreq,DtcsCode,DtcsPolarity,Mode,TStep,Skip,Bank,Bank Index,URCALL,RPT1CALL,RPT2CALL -25,H-TAC1,443.100000,+,5.000000,DTCS,88.5,88.5,032,NN,FM,5.00,,,-1,,,, -26,H-TAC2,147.380000,+,0.600000,Tone,100.0,100.0,023,NN,FM,5.00,,,-1,,,, -27,H-TAC3,147.440000,,0.600000,Tone,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -28,H-TAC4,441.550000,+,5.000000,Tone,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -29,H-TAC5,442.925000,+,5.000000,Tone,107.2,107.2,023,NN,FM,5.00,,,-1,,,, -30,H-TAC6,443.350000,+,5.000000,Tone,156.7,156.7,023,NN,FM,5.00,,,-1,,,, -31,H-TAC7,442.825000,+,5.000000,,110.9,110.9,023,NN,FM,5.00,,,-1,,,, -50,ARESD1,147.320000,+,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -51,WAPRIR,146.900000,-,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -52,WAPRIS,147.400000,,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -53,WASECR,440.350000,+,5.000000,TSQL,127.3,127.3,023,NN,FM,5.00,,,-1,,,, -54,OEMNCS,145.330000,-,0.600000,Tone,186.2,186.2,023,NN,FM,5.00,,,-1,,,, -55,HEARTN,145.230000,-,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -56,CLACK,147.120000,+,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -57,CLATSP,146.660000,-,0.600000,Tone,118.8,118.8,023,NN,FM,5.00,,,-1,,,, -58,COLUMB,146.880000,-,0.600000,Tone,114.8,114.8,023,NN,FM,5.00,,,-1,,,, -59,TMOOK1,147.220000,+,0.600000,Tone,100.0,100.0,023,NN,FM,5.00,,,-1,,,, -60,TMOOK2,147.160000,+,0.600000,Tone,118.8,118.8,023,NN,FM,5.00,,,-1,,,, -61,TMOOK3,440.175000,+,5.000000,Tone,100.0,100.0,023,NN,FM,5.00,,,-1,,,, -62,TMOOK4,441.250000,+,5.000000,Tone,118.8,118.8,023,NN,FM,5.00,,,-1,,,, -63,MULTNM,146.840000,-,0.600000,Tone,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -64,CLARK,147.240000,+,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -65,ARC,146.980000,-,0.600000,Tone,123.0,123.0,023,NN,FM,5.00,,,-1,,,, -66,VERNIA,145.250000,-,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -80,WX1,162.400000,,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -81,WX2,162.425000,,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -82,WX3,162.450000,,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -83,WX4,162.475000,,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -84,WX5,162.500000,,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -85,WX6,162.525000,,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -86,WX7,162.550000,,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -88,CTAF,119.300000,,0.600000,,88.5,88.5,023,NN,AM,5.00,,,-1,,,, -89,ATIS,127.650000,,0.600000,,88.5,88.5,023,NN,AM,5.00,,,-1,,,, -90,GROUND,121.700000,,0.600000,,88.5,88.5,023,NN,AM,5.00,,,-1,,,, -91,TOWER,119.300000,,0.600000,,88.5,88.5,023,NN,AM,5.00,,,-1,,,, -92,UNICOM,122.950000,,0.600000,,88.5,88.5,023,NN,AM,5.00,,,-1,,,, -93,ACARS,131.550000,,0.600000,,88.5,88.5,023,NN,AM,5.00,,,-1,,,, -100,ICALL,851.012500,,0.600000,TSQL,88.5,156.7,023,NN,FM,12.50,,,-1,,,, -101,ITAC1,851.512500,,0.600000,TSQL,88.5,156.7,023,NN,FM,12.50,,,-1,,,, -102,ITAC2,852.012500,,0.600000,TSQL,88.5,156.7,023,NN,FM,12.50,,,-1,,,, -103,ITAC3,852.512500,,0.600000,TSQL,88.5,156.7,023,NN,FM,12.50,,,-1,,,, -104,ITAC4,853.012500,,0.600000,TSQL,88.5,156.7,023,NN,FM,12.50,,,-1,,,, -105,OROPS1,851.325000,,0.600000,TSQL,88.5,156.7,023,NN,FM,10.00,,,-1,,,, -106,OROPS2,851.387500,,0.600000,TSQL,88.5,156.7,023,NN,FM,12.50,,,-1,,,, -107,OROPS3,851.750000,,0.600000,TSQL,88.5,156.7,023,NN,FM,10.00,,,-1,,,, -108,OROPS4,851.775000,,0.600000,TSQL,88.5,156.7,023,NN,FM,10.00,,,-1,,,, -109,OROPS5,851.800000,,0.600000,TSQL,88.5,156.7,023,NN,FM,10.00,,,-1,,,, -110,WAOPS1,852.537500,,0.600000,TSQL,88.5,156.7,023,NN,FM,12.50,,,-1,,,, -111,WAOPS2,852.562500,,0.600000,TSQL,88.5,156.7,023,NN,FM,12.50,,,-1,,,, -112,WAOPS3,852.587500,,0.600000,TSQL,88.5,156.7,023,NN,FM,12.50,,,-1,,,, -113,WAOPS4,852.612500,,0.600000,TSQL,88.5,156.7,023,NN,FM,10.00,,,-1,,,, -114,WAOPS5,852.637500,,0.600000,TSQL,88.5,156.7,023,NN,FM,12.50,,,-1,,,, -115,UCAL40,453.212500,,0.600000,TSQL,88.5,156.7,023,NN,FM,12.50,,,-1,,,, -116,UTAC41,453.462500,,0.600000,TSQL,88.5,156.7,023,NN,FM,12.50,,,-1,,,, -117,UTAC42,453.712500,,0.600000,TSQL,88.5,156.7,023,NN,FM,12.50,,,-1,,,, -118,UTAC43,453.862500,,0.600000,TSQL,88.5,156.7,023,NN,FM,12.50,,,-1,,,, -119,ISIMP1,853.437500,,0.600000,DTCS,88.5,88.5,074,NN,FM,12.50,,,-1,,,, -120,ISIMP2,851.037500,,0.600000,DTCS,88.5,88.5,114,NN,FM,12.50,,,-1,,,, -121,ISIMP3,851.950000,,0.600000,DTCS,88.5,88.5,131,NN,FM,10.00,,,-1,,,, -122,ISIMP4,851.175000,,0.600000,DTCS,88.5,88.5,023,NN,FM,10.00,,,-1,,,, -123,MAYDAY,853.387500,,0.600000,DTCS,88.5,88.5,025,NN,FM,12.50,,,-1,,,, -124,VCALL,155.750000,,0.600000,TSQL,88.5,156.7,023,NN,FM,5.00,,,-1,,,, -125,VTAC11,151.137500,,0.600000,TSQL,88.5,156.7,023,NN,FM,12.50,,,-1,,,, -126,VTAC12,154.452500,,0.600000,TSQL,88.5,156.7,023,NN,FM,12.50,,,-1,,,, -127,VTAC13,158.737500,,0.600000,TSQL,88.5,156.7,023,NN,FM,12.50,,,-1,,,, -128,VTAC14,159.472500,,0.600000,TSQL,88.5,156.7,023,NN,FM,12.50,,,-1,,,, -129,WCCCA1,860.737500,,0.600000,,88.5,88.5,023,NN,FM,12.50,,,-1,,,, -130,WCCCA2,860.237500,,0.600000,,88.5,88.5,023,NN,FM,12.50,,,-1,,,, -131,WCCCA3,859.737500,,0.600000,,88.5,88.5,023,NN,FM,12.50,,,-1,,,, -132,WCCCA4,859.737500,,0.600000,,88.5,88.5,023,NN,FM,12.50,,,-1,,,, -133,WCCCA5,858.237500,,0.600000,,88.5,88.5,023,NN,FM,12.50,,,-1,,,, -134,WCCCA6,857.237500,,0.600000,,88.5,88.5,023,NN,FM,12.50,,,-1,,,, -135,WCCCA7,856.237500,,0.600000,,88.5,88.5,023,NN,FM,12.50,,,-1,,,, -136,WCCCA8,855.962500,,0.600000,,88.5,88.5,023,NN,FM,12.50,,,-1,,,, -137,WCCCA9,855.237500,,0.600000,,88.5,88.5,023,NN,FM,12.50,,,-1,,,, -138,WCCCA0,854.987500,,0.600000,,88.5,88.5,023,NN,FM,12.50,,,-1,,,, -139,OR SAR,155.805000,,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -140,OPEN,155.475000,,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -141,OSPTAC,156.030000,,0.600000,TSQL,88.5,156.7,023,NN,FM,5.00,,,-1,,,, -142,OSPD1A,154.935000,,0.600000,TSQL,88.5,179.9,023,NN,FM,5.00,,,-1,,,, -143,OSPD1B,156.225000,,0.600000,TSQL,88.5,179.9,023,NN,FM,5.00,,,-1,,,, -144,OSPD1C,154.905000,,0.600000,TSQL,88.5,179.9,023,NN,FM,5.00,,,-1,,,, -145,OSPD1D,156.150000,,0.600000,TSQL,88.5,179.9,023,NN,FM,5.00,,,-1,,,, -146,OSPD6A,153.935000,,0.600000,TSQL,88.5,156.7,023,NN,FM,5.00,,,-1,,,, -147,OSPD6B,154.785000,,0.600000,TSQL,88.5,156.7,023,NN,FM,5.00,,,-1,,,, -148,OSPD6C,154.860000,,0.600000,TSQL,88.5,131.8,023,NN,FM,5.00,,,-1,,,, -149,OSPD6D,155.910000,,0.600000,TSQL,88.5,131.8,023,NN,FM,5.00,,,-1,,,, -150,WASP,155.370000,,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -151,CHP,156.075000,,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -152,ODFW,158.895000,,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -153,SARINTOP,158.905000,,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -160,H-DS1,147.550000,,0.600000,,88.5,88.5,023,NN,DV,5.00,,,-1,CQCQCQ,,,0 -161,H-DS2,147.580000,,0.600000,,88.5,88.5,023,NN,DV,5.00,,,-1,CQCQCQ,,,0 -162,H-DS3,446.300000,,5.000000,,88.5,88.5,023,NN,DV,5.00,,,-1,CQCQCQ,,,0 -163,H-DS4,446.400000,,5.000000,,88.5,88.5,023,NN,DV,5.00,,,-1,CQCQCQ,,,0 -164,H-DS5,1294.100000,,0.600000,,88.5,88.5,023,NN,DV,5.00,,,-1,CQCQCQ,,,0 -165,H-DS6,441.637500,+,5.000000,,88.5,88.5,023,NN,DV,12.50,,,-1,CQCQCQ,,,0 -166,H-DS7,440.550000,+,5.000000,,88.5,88.5,023,NN,DV,5.00,,,-1,CQCQCQ,,,0 -167,H-DS8,444.262500,+,5.000000,,88.5,88.5,023,NN,DV,12.50,,,-1,CQCQCQ,,,0 -168,HPAGE,145.550000,,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -169,APRS,144.390000,,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -170,H-DAT1,145.550000,,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, -171,H-DAT2,145.070000,,0.600000,,88.5,88.5,023,NN,FM,5.00,,,-1,,,, +Location,Name,Frequency,Duplex,Offset,Tone,rToneFreq,cToneFreq,DtcsCode,DtcsPolarity,RxDtcsCode,CrossMode,Mode,TStep,Skip,Power,Comment,URCALL,RPT1CALL,RPT2CALL,DVCODE
+25,H-TAC1,443.100000,+,5.000000,DTCS,88.5,88.5,032,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+26,H-TAC2,147.380000,+,0.600000,Tone,100.0,100.0,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+27,H-TAC3,147.440000,,0.600000,Tone,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+28,H-TAC4,441.550000,+,5.000000,Tone,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+29,H-TAC5,442.925000,+,5.000000,Tone,107.2,107.2,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+30,H-TAC6,443.350000,+,5.000000,Tone,156.7,156.7,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+31,H-TAC7,442.825000,+,5.000000,,110.9,110.9,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+50,ARESD1,147.320000,+,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+51,WAPRIR,146.900000,-,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+52,WAPRIS,147.400000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+53,WASECR,440.350000,+,5.000000,TSQL,127.3,127.3,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+54,OEMNCS,145.330000,-,0.600000,Tone,186.2,186.2,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+55,HEARTN,145.230000,-,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+56,CLACK,147.120000,+,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+57,CLATSP,146.660000,-,0.600000,Tone,118.8,118.8,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+58,COLUMB,146.880000,-,0.600000,Tone,114.8,114.8,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+59,TMOOK1,147.220000,+,0.600000,Tone,100.0,100.0,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+60,TMOOK2,147.160000,+,0.600000,Tone,118.8,118.8,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+61,TMOOK3,440.175000,+,5.000000,Tone,100.0,100.0,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+62,TMOOK4,441.250000,+,5.000000,Tone,118.8,118.8,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+63,MULTNM,146.840000,-,0.600000,Tone,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+64,CLARK,147.240000,+,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+65,ARC,146.980000,-,0.600000,Tone,123.0,123.0,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+66,VERNIA,145.250000,-,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+80,WX1,162.400000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+81,WX2,162.425000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+82,WX3,162.450000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+83,WX4,162.475000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+84,WX5,162.500000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+85,WX6,162.525000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+86,WX7,162.550000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+88,CTAF,119.300000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,AM,5.00,,50W,,,,,
+89,ATIS,127.650000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,AM,5.00,,50W,,,,,
+90,GROUND,121.700000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,AM,5.00,,50W,,,,,
+91,TOWER,119.300000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,AM,5.00,,50W,,,,,
+92,UNICOM,122.950000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,AM,5.00,,50W,,,,,
+93,ACARS,131.550000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,AM,5.00,,50W,,,,,
+100,ICALL,851.012500,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+101,ITAC1,851.512500,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+102,ITAC2,852.012500,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+103,ITAC3,852.512500,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+104,ITAC4,853.012500,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+105,OROPS1,851.325000,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,10.00,,50W,,,,,
+106,OROPS2,851.387500,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+107,OROPS3,851.750000,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,10.00,,50W,,,,,
+108,OROPS4,851.775000,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,10.00,,50W,,,,,
+109,OROPS5,851.800000,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,10.00,,50W,,,,,
+110,WAOPS1,852.537500,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+111,WAOPS2,852.562500,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+112,WAOPS3,852.587500,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+113,WAOPS4,852.612500,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,10.00,,50W,,,,,
+114,WAOPS5,852.637500,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+115,UCAL40,453.212500,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+116,UTAC41,453.462500,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+117,UTAC42,453.712500,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+118,UTAC43,453.862500,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+119,ISIMP1,853.437500,,0.600000,DTCS,88.5,88.5,074,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+120,ISIMP2,851.037500,,0.600000,DTCS,88.5,88.5,114,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+121,ISIMP3,851.950000,,0.600000,DTCS,88.5,88.5,131,NN,023,Tone->Tone,FM,10.00,,50W,,,,,
+122,ISIMP4,851.175000,,0.600000,DTCS,88.5,88.5,023,NN,023,Tone->Tone,FM,10.00,,50W,,,,,
+123,MAYDAY,853.387500,,0.600000,DTCS,88.5,88.5,025,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+124,VCALL,155.750000,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+125,VTAC11,151.137500,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+126,VTAC12,154.452500,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+127,VTAC13,158.737500,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+128,VTAC14,159.472500,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+129,WCCCA1,860.737500,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+130,WCCCA2,860.237500,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+131,WCCCA3,859.737500,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+132,WCCCA4,859.737500,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+133,WCCCA5,858.237500,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+134,WCCCA6,857.237500,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+135,WCCCA7,856.237500,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+136,WCCCA8,855.962500,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+137,WCCCA9,855.237500,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+138,WCCCA0,854.987500,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,12.50,,50W,,,,,
+139,OR SAR,155.805000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+140,OPEN,155.475000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+141,OSPTAC,156.030000,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+142,OSPD1A,154.935000,,0.600000,TSQL,88.5,179.9,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+143,OSPD1B,156.225000,,0.600000,TSQL,88.5,179.9,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+144,OSPD1C,154.905000,,0.600000,TSQL,88.5,179.9,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+145,OSPD1D,156.150000,,0.600000,TSQL,88.5,179.9,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+146,OSPD6A,153.935000,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+147,OSPD6B,154.785000,,0.600000,TSQL,88.5,156.7,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+148,OSPD6C,154.860000,,0.600000,TSQL,88.5,131.8,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+149,OSPD6D,155.910000,,0.600000,TSQL,88.5,131.8,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+150,WASP,155.370000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+151,CHP,156.075000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+152,ODFW,158.895000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+153,SARINTOP,158.905000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+168,HPAGE,145.550000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+169,APRS,144.390000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+170,H-DAT1,145.550000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
+171,H-DAT2,145.070000,,0.600000,,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,,,,,
diff --git a/tests/unit/__pycache__/base.cpython-310.pyc b/tests/unit/__pycache__/base.cpython-310.pyc Binary files differindex 7e057c8..6e638c8 100644 --- a/tests/unit/__pycache__/base.cpython-310.pyc +++ b/tests/unit/__pycache__/base.cpython-310.pyc diff --git a/tests/unit/__pycache__/test_alinco_clone.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_alinco_clone.cpython-310-pytest-7.1.3.pyc Binary files differindex 0918255..47581de 100644 --- a/tests/unit/__pycache__/test_alinco_clone.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_alinco_clone.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/__pycache__/test_bandplan.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_bandplan.cpython-310-pytest-7.1.3.pyc Binary files differindex c20481f..e57e2ef 100644 --- a/tests/unit/__pycache__/test_bandplan.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_bandplan.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/__pycache__/test_baofeng_fmradio.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_baofeng_fmradio.cpython-310-pytest-7.1.3.pyc Binary files differindex dab22da..7e57ca2 100644 --- a/tests/unit/__pycache__/test_baofeng_fmradio.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_baofeng_fmradio.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/__pycache__/test_bitwise.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_bitwise.cpython-310-pytest-7.1.3.pyc Binary files differindex 5bc6724..034ba6b 100644 --- a/tests/unit/__pycache__/test_bitwise.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_bitwise.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/__pycache__/test_chirp_common.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_chirp_common.cpython-310-pytest-7.1.3.pyc Binary files differindex 8c2ec1f..b00f0d3 100644 --- a/tests/unit/__pycache__/test_chirp_common.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_chirp_common.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/__pycache__/test_csv.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_csv.cpython-310-pytest-7.1.3.pyc Binary files differindex 5111a88..69b0838 100644 --- a/tests/unit/__pycache__/test_csv.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_csv.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/__pycache__/test_directory.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_directory.cpython-310-pytest-7.1.3.pyc Binary files differindex ab192ec..23d774d 100644 --- a/tests/unit/__pycache__/test_directory.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_directory.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/__pycache__/test_icf.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_icf.cpython-310-pytest-7.1.3.pyc Binary files differindex a379572..0dfebcf 100644 --- a/tests/unit/__pycache__/test_icf.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_icf.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/__pycache__/test_icom_clone.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_icom_clone.cpython-310-pytest-7.1.3.pyc Binary files differindex b0b5ac7..8decb63 100644 --- a/tests/unit/__pycache__/test_icom_clone.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_icom_clone.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/__pycache__/test_import_logic.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_import_logic.cpython-310-pytest-7.1.3.pyc Binary files differindex a55b0ae..7c7c6ac 100644 --- a/tests/unit/__pycache__/test_import_logic.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_import_logic.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/__pycache__/test_kguv8d.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_kguv8d.cpython-310-pytest-7.1.3.pyc Binary files differindex 8455be2..e2a8d7c 100644 --- a/tests/unit/__pycache__/test_kguv8d.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_kguv8d.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/__pycache__/test_logger.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_logger.cpython-310-pytest-7.1.3.pyc Binary files differindex b87c99b..e41932c 100644 --- a/tests/unit/__pycache__/test_logger.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_logger.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/__pycache__/test_network_sources.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_network_sources.cpython-310-pytest-7.1.3.pyc Binary files differindex e155b02..33dec47 100644 --- a/tests/unit/__pycache__/test_network_sources.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_network_sources.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/__pycache__/test_repeaterbook.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_repeaterbook.cpython-310-pytest-7.1.3.pyc Binary files differindex e95c8e9..6b4d5c6 100644 --- a/tests/unit/__pycache__/test_repeaterbook.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_repeaterbook.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/__pycache__/test_settings.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_settings.cpython-310-pytest-7.1.3.pyc Binary files differindex e23a545..c1325eb 100644 --- a/tests/unit/__pycache__/test_settings.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_settings.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/__pycache__/test_th9800.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_th9800.cpython-310-pytest-7.1.3.pyc Binary files differindex 389481c..8afed38 100644 --- a/tests/unit/__pycache__/test_th9800.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_th9800.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/__pycache__/test_wxui_radiothread.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_wxui_radiothread.cpython-310-pytest-7.1.3.pyc Binary files differindex a0eecfe..898259a 100644 --- a/tests/unit/__pycache__/test_wxui_radiothread.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_wxui_radiothread.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/__pycache__/test_yaesu_clone.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_yaesu_clone.cpython-310-pytest-7.1.3.pyc Binary files differindex c904f2b..79c5233 100644 --- a/tests/unit/__pycache__/test_yaesu_clone.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_yaesu_clone.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/test_csv.py b/tests/unit/test_csv.py index 4f1980b..60ee8cc 100644 --- a/tests/unit/test_csv.py +++ b/tests/unit/test_csv.py @@ -23,6 +23,11 @@ CHIRP_CSV_MODERN = ( 0,Nat Simplex,146.520000,,0.600000,TSQL,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,This is the national calling frequency on 2m,,,, 1,National Simp,446.000000,-,5.000000,DTCS,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,5.0W,This is NOT the UHF calling frequency,,,, """) # noqa +CHIRP_CSV_MODERN_QUOTED_HEADER = ( + """"Location","Name","Frequency","Duplex","Offset","Tone","rToneFreq","cToneFreq","DtcsCode","DtcsPolarity","RxDtcsCode","CrossMode","Mode","TStep","Skip","Power","Comment","URCALL","RPT1CALL","RPT2CALL","DVCODE" +0,Nat Simplex,146.520000,,0.600000,TSQL,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,50W,This is the national calling frequency on 2m,,,, +1,"National Simp",446.000000,-,5.000000,DTCS,88.5,88.5,023,NN,023,Tone->Tone,FM,5.00,,5.0W,This is NOT the UHF calling frequency,,,, +""") # noqa class TestCSV(unittest.TestCase): @@ -55,9 +60,9 @@ class TestCSV(unittest.TestCase): self.assertEqual('NFM', mem.mode) self.assertEqual(12.5, mem.tuning_step) - def test_parse_modern(self, output_encoding='utf-8'): + def test_parse_modern(self, output_encoding='utf-8', data=None): with open(self.testfn, 'w', encoding=output_encoding) as f: - f.write(CHIRP_CSV_MODERN) + f.write(data or CHIRP_CSV_MODERN) # Make sure we detect the file with open(self.testfn, 'rb') as f: self.assertTrue(generic_csv.CSVRadio.match_model( @@ -79,8 +84,8 @@ class TestCSV(unittest.TestCase): self.assertEqual('5.0W', str(mem.power)) self.assertIn('UHF calling', mem.comment) - def test_csv_with_comments(self, output_encoding='utf-8'): - lines = list(CHIRP_CSV_MODERN.strip().split('\n')) + def _test_csv_with_comments(self, data, output_encoding='utf-8'): + lines = list(data.strip().split('\n')) lines.insert(0, '# This is a comment') lines.insert(0, '# Test file with comments') lines.insert(4, '# Test comment in the middle') @@ -99,7 +104,21 @@ class TestCSV(unittest.TestCase): csv.save(self.testfn) with open(self.testfn, 'r') as f: read_lines = [x.strip() for x in f.readlines()] - self.assertEqual(lines, read_lines) + # Ignore quotes + self.assertEqual([x.replace('"', '') for x in lines], read_lines) + + def test_csv_with_comments(self): + self._test_csv_with_comments(CHIRP_CSV_MODERN) + + def test_csv_with_comments_quoted_header(self): + self._test_csv_with_comments(CHIRP_CSV_MODERN_QUOTED_HEADER) + + def test_parse_modern_quoted_header(self): + self.test_parse_modern(data=CHIRP_CSV_MODERN_QUOTED_HEADER) + + def test_parse_modern_quoted_header_bom(self): + self.test_parse_modern(output_encoding='utf-8-sig', + data=CHIRP_CSV_MODERN_QUOTED_HEADER) def test_parse_modern_bom(self): self.test_parse_modern(output_encoding='utf-8-sig') |
