[chirp_devel] [PATCH] [BF-A58S] Add Support for Baofeng UV-82III

Jim Unroe
Sat Oct 19 10:59:14 PDT 2019


Attached is the CHIRP Radio Images file to test against.

Jim KC9HI

On Sat, Oct 19, 2019 at 9:57 AM Jim Unroe <rock.unroe at gmail.com> wrote:
>
> # HG changeset patch
> # User Jim Unroe <rock.unroe at gmail.com>
> # Date 1571507804 14400
> # Node ID b4f8791f6615d875515189d4dc9bf6d9d8b1282a
> # Parent  2ccc8e4771555f24c1cdf4c6af3536c3e5b2bdaf
> [BF-A58S] Add Support for Baofeng UV-82III
>
> This patch adds support for "waterproof" Baofeng tri-band models.
>
> BF-A58S
> UV-82III (alias)
>
> related to #7163
>
> diff -r 2ccc8e477155 -r b4f8791f6615 chirp/drivers/baofeng_wp970i.py
> --- a/chirp/drivers/baofeng_wp970i.py   Sat Oct 19 13:05:25 2019 -0400
> +++ b/chirp/drivers/baofeng_wp970i.py   Sat Oct 19 13:56:44 2019 -0400
> @@ -108,8 +108,10 @@
>      POWER_LEVELS = [chirp_common.PowerLevel("High", watts=5.00),
>                      chirp_common.PowerLevel("Med",  watts=3.00),
>                      chirp_common.PowerLevel("Low",  watts=1.00)]
> -    VALID_BANDS = [(130000000, 180000000),
> -                   (400000000, 521000000)]
> +    _vhf_range = (130000000, 180000000)
> +    _uhf_range = (400000000, 521000000)
> +    VALID_BANDS = [_vhf_range,
> +                   _uhf_range]
>      PTTID_LIST = LIST_PTTID
>      SCODE_LIST = LIST_SCODE
>
> @@ -852,6 +854,11 @@
>      MODEL = "RH5X"
>
>
> +class UV82IIIAlias(chirp_common.Alias):
> +    VENDOR = "Baofeng"
> +    MODEL = "UV-82III"
> +
> +
>  @directory.register
>  class BFA58(WP970I):
>      """Baofeng BF-A58"""
> @@ -881,3 +888,17 @@
>      """Retevis RT6"""
>      VENDOR = "Retevis"
>      MODEL = "RT6"
> +
> +
> + at directory.register
> +class BFA58S(WP970I):
> +    VENDOR = "Baofeng"
> +    MODEL = "BF-A58S"
> +    ALIASES = [UV82IIIAlias]
> +
> +    def get_features(self):
> +        rf = WP970I.get_features(self)
> +        rf.valid_bands = [self._vhf_range,
> +                          (200000000, 260000000),
> +                          self._uhf_range]
> +        return rf
> diff -r 2ccc8e477155 -r b4f8791f6615 tests/images/Kenwood_TK-8180.img
> Binary file tests/images/Kenwood_TK-8180.img has changed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Baofeng_BF-A58S.img
Type: application/octet-stream
Size: 8361 bytes
Desc: not available
Url : http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20191019/f6aadc8c/attachment-0001.img 


More information about the chirp_devel mailing list