[chirp_devel] Issue #1667 - Support for Wouxun KG-UV8D

Ron Wellsted
Sat Sep 27 12:11:30 PDT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Now I am back and recovered from the National Hamfest in Newark (UK) I
can reply & address the issues raised.


On 26/09/14 01:17, Jim Unroe wrote:
> On Thu, Sep 25, 2014 at 5:41 PM, Dan Smith <dsmith at danplanet.com 
> <mailto:dsmith at danplanet.com>> wrote:
> 
> Hi Ron,
> 
>> Attached is my driver for the Wouxun KG-UV6D.
> 
> Has anyone else (Ron, you included) looked at this code and
> compared it to others to see if it's an obvious clone of something
> else? It didn't appear to be obvious to me. Jim?
> 
> 
> As far as I know it is different. It seems that Wouxun changed how
> they do thing with their mobile radios and the KG-UV8D.

I went through most of the radio interfaces and found a few similar
but sufficiently different to prevent code reuse. I initially started
trying to include the code in wouxun.py, but soon realised that I was
writing new code (or cutting and pasting) but not using anything from
the rest of the file.

> 
> This it the kind of help that I was looking for to get going with
> the KG-UV920P mobile radio (and possibly the UV950-P after that).
> 
> 
> 
> 
> This should be indented to the same level as the code it pertains
> to.
> 
>> +        rs = RadioSetting("ponmsg", "Poweron message", +
>> RadioSettingValueList( +
>> PONMSG_LIST, +
> PONMSG_LIST[self._memobj.settings.ponmsg]))
>> +     cfg_grp.append(rs) +        rs = RadioSetting("voice",
>> "Voice Guide",
> RadioSettingValueBoolean(
>> +                         self._memobj.settings.voice)) +
>> cfg_grp.append(rs) +        rs = RadioSetting("timeout", "Timeout
>> Timer", +                         RadioSettingValueInteger(15,
>> 900, +                             self._memobj.settings.timeout
>> * 15, 15)) +        cfg_grp.append(rs) +     rs =
>> RadioSetting("toalarm", "Timeout Alarm", +
>> RadioSettingValueInteger(0, 10, +
>> self._memobj.settings.toalarm)) +     cfg_grp.append(rs) +     rs
>> = RadioSetting("channel_menu", "Menu available in channel
> mode",
>> +                         RadioSettingValueBoolean( +
>> self._memobj.settings.channel_menu)) +     cfg_grp.append(rs) +
>> rs = RadioSetting("power_save", "Power save", +
>> RadioSettingValueBoolean( +
>> self._memobj.settings.power_save)) +        cfg_grp.append(rs)
> 
> Looks like some alignment issues here. Just to be clear, each
> indent level should be four spaces.
> 
> 
> Yeah. I have to convert tabs to spaces with my editor and
> everything was indented as it should be. There are a few links
> longer than 80 characters that should be addressed too.

I will get my editor settings sorted out and tidy up the indenting/code.

> 
> 
> Again, thanks a lot. This looks really close and I'll be glad to
> get this into the tree soon!
> 
> 
> I was so hoping to get this going to at least attempt a download
> with my KG-UV920P. Unfortunately, I get this error.
> 
> Traceback (most recent call last): File
> "C:\Users\Root\chirp.hg\chirpui\mainapp.py", line 1391, in mh 
> self.do_download(*args) File
> "C:\Users\Root\chirp.hg\chirpui\mainapp.py", line 641, in
> do_download not self._confirm_experimental(rclass): File
> "C:\Users\Root\chirp.hg\chirpui\mainapp.py", line 599, in 
> _confirm_experi mental can_squelch=True) File
> "C:\Users\Root\chirp.hg\chirpui\common.py", line 350, in
> show_warning textview = _add_text(d, text) File
> "C:\Users\Root\chirp.hg\chirpui\common.py", line 310, in _add_text 
> v.get_buffer().set_text(text) TypeError: GtkTextBuffer.set_text()
> argument 1 must be string or read-only buffe r, not None
> 
> I couldn't find the debug.log file. Doesn't the developer version
> write the debug.log to the same place as a regular install of
> CHIRP? Do I not have something enabled?
> 
> Jim
> 



- -- 
Ron Wellsted
ron at wellsted.org.uk http://www.wellsted.org.uk
Call Sign: M0RNW / Linux Counter No. 202120
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQEcBAEBAgAGBQJUJwvgAAoJEEtP/KMNOfRbsgEIAIjPD+S2ptPu/o3h3I9QKACa
5dIhnHEsUV2DQN1nzoNgr19YAfc/GO2SfrdLaVgrPu/94nDcKmpbftQ4LL4seGKV
dm0CljVqJChupYH10qGdscVGXpC7Vahzf9+pHQYKw70qjQ8iGUjoTX1fL2nyjtBx
iJYMh9UuwttH1tHyaEC39tNyTEId0YA31yY5N6TgR5e3wk48BkkNH0eNpXe3c0eK
Hh/6iJuhWSo1P9cvUeBWU+VJNXxwH0gEFKvSRuBQmbC6unOMTw9rIl408wrF8BF5
5Fj+2zQmSpK1XygUSopFpoUGc27+uedd15lDgrDxPQ83u88qBzpsjXeRDrm5+0w=
=Z4cu
-----END PGP SIGNATURE-----



More information about the chirp_devel mailing list