OP25 VirtualBox Project - Run OP25 on Windows 7

Status
Not open for further replies.

DRL-XM43

Member
Joined
Jun 23, 2015
Messages
842
Reaction score
161
Location
Durham Region
You can rerun the install.sh script (and should, periodically, to pick up the latest updates). It sounds like there's an issue with gnuradio in recent Ubuntu (and Mint probably uses the same packages). I can't tell if the failure is something you can ignore or not. Maybe I'll install Ubuntu 18 or Mint in a virtual machine and see if I can reproduce it. Meanwhile, run the script again, and paste the entire output, so we can see how far it's getting...

Ok I will run the install script again.

The guy in the second thread said the software ran fine in spite of getting the same error. I don't even know a command to run a prog to even try that...

Note I ran the driver manager which also stopped on the same error, the update manager did too?

They both ran ok before I updated the system, also the update manager gave me an error box which said I needed to run something manually, which I did, after a few lines of updating it also ended with the same error message.
 

Dark-Sky

Member
Joined
Sep 30, 2016
Messages
102
Reaction score
4
Location
Central Arkansas
I installed op25 on my Mint 19 install (Latest Mint) and saw the warnings you saw but it got past that and op25 runs just fine.

Here is what I think. First running on a usb stick will load / write slowly and the script defaulted to only one processor job so I believe you did not wait long enough for things to complete.

I would suggest running the script again and wait it out. You can speed up the compiling by running this on the command line before running the install.sh script:

export MAKEFLAGS="-j4"

You can change the 4 to the actual number of cpu cores you have.

When it completes contact boatbod with the info he requested here so he can help you with your System specific settings:

https://forums.radioreference.com/3020194-post2181.html
 
Last edited:

DRL-XM43

Member
Joined
Jun 23, 2015
Messages
842
Reaction score
161
Location
Durham Region
I left it for quite a while but the cursor just sat blinking under the error. When I closed the box it warned there were still processes but my sense was it was going nowhere.

Is there something I can try... I am totally Linux illiterate,

Can I re-run the script again? or does it need to be uninstalled?

OK ran ./install again looks like everything was installed already it ended like this...

-- Up-to-date: /usr/local/lib/python2.7/dist-packages/op25_repeater/__init__.py
-- Up-to-date: /usr/local/lib/python2.7/dist-packages/op25_repeater/__init__.pyc
-- Up-to-date: /usr/local/lib/python2.7/dist-packages/op25_repeater/__init__.pyo
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_repeater_vocoder.xml
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_repeater_gardner_costas_cc.xml
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_repeater_p25_frame_assembler.xml
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_repeater_fsk4_slicer_fb.xml
======
====== NOTICE
======
====== The gnuplot package is not installed by default here,
====== as its installation requires numerous prerequisite packages
====== that you may not want to install.
======
====== In order to do plotting in rx.py using the -P option
====== you must install gnuplot, e.g., manually as follows:
======
====== sudo apt-get install gnuplot-x11
======
mint@mint:~/op25$


Is there a command I can run in the directory to test the program, boat talked a bout a configuration prg.
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,616
Reaction score
1,012
Location
Talbot Co, MD
OK ran ./install again looks like everything was installed already it ended like this...

-- Up-to-date: /usr/local/lib/python2.7/dist-packages/op25_repeater/__init__.py
-- Up-to-date: /usr/local/lib/python2.7/dist-packages/op25_repeater/__init__.pyc
-- Up-to-date: /usr/local/lib/python2.7/dist-packages/op25_repeater/__init__.pyo
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_repeater_vocoder.xml
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_repeater_gardner_costas_cc.xml
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_repeater_p25_frame_assembler.xml
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_repeater_fsk4_slicer_fb.xml
======
====== NOTICE
======
====== The gnuplot package is not installed by default here,
====== as its installation requires numerous prerequisite packages
====== that you may not want to install.
======
====== In order to do plotting in rx.py using the -P option
====== you must install gnuplot, e.g., manually as follows:
======
====== sudo apt-get install gnuplot-x11
======
mint@mint:~/op25$


