OP25 Configuration

Status
Not open for further replies.

boatbod

Member
Joined
Mar 3, 2007
Messages
3,411
Location
Talbot Co, MD
In an effort to make it just a little bit easier for people to set up their trunk.tsv files, I have created a small helper application called "cfgtrunk.py" which facilitates changing parameters without having to use a text editor. It's far from foolproof, but is easier than vi and less error prone than trying to use a spreadsheet application.
Code:
./cfgtrunk.py trunk.tsv
[0.0] sysname              = P25 SYSTEM
[0.1] control_channel_list = 876.54320
[0.2] offset               = 0
[0.3] nac                  = 0
[0.4] modulation           = cqpsk
[0.5] tgid_tags_file       = <not set>
[0.6] whitelist            = <not set>
[0.7] blacklist            = <not set>
[0.8] center_frequency     = <not set>

If you only specify a filename, the tool reads the contents and prints it on the screen. In the example above I am displaying the standard unmodified trunk.tsv that you'll get from my repo. Running the tool on a multi-line config shows each of the configurations in separate blocks.
Code:
./cfgtrunk.py trunk-new.tsv 
[0.0] sysname              = TALBOT
[0.1] control_channel_list = 773.84375
[0.2] offset               = 0
[0.3] nac                  = 0x4a6
[0.4] modulation           = cqpsk
[0.5] tgid_tags_file       = first.tsv
[0.6] whitelist            = <not set>
[0.7] blacklist            = <not set>
[0.8] center_frequency     = <not set>

[1.0] sysname              = DORCHESTER
[1.1] control_channel_list = 774.19375
[1.2] offset               = 0
[1.3] nac                  = 0x4a5
[1.4] modulation           = cqpsk
[1.5] tgid_tags_file       = first.tsv
[1.6] whitelist            = <not set>
[1.7] blacklist            = <not set>
[1.8] center_frequency     = <not set>

To change a parameter you can refer to it by the "x.y" format. e.g. "0.1" refers to the control channel frequency in the TALBOT config.
Code:
./cfgtrunk.py trunk-new.tsv 0.1 773.84375,773.593750
[0.0] sysname              = TALBOT
[0.1] control_channel_list = 773.84375,773.593750
[0.2] offset               = 0
[0.3] nac                  = 0x4a6
[0.4] modulation           = cqpsk
[0.5] tgid_tags_file       = first.tsv
[0.6] whitelist            = <not set>
[0.7] blacklist            = <not set>
[0.8] center_frequency     = <not set>

[1.0] sysname              = DORCHESTER
[1.1] control_channel_list = 774.19375
[1.2] offset               = 0
[1.3] nac                  = 0x4a5
[1.4] modulation           = cqpsk
[1.5] tgid_tags_file       = first.tsv
[1.6] whitelist            = <not set>
[1.7] blacklist            = <not set>
[1.8] center_frequency     = <not set>

To delete a value you can specify the parameter and use empty quotes as the value.
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,411
Location
Talbot Co, MD
I forgot to mention that there is also "setTrunkFreq.sh" which is a small script whose sole purpose is to put a control channel frequency in the trunk.tsv file for first-time users.
Code:
./setTrunkFreq.sh 773.84375
[0.0] sysname              = P25 SYSTEM
[0.1] control_channel_list = 773.84375
[0.2] offset               = 0
[0.3] nac                  = 0
[0.4] modulation           = cqpsk
[0.5] tgid_tags_file       = <not set>
[0.6] whitelist            = <not set>
[0.7] blacklist            = <not set>
[0.8] center_frequency     = <not set>
 
Status
Not open for further replies.
Top