Project

General

Profile

Actions

Bug #8473

closed

Incorrect model selected UV-5R

Added by ferencak gregor almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
11/24/2020
Due date:
% Done:

100%

Estimated time:
Chirp Version:
daily
Model affected:
uv-5r
Platform:
All
Debug Log:
I read the instructions above:

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 
AttributeError: 'NoneType' object has no attribute 'split'

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

Thanks


Files

uv5r_diagnostic_test.py (62.1 KB) uv5r_diagnostic_test.py diagnostic for blank radio version Jim Unroe, 11/24/2020 01:43 PM
Baofeng_UV-5R_20201125.img (6.5 KB) Baofeng_UV-5R_20201125.img ferencak gregor, 11/24/2020 02:41 PM
uv5r_test.py (63.9 KB) uv5r_test.py Tests for "radio version" with 14 spaces Jim Unroe, 11/24/2020 03:05 PM
Baofeng_UV-5R_20201125-chnage- chan 32 - before upload.img (6.5 KB) Baofeng_UV-5R_20201125-chnage- chan 32 - before upload.img ferencak gregor, 11/25/2020 03:21 AM
Baofeng_UV-5R_20201125- downloaded after change chan 32.img (6.5 KB) Baofeng_UV-5R_20201125- downloaded after change chan 32.img ferencak gregor, 11/25/2020 03:21 AM
Actions #1

Updated by Jim Unroe almost 4 years 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

Actions #2

Updated by ferencak gregor almost 4 years 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.

Actions #3

Updated by Jim Unroe almost 4 years 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 almost 4 years 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

Actions #5

Updated by ferencak gregor almost 4 years 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.

Actions #6

Updated by Jim Unroe almost 4 years ago

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

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

Actions #7

Updated by ferencak gregor almost 4 years 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 :)

Actions #8

Updated by Jim Unroe almost 4 years 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

Actions #9

Updated by Anonymous almost 4 years ago

  • Status changed from Resolved to Closed

Applied in changeset commit:8d906ccd00db.

Actions

Also available in: Atom PDF