OP25 Major New OP25 Release - Seeking Beta Testers

Status
Not open for further replies.

rjdj2000

Gone Cuckoo
Feed Provider
Joined
Jan 24, 2011
Messages
363
Location
Central NY
@KA1RBI It has been a few years since I messed with the whole OP25 thing and you helped me with getting it going on a linux install on a Mac Pro at the time. While I still have the machine, just not used lately, I was trying to get the cortland system going in a VB on an Ubuntu Mate install on a Win 10 box before I attempt to do a RasPi 4 install. That I know of, thanks to post # 270 by @n8zuz, I was able to get into the repro, and get the ./install.sh to actually work, without screaming errors back at me.

Now to get it started, I know I need to modify the right .tsv files for trunking but I see you did have cortland in the trunk.tsv file. The control channel has changed from the 454.050 to 454.075, so I take it I can just change that in that file. Is there anything else that I need to change to use 1 RTL stick and be able to do voice using this:

Code:
cd ~/op25/op25/gr-op25_repeater/apps
./rx.py --args 'rtl' --gains 'lna:30' -X -T trunk.tsv -q -1 -S 960000 -U -P fft -l 'http:0.0.0.0:8080' -2 -v 10 2> stderr.2

Would I be better changing the -S 960000 to a higher value to be able to get whole system like I do with SDRTrunk? That is set for 2.4 on the dongle.

When I just ran the line above here is what I got: osmosdr source_c creation failure. Hopefully you or someone else can point me in right direction.

Thanks
 

rjdj2000

Gone Cuckoo
Feed Provider
Joined
Jan 24, 2011
Messages
363
Location
Central NY
Well, after adding the USB in the VM to Ubuntu Mate, I was able to get something.... After running the one line it is now doing:

gain: name: LNA range: start 0 stop 0 step 0
setting gain lna to 30
supported sample rates 250000-2560000 step 24000

It ends at that, I have changed the S 960000 to 2400000 and to 2560000 and I get the same output when trying to run this.
 

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
hello rjdj2000 - a fellow Cortland (County) native!

Inasmuch as Cortland will fit entirely within the tuning band of one SDR there would never be a need for you to have more than one RTL SDR stick - in fact the entire system can be gulped with a sampling rate of 1,000,000 (-S 1000000) and a "center frequency" of, say, 454.3.

You would be a prime candidate for running multi_rx on this system which would let you fully use the new SQL control channel logging features (but might be best to take one step at a time).

I see you've got the USB defined to the VM which should fix the initial error. Could I have you post the stderr log file, the TSV, and the command you're attempting? That should help to diagnose why it crashes shortly after startup.

I would also be interested and willing to meet you somewhere if that is within the realm of possibility.

Max
 

rjdj2000

