sample radio image attached


On Sunday, November 10, 2013 7:41 PM, Jim Unroe <rock.unroe@gmail.com> wrote:
On Sun, Nov 10, 2013 at 8:08 PM, Jens J. <kd4tjx@yahoo.com> wrote:
[bj-uv55] initial channel editing support #1201
patch attached.

This is definately a UV-5R clone (in terms of architecture), but in a mobile form-factor. Therefore, there are several differences in terms of offsets of settings locations, id/band-range, etc in the memory map.

I have made a few changes to the uv5r.py driver which I am hoping wont impact other covered models, but ask for some help in testing, as I do not have an UV-5R (or similar) to do regression tests against.

Also, I'm trying to understand what to modify so that when opening a radio image file, it will recognize this image as being BJ-UV55.

I assume this has something to do with header bytes, but it wasnt so clear to me reading over the code.

I have also tried to simplify a few areas with list comprehension, like:


-    if "BFB" not in radio_version and "82" not in radio_version and "USA" not in radio_version:
+    if not any(type in radio_version for type in ["BFB", "82", "USA", "BJ55"]):

however, it appears to me these should be simplified further to something like:
if radio._basetype not in radio_version:
// make better use of _basetype!

-Jens
AF5MI

Jens,
Email an .img file from the BJ55 for me to look at. Thanks
Jim KC9HI