OP25 Trunking

Status
Not open for further replies.

78turbo

Member
Joined
Nov 15, 2011
Messages
59
Location
Mossyrock, WA
First, I would like to thank all those who contributed to the other OP25 thread that turned into a long read with tons of information. It has given me the needed push to build a dedicated Linux system to work with it. I have it installed and running after a few long days of "Linux Coding" but cannot figure out how to get the trunking working and voice channels to work properly. I am getting errors when starting the program that I have not been able to resolve.

bryan@bryan-MP061 ~/pybombs/src/gr-op25/op25/gr-op25_repeater/apps $ ./scope.py --args 'rtl=0' -N 'LNA:35' -f 773.48125e6 -S 2400000 -q 46 -v 10 -V -2 -T talkgroups.tsv
linux; GNU C++ version 4.8.4; Boost_105400; UHD_003.010.git-119-g42a3eeb6

gr-osmosdr v0.1.4-67-gac15e789 (0.1.5git) gnuradio 3.7.10git-86-gfe823d38
built-in source types: file osmosdr fcd rtl rtl_tcp uhd hackrf bladerf rfspace airspy redpitaya
Using device #0 Realtek RTL SN: 0000002
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
gain: name: LNA range: start 0 stop 0 step 0
setting gain LNA to 35
supported sample rates 250000-2560000 step 24000
Using Volk machine: avx_64_mmx
[R82XX] PLL not locked!
set_center_freq: 773481250
Project 25 IMBE Encoder/Decoder Fixed-Point implementation
Developed by Pavel Yazev E-mail: pyazev@gmail.com
Version 1.0 (c) Copyright 2009
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; see the file ``LICENSE'' for details.
gr::log :INFO: audio source - Audio sink arch: alsa
Traceback (most recent call last):
File "./scope.py", line 2751, in <module>
app = stdgui2.stdapp(p25_rx_block, "APCO P25 Receiver", 3)
File "/home/bryan/target/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py", line 46, in __init__
wx.App.__init__ (self, redirect=False)
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7981, in __init__
self._BootstrapApp()
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7555, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "/home/bryan/target/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py", line 49, in OnInit
frame = stdframe (self.top_block_maker, self.title, self._nstatus)
File "/home/bryan/target/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py", line 76, in __init__
self.panel = stdpanel (self, self, top_block_maker)
File "/home/bryan/target/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py", line 98, in __init__
self.top_block = top_block_maker (frame, self, vbox, sys.argv)
File "./scope.py", line 224, in __init__
self.open_usrp()
File "./scope.py", line 1118, in open_usrp
self.__set_rx_from_osmosdr()
File "./scope.py", line 867, in __set_rx_from_osmosdr
self.__build_graph(self.src, capture_rate)
File "./scope.py", line 314, in __build_graph
self.trunk_rx = trunking.rx_ctl(frequency_set = self.change_freq, debug = self.options.verbosity, conf_file = self.options.trunk_conf_file, logfile_workers=logfile_workers)
File "/home/bryan/pybombs/src/gr-op25/op25/gr-op25_repeater/apps/trunking.py", line 509, in __init__
self.build_config_tsv(conf_file)
File "/home/bryan/pybombs/src/gr-op25/op25/gr-op25_repeater/apps/trunking.py", line 569, in build_config_tsv
nac = int(fields['nac'], 0)
KeyError: 'nac'

I have searched for this error but I'm unable to find a solution. Any help is greatly appreciated.
I am able to decode the CC of this site without any issues and all the screens appear as they should without the trunking stuff enabled.
 

PiccoIntegra

Member
Premium Subscriber
Joined
Dec 19, 2002
Messages
530
Location
North Texas
Hello,

It looks like you didn't include a NAC in your trunking file "talkgroups.tsv". Based on your location in your profile, I looked though the Pierce County Phase 2 systems and found "South Sound 911/Buckley site" based on the frequency in your error message . Is this the correct one? Unfortunately, that site doesn't provide the NAC, so you will have to do a little work to get it. It's not hard though...

Run this command:
Code:
./scope.py --args 'rtl=0' -N 'LNA:35' -f 773.48125e6 -S 2400000 -o 12500 -q 46 -v 0

If you're tuned correctly(and select PSK under Demod), then click the traffic tab to see what the NAC is. It will look simalar to this:
Code:
====== NAC 0x3b1 ====== 0 ======
rf: syid 3ba rfid 1 stid 1 frequency 853.275000 uplink 808.275000
net: syid 3ba wacn bee00 frequency 853.275000
secondary control channel(s): 852.675000,852.962500,853.300000

Mine says "NAC 0x3b1". The correct NAC for my system would be entered as "3b1". Yours will most likely be different.. Once you fix this, try the trunking command you posted earlier.

-Scott
 

78turbo

Member
Joined
Nov 15, 2011
Messages
59
Location
Mossyrock, WA
Thank you for the reply. I did find it while monitoring the site, showing 0x1e5. I did include this in the trunk.tsv file as shown by comparing with the original. I made sure there was no spaces, dead space, and only tabs between entries. Does it need to be in the talkgroup.tsv also? That may be my mistake.
 

PiccoIntegra

Member
Premium Subscriber
Joined
Dec 19, 2002
Messages
530
Location
North Texas
Oh.. yeah I thought talkgroups.tsv was a funny name for a trunking file. :)

If you modified the trunk.tsv file to include your system, then that's what you need to pass to the scope app.

./scope.py --args 'rtl=0' -N 'LNA:35' -f 773.48125e6 -S 2400000 -q 46 -v 10 -V -2 -T trunk.tsv
 

78turbo

Member
Joined
Nov 15, 2011
Messages
59
Location
Mossyrock, WA
Thank you, that was the key to getting it to work. Pointing to the wrong folder. I knew it had to be something simple. It has been way too long since i played with Linux and the set-up procedures
 

78turbo

Member
Joined
Nov 15, 2011
Messages
59
Location
Mossyrock, WA
I have to say that even though this has a very steep learning curve for beginners, the decode and audio is as good or better than my BCD996P2. I would highly recommend trying it to anyone with P25p2 systems. All the reviews were right about this.
 

PiccoIntegra

Member
Premium Subscriber
Joined
Dec 19, 2002
Messages
530
Location
North Texas
Mine says "NAC 0x3b1". The correct NAC for my system would be entered as "3b1". Yours will most likely be different.. Once you fix this, try the trunking command you posted earlier.

Correction.. ughh

The correct NAC for my system would be entered as "0x3b1"
 

78turbo

Member
Joined
Nov 15, 2011
Messages
59
Location
Mossyrock, WA
I was able to understand what you meant, so no problem with that. It is up and running good now. Thank you to all for the help. The clarification is greatly appreciated though.
 
Status
Not open for further replies.
Top