[chirp_devel] [PATCH] Support Wouxun KG-818 with KG-816 driver. #356

Tom Hayward
Sun Feb 17 12:18:35 PST 2013


On Sun, Feb 17, 2013 at 12:12 PM, Tom Hayward <esarfl at gmail.com> wrote:
> + at directory.register
> +class KG818Radio(KG816Radio):
> +    """Wouxun KG818"""
> +    MODEL = "KG818"
> +
> +    @classmethod
> +    def match_model(cls, filedata, filename):
> +        if len(filedata) == 8192 and \
> +                filedata[0x60:0x64] != "2009" and \
> +                filedata[0x1f77:0x1f7d] == "\xff\xff\xff\xff\xff\xff" and \
> +                filedata[0x0d70:0x0d80] == "w\xeew1w\xeew1w\xeew1w\xeew1":
> +            return True
> +        return False

Hmm, while this matches the Wouxun KG-618 66-88 MHz version correctly,
other frequency ranges of the KG-618 will show up as KG-616s. This
isn't necessarily a bad thing, but there could be a better way. What
would Marco do?

Tom KD7LXL



More information about the chirp_devel mailing list