OP25 RasPi 4 + OP25 Not Using trunk.tsv or Streaming

Status
Not open for further replies.

dlchicago

Member
Feed Provider
Joined
May 31, 2007
Messages
25
Location
Chicago, IL
Hello!

First and foremost - thank you in advance for the help!

I provide the DUCOMM Channel 1 East feed in IL on Broadcastify and am looking to improve it by using my RasPi (maybe include more talkgroups, etc.).

I am trying to monitor STARCOM21 (Illinois; specifically the 774.43125 control channel) via OP25 on my RasPi 4.

I've managed to get OP25 to monitor the control channel with this script:
Code:
./rx.py --args 'rtl' -N 'LNA:49' -S 2500000 -f 774.43125e6 -2

Here's what I get:
working.jpg

I can see a lot of the Talkgroups I am familiar with showing up there - great!

As soon as I started adding additional arguments I get errors.

Logic dictates that I am doing something wrong...but I really don't know what! So any help/assistance is greatly appreciated!

I try this next:
Code:
./rx.py --args 'rtl' -N 'LNA:49' -S 2500000 -f 774.43125e6 -2 -T trunk.tsv

And I get this output:
Using Python /usr/bin/python2 gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.13.4 built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp Using device #0 Realtek RTL2838UHIDIR SN: 00000001 Found Rafael Micro R820T tuner [R82XX] PLL not locked! gain: name: LNA range: start 0 stop 0 step 0 setting gain LNA to 49 supported sample rates 250000-2560000 step 24000 Exact sample rate is: 2500000.107620 Hz [R82XX] PLL not locked! Using two-stage decimator for speed=2500000, decim=25/4 if1=100000 if2=25000 p25_frame_assembler_impl: do_imbe[0], do_output[0], do_audio_output[0], do_phase2_tdma[1], do_nocrypt[1] Traceback (most recent call last): File "./rx.py", line 1068, in <module> rx = rx_main() File "./rx.py", line 975, in __init__ self.tb = p25_rx_block(self.options) File "./rx.py", line 238, in __init__ self.open_usrp() File "./rx.py", line 890, in open_usrp self.__set_rx_from_osmosdr() File "./rx.py", line 819, in __set_rx_from_osmosdr self.__build_graph(self.src, capture_rate) File "./rx.py", line 370, 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/pi/op25/op25/gr-op25_repeater/apps/trunking.py", line 842, in __init__ self.build_config_tsv(conf_file) File "/home/pi/op25/op25/gr-op25_repeater/apps/trunking.py", line 977, in build_config_tsv self.setup_config(configs) File "/home/pi/op25/op25/gr-op25_repeater/apps/trunking.py", line 1031, in setup_config self.configs[nac]['cclist'].append(get_frequency(f)) File "/home/pi/op25/op25/gr-op25_repeater/apps/helper_funcs.py", line 46, in get_frequency return int(f) ValueError: invalid literal for int() with base 10: '0x145'

Any ideas? Is my trunk.tsv malformed? I simply edited the one that came with OP25 and saved it as the same format...

Could it be the file with the talkgroups? Again, I used the file that came with OP25 so it should be the correct format/file type.



Additionally, when I try to start the web service (without using the trunk.tsv) with this script:
Code:
./rx.py --args 'rtl' -N 'LNA:49' -S 2500000 -f 774.43125e6 -2 -l http://127.0.0.1:8080

I get this output:
Using Python /usr/bin/python2 gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.13.4 built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp Using device #0 Realtek RTL2838UHIDIR SN: 00000001 Found Rafael Micro R820T tuner [R82XX] PLL not locked! gain: name: LNA range: start 0 stop 0 step 0 setting gain LNA to 49 supported sample rates 250000-2560000 step 24000 Exact sample rate is: 2500000.107620 Hz [R82XX] PLL not locked! Using two-stage decimator for speed=2500000, decim=25/4 if1=100000 if2=25000 p25_frame_assembler_impl: do_imbe[0], do_output[0], do_audio_output[0], do_phase2_tdma[1], do_nocrypt[1] Failed to create http terminal server Traceback (most recent call last): File "/home/pi/op25/op25/gr-op25_repeater/apps/http_server.py", line 143, in __init__ self.server = create_server(application, host=host, port=my_port) File "/usr/lib/python2.7/dist-packages/waitress/server.py", line 49, in create_server adj = Adjustments(**kw) File "/usr/lib/python2.7/dist-packages/waitress/adjustments.py", line 368, in __init__ raise ValueError('Invalid host/port specified.') ValueError: Invalid host/port specified.

I assume I am doing something wrong here, neglecting to include a specific arguement, etc...but I really don't know what and my research leads me in circles.

Any help is greatly appreciated!

Thanks!
D
 

dlchicago

Member
Feed Provider
Joined
May 31, 2007
Messages
25
Location
Chicago, IL
Replace your
Code:
-l http://127.0.0.1:8080
with
Code:
-l http:127.0.0.1:8080

Thank you for the reply!

I've changed the script and no longer get errors - I had to change the port as well due to a conflict:
Code:
./rx.py --args 'rtl' -N 'LNA:49' -S 2500000 -f 774.43125e6 -2 -l http:192.168.0.110:8008

Now my next question is, and get ready for this one, how do I hear the audio? Ha, sorry!

I tried to connect to the stream from my rig here (my RasPi is remote via xrdp or SSH) by putting the local address and the port I used into VLC and Winamp but got nothing...I should note that netstat on the RasPi shows port 8008 as listening...

Again, sorry about the seemingly stupid question and thank you again for the reply!
D
 

NebraskaCoder

Member
Joined
Oct 26, 2016
Messages
325
Location
Omaha, NE
I'll have to let someone else answer as before the interface didn't stream but I'm not sure if I read about them adding support to the web interface itself.
 

dlchicago

Member
Feed Provider
Joined
May 31, 2007
Messages
25
Location
Chicago, IL
I'll have to let someone else answer as before the interface didn't stream but I'm not sure if I read about them adding support to the web interface itself.

I misunderstood the point of the web interface - it's just a GUI to see the info associated with the control frequency; it doesn't stream the audio.

Looks like I need to get liquidsoap operating and I'm in business.

Thanks again for your help!
D
 
Status
Not open for further replies.
Top