[chirp_devel] [PATCH] [TK-270] Allow programming Kenwood commercial radios up to 10 MHz out of band. #4709
# HG changeset patch # User Tom Hayward tom@tomh.us # Date 1492129341 25200 # Thu Apr 13 17:22:21 2017 -0700 # Node ID 791293b5a0101a7be61cafdc1b41cdd0a431cfd8 # Parent 0019ce490c8e92b4099393a4c83c3f4e3c11d10a [TK-270] Allow programming Kenwood commercial radios up to 10 MHz out of band. #4709
diff -r 0019ce490c8e -r 791293b5a010 chirp/drivers/tk270.py --- a/chirp/drivers/tk270.py Thu Apr 13 17:13:38 2017 -0700 +++ b/chirp/drivers/tk270.py Thu Apr 13 17:22:21 2017 -0700 @@ -413,17 +413,12 @@ # indentify the radio variant and set the enviroment to it's values try: self._upper, low, high, self._kind = self.VARIANTS[rid] - self._range = [low * 1000000, high * 1000000] + self._range = [(low - 10) * 1000000, (high + 10) * 1000000]
# put the VARIANT in the class, clean the model / CHs / Type # in the same layout as the KPG program - self._VARIANT = self.MODEL + " [" + str(self._upper) + "CH]: " - self._VARIANT += self._kind + ", " - self._VARIANT += str(self._range[0]/1000000) + "-" - self._VARIANT += str(self._range[1]/1000000) + " Mhz" - - # DEBUG - #print self._VARIANT + self._VARIANT = "%s [%dCH]: %s, %d-%d Mhz" % ( + self.MODEL, self._upper, self._kind, low, high)
except KeyError: LOG.debug("Wrong Kenwood radio, ID or unknown variant")
Hi and Sorry,
I was offline at home in bed by medical prescription due to back pain, I'm back now.
This patch joint with the reset of the ham modified limits for all radios can do the trick, Dan, you have green light from me to apply to this patch!
This is a clever/simple solution that can be extended to the other commercial kenwood radios.
I will work in patching the rest of the commercial kenwoods trough the week.
73 Pavel CO7WT.
El 13/04/17 a las 20:22, Tom Hayward via chirp_devel escribió:
# HG changeset patch # User Tom Hayward tom@tomh.us # Date 1492129341 25200 # Thu Apr 13 17:22:21 2017 -0700 # Node ID 791293b5a0101a7be61cafdc1b41cdd0a431cfd8 # Parent 0019ce490c8e92b4099393a4c83c3f4e3c11d10a [TK-270] Allow programming Kenwood commercial radios up to 10 MHz out of band. #4709
diff -r 0019ce490c8e -r 791293b5a010 chirp/drivers/tk270.py --- a/chirp/drivers/tk270.py Thu Apr 13 17:13:38 2017 -0700 +++ b/chirp/drivers/tk270.py Thu Apr 13 17:22:21 2017 -0700 @@ -413,17 +413,12 @@ # indentify the radio variant and set the enviroment to it's values try: self._upper, low, high, self._kind = self.VARIANTS[rid]
self._range = [low * 1000000, high * 1000000]
self._range = [(low - 10) * 1000000, (high + 10) * 1000000] # put the VARIANT in the class, clean the model / CHs / Type # in the same layout as the KPG program
self._VARIANT = self.MODEL + " [" + str(self._upper) + "CH]: "
self._VARIANT += self._kind + ", "
self._VARIANT += str(self._range[0]/1000000) + "-"
self._VARIANT += str(self._range[1]/1000000) + " Mhz"
# DEBUG
#print self._VARIANT
self._VARIANT = "%s [%dCH]: %s, %d-%d Mhz" % (
self.MODEL, self._upper, self._kind, low, high) except KeyError: LOG.debug("Wrong Kenwood radio, ID or unknown variant")
chirp_devel mailing list chirp_devel@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_devel Developer docs: http://chirp.danplanet.com/projects/chirp/wiki/Developers
On Mon, Apr 24, 2017 at 7:09 AM, Pavel Milanes Costa pavelmc@gmail.com wrote:
Hi and Sorry,
I was offline at home in bed by medical prescription due to back pain, I'm back now.
This patch joint with the reset of the ham modified limits for all radios can do the trick, Dan, you have green light from me to apply to this patch!
This is a clever/simple solution that can be extended to the other commercial kenwood radios.
I will work in patching the rest of the commercial kenwoods trough the week.
self._range = [(low - 10) * 1000000, (high + 10) * 1000000]
Hmm, before applying this to all Kenwood radios, would it be better to make it percentage based?
450 - 10 = 440 450 * .975 = 438.75 148 - 10 = 138 (big difference!) 148 * .975 = 144.30
Tom
El 24/04/17 a las 12:24, Tom Hayward escribió:
self._range = [(low - 10) * 1000000, (high + 10) * 1000000]
Hmm, before applying this to all Kenwood radios, would it be better to make it percentage based?
450 - 10 = 440 450 * .975 = 438.75 148 - 10 = 138 (big difference!) 148 * .975 = 144.30
Tom
You are right, tonight I will re-check the "safe" values in the other drivers to come up with real % values we can use and create patches for that for all comercial kenwoods in this series.
This will preserve de original OEM range in the ident string and will allow a safe span of tuning either way, a note to the users will no harm either...
I will come up with patches tomorrow, now back to work!
73 de Pavel CO7WT.
participants (2)
-
Pavel Milanes Costa
-
Tom Hayward