# HG changeset patch # User Pavel Milanes (CO7WT) co7wt@frcuba.co.cu # Date 1456974338 18000 # Wed Mar 02 22:05:38 2016 -0500 # Node ID c09f292e602a01962fd77667d99610eefee91f82 # Parent 0fbaf1e42126e7d789daadf6b0ddb7f165bf5db4 [TK-760] Extended sub-band edges to cover ham bands, fixes #3139
Extend the sub-band edges to cover ham bands in VHF/UHF This mod is extendend and tested here in Cuba (the factory software allow it)
73
diff -r 0fbaf1e42126 -r c09f292e602a chirp/drivers/tk760.py --- a/chirp/drivers/tk760.py Wed Mar 02 21:35:18 2016 -0500 +++ b/chirp/drivers/tk760.py Wed Mar 02 22:05:38 2016 -0500 @@ -201,6 +201,10 @@ LOG.debug("Sending MAGIC") exito = False
+ # it appears that some buggy interfaces/serial devices keep sending + # data in the RX line, we will try to catch this garbage here + devnull = rawrecv(radio, 256) + for i in range(0, 5): LOG.debug("Try %i" % i) for i in range(0, len(magic)): @@ -245,10 +249,6 @@ LOG.debug("Full ident string is:") LOG.debug(util.hexprint(ident))
- # this is needed, I don't know why, yet - send(radio, make_frame("W", 0x03e1, "\xff\x01" + "\xff" * 6)) - handshake(radio, "Comm error after setup", True) -
def do_download(radio): """This is your download function""" @@ -337,7 +337,7 @@ class Kenwood_M60_Radio(chirp_common.CloneModeRadio): """Kenwood Mobile Family 60 Radios""" VENDOR = "Kenwood" - _range = [350000000, 500000000] # don't mind, it will be overited + _range = [136000000, 500000000] # don't mind, it will be overited _upper = 32 VARIANT = "" MODEL = "" @@ -644,8 +644,8 @@ elif mem.duplex == "-": _mem.txfreq = (mem.freq - mem.offset) / 10 elif mem.duplex == "off": - for i in range(0, 4): - _mem.txfreq[i].set_raw("\xFF") + for byte in _mem.txfreq: + byte.set_raw("\xFF") else: _mem.txfreq = mem.freq / 10
@@ -815,7 +815,7 @@ TYPE = "M0760" VARIANTS = { "M0760\x01\x00\x00": (32, 136, 156, "K2"), - "M0760\x00\x00\x00": (32, 148, 174, "K") + "M0760\x00\x00\x00": (32, 144, 174, "K") # 148-147 Original }
@@ -826,7 +826,7 @@ TYPE = "M0762" VARIANTS = { "M0762\x01\x00\x00": (2, 136, 156, "K2"), - "M0762\x00\x00\x00": (2, 148, 174, "K") + "M0762\x00\x00\x00": (2, 144, 174, "K") # 148-147 Original }
@@ -837,7 +837,7 @@ TYPE = "M0768" VARIANTS = { "M0768\x21\x00\x00": (32, 136, 156, "K2"), - "M0768\x20\x00\x00": (32, 148, 174, "K") + "M0768\x20\x00\x00": (32, 144, 174, "K") # 148-147 Original }
@@ -847,7 +847,7 @@ MODEL = "TK-860" TYPE = "M0860" VARIANTS = { - "M0860\x05\x00\x00": (32, 406, 430, "F4"), + "M0860\x05\x00\x00": (32, 406, 440, "F4"), # 406-430 Original "M0860\x04\x00\x00": (32, 488, 512, "F3"), "M0860\x03\x00\x00": (32, 470, 496, "F2"), "M0860\x02\x00\x00": (32, 450, 476, "F1") @@ -860,7 +860,7 @@ MODEL = "TK-862" TYPE = "M0862" VARIANTS = { - "M0862\x05\x00\x00": (2, 406, 430, "F4"), + "M0862\x05\x00\x00": (2, 406, 440, "F4"), # 406-430 Original "M0862\x04\x00\x00": (2, 488, 512, "F3"), "M0862\x03\x00\x00": (2, 470, 496, "F2"), "M0862\x02\x00\x00": (2, 450, 476, "F1") @@ -873,7 +873,7 @@ MODEL = "TK-868" TYPE = "M0868" VARIANTS = { - "M0868\x25\x00\x00": (32, 406, 430, "F4"), + "M0868\x25\x00\x00": (32, 406, 440, "F4"), # 406-430 Original "M0868\x24\x00\x00": (32, 488, 512, "F3"), "M0868\x23\x00\x00": (32, 470, 496, "F2"), "M0868\x22\x00\x00": (32, 450, 476, "F1")