[chirp_devel] [PATCH 1 of 1] Support for 817ND and 857 US versions

Marco Filippi IZ3GME
Mon Jan 30 10:41:41 PST 2012


# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1327946315 -3600
# Node ID 1d2d9fa00fa9c84e34286522128200db5bb104fd
# Parent  7dc7f8c705a2a546c9ea1a6a701914f7e8699e0c
Support for 817ND and 857 US versions

diff -r 7dc7f8c705a2 -r 1d2d9fa00fa9 chirp/directory.py
--- a/chirp/directory.py	Tue Jan 24 17:57:38 2012 +0100
+++ b/chirp/directory.py	Mon Jan 30 18:58:35 2012 +0100
@@ -60,7 +60,9 @@
     "ft60"           : ft60.FT60Radio,
     "ft817"          : ft817.FT817Radio,
     "ft817nd"        : ft817.FT817NDRadio,
+    "ft817nd-us"     : ft817.FT817ND_US_Radio,
     "ft857"          : ft857.FT857Radio,
+    "ft857-us"          : ft857.FT857_US_Radio,
 
     # Kenwood
     "thd7"           : kenwood_live.THD7Radio,
diff -r 7dc7f8c705a2 -r 1d2d9fa00fa9 chirp/ft817.py
--- a/chirp/ft817.py	Tue Jan 24 17:57:38 2012 +0100
+++ b/chirp/ft817.py	Mon Jan 30 18:58:35 2012 +0100
@@ -351,10 +351,20 @@
         return len(filedata) == cls._memsize
 
 class FT817NDRadio(FT817Radio):
-    MODEL = "FT-817ND"
+    MODEL = "FT-817ND (Intl versions)"
 
     _model = ""
     _memsize = 6521
     # block 9 (130 Bytes long) is to be repeted 40 times
     _block_lengths = [ 2, 40, 208, 182, 208, 182, 198, 53, 130, 118, 130]
 
+class FT817ND_US_Radio(FT817Radio):
+    # seems that radios configured for 5MHz operations send one paket more than others
+    # so we have to distinguish sub models
+    MODEL = "FT-817ND (US Version)"
+
+    _model = ""
+    _memsize = 6651
+    # block 9 (130 Bytes long) is to be repeted 40 times
+    _block_lengths = [ 2, 40, 208, 182, 208, 182, 198, 53, 130, 118, 130, 130]
+
diff -r 7dc7f8c705a2 -r 1d2d9fa00fa9 chirp/ft857.py
--- a/chirp/ft857.py	Tue Jan 24 17:57:38 2012 +0100
+++ b/chirp/ft857.py	Mon Jan 30 18:58:35 2012 +0100
@@ -136,4 +136,15 @@
     def process_mmap(self):
         self._memobj = bitwise.parse(mem_format, self._mmap)
 
+class FT857_US_Radio(FT857Radio):
+    # seems that radios configured for 5MHz operations send one paket more than others
+    # so we have to distinguish sub models
+    MODEL = "FT-857 (US Version)"
 
+    _model = ""
+    _memsize = 7181
+    # block 9 (140 Bytes long) is to be repeted 40 times 
+    # should be 42 times but this way I cam use original 817 functions
+    _block_lengths = [ 2, 82, 252, 196, 252, 196, 212, 55, 140, 140, 140, 38, 176, 140]
+
+



More information about the chirp_devel mailing list