[chirp_devel] Patch to add support for the Intek HR-2040 dual band radio
Ron Wellsted
Thu Sep 19 02:01:18 PDT 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 18/09/13 18:52, Tom Hayward wrote:
> On Wed, Sep 18, 2013 at 5:21 AM, Ron Wellsted <ron at wellsted.org.uk>
> wrote:
>>
>> This patch modifies the chirp/anytone.py file to add support for
>> the Intek HR-2040 radio. This radio seems to be the same
>> hardware as the Anytone 5888UV with just a firmware difference.
>> The same radio also seems to be sold as the CRT 270M.
>
> Hi Ron,
>
> Thanks for the patch. I see one issue:
>
>> +valid_model = {'QX588UV', 'HR-2040'}
>
> This set syntax wasn't added until 2.7. I think this will break
> 2.6 support (still required for RHEL6 and CentOS). Keep it simple;
> just use a list.
>
> It would be nice to see the ident string stored within the class
> rather than maintaining this separate list, but that's not going
> to work if the files all identify as "QX588UV" :-( The way you've
> done it is the best option I see for now (saved imgs will open as
> Anytones, but upload fine to either radio).
>
> Tom KD7LXL
I have made the suggested change and also noted the relevant issue
number in the patch. The attached patch file is the one that should
be used, not the one I sent yesterday.
I have also attached the image file from my radio for inclusion into
the tests/images directory. I have used this file with the run_tests
command with the following results:
Intek HR-2040 Detect PASSED: All tests
Intek HR-2040 CopyAll PASSED: All tests
Intek HR-2040 Clone PASSED: All tests
Intek HR-2040 BruteForce PASSED: All tests
Intek HR-2040 Edges PASSED: All tests
Intek HR-2040 Banks SKIPPED: Banks not supported
- ----------------------------------------------------------------------
Results:
TOTAL : 6
FAILED : 0
SKIPPED: 1
PASSED : 5
CRASHED: 0
- --
Ron Wellsted
ron at wellsted.org.uk http://www.wellsted.org.uk
Call Sign: M0RNW, Linux Counter No. 202120
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlI6vV4ACgkQ8lOfTmhjD3NUHgCeIOUvXoUOXLNoUGNsMlPXQOy9
DboAoKnPafftUfG6V4NckovQOC5zENKE
=Yll+
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Intek_HR-2040.patch
Type: text/x-patch
Size: 1906 bytes
Desc: not available
Url : http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20130919/ad9068c6/attachment-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Intek_HR-2040.img
Type: application/octet-stream
Size: 32768 bytes
Desc: not available
Url : http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20130919/ad9068c6/attachment-0001.img
More information about the chirp_devel
mailing list