Is there a command I can run in the directory to test the program, boat talked a bout a configuration prg.

You probably want to go ahead and install the gnuplot-x11 package so that you can use the plots if necessary.
Code:
sudo apt-get install gnuplot-x11

There's no configuration tool - you make the config files with a simple text editor, but if you send me a link to the RRDB entry for the system (and specific site) I will attempt to assist with config files.
 

Dark-Sky

Member
Joined
Sep 30, 2016
Messages
102
Reaction score
4
Location
Central Arkansas
I would also suggest delete all of the upgrade and install files that was downloaded from your persistence file to make it lean as possible. They are just taking up space. In a terminal:

sudo apt-get clean
 
Last edited:

N6ML

Member
Joined
Sep 26, 2008
Messages
1,290
Reaction score
498
OK ran ./install again looks like everything was installed already it ended like this...

-- Up-to-date: /usr/local/lib/python2.7/dist-packages/op25_repeater/__init__.py
-- Up-to-date: /usr/local/lib/python2.7/dist-packages/op25_repeater/__init__.pyc
-- Up-to-date: /usr/local/lib/python2.7/dist-packages/op25_repeater/__init__.pyo
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_repeater_vocoder.xml
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_repeater_gardner_costas_cc.xml
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_repeater_p25_frame_assembler.xml
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_repeater_fsk4_slicer_fb.xml
======
====== NOTICE
======
====== The gnuplot package is not installed by default here,
====== as its installation requires numerous prerequisite packages
====== that you may not want to install.
======
====== In order to do plotting in rx.py using the -P option
====== you must install gnuplot, e.g., manually as follows:
======
====== sudo apt-get install gnuplot-x11
======
mint@mint:~/op25$


Is there a command I can run in the directory to test the program, boat talked a bout a configuration prg.

You could, perhaps, do something like:

Code:
python -c "import op25"

If that doesn't produce any errors, there's a fair chance the bits are installed properly. From the output your pasted, it looks good, though.

To really test it, you need to assemble the configuration to receive a system in your area (see boatbod's post).
 

DRL-XM43

Member
Joined
Jun 23, 2015
Messages
842
Reaction score
161
Location
Durham Region
You probably want to go ahead and install the gnuplot-x11 package so that you can use the plots if necessary.
Code:
sudo apt-get install gnuplot-x11

There's no configuration tool - you make the config files with a simple text editor, but if you send me a link to the RRDB entry for the system (and specific site) I will attempt to assist with config files.

OK after burning the iso onto a usb stick trying several different burners I finally have accomplished 50% of my goal.

What I have running is... op25 with no errors and the gnuscope.showing accurate tuning

I am tuned to this system https://www.radioreference.com/apps/db/?siteId=15592

The tuning is good and op25 reports the correct NAC in the top left hand corner, there are voice frequencies scrolling.

I launched op25 with this command line

./rx.py -P fft --args "rtl=0" --gains 'lna:36' -S 2400000 -v 1 -q 1 -f 410.2125e6 -2 -U 2>stderr.2

It is a random command line I pooched from a thread somewhere but it seems to work fine.

I know from reading threads that to have sound and trunk tracking there are other things I need to do. I am lacking the what the how and the why lol-- so would appreciate any pointers to get there.

Thanks to all for their help so far I appreciate it. Regards, D.
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,616
Reaction score
1,012
Location
Talbot Co, MD
OK after burning the iso onto a usb stick trying several different burners I finally have accomplished 50% of my goal.

What I have running is... op25 with no errors and the gnuscope.showing accurate tuning

I am tuned to this system https://www.radioreference.com/apps/db/?siteId=15592

The tuning is good and op25 reports the correct NAC in the top left hand corner, there are voice frequencies scrolling.

I launched op25 with this command line

./rx.py -P fft --args "rtl=0" --gains 'lna:36' -S 2400000 -v 1 -q 1 -f 410.2125e6 -2 -U 2>stderr.2

It is a random command line I pooched from a thread somewhere but it seems to work fine.

I know from reading threads that to have sound and trunk tracking there are other things I need to do. I am lacking the what the how and the why lol-- so would appreciate any pointers to get there.

Thanks to all for their help so far I appreciate it. Regards, D.
You definitely need -T trunk.tsv but not much else. Just for the heck of it try pressing "t" in the terminal window and see if this starts trunking and audio.
 

DRL-XM43

Member
Joined
Jun 23, 2015
Messages
842
Reaction score
161
Location
Durham Region
You definitely need -T trunk.tsv but not much else. Just for the heck of it try pressing "t" in the terminal window and see if this starts trunking and audio.

The "t" kicked me out :) and said this