Gone Cuckoo
Feed Provider
Joined
Jan 24, 2011
Messages
363
Location
Central NY
Thanks for the reply Max. You helped me before when I did the boatbod version of OP25 and I was able to get it running on the MacPro I had setup to boot into MacOS, Linux (don't remember what version) and Windows 7.

I am logging the control channel with UniTrunker on another machine and if I get this working on a Raspberry Pi, my initial setup is to gut out an old non-working Bearcat III I have and put the Pi and a few other things in there to have a new-old scanner. lol

Anyways, had to log in on the VM to do this but here is what is in the stderr file:

gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.8.1.0
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!
[R82XX] PLL not locked!
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.
op25_audio::eek:pen_socket(): enabled udp host(127.0.0.1), wireshark(23456), audio(23456)
p25_frame_assembler_impl: do_imbe[1], do_output[0], do_audio_output[1], do_phase2_tdma[1]
__set_rx_from_osmosdr(): failed to set frequency
Using two-stage decimator for speed=2560000, decim=20/4 if1=128000 if2=32000
Traceback (most recent call last):
File "./rx.py", line 873, in <module>
rx = rx_main()
File "./rx.py", line 796, in __init__
self.tb = p25_rx_block(self.options)
File "./rx.py", line 231, in __init__
self.open_usrp()
File "./rx.py", line 680, in open_usrp
self.__set_rx_from_osmosdr()
File "./rx.py", line 621, in __set_rx_from_osmosdr
self.__build_graph(self.src, capture_rate)
File "./rx.py", line 315, in __build_graph
sink = fft_sink_c()
File "/home/jeff/Downloads/op25/op25/gr-op25_repeater/apps/gr_gnuplot.py", line 477, in __init__
self.gnuplot = wrap_gp()
File "/home/jeff/Downloads/op25/op25/gr-op25_repeater/apps/gr_gnuplot.py", line 108, in __init__
self.attach_gp()
File "/home/jeff/Downloads/op25/op25/gr-op25_repeater/apps/gr_gnuplot.py", line 113, in attach_gp
self.gp = subprocess.Popen(args, executable=exe, stdin=subprocess.PIPE)
File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/gnuplot'

The command to run this I am using is the one in my previous post, abit trying to change the sampling rate in it but still the same.

The trunk tsv file is attached.... It don't like the .tsv ending so I just renamed to the zip so when you look at it, rename to tsv as it is not a zip file

As far as meeting sometime, yeah we could. I work in Virgil so I am there throughout the week.
 

Attachments

  • trunk.zip
    452 bytes · Views: 5

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/gnuplot'

Should be able to fix this by running the command "sudo apt-get install gnuplot-x11" (quotes not needed)

As far as meeting sometime, yeah we could. I work in Virgil so I am there throughout the week.

haha, I live in Virgil! Let's set a time and place - afternoons generally are good, sometime next week?.....
 

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
rjdj2000 - as far as the TSV file I saw two issues-
1) please get rid of all lines except the first (Sysname ... Control Channel... etc), and the line that starts with "Cortland".
2) There is a spurious line that starts with 460.375 - not sure how that got there but should also be deleted.

The result should have two lines - the header line and the Cortland line...

Max
 

rjdj2000

Gone Cuckoo
Feed Provider
Joined
Jan 24, 2011
Messages
363
Location
Central NY
rjdj2000 - as far as the TSV file I saw two issues-
1) please get rid of all lines except the first (Sysname ... Control Channel... etc), and the line that starts with "Cortland".
2) There is a spurious line that starts with 460.375 - not sure how that got there but should also be deleted.

The result should have two lines - the header line and the Cortland line...

Max

Install gnuplot with no errors...... Will remove all in the trunk tsv file except cortland. The line that has the 460 was there, I just changed the file, through LibreOffice Calc as I can save it back out with the tab/comma spacing and not have to worry about messing it up, unless there is a better way...lol

Will try running it after making the changes and will post back how I make out.

As to meeting up, just send me a PM as I am at work till 4 pm M-F and I am not hard to find, blue buildings give a clue?
 

rjdj2000

Gone Cuckoo
Feed Provider
Joined
Jan 24, 2011
Messages
363
Location
Central NY
Ok, well we are heading in right direction, I think. Ran again and got the source_c creation failure again.... Here is some of the stderr file from that:


r-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.8.1.0

built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp
Using device #0
rtlsdr_write_reg failed with -7
Resetting device...
rtlsdr_write_reg failed with -4
rtlsdr_write_reg failed with -4
rtlsdr_write_reg failed with -4
rtlsdr_write_reg failed with -4
rtlsdr_write_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4

I know I blacklisted the RTLxxx or something like that awhile back before doing the main install from instructions to run SDRTrunk on a linux machine so may have to add to it.... not sure
 

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
rtlsdr_write_reg failed with -7
Resetting device...
rtlsdr_write_reg failed with -4
rtlsdr_write_reg failed with -4
rtlsdr_write_reg failed with -4
rtlsdr_write_reg failed with -4
rtlsdr_write_reg failed with -4

As a guess I'd suspect that the RTL USB device isn't fully making it through the VM boundary - some sort of permissions problems?

Assuming the rtl-sdr package is installed you should be able to run the "rtl_test" command...

Max
 

rjdj2000

Gone Cuckoo
Feed Provider
Joined
Jan 24, 2011
Messages
363
Location
Central NY
As a guess I'd suspect that the RTL USB device isn't fully making it through the VM boundary - some sort of permissions problems?

Assuming the rtl-sdr package is installed you should be able to run the "rtl_test" command...

Max
Ok, that gives No supported devices found. Nuts...... Well off to see how to get USB from the windows box to the VM. Thought it would of been there but guess not.... Should I restart the VM? as I am showing USB at 1.0 and no 2.0/3.0 on it and I know windows are at least 2.0. Saw another thing about installing an extension pack in virtualbox?
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,462
Location
Talbot Co, MD
In VirtualBox you have to click on the Devices->USB tab at the bottom of the screen and select the particular device you want to pass through to the virtual client.
 

