Glitch with channels in multiple scan list when exporting and importing again

Report any bugs or errors you find here.
Post Reply
DO1JJB
0posts
Posts: 2
Joined: Thu Jul 08, 2021 8:25 pm
Callsign: DO1JJB

Glitch with channels in multiple scan list when exporting and importing again

Post by DO1JJB »

I guess I found another glitch:

With original CPS
* create two channels
* create two scan lists
* add both channels to both lists
* Upload CP to device
With RT73 editor
* Down CP from device
* export zones/channels
* re-import zones/channels
--> the number of scan lists in both channels has changed
My guess channels with multiple scanlist are not properly exported, especially that field.

73 de DO1JJB
User avatar
MM7DBT
Site Admin
200posts
Posts: 210
Joined: Wed Jun 02, 2021 6:59 pm
Location: Scotland
Callsign: MM7DBT

Re: Glitch with channels in multiple scan list when exporting and importing again

Post by MM7DBT »

You are correct.. The editor doesn't currently support this as scan lists themselves are technically not exported or imported, It is something I've been meaning to add but I keep forgetting.
It wouldn't be difficult to add support for multiple scan lists as contacts currently support multiple RX Groups on export and import, I just have to implement similar code to scan lists :)

When exporting channels it looks at the "Default Scan List" field for that channel and inserts the name of the scan list with that ID into the CSV, or "OFF" if no scan list is defined.
When importing channels it looks at the "Scan List Name" column of the CSV and either creates the scan list with that name or adds channels to it, if it's already created. Then sets the "Default Scan List" field to the ID of that scan list.

----------
As it's not possible to set more than one "default scan list" for a channel it would have to be implemented like so;
Allow multiple scan lists to be defined in the CSV column "Scan List Name" where the first one defined becomes the default scan list for that channel.

e.g:
Zone 1 Channel 1 > Scan List Name > "Scan1, Scan2"
Zone 2 Channel 1 > Scan List Name > "Scan2, Scan1"

Two scan lists would be created - "Scan1" and "Scan2" and both scan lists would have the 2 channels.
"Scan1" would be the default scan list for "Zone 1 Channel 1" but it would also appear in "Scan2"
likewise
"Scan2" would be the default scan list for "Zone 2 Channel 1" but it would also appear in "Scan1"
----------

Sorry if I made that sound more confusing than it would be. Essentially it would work the same way the RX Groups do for contacts.. with the first defined scan list in the CSV becoming the default scan list for that channel :)
-73 de MM7DBT
Post Reply