mint@mint:~/op25/op25/gr-op25_repeater/apps$ ./rx.py -P fft --args "rtl=0" --gains 'lna:70' -S 2400000 -v 1 -q 1 -f 410.2125e6 -2 -U 2>stderr.2
linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown

gain: name: LNA range: start 0 stop 0 step 0
setting gain lna to 70
supported sample rates 250000-2560000 step 24000
mint@mint:~/op25/op25/gr-op25_repeater/apps$
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,616
Reaction score
1,012
Location
Talbot Co, MD
The "t" kicked me out :) and said this

mint@mint:~/op25/op25/gr-op25_repeater/apps$ ./rx.py -P fft --args "rtl=0" --gains 'lna:70' -S 2400000 -v 1 -q 1 -f 410.2125e6 -2 -U 2>stderr.2
linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown

gain: name: LNA range: start 0 stop 0 step 0
setting gain lna to 70
supported sample rates 250000-2560000 step 24000
mint@mint:~/op25/op25/gr-op25_repeater/apps$

Oh my. I must be on a roll tonight -- two latent bugs squished thanks to error reports of unexpected bahavior.
Please perform a "git pull" and the fix for pressing t in the terminal will magically appear.

Note: I changed two library header files which will require a "make" and "make install" to deploy, but those are not significant unless you are interested in monitoring encryption keyid.
 
Last edited:

DRL-XM43

Member
Joined
Jun 23, 2015
Messages
842
Reaction score
161
Location
Durham Region
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[0], do_nocrypt[0]
audio device: default
terminal: exception occurred (80, 24)
terminal: exception:
Traceback (most recent call last):
File "/home/mint/op25/op25/gr-op25_repeater/apps/terminal.py", line 293, in run
if self.process_q_events():
File "/home/mint/op25/op25/gr-op25_repeater/apps/terminal.py", line 276, in process_q_events
return self.process_json(msg.to_string())
File "/home/mint/op25/op25/gr-op25_repeater/apps/terminal.py", line 211, in process_json
s = 'NAC 0x%x' % (int(current_nac))
ValueError: invalid literal for int() with base 10: '417.0'
What was the last few lines written to stderr.2?
 

DRL-XM43

Member
Joined
Jun 23, 2015
Messages
842
Reaction score
161
Location
Durham Region
Oh my. I must be on a roll tonight -- two latent bugs squished thanks to error reports of unexpected bahavior.
Please perform a "git pull" and the fix for pressing t in the terminal will magically appear.

Note: I changed two library header files which will require a "make" and "make install" to deploy, but those are not significant unless you are interested in monitoring encryption keyid.

Boatbod YOU are magic!!!

Working like a charm :)

THANK YOU
 

DRL-XM43

Member
Joined
Jun 23, 2015
Messages
842
Reaction score
161
Location
Durham Region
You definitely need -T trunk.tsv but not much else. Just for the heck of it try pressing "t" in the terminal window and see if this starts trunking and audio.

Now that I am up and running with manual command line inputs...

What would trunk.tsv do for me?
Can I make a batch file to automate the startup?
Can I suppress encrypted?

Thx
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,616
Reaction score
1,012
Location
Talbot Co, MD
Now that I am up and running with manual command line inputs...

What would trunk.tsv do for me?
Can I make a batch file to automate the startup?
Can I suppress encrypted?

Thx

1. trunk.tsv allows you to set up the relationship between control channel frequency, nac and trunk-tags, whitelist, blacklist files. You'll need it if you want to auto-start.

