boatbod / op25

Fork of osmocom OP25 by boatbod
311 stars 97 forks source link

boatbod OP25 Not Accepting NAC 092C #121

Closed simplio closed 2 years ago

simplio commented 2 years ago

Hi,

I have been scratching my head. I can't get OP25 to accept NAC 92C from this system: https://www.radioreference.com/apps/db/?siteId=37569

I tried: "92C" "0x92C" "92xC" "092C" "9x2C" "92xC" ....after every single attempt it shows these errors in stderr.2 Traceback (most recent call last): File "./rx.py", line 1074, in rx = rx_main() File "./rx.py", line 980, in init self.tb = p25_rx_block(self.options) File "./rx.py", line 241, in init self.open_usrp() File "./rx.py", line 893, in open_usrp self.set_rx_from_osmosdr() File "./rx.py", line 822, in __set_rx_from_osmosdr self.build_graph(self.src, capture_rate) File "./rx.py", line 373, in __build_graph self.trunk_rx = trunking.rx_ctl(frequency_set = self.change_freq, nac_set = self.set_nac, debug = self.options.verbosity, conf_file = self.options.trunk_conf_file, logfile_workers=logfile_workers, meta_update = self.meta_update, crypt_behavior = self.options.crypt_behavior) File "/home/sunplio/op25/op25/gr-op25_repeater/apps/trunking.py", line 1258, in init self.build_config_tsv(conf_file) File "/home/sunplio/op25/op25/gr-op25_repeater/apps/trunking.py", line 1353, in build_config_tsv configs = read_tsv_file(tsv_filename, "nac") File "/home/sunplio/op25/op25/gr-op25_repeater/apps/helper_funcs.py", line 132, in read_tsv_file key_val = int(fields[key], 0) KeyError: 'nac'

The KeyError said nac so i assumed there is an error in my input of nac.

my trunk.tsv contents "Sysname" "Contro Channel List" "Offset" "NAC" "Modulation" "TGID Tags File" "Whitelist" "Blacklist" "Center Frequency" "OCPD" "851.1875,851.9875,852.4750,853.2000,853.6000,853.8625" 0 "0xa" "CQPSK" "ocpdtrunk.tsv" "OKWIN" "857.9375,858.9375,859.9375,860.9375" 0 "092C" "CQPSK" "okwintrunk.tsv"

"OCPD' line works "OKWIN" line has the nac error It's me not understanding how to input that kind of hex code or there is maybe a bug. Being unsure which I posted it anyway.

Thanks again, simplio

Edit found the error it was me. the word control in control channel list was missing the L. Added the missing L then it started working