Bug #11749
closedSome memory fields empty, message "some memories are incompatible with this radio"
100%
Description
The issue is instantly visible after I read the data from my radio.
It is expected that all channel rows are properly imported.
However, some lines remain empty with red marked enumeration and exclamation marks. When I click into one of the empty fields of the line I receive the message that the frequency is not supported, which makes full sense since the line is empty. However, in the previous version chirp-next-20241213 the message was likely more precise. It said "Some memories are incompatible with this radio". I assume this started happening when I configured DTCS tones. Before everything worked fine in both Chirp and also the OEM software. Now, still in the OEM software everything works normal. As a side note, the channel frequencies were never changed at any time.
The radio is on the market since around 3 years, and I purchased it newly recently.
Files
Updated by Thomas B 27 days ago
- File config.txt config.txt added
- File Retevis_RT86_20241225.img Retevis_RT86_20241225.img added
- File win_system_info.txt win_system_info.txt added
- File debug_log.txt debug_log.txt added
[Uploaded from CHIRP next-20241220]
Updated by Thomas B 26 days ago
- File Chirp-Issue-01.jpg Chirp-Issue-01.jpg added
Hi Dan,
for your convenience I send you a screenshot showing both the memory
entries from Chirp (left) and the OEM program (right):
Best regards,
Thomas
Am 26.12.2024 um 02:21 schrieb Dan Smith:
Updated by Dan Smith 21 days ago
- File retevis_rt21.py retevis_rt21.py added
Please try the attached module using this procedure: LoadingTestModules
Updated by Thomas B 20 days ago
Hi Dan,
the module you provided seems to solve all problems with this radio. The
data is now loading consistently. The global settings are all correct,
and writing to and loading again from the radio also works properly.
Thanks a lot and a Happy New Year!
Best regards,
Thomasfrom Germany
Am 31.12.2024 um 19:21 schrieb Dan Smith:
Updated by Dan Smith 20 days ago
Actually, it looks more complicated when I run the tests for all the other related radios.
Thomas, can you try this attached module again please? Also, can you please confirm that all the DCS codes CHIRP identifies match what the OEM software and the radio see? Also, if you could please try programming new DCS codes with chirp and make sure the radio and OEM software agree on their values, that would be appreciated.
@Jim Unroe I don't have any of these radios, so can you test with some? It looks to me from the original image that these radios can store the DCS code in either hex or octal (I see both in the same image), and they use the 0x0800 bit to indicate which one it is. Perhaps whether it was stored on the radio itself vs in the software? Either way, I'm wondering if the self._mask
stuff in this driver came from thinking that some of the models used that flag always, but in reality, it was just misinterpreting that some of the memories were stored in hex vs. octal.
Some of the images in the tree are inconsistent, but that could have come from using chirp with this flag confusion on the image before we stored them.
Anyway, if you could confirm that this driver works for both "types" of rt21-based radio I'd appreciate it. Thanks!
Updated by Justin Case 20 days ago
If I may chime in..
I've observed something similar in Chirp when loading Baofeng BF-9700 settings after frequencies have been edited in Chinese OEM WP970 software. Factory fresh, untouched settings of the same radio model displayed in Chirp correctly, without red and exclamation marks.
The consensus somewhere else was that it has something to do with overall system settings and how punctuation marks "." and "," are used. They do differ country to country.
Hope this helps somehow. Cheers!
Updated by Thomas B 14 days ago
- File evVkcSFWtqKezGdt.png evVkcSFWtqKezGdt.png added
- File kQG3CZMpT16QqSZ7.png kQG3CZMpT16QqSZ7.png added
Hi Dan,
sorry for my late response.
There are no deviations between the correct parameters in Chirp
Next-20241227 after applying your module and the ones showing up in the
OEM software. I also programmed new DCS codes in Chirp, and everything
in the OEM software is represented in the same manner.
Cheers,
Thomas
Am 01.01.2025 um 18:34 schrieb Dan Smith:
Updated by Jim Unroe 13 days ago
So far I haven't been able to find the RT86 that was used to create this driver. It looks like this driver supports 17 different radio models. Tomorrow I will try to round up a half dozen or so and test them against the test driver module that Dan provided to see if they are affected by the changes or not.
Updated by Dan Smith 13 days ago
Thanks Jim. The RT86 is tested, so that's fine. I was actually looking for confirmation about the other models, so if you could locate a few that would be great. Specifically, one of the other models that used a different _mask
value (in the original version of the code). I suspect the way the dtcs mask was being handled was wrong from the beginning, but that's just a guess.
Here's the PR so you can see what I'm changing more easily: https://github.com/kk7ds/chirp/pull/1214
Updated by Thomas B 13 days ago
- File i2Z5b1Vz9TVm0ob9.png i2Z5b1Vz9TVm0ob9.png added
Hi Dan,
it was the module I could choose when using the "Load module from issue"
feature inside Chirp, dated 2024/12/31 18:19:
I tested again right now, inside Chirp and the OEM application forth and
back with the tone squelch options, and all data is being updated and
displayed properly.
Cheers,
Thomas
Am 08.01.2025 um 01:53 schrieb Dan Smith:
Updated by Dan Smith 13 days ago
- File retevis_rt21.py retevis_rt21.py added
Oh jeez, Thomas (and Jim) I forgot to attach the updated module back when I made my comment #11749#note-7 about being concerned. It's attached here. If you could please test this new one again comprehensively I'd very much appreciate it. My apologies for the confusion!
Updated by Thomas B 13 days ago
- File wUZYWbuuoEiuy2KM.png wUZYWbuuoEiuy2KM.png added
Hi Dan,
also with the updated module things work as they should. However I
noticed another thing which is maybe expected to be a in a new issue.
Let me just mention it here:
The radio actually supports SPEC code, hence the corresponding fields in
the OEM software:
However I cannot find these options in CHIRP at all.
Cheers,
Thomas
Am 08.01.2025 um 15:30 schrieb Dan Smith:
Updated by Jim Unroe 13 days ago
Thomas B wrote in #note-15:
Hi Dan,
also with the updated module things work as they should. However I
noticed another thing which is maybe expected to be a in a new issue.
Let me just mention it here:
The radio actually supports SPEC code, hence the corresponding fields in
the OEM software:However I cannot find these options in CHIRP at all.
Cheers,
ThomasAm 08.01.2025 um 15:30 schrieb Dan Smith:
Either the CPS that was available when the original development was done (about 2 years) didn't have this feature or I decided to ignore it because it is not a setting that is typical related to 'ham' radio and I have no way to test it to know if it actually works or not.
Updated by Jim Unroe 13 days ago
OK. I found about 10 or 11 radios supported by this driver. Let me know if I am going about the the right way. What I did for the Retevis RT21 was the following...
- Load the test driver module into CHIRP
- Load the RT86 image that is attached to the issue
- Download from the radio
- Copy-and-Paste memory row 12 and/or memory row 16 from the RT86 tab to the tab created by downloading
- Upload the tab back into the radio that it came from
- Download from the radio a second time
- If none of the memory rows have error, then success... repeat on next radio.
Does this make sense? Does/Will this qualify as 'comprehensive' testing? If not, then what else should I be doing?
Updated by Dan Smith 13 days ago
Jim, that should suffice I think, with the caveat that we want to make sure the radio sees the right DTCS code and polarity as set by chirp with the module loaded. It would also be good to make sure a channel that is created on the radio with a DTCS code is properly decoded by chirp. You don't really need to do all of this with all the radios though. There are two varieties in the driver, ones that use a "mask" of 0x2000 and ones that use a mask of 0x2800. The RT86 is the latter, so what I really want to know is if the other variety of radios still work with this change. Radios of the type in question appear to be: RT21, RB17, RT21V, RT29, RT19, RB89. If you could test one of those with DTCS codes as set by chirp and as set by the radio, that would be the thing we're looking for.
Thanks!
Updated by Jim Unroe 12 days ago
I have checked 5 radios: ABREE AR-63 and Retevis RT21, RT40B, RB28B and RB628B. Three radios I did using the copy-and-paste method. Two models I had to manually edit the DTCS codes because they were FRS and PMR radios with immutable frequencies. All CHIRP tabs accepted the updated DTCSS settings. All DTCSS codes and polarity showed up correctly after upload to radio and download back to CHIRP. Now errors were encountered other than the expected error when I tried to past into a memory with an immutable frequency.
Unless you want something else tested or something tested differently, I would say that you have solve the RT86 issue without affecting the other models.
Updated by Dan Smith 12 days ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset github|c4273f95656d62499706f8dfc883cf8b29d9a421.