2. Yes you can, but be careful of auto starting without a screen to display the terminal. You need to swap to the http console type.

3. Yes. Add "--nocrypt" on the command line.
 

DRL-XM43

Member
Joined
Jun 23, 2015
Messages
842
Reaction score
161
Location
Durham Region
1. trunk.tsv allows you to set up the relationship between control channel frequency, nac and trunk-tags, whitelist, blacklist files. You'll need it if you want to auto-start.

2. Yes you can, but be careful of auto starting without a screen to display the terminal. You need to swap to the http console type.

3. Yes. Add "--nocrypt" on the command line.

1. Since op25 is trunk tracking/following perfectly without one I think I'm good.

2. I meant a startup file so I don't have to input all the command line stuff each time I use it, like a batch file..

3. Worked great thank you again.
 

apu

Member
Joined
Dec 19, 2002
Messages
128
Reaction score
2
You can put your command line
Code:
./rx.py -P fft --args "rtl=0" --gains 'lna:70' -S 2400000 -v 1 -q 1 -f 410.2125e6 -2 -U 2>stderr.2
into a text file such as start.sh, make the shell script executable (chmod +x start.sh) and then run ./start.sh instead of typing the full command above.

But the trunk.tsv file and associated files will make for a better experience so you can run start.sh and not have to type "t" to actually start using the software, to name the talkgroups, to listen to some and block others, etc.
 

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Reaction score
135
Location
Portage Escarpment
Hey Graham

In op25_stats.sh there are some grep commands such as

Code:
grep 'set tgid:'

By any chance, are the log lines in question supposed to be these? :
Code:
trunking.py:  sys.stderr.write('%f set tgid=%s, srcaddr=%s\n' % (time.time(), tgid, srcaddr))

The string that's being grepped for fails to match the one in the message?

Max
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,616
Reaction score
1,012
Location
Talbot Co, MD
Hey Graham

In op25_stats.sh there are some grep commands such as

Code:
grep 'set tgid:'

By any chance, are the log lines in question supposed to be these? :
Code:
trunking.py:  sys.stderr.write('%f set tgid=%s, srcaddr=%s\n' % (time.time(), tgid, srcaddr))

The string that's being grepped for fails to match the one in the message?

Max

Max, it does look like you are on to something. To be honest I haven't looked in to this issue since I'm not the author of op25_stats nor do I use it. Should be an easy fix though. Thanks!

ETA: I think I fixed it. Pull and update and the stats should work again.
 
Last edited:

DRL-XM43

Member
Joined
Jun 23, 2015
Messages
842
Reaction score
161
Location
Durham Region
You can put your command line
Code:
./rx.py -P fft --args "rtl=0" --gains 'lna:70' -S 2400000 -v 1 -q 1 -f 410.2125e6 -2 -U 2>stderr.2
into a text file such as start.sh, make the shell script executable (chmod +x start.sh) and then run ./start.sh instead of typing the full command above.

But the trunk.tsv file and associated files will make for a better experience so you can run start.sh and not have to type "t" to actually start using the software, to name the talkgroups, to listen to some and block others, etc.

OK now I am completely dead in the water :-(

cd
cd op25
sudo nano op25.sh

pasted in

#! /bin/sh

cd ~/op25/op25/gr-op25_repeater/apps

./rx.py -P fft --args "rtl=0" --gains 'lna:70' -S 2400000 -v 1 -q 1 -f 410.2125e6 -2 -U

saved that and executed sudo chmod +x op25.sh

Running it just invoked the .rx/py help list.

So I went back to manual command line inputs but when I ran ./rx.py -P fft --args "rtl=0" --gains 'lna:70' -S 2400000 -v 1 -q 1 -f 410.2125e6 -2 -U it also just produced ./rx help listing?

So I deleted the op25.sh file and deleted the op25 folder and redid the op25 install routines again.

So what I thought would be a clean install still just displays ./rx help listing? when I execute the command line.

Any help or guidance to get me back to where I was (beautiful op25 decoding) I will be most grateful thanks.
 
Status
Not open for further replies.
Top