Bug #9810
closedCan't enter e.g. 149.7625 MHz in TYT TH-350
Added by Bartlomiej Zielinski over 2 years ago. Updated over 2 years ago.
100%
Description
When I try to enter the frequencies like 149.7625, 148.8125 etc. I get the error message: "Frequency requires 12.50kHz step". However it was possible to enter all the frequencies in the European PMR446 band (446.006250 to 446.193750 MHz). The radio has all 3 bands enabled in TYT software.
By the way, how can I turn the FM radio on? I enabled it in settings tab, defined some frequencies, but still not see any way how to do it.
Files
debug.log (30.7 KB) debug.log | Bartlomiej Zielinski, 03/31/2022 06:12 AM | ||
th350(steps added).py (10.2 KB) th350(steps added).py | Jim Unroe, 04/01/2022 11:07 PM |
Updated by Jim Unroe over 2 years ago
- Status changed from New to Feedback
The driver author didn't declare an rf.valid_tuning_steps feature in get_features(). This limits CHIRP to the default steps that don't include the 12.5 KHz step.
Do you know what steps the radio is capable of honoring? Perhaps the OEM software has a list of valid steps.
Jim KC9HI
Updated by Jim Unroe over 2 years ago
- File th350(steps added).py added
The valid steps are listed in the TYT TH-350 user manual.
Try this temporary test driver module. Here is how you use it.
1 save the th350(steps added).py test driver module to a convenient location
Note: Do not right-click the file and choose "Save Link as..." to download. Doing so will download the web page, not the file. You must left-click the link and then left-click the "download" link near the top of the next page that loads.
2 open CHIRP
3 click Help in the menu bar and enable Enable Developer Functions
4 click File in the menu bar and choose Load Module
5 locate and load the file that was saved in step 1
CHIRP should now have a red background to indicate that it is running with an externally loaded driver module. Test to see if you can program the frequencies that you require.
Note: Loading this temporary test driver module does not permanently modify your CHIRP installation in any way. The externally loaded driver module will be gone when CHIRP is closed. The next time you open CHIRP, you will have to load the temporary test driver module before you can program frequencies require 12.5 KHz steps again.
Let me know if this works for you (it should). I if does, then I will try to work up and submit a formal patch.
Jim KC9HI
Updated by Bartlomiej Zielinski over 2 years ago
The valid steps selectable from the menu are:
2.5, 5.0, 6.25, 10.0, 12.5, 20.0
Unfortunately when trying to load the test driver I get the message:
"Unable to load module: No module named uvb5"
I attach debug.log.
Updated by Jim Unroe over 2 years ago
- Status changed from Feedback to In Progress
- Assignee set to Jim Unroe
- Target version set to chirp-legacy
- Platform changed from Windows to All
Bartlomiej Zielinski wrote:
Unfortunately when trying to load the test driver I get the message:
"Unable to load module: No module named uvb5"
I attach debug.log.
I see that now. I didn't notice that this driver imports the uvb5 driver for some of the code. This makes the testing method that I mentioned above very difficult, if not impossible, to do.
I will be working on this soon.
Jim KC9HI
Updated by Jim Unroe over 2 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Patch submitted. Support will be in the next CHIRP daily build following acceptance.
Jim KC9HI
Updated by Tony Fuller over 2 years ago
Hey Jim,
I wanted to offer a bit of python info. If you changed line 21 to read
from chirp.drivers.uvb5 import BaofengUVB5
then it would have imported using the "Load module" file menu. This happens because there is no folder called "uvb5" in the location of the "th350(steps added).py" and python will not assume that you want to load "uvb5" even though it's already in memory. This would only be necessary when using the "Load module" file menu option.
Cheers,
Tony
Updated by Jim Unroe over 2 years ago
Tony Fuller wrote:
Hey Jim,
I wanted to offer a bit of python info. If you changed line 21 to read
[...]
then it would have imported using the "Load module" file menu. This happens because there is no folder called "uvb5" in the location of the "th350(steps added).py" and python will not assume that you want to load "uvb5" even though it's already in memory. This would only be necessary when using the "Load module" file menu option.Cheers,
Tony
Tony,
Thank you very much! I will have to remember this because I am sure it will come in handy in the future.
Jim KC9HI
Updated by Jim Unroe over 2 years ago
- File th350(steps added).py th350(steps added).py added
Bartlomiej,
I replaced the previous test driver with one modified as per Tony's tip above. Using it will allow you to program your TH-350 radio with frequencies that require the 12.50 KHz steps until the next build of CHIRP is released containing the patch.
Jim KC9HI
Updated by Bartlomiej Zielinski over 2 years ago
Thank you, it works now. I think I can investigate the driver (I have the radio), so maybe more options will be possible to set in Chirp. Should I then post the information here, or in another thread?
Updated by Bartlomiej Zielinski over 2 years ago
It seems that:
In the settings, the field unknown_1 is mdf_c (values like in mdf_a and mdf_b).¶
In the settings, the field unknown_2 corresponds to OPNSET menu option (what to display at radio power on). The valid values are: 0 - OFF, 4 - DC (battery voltage), 8 - MSG (message), 12 - PIC (picture).¶
In the settings, the field unk6 is mem_chan_c (Memory channel in the bottom row).¶
Updated by Jim Unroe over 2 years ago
Bartlomiej Zielinski wrote:
Thank you, it works now. I think I can investigate the driver (I have the radio), so maybe more options will be possible to set in Chirp. Should I then post the information here, or in another thread?
You should start a new issue. Now that there was a new build released today with the proper support for the TX-350 steps, this issue should be closed.
Jim KC9HI
Updated by Jim Unroe over 2 years ago
Bartlomiej Zielinski wrote:
It seems that:
In the settings, the field unknown_1 is mdf_c (values like in mdf_a and mdf_b).¶
In the settings, the field unknown_2 corresponds to OPNSET menu option (what to display at radio power on). The valid values are: 0 - OFF, 4 - DC (battery voltage), 8 - MSG (message), 12 - PIC (picture).¶
In the settings, the field unk6 is mem_chan_c (Memory channel in the bottom row).¶
I would start a new issue for the process of adding settings. I would also suggest that images such as opnset_off.img and opnset_pic.img be attached to be used for testing the function of each setting.
Jim KC9HI
Updated by Jim Unroe over 2 years ago
- Status changed from Resolved to Closed
Support for TH-350 steps is in today's CHIRP daily build.
Jim KC9HI