[chirp_devel] [PATCH] [UV-5R] Add support for Baofeng UV-6 with different 'ident'

Jim Unroe
Thu Sep 4 19:04:45 PDT 2014


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1409882511 14400
# Node ID 60816c0e5103d3c817d52cc946125fdfa5367a47
# Parent  facf7dacf48dc009bf257f41d68fb8f94f6c1055
[UV-5R] Add support for Baofeng UV-6 with different 'ident'

add new UV-6 'ident'

update UV-6 class '_idents' to include the new 'ident'

Related to #1707

diff -r facf7dacf48d -r 60816c0e5103 chirp/uv5r.py
--- a/chirp/uv5r.py	Sat Aug 23 18:16:40 2014 -0400
+++ b/chirp/uv5r.py	Thu Sep 04 22:01:51 2014 -0400
@@ -350,6 +350,7 @@
 UV5R_MODEL_F11  = "\x50\xBB\xFF\x13\xA1\x11\xDD"
 UV5R_MODEL_UV82 = "\x50\xBB\xFF\x20\x13\x01\x05"
 UV5R_MODEL_UV6  = "\x50\xBB\xFF\x20\x12\x08\x23"
+UV5R_MODEL_UV6_ORIG  = "\x50\xBB\xFF\x12\x03\x98\x4D"
 
 def _upper_band_from_data(data):
     return data[0x03:0x04]
@@ -1573,7 +1574,9 @@
     VENDOR = "Baofeng"
     MODEL = "UV-6"
     _basetype = BASETYPE_UV6
-    _idents = [UV5R_MODEL_UV6]
+    _idents = [UV5R_MODEL_UV6,
+               UV5R_MODEL_UV6_ORIG
+               ]
 
     def get_features(self):
         rf = BaofengUV5R.get_features(self)



More information about the chirp_devel mailing list