rjdj2000

Gone Cuckoo
Feed Provider
Joined
Jan 24, 2011
Messages
363
Location
Central NY
In VirtualBox you have to click on the Devices->USB tab at the bottom of the screen and select the particular device you want to pass through to the virtual client.
Says it failed to attach USB device Realtek RTL2838UHIDIR to virtual machine....
 

rjdj2000

Gone Cuckoo
Feed Provider
Joined
Jan 24, 2011
Messages
363
Location
Central NY
Well latest attempt supposedly has the USB ok. sdterr.2 below:

gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.8.1.0
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!
Exact sample rate is: 1000000.026491 Hz
[R82XX] PLL not locked!
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.
op25_audio::eek:pen_socket(): enabled udp host(127.0.0.1), wireshark(23456), audio(23456)
p25_frame_assembler_impl: do_imbe[1], do_output[0], do_audio_output[1], do_phase2_tdma[1]
__set_rx_from_osmosdr(): failed to set frequency
Using two-stage decimator for speed=1000000, decim=10/4 if1=100000 if2=25000
Traceback (most recent call last):
File "./rx.py", line 873, in <module>
rx = rx_main()
File "./rx.py", line 796, in __init__
self.tb = p25_rx_block(self.options)
File "./rx.py", line 231, in __init__
self.open_usrp()
File "./rx.py", line 680, in open_usrp
self.__set_rx_from_osmosdr()
File "./rx.py", line 621, in __set_rx_from_osmosdr
self.__build_graph(self.src, capture_rate)
File "./rx.py", line 360, 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, send_event=self.send_event)
File "/home/jeff/Downloads/op25/op25/gr-op25_repeater/apps/trunking.py", line 1183, in __init__
self.build_config_tsv(conf_file)
File "/home/jeff/Downloads/op25/op25/gr-op25_repeater/apps/trunking.py", line 1252, in build_config_tsv
self.setup_config(load_tsv(tsv_filename))
File "/home/jeff/Downloads/op25/op25/gr-op25_repeater/apps/trunking.py", line 1313, in setup_config
self.configs = make_config(configs)
File "/home/jeff/Downloads/op25/op25/gr-op25_repeater/apps/tsvfile.py", line 177, in make_config
read_tags_file(tgid_tags_file, result_config[nac]['tgid_map'])
File "/home/jeff/Downloads/op25/op25/gr-op25_repeater/apps/tsvfile.py", line 141, in read_tags_file
txt = row[1]
IndexError: list index out of range

Someday I will understand this.... LOL Going to be installing directly onto an old laptop tonight and see if I can eliminate some of the VM issues by being direct onto machine.
 

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
Code:
File "/home/jeff/Downloads/op25/op25/gr-op25_repeater/apps/tsvfile.py", line 141, in read_tags_file

It's trying to read the tgid alpha-tag TSV file and is erroring out for some reason

A couple of possibilities
1) the trunking TSV file has an invalid file name for the tgid tags file (or possibly the tab stops are messed up)
2) the tags file is missing.

I've attached a zipped copy of my tags file - it was grabbed eons ago so some could be missing .......
 

Attachments

  • cortland-tags.zip
    795 bytes · Views: 7

rjdj2000

Gone Cuckoo
Feed Provider
Joined
Jan 24, 2011
Messages
363
Location
Central NY
Well I think that was it Max. It is just sitting there so I went to the error log and here is some of what I got.

