[chirp_devel] [PATCH 0 of 2 ] [KG-UV6D/X] more details
This patches have to be applied over the KG-UV6 initial support one Please Ed, test settings on your radio to confirm they are in same position in D and X models
# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1338140294 -7200 # Node ID 14c3ecfde28d15e10db49cf85dfd4cb04d90b9b8 # Parent 683fcbd9ed1f7dc879364618eb49eaa9fd8df61a [KG-UV6X] Correct frequency ranges feature #53
diff -r 683fcbd9ed1f -r 14c3ecfde28d chirp/wouxun.py --- a/chirp/wouxun.py sab mag 26 16:11:43 2012 +0200 +++ b/chirp/wouxun.py dom mag 27 19:38:14 2012 +0200 @@ -495,7 +495,7 @@
def get_features(self): rf = KGUV6DRadio.get_features(self) - rf.valid_bands = [(136000000, 175000000), (370000000, 513000000)] + rf.valid_bands = [(136000000, 175000000), (375000000, 512000000)] return rf
@classmethod
# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1338144168 -7200 # Node ID 955015b9105e4855eb090e9c370d87360953b4dc # Parent 14c3ecfde28d15e10db49cf85dfd4cb04d90b9b8 [KG-UV6D/X] Add some radio settings feature #53
diff -r 14c3ecfde28d -r 955015b9105e chirp/wouxun.py --- a/chirp/wouxun.py dom mag 27 19:38:14 2012 +0200 +++ b/chirp/wouxun.py dom mag 27 20:42:48 2012 +0200 @@ -17,7 +17,8 @@ import time import os from chirp import util, chirp_common, bitwise, memmap, errors, directory -from chirp.settings import RadioSetting, RadioSettingGroup, RadioSettingValueBoolean +from chirp.settings import RadioSetting, RadioSettingGroup, \ + RadioSettingValueBoolean, RadioSettingValueList
if os.getenv("CHIRP_DEBUG"): DEBUG = True @@ -25,11 +26,6 @@ DEBUG = False
WOUXUN_MEM_FORMAT = """ -struct settings { - u8 unknown_flag1:7, - menu_available:1; -}; - #seekto 0x0010; struct { lbcd rx_freq[4]; @@ -48,10 +44,28 @@ } memory[199];
#seekto 0x0E5C; -struct settings v1settings; +struct { + u8 unknown_flag1:7, + menu_available:1; +} v1settings;
-#seekto 0x0F5C; -struct settings v6settings; +#seekto 0x0F00; +struct { + u8 unknown1[44]; + u8 unknown_flag1:6, + voice:2; + u8 unknown_flag2:7, + beep:1; + u8 unknown2[12]; + u8 unknown_flag3:6, + ponmsg:2; + u8 unknown3[3]; + u8 unknown_flag4:7, + sos_ch:1; + u8 unknown4[29]; + u8 unknown_flag5:7, + menu_available:1; +} v6settings;
#seekto 0x1008; struct { @@ -461,6 +475,25 @@ rs = RadioSetting("menu_available", "Menu Available", RadioSettingValueBoolean(self._memobj.v6settings.menu_available)) group.append(rs) + rs = RadioSetting("beep", "Beep", + RadioSettingValueBoolean(self._memobj.v6settings.beep)) + group.append(rs) + options = ["Off", "Welcome", "V bat"] + rs = RadioSetting("ponmsg", "PONMSG", + RadioSettingValueList(options, + options[self._memobj.v6settings.ponmsg])) + group.append(rs) + options = ["Off", "Chinese", "English"] + rs = RadioSetting("voice", "Voice", + RadioSettingValueList(options, + options[self._memobj.v6settings.voice])) + group.append(rs) + options = ["CH A", "CH B"] + rs = RadioSetting("sos_ch", "SOS CH", + RadioSettingValueList(options, + options[self._memobj.v6settings.sos_ch])) + group.append(rs) +
return group
On Sun, 27 May 2012 20:48:03 +0200, Marco Filippi IZ3GME wrote:
Please Ed, test settings on your radio to confirm they are in same position in D and X models
Confirmed to my satisfaction, as follows:
* First, a read-only test: a) Initial download from Radio, confirm that settings match what I expect. Beep, PONMSG, Voice, SOS CH all match. b) Then, for each setting: modify on radio (Menu + etc); Download (from radio to Chirp); confirm that Chirp sees what I expect
* Then, write test. PONMSG only. Change on Chirp, then upload to radio. Confirm by watching radio display.
All tests pass. If you'd like me to do a complete write test (change on Chirp, upload) or if there's anything I missed, please let me know.
Ed
Tnx Ed
All tests pass.
Perfect!
If you'd like me to do a complete write test (change on Chirp, upload) or if there's anything I missed, please let me know.
I think it's not necessary to do a step by step write test, one write changing all setting at once it's enough.
I don't plan to do more work on this other than bug fix (if needed), in a couple of day I'll give the radio back to my friend.
I think it's time to wait for Dan to upload to repository.
73 de IZ3GME Marco
participants (4)
-
Dan Smith
-
Ed Santiago
-
Marco Filippi IZ3GME
-
Marco IZ3GME