Bug #10672
closedBaofeng UV-9R PRO Value 16665 not in range 130-179
0%
Description
Hello, I have been trying to program my new radio I can change the memories but when ever I click on the settings page I get the error message that "Value 16665 not in range 130-179" I've tried resetting my radio and even tried uploading the settings from my wife's radio to mine but nothing seems to change it. We both have the same model Baofeng UV-9R PRO both with firmware NT5101 Mine gets the message hers does not. I am running the most recent CHIRP next-20230622 on Python 3.8.2 wxPython 4.2.0 osx-cocoa (phoenix) wxWidgets 3.2.0. The attached Baofeng IMG file is the original download from the radio. The David IMG is the one I put on after I set the uploaded from my wife's radio and changed the memories. and the Mia IMG is the one that is on my wife's radio and is working just fine.
Files
Updated by Jim Unroe over 1 year ago
- File Baofeng_UV-9R Pro_20230618(fixed).img Baofeng_UV-9R Pro_20230618(fixed).img added
- File David Handheld(fixed).img David Handheld(fixed).img added
Something has wiped out the band limits on 2 of the images. I have repaired them. Keep an eye on it.
Jim KC9HI
Updated by Fernando Sainz about 1 year ago
David Rudd wrote:
Hello, I have been trying to program my new radio I can change the memories but when ever I click on the settings page I get the error message that "Value 16665 not in range 130-179" I've tried resetting my radio and even tried uploading the settings from my wife's radio to mine but nothing seems to change it. We both have the same model Baofeng UV-9R PRO both with firmware NT5101 Mine gets the message hers does not. I am running the most recent CHIRP next-20230622 on Python 3.8.2 wxPython 4.2.0 osx-cocoa (phoenix) wxWidgets 3.2.0. The attached Baofeng IMG file is the original download from the radio. The David IMG is the one I put on after I set the uploaded from my wife's radio and changed the memories. and the Mia IMG is the one that is on my wife's radio and is working just fine.
Hello. I also got that error when downloading the image from the radio.
I went to the line in the "settings.py" file that gave the error and saw that when it receives a value outside the range it throws an exception and does not continue loading the data.
def set_value(self, value):
try:
value = int(value)
except Exception:
raise InvalidValueError("An integer is required")
""" To probe i make this and it continue. them i change values."""
if value > self._max or value < self._min:
value = self._min
if value > self._max or value < self._min:
raise InvalidValueError("Value %i not in range %i-%i" %
(value, self._min, self._max))
RadioSettingValue.set_value(self, value)
It would be possible instead of throwing an exception to assign a valid value: "self._min" for example and prevent it from continuing.
A warning message could be given so that we were aware that this value must be adjusted.
Greetings.
Updated by Dan Smith about 1 year ago
No, setting self._min in settings.py is not the right thing to do, but the driver should do its own bounds checking and/or catch the exception and do something other than crash.