1649958821.255776 p25p1_fdma::rx_sym() timeout, channel 0
1649958822.324224 p25p1_fdma::rx_sym() timeout, channel 0
1649958823.351040 p25p1_fdma::rx_sym() timeout, channel 0
1649958824.425051 p25p1_fdma::rx_sym() timeout, channel 0
1649958825.447900 p25p1_fdma::rx_sym() timeout, channel 0
1649958826.504075 p25p1_fdma::rx_sym() timeout, channel 0
1649958827.563023 p25p1_fdma::rx_sym() timeout, channel 0
1649958828.617035 p25p1_fdma::rx_sym() timeout, channel 0
1649958829.678526 p25p1_fdma::rx_sym() timeout, channel 0
1649958830.731588 p25p1_fdma::rx_sym() timeout, channel 0
1649958831.794749 p25p1_fdma::rx_sym() timeout, channel 0
1649958832.846670 p25p1_fdma::rx_sym() timeout, channel 0
1649958833.937811 p25p1_fdma::rx_sym() timeout, channel 0
1649958834.944287 p25p1_fdma::rx_sym() timeout, channel 0
1649958836.007418 p25p1_fdma::rx_sym() timeout, channel 0
1649958837.041393 p25p1_fdma::rx_sym() timeout, channel 0
1649958838.093553 p25p1_fdma::rx_sym() timeout, channel 0
1649958777.028384 control channel timeout, current CC 454075000
frequency_tracking 0 0 0 0 0.000000
1649958778.088272 process_data_unit timeout, channel 0
1649958778.088283 control channel timeout, current CC 454075000
1649958779.142920 process_data_unit timeout, channel 0
1649958779.142935 control channel timeout, current CC 454075000
1649958779.142894 Cortland: cycling to next trunk_cc: 454075000
1649958780.151394 process_data_unit timeout, channel 0
1649958780.151410 control channel timeout, current CC 454075000
frequency_tracking 0 0 0 0 0.000000
1649958781.260462 process_data_unit timeout, channel 0
1649958781.260473 control channel timeout, current CC 454075000
1649958782.292868 process_data_unit timeout, channel 0
1649958782.292883 control channel timeout, current CC 454075000

So I am thinking a) offset isn't right for the lna gain.

I have a terrible time trying to get this system here at work in the building, even a HP1 has to sit in the window with a non-stock antenna and I still don't get it all and that is all that is loaded/turned on in it.

I just closed it all down and fired up SDRTrunk for the heck of it to see the ppm value and I have 40.3 in there and it is off according to sdrtrunk by 1.0 ppm. I was able to get control channel in it but when it goes to a voice, it may get part of it and it might not. I am thinking I'll have to try it later on some other hardware and way better signal at home as I can get 100% signal with the stock rtl antenna where I live.
 
Last edited:

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
ok the ppm value you mentioned (40.3) if that is anywhere near correct it disagrees with your command line (-q -1).

Have you tried changing to "-q 40" ?

Also try increasing the gain from "lna:30" to "lna:49"?

Also with the "-P fft" option you should be seeing an FFT plot - what does that look like?

Max
 

rjdj2000

Gone Cuckoo
Feed Provider
Joined
Jan 24, 2011
Messages
363
Location
Central NY
ok the ppm value you mentioned (40.3) if that is anywhere near correct it disagrees with your command line (-q -1).

Have you tried changing to "-q 40" ?

Also try increasing the gain from "lna:30" to "lna:49"?

Also with the "-P fft" option you should be seeing an FFT plot - what does that look like?

Max

Max,

Didn't see any windows open and when I tried to go to the 127.0.0.0:8080 it said it couldn't reach the page..... When trying to view the webpage should I just do loalhost:8080 and see where that gets me?

I totally forgot the ppm value went there.... will try it when I get home as I can set this up, as I know enough now of what to do and I can look back on here to retrace my steps to get it working. The ppm value of the stick I have at home is like 68 or so, so I will use that on it. The lna gain I had at 40 in the command I ran here in the VM. At home I shouldn't even need it that high lol.
 

rjdj2000

Gone Cuckoo
Feed Provider
Joined
Jan 24, 2011
Messages
363
Location
Central NY
127.0.0.0 isn't valid; you could try http://127.0.0.1:8080 or http://localhost:8080 - also with your "-l" option it would do all plotting to the http web client, so you wouldn't see any plot windows opening in the terminal that invoked rx.py...

Ok. Well I may mess with it again some tomorrow if I get a few minutes to play around with it. Trying to get a laptop setup now with Ubuntu Mate so I can work with it directly and not through a VM.

One other thing, as MacOS has terminal in it, can this be run on a Mac? I know probably not the newer processors (M1 etc) but on an intel based one.
 

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
there are groups within the GNU Radio community that work on Mac ports but I haven't talked to them in years (haha, hello *MLD*!)

Also I know of no Mac port of op25.....

Max
 
Status
Not open for further replies.
Top