Bug #8473

Incorrect model selected UV-5R

Added by ferencak gregor about 1 month ago. Updated about 1 month ago.

Status:Closed Start date:11/24/2020
Priority:Normal Due date:
Assignee:Jim Unroe % Done:

100%

Category:-
Target version:chirp-daily
Chirp Version:daily Platform:All
Model affected:uv-5r

Description

Hi all,

probably already asked. I get incorrect model selected.
Checking log files seems that info is empty.

chirp.drivers.uv5r - INFO: Radio Version is '              '

Radio: uv-5r
Chipr Latest daily-20201121
Profilic driver

[2020-11-24 22:59:46,536] chirp.ui.reporting - DEBUG: Checking for updates
[2020-11-24 22:59:46,980] chirp.ui.reporting - DEBUG: Server reports version daily-20201121 is latest
[2020-11-24 23:00:00,344] chirp.ui.mainapp - DEBUG: User selected Baofeng UV-5R on port COM3
[2020-11-24 23:00:00,522] chirp.ui.clone - DEBUG: Clone thread started
[2020-11-24 23:00:00,566] chirp.drivers.uv5r - INFO: Sending Magic: 000: 50 bb ff 20 12 07 25 00   P.....%.

[2020-11-24 23:00:00,687] chirp.drivers.uv5r - INFO: Valid response, got this:
[2020-11-24 23:00:00,687] chirp.drivers.uv5r - DEBUG: 000: aa 30 76 04 00 05 20 dd   .0v.....

[2020-11-24 23:00:01,039] chirp.drivers.uv5r - INFO: Radio Version is '              '
[2020-11-24 23:00:01,039] chirp.ui.reporting - DEBUG: Reporting exception
[2020-11-24 23:00:01,039] chirp.ui.common - ERROR: -- Exception: --
[2020-11-24 23:00:01,039] chirp.ui.common - ERROR: Traceback (most recent call last):
  File "chirp\ui\clone.pyo", line 256, in run
  File "chirp\drivers\uv5r.pyo", line 810, in sync_in
  File "chirp\drivers\uv5r.pyo", line 562, in _do_download
RadioError: Incorrect 'Model' selected.

[2020-11-24 23:00:01,039] chirp.ui.common - ERROR: ----------------
[2020-11-24 23:00:01,039] chirp.ui.clone - ERROR: Clone failed: Incorrect 'Model' selected.
[2020-11-24 23:00:01,134] chirp.ui.clone - DEBUG: Clone thread ended
[2020-11-24 23:00:01,134] chirp.ui.reporting - DEBUG: Reporting model usage: Baofeng_UV-5R,download,True
[2020-11-24 23:00:01,134] chirp.ui.reporting - DEBUG: Reporting exception
[2020-11-24 23:00:01,134] chirp.ui.inputdialog - ERROR: --- Exception Dialog: Incorrect 'Model' selected. ---
[2020-11-24 23:00:01,135] chirp.ui.inputdialog - ERROR: Traceback (most recent call last):
  File "chirpw", line 68, in <module>
AttributeError: 'NoneType' object has no attribute 'split'

[2020-11-24 23:00:01,135] chirp.ui.inputdialog - ERROR: ----------------------------

Thanks

uv5r_diagnostic_test.py - diagnostic for blank radio version (62.1 kB) Jim Unroe, 11/24/2020 01:43 pm

Baofeng_UV-5R_20201125.img (6.5 kB) ferencak gregor, 11/24/2020 02:41 pm

uv5r_test.py - Tests for "radio version" with 14 spaces (63.9 kB) Jim Unroe, 11/24/2020 03:05 pm

Baofeng_UV-5R_20201125-chnage- chan 32 - before upload.img (6.5 kB) ferencak gregor, 11/25/2020 03:21 am

Baofeng_UV-5R_20201125- downloaded after change chan 32.img (6.5 kB) ferencak gregor, 11/25/2020 03:21 am

Associated revisions

Revision 3430:8d906ccd00db
Added by Jim Unroe about 1 month ago

[UV-5R] Firmware Version Filled With Spaces

This patch accomodates models supported by the uv5r.py driver that
have a firmware versoion populated with space characters.

fixes #8473

History

Updated by Jim Unroe about 1 month ago

Yeah. Unfortunately CHIRP doesn't expect to see a radio with radio version that is blank like that.

This diagnostic driver module should hopefully bypass the check that is failing and allow the download to complete. When(If) it does, save the newly created tab, unedited, to a CHIRP Radio Images (*.img) file and attach it to this issue so I can "see" what the radio's memory actually looks like.

To use this module...
1 save the attached driver module to a convenient location
2 click "Help" in the menu bar and enable "Enable Developer Functions"
3 click "File" followed by "Driver Module" and then locate and load the file saved in step 1

CHIRP will have a red background and now you can try to download from your radio.

Jim KC9HI

Updated by ferencak gregor about 1 month ago

It did worked on first time i tried. Attached is img file.

This Radio i got 4 or more years ago. I got another one on the way from store. Basically i want to clone 1 radio to another.

Updated by Jim Unroe about 1 month ago

ferencak gregor wrote:

It did worked on first time i tried. Attached is img file.

This Radio i got 4 or more years ago. I got another one on the way from store. Basically i want to clone 1 radio to another.

Perfect. Just what I needed to look at.

Here is my candidate for working with a radio like yours. Download from your radio, make some changes and upload back to your radio. Let me know how it goes.

Jim KC9HI

Updated by ferencak gregor about 1 month ago

So... Attaching 2 IMG files.

1. loaded latest py file
2. download
3. add test chan 32
4. save IMG --> Baofeng_UV-5R_20201125-chnage- chan 32 - before upload.img
5. upload to radio
6. download from radio
7. save IMG --> Baofeng_UV-5R_20201125- downloaded after change chan 32.img

hope it helps

Updated by ferencak gregor about 1 month ago

ferencak gregor wrote:

So... Attaching 2 IMG files.

1. loaded latest py file
2. download
3. add test chan 32
4. save IMG --> Baofeng_UV-5R_20201125-chnage- chan 32 - before upload.img
5. upload to radio
6. download from radio
7. save IMG --> Baofeng_UV-5R_20201125- downloaded after change chan 32.img

hope it helps

just for clarification. After uploading of changed img to radio - it worked as expected. didn't go in details but all channels were there and working.

Updated by Jim Unroe about 1 month ago

  • Assignee set to Jim Unroe
  • Target version set to chirp-daily

ferencak,

Thank your for the followup. I have added myself at the "Assignee" for this project. I am currently in the middle of something else, but I intend to start on this as soon I can get to it (maybe even later today). In the mean time you can use the test driver module to get by until I have submitted a formal patch and it has been accepted and in a future daily build of CHIRP.

Jim KC9HI

Updated by ferencak gregor about 1 month ago

Jim Unroe wrote:

ferencak,

Thank your for the followup. I have added myself at the "Assignee" for this project. I am currently in the middle of something else, but I intend to start on this as soon I can get to it (maybe even later today). In the mean time you can use the test driver module to get by until I have submitted a formal patch and it has been accepted and in a future daily build of CHIRP.

Jim KC9HI

Thanks, I am not in a hurry. Still waiting for second radio. And with that one... we will see how it goes :)

Updated by Jim Unroe about 1 month ago

  • Status changed from Feedback to Resolved
  • % Done changed from 0 to 100

Patch submitted. Once approved it will be available in the following CHIRP daily build.

Jim KC9HI

Updated by Anonymous about 1 month ago

  • Status changed from Resolved to Closed

Applied in changeset 8d906ccd00db.

Also available in: Atom PDF

prevent spam