egzumer / uvk5-chirp-driver

Quanscheng UV-K5 radio CHIRP driver for Egzumer firmware
https://github.com/egzumer/uv-k5-firmware-custom
Creative Commons Attribution Share Alike 4.0 International
82 stars 12 forks source link

All Channels have frequency reversed after CSV import #11

Closed ianrenton closed 9 months ago

ianrenton commented 9 months ago

I have used the latest CHIRP driver (main branch as of today, 2023-12-27), then downloaded the image from my radio after a clean install of the egzumer firmware. (Thank you for your hard work!)

I then imported the list of channels that I want to use from a CSV file. The CSV contains no information about a "reverse" setting for channels:

image

However, after the import, CHIRP (with "Show extra fields" turned on) shows "Enabled" under "Reverse Frequencies":

image

And right-clicking a channel memory and selecting "Show Raw Memory" shows the "freq_reverse" bit set:

image

After programming, when I use the radio and select a memory, Tx & Rx frequencies are swapped and the "R" character is displayed by default on every channel. For simplex channels this has no effect, but when using a repeater, the radio is operating the wrong way around unless I un-reverse the frequencies manually (F+8 or long-press 8).

I'm not sure why this happens on import - I've read through the code and the only default you ever set is False (line 988), and indeed the default when creating a new memory by hand in CHIRP is Disabled.

I don't know how much control the driver has over the import process, so whether this is fixable in this project or not, but it would be nice to fix it if possible. I'll have a poke around the CHIRP docs, unless you already have an idea as to what might be happening here?

If nothing else, we have figured out what Frequency Reverse means as per your comment on line 1091 :)

ianrenton commented 9 months ago

That was quick, thanks! I'll give it a try tomorrow.