Anytone import - name cropping issue

Report any bugs or errors you find here.
Post Reply
KN6WPU
Posts: 1
Joined: Sat Mar 04, 2023 3:18 am
Callsign: KN6WPU

Anytone import - name cropping issue

Post by KN6WPU »

I found this issue in 0.3.227.1

I have an Anytone codeplug with the following channels:

...
"1094","WA6NMF-70-Santa","443.67500","448.67500","A-Analog"...
"1095","WA6RQX-70-Soleda","444.37500","449.37500","A-Analog"...
"1096","WA6VPL-2-Lompoc","147.12000","147.72000","A-Analog"...
...
"1192","WA6PWW-70-Fremon","442.60000","447.60000","A-Analog"...
"1193","WA6RQX-70-Bakers","442.75000","447.75000","A-Analog"...
"1194","WA6ZTY-70-Berkel","442.27500","447.27500","A-Analog"...
...

Import crops names to 10 characters (which is fine) but then it uses the cropped names to identify the channels and mixes them up. Note that "WA6RQX-70-Bakers" has frequencies from "WA6RQX-70-Soleda" after the conversion.

Central Co,95,WA6NMF-70-,443675000,448675000,...
Central Co,96,WA6RQX-70-,444375000,449375000,...
Central Co,97,WA6VPL-2-L,147120000,147720000,...
...
East Bay,85,WA6PWW-70-,442600000,447600000,...
East Bay,86,WA6RQX-70-,444375000,449375000,...
East Bay,87,WA6ZTY-70-,442275000,447275000,...

[Update] I just realized that in the codeplug I have quite a few entries with the same name and they are also affected by this issue. I believe the Anytone channel number would be a better unique id for them during the conversion.

Thank you for the great job. Your editor saved the day so many times for me.
User avatar
MM7DBT
Site Admin
200posts
Posts: 209
Joined: Wed Jun 02, 2021 6:59 pm
Location: Scotland
Callsign: MM7DBT

Re: Anytone import - name cropping issue

Post by MM7DBT »

Ah.. Yeah the names were being truncated to 10 characters before assigning the channel parameters.. so while looking through the channels list it would find the first match and use the parameters from that.
I have updated the code to assign everything before truncating the name.

I have also fixed a similar issue with 'Contact', 'Rx Group' and 'Scan List'
Where the names were also truncated before being assigned.. so it wouldn't find it, resulting in them being set to 'OFF'

They should now hopefully be set correctly - I'll push out an update soon :)
-73 de MM7DBT
Post Reply