OP25 op25 boatbod with gnuradio-3.10

viggendriver

Member
Joined
May 3, 2020
Messages
18
Got tied up this weekend but I got things somewhat working but it seems to be choking on the NAC which is 0x3c2 for the system I've been using and it worked in the past. I tried leaving it empty with the same result

./rx.py --args 'airspy' --gains 'lna:30' -X -T trunk.tsv -q 40 -S 2500000 -U -P fft -l 'http:0.0.0.0:8080' -2 -v 10 2>stderr.2


Using Python /usr/bin/python3
gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.10.1.1
built-in source types: file fcd rtl rtl_tcp uhd hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp
Using AirSpy NOS v1.0.0-rc10-3-g7120e77 2018-04-28, samplerates: 2.5M 10M
gain: name: LNA range: start 0 stop 15 step 1
gain: name: MIX range: start 0 stop 15 step 1
gain: name: IF range: start 0 stop 15 step 1
setting gain lna to 30
supported sample rates 2500000-10000000 step 7500000
Airspy decim:1 kernel size:47
Using two-stage decimator for speed=2500000, decim=25/4 if1=100000 if2=25000
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], do_nocrypt[0]
Traceback (most recent call last):
File "/home/sig/Downloads/op25/op25/gr-op25_repeater/apps/./rx.py", line 1101, in <module>
rx = rx_main()
File "/home/sig/Downloads/op25/op25/gr-op25_repeater/apps/./rx.py", line 1005, in __init__
self.tb = p25_rx_block(self.options)
File "/home/sig/Downloads/op25/op25/gr-op25_repeater/apps/./rx.py", line 241, in __init__
self.open_usrp()
File "/home/sig/Downloads/op25/op25/gr-op25_repeater/apps/./rx.py", line 909, in open_usrp
self.__set_rx_from_osmosdr()
File "/home/sig/Downloads/op25/op25/gr-op25_repeater/apps/./rx.py", line 838, in __set_rx_from_osmosdr
self.__build_graph(self.src, capture_rate)
File "/home/sig/Downloads/op25/op25/gr-op25_repeater/apps/./rx.py", line 377, 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/sig/Downloads/op25/op25/gr-op25_repeater/apps/trunking.py", line 1278, in __init__
self.build_config_tsv(conf_file)
File "/home/sig/Downloads/op25/op25/gr-op25_repeater/apps/trunking.py", line 1374, in build_config_tsv
configs = read_tsv_file(tsv_filename, "nac")
File "/home/sig/Downloads/op25/op25/gr-op25_repeater/apps/helper_funcs.py", line 156, in read_tsv_file
key_val = int(fields[key], 0)
KeyError: 'nac'
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,410
Location
Talbot Co, MD
Did you make sure the parameters in trunk.tsv are separate by a single tab character?
Sometimes editors covert the tabs to spaces and this messes things up.
 

code37f

Member
Joined
Feb 18, 2013
Messages
12

A similar thread or post new thread ?​

op25 boatbod with Ubuntu 22.04.2 -- gnuradio-3.10-- still Alpha test ?​


I was running op25 Ubuntu-18 and decided to upgrade to U-22.

I am having a snag with a fresh install of Ubuntu and op25, read the past posts and don't know what to do next.

./rx.py --args 'airspy' --gains 'lna:43' -X -T trunk.tsv -q 0 -S 2500000 -U -P fft -l 'http:0.0.0.0:8080' -2 -v 5 -w 2>stderr.2


I get....."Already on 'gr310'
Your branch is up to date with 'origin/gr310'."

When I run rx.py I get
line 72, in <module>
from gnuradio import audio, eng_notation, gr, gru, filter, blocks, fft, analog, digital
ImportError: cannot import name 'gru' from 'gnuradio' (/usr/lib/python3/dist-packages/gnuradio/__init__.py)

When I run
gnuradio-companion --version
usage: gnuradio-companion [-h] [--log {debug,info,warning,error,critical}] [flow_graphs ...]
gnuradio-companion: error: unrecognized arguments: --version

and.............:~/op25/op25/gr-op25_repeater/apps$ gnuradio-config-info --version 3.10.1.1

./rx.py --args 'airspy' --gains 'lna:43' -X -T trunk.tsv -q 0 -S 2500000 -U -P fft -l 'http:0.0.0.0:8080' -2 -v 5 -w 2>stderr.2

Where do I go from here ?
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,410
Location
Talbot Co, MD

A similar thread or post new thread ?​

op25 boatbod with Ubuntu 22.04.2 -- gnuradio-3.10-- still Alpha test ?​


I was running op25 Ubuntu-18 and decided to upgrade to U-22.

I am having a snag with a fresh install of Ubuntu and op25, read the past posts and don't know what to do next.

./rx.py --args 'airspy' --gains 'lna:43' -X -T trunk.tsv -q 0 -S 2500000 -U -P fft -l 'http:0.0.0.0:8080' -2 -v 5 -w 2>stderr.2


I get....."Already on 'gr310'
Your branch is up to date with 'origin/gr310'."

When I run rx.py I get
line 72, in <module>
from gnuradio import audio, eng_notation, gr, gru, filter, blocks, fft, analog, digital
ImportError: cannot import name 'gru' from 'gnuradio' (/usr/lib/python3/dist-packages/gnuradio/__init__.py)

When I run
gnuradio-companion --version
usage: gnuradio-companion [-h] [--log {debug,info,warning,error,critical}] [flow_graphs ...]
gnuradio-companion: error: unrecognized arguments: --version

and.............:~/op25/op25/gr-op25_repeater/apps$ gnuradio-config-info --version 3.10.1.1

./rx.py --args 'airspy' --gains 'lna:43' -X -T trunk.tsv -q 0 -S 2500000 -U -P fft -l 'http:0.0.0.0:8080' -2 -v 5 -w 2>stderr.2

Where do I go from here ?
"gru" is not part of gnuradio-3.10 so something either didn't build correctly, or possible there are left-over libraries from the earlier version.

I'd first perform an uninstall (cd ~/op25/build; sudo make uninstall) then take a look in /usr/local/lib and see if there are any remnants of op25 left around and delete them before rebuilding & reinstalling.
 

code37f

Member
Joined
Feb 18, 2013
Messages
12
Boatbod, thank you for the response. On your advice, the reinstall was done.
I switched out the Airspy for RTL2838.

When running ./rx.py --nocrypt --args "rtl" --gains 'lna:39' -S 960000 -l http:127.0.0.1:8080 -X -q 0 -v 1 -n -2 -V -U -T trunk.tsv 2> stderr.2
I then get these warnings and return to CLI.

Using Python /usr/bin/python3
gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.10.1.1
built-in source types: file fcd rtl rtl_tcp uhd hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp
[INFO] [UHD] linux; GNU C++ version 11.2.0; Boost_107400; UHD_4.1.0.5-3
libusb: warning [libusb_exit] device 2.2 still referenced
libusb: warning [libusb_exit] device 2.1 still referenced
libusb: warning [libusb_exit] device 1.2 still referenced
libusb: warning [libusb_exit] device 1.1 still referenced
libusb: warning [libusb_exit] device 4.1 still referenced
libusb: warning [libusb_exit] device 3.3 still referenced
libusb: warning [libusb_exit] device 3.2 still referenced
libusb: warning [libusb_exit] device 3.4 still referenced
libusb: warning [libusb_exit] device 3.1 still referenced
Using device #0 Realtek RTL2838UHIDIR SN: 00000001
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
gain: name: LNA range: start 0 stop 49 step 0
supported sample rates 250000-2560000 step 24000

I am not sure what to edit or do next.
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,410
Location
Talbot Co, MD
Boatbod, thank you for the response. On your advice, the reinstall was done.
I switched out the Airspy for RTL2838.

When running ./rx.py --nocrypt --args "rtl" --gains 'lna:39' -S 960000 -l http:127.0.0.1:8080 -X -q 0 -v 1 -n -2 -V -U -T trunk.tsv 2> stderr.2
I then get these warnings and return to CLI.

Using Python /usr/bin/python3
gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.10.1.1
built-in source types: file fcd rtl rtl_tcp uhd hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp
[INFO] [UHD] linux; GNU C++ version 11.2.0; Boost_107400; UHD_4.1.0.5-3
libusb: warning [libusb_exit] device 2.2 still referenced
libusb: warning [libusb_exit] device 2.1 still referenced
libusb: warning [libusb_exit] device 1.2 still referenced
libusb: warning [libusb_exit] device 1.1 still referenced
libusb: warning [libusb_exit] device 4.1 still referenced
libusb: warning [libusb_exit] device 3.3 still referenced
libusb: warning [libusb_exit] device 3.2 still referenced
libusb: warning [libusb_exit] device 3.4 still referenced
libusb: warning [libusb_exit] device 3.1 still referenced
Using device #0 Realtek RTL2838UHIDIR SN: 00000001
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
gain: name: LNA range: start 0 stop 49 step 0
supported sample rates 250000-2560000 step 24000

I am not sure what to edit or do next.
I've not seen that message before. Presumably rx.py did not successfully start?
Was there anything in stderr.2?
What's your full startup script command line?
 

code37f

Member
Joined
Feb 18, 2013
Messages
12
I looked at the rebuild command line and had many "no permission" to execute parts of the build into the sub-folders.

So I read up on permission for folders, re built op25 again and its working.

Audio is outstanding. Thanks for a great program.
 

code37f

Member
Joined
Feb 18, 2013
Messages
12
I am now trying a op25-Boatbod install on Mint 21.1 laptop.

I get this far and:
git checkout gr310 says
Already on 'gr310'

so I continue with
:~/op25$ ./install.sh
and I get:
Installing for GNURadio 3.10 is not supported by this version of op25
Please use git branch "gr310" for GNURadio-3.10 or later.

How can that be, I am going in circles here!
Any ideas ?



.
 

wgbecks

Active Member
Joined
Jan 17, 2005
Messages
1,027
Location
NE Wisconsin
run apt list | grep gnuradio-dev to check/verify the GNURadio version that will install on your Mint 21.1 laptop.
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,410
Location
Talbot Co, MD
run apt list | grep gnuradio-dev to check/verify the GNURadio version that will install on your Mint 21.1 laptop.
Mint 21.1 is an Ubuntu 22.04 derivative, so it *should* be gr-3.10, and indeed I do recall successfully using it in a virtual environment for compatibility testing. Must be something else going on...

Let's start with the basics:
cd ~/op25
git status

cat /etc/os-release
cat /etc/lsb-release

apt list | grep gnuradio-dev

When you tried the install.sh script, did you see anything on the screen that said "Identified GNURadio version ...."? If so, what was the version number?
 

code37f

Member
Joined
Feb 18, 2013
Messages
12
Mint 21.1 is an Ubuntu 22.04 derivative, so it *should* be gr-3.10, and indeed I do recall successfully using it in a virtual environment for compatibility testing. Must be something else going on...

Let's start with the basics:






When you tried the install.sh script, did you see anything on the screen that said "Identified GNURadio version ...."? If so, what was the version number?
Here's what I have.
ss@i5:~/op25$ git status

On branch gr310
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: .github/ISSUE_TEMPLATE/bug_report.md
modified: .github/ISSUE_TEMPLATE/custom.md
modified: .github/ISSUE_TEMPLATE/feature_request.md
modified: .gitignore
modified: CMakeLists.txt
modified: README
modified: README-installation
modified…...etc etc etc……..

ss@i5:~/op25$ cat /etc/os-release
NAME="Linux Mint"
VERSION="21.1 (Vera)"
ID=linuxmint
ID_LIKE="ubuntu debian"
PRETTY_NAME="Linux Mint 21.1"
VERSION_ID="21.1"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=vera
UBUNTU_CODENAME=jammy

ss@i5:~/op25$ cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=21.1
DISTRIB_CODENAME=vera
DISTRIB_DESCRIPTION="Linux Mint 21.1 Vera"

ss@i5:~/op25$ apt list | grep gnuradio-dev

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
ss@i5:~/op25$ sudo ./install.sh
Identified GNURadio version 3.10

Installing for GNURadio 3.10 is not supported by this version of op25
Please use git branch "gr310" for GNURadio-3.10 or later
ss@i5:~/op25$ git status
On branch gr310
gnuradio-dev/jammy 3.10.1.1-2 amd64
 

wgbecks

Active Member
Joined
Jan 17, 2005
Messages
1,027
Location
NE Wisconsin
@boatbod, I recall testing on Mint during GR310 development having had no problems then and decided
to spin up a fresh VM to make sure that nothing has changed. The install went well from the gr310 branch
as it did originally, everything working well.

op25@op25-VirtualBox:~/op25$ cat /etc/os-release
NAME="Linux Mint"
VERSION="21.1 (Vera)"
ID=linuxmint
ID_LIKE="ubuntu debian"
PRETTY_NAME="Linux Mint 21.1"
VERSION_ID="21.1"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=vera
UBUNTU_CODENAME=jammy
op25@op25-VirtualBox:~/op25$ cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=21.1
DISTRIB_CODENAME=vera
DISTRIB_DESCRIPTION="Linux Mint 21.1 Vera"
op25@op25-VirtualBox:~/op25$ apt list | grep gnuradio-dev

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

gnuradio-dev/jammy,now 3.10.1.1-2 amd64 [installed]

Screenshot from 2023-04-16 11-02-27.png
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,410
Location
Talbot Co, MD
Here's what I have.
ss@i5:~/op25$ git status

On branch gr310
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: .github/ISSUE_TEMPLATE/bug_report.md
modified: .github/ISSUE_TEMPLATE/custom.md
modified: .github/ISSUE_TEMPLATE/feature_request.md
modified: .gitignore
modified: CMakeLists.txt
modified: README
modified: README-installation
modified…...etc etc etc……..
When there are local changes to files in the repo this can prevent git from pulling in updates. I suggest you save anything important and then run the following:
Code:
cd ~/op25
git checkout .
git pull
ss@i5:~/op25$ apt list | grep gnuradio-dev

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
ss@i5:~/op25$ sudo ./install.sh
Identified GNURadio version 3.10

Installing for GNURadio 3.10 is not supported by this version of op25
Please use git branch "gr310" for GNURadio-3.10 or later
ss@i5:~/op25$ git status
On branch gr310
gnuradio-dev/jammy 3.10.1.1-2 amd64
Something here definitely went awry with the install.sh script. Run the above update and try the install.sh again.
 

code37f

Member
Joined
Feb 18, 2013
Messages
12
When there are local changes to files in the repo this can prevent git from pulling in updates. I suggest you save anything important and then run the following:
Code:
cd ~/op25
git checkout .
git pull

Something here definitely went awry with the install.sh script. Run the above update and try the install.sh again.
Good news, op25 working fine with Mint21.1

I'm sure I threw in some operator error in the prior installation.

After 3 unsucessful installs, and seeing that the sub-folders didn't look complete,

I re-installed Build,Cmake, and then cloned Boatbod.( not sure if thats necessary , or if your branch handles all that).

Thank you boatbod
 

ToTheBitCave

Phreakness Monster
Premium Subscriber
Joined
Apr 15, 2020
Messages
72
Location
The Underplace
Anyone else getting a “Illegal instruction (core dumped)” when trying to run rx.py? I installed 22.04 and updated everything first before pulling the gr310 branch and running ./install.sh. Everything seemed to compile just fine. The only thing in stderr.2 is “Using python /usr/bin/python3”

I’m tempted to downgrade back to 20.04 but I’m curious if gr3.10 has better performance? Is it worth it?
 
Last edited:

boatbod

Member
Joined
Mar 3, 2007
Messages
3,410
Location
Talbot Co, MD
Anyone else getting a “Illegal instruction (core dumped)” when trying to run rx.py? I installed 22.04 and updated everything first before pulling the gr310 branch and running ./install.sh. Everything seemed to compile just fine. The only thing in stderr.2 is “Using python /usr/bin/python3”

I’m tempted to downgrade back to 20.04 but I’m curious if gr3.10 has better performance? Is it worth it?
Performance is going to be very similar between gr-3.8 and gr-3.10.
I expect your op25 is core dumping because there are left over libraries built under the older os/older gnuradio. You're going to need to clean out from the /usr/local hieracy and then start with a fresh clone of the github repo.
Code:
sudo find /usr/local -name '*op25*' -exec rm -rf {} \;
sudo ldconfig
 

maus92

Member
Premium Subscriber
Joined
Jun 23, 2004
Messages
8,221
Location
The OP
I'm attempting a new install on my low-end testing rig. I foolishly swapped in an AX210 wifi card, which while offers blazingly fast wifi, it is not supported by the kernel on the box's Mint 20 build. Thus I had to nuke that and install Mint 21.1 which looks like will require the gr310 branch?/build. Buckle up, lol.
 

foxtail

Member
Premium Subscriber
Joined
Dec 19, 2002
Messages
313
Location
Niagara Region Canada
What is this low-end unit you speak of? I've got it running on an intel t5600 and t6570 cpu's. I did try raspberry pi-1 but it was way to slow for OP25.
 

maus92

Member
Premium Subscriber
Joined
Jun 23, 2004
Messages
8,221
Location
The OP
What is this low-end unit you speak of? I've got it running on an intel t5600 and t6570 cpu's. I did try raspberry pi-1 but it was way to slow for OP25.
I5-6600T. Linux is getting more bloated with each version upgrade. OP25 should run fine; SDR Trunk may have issues.
 

maus92

Member
Premium Subscriber
Joined
Jun 23, 2004
Messages
8,221
Location
The OP
BTW, the i5-6600T is a 4 core - 4 thread 35W part that runs at 2.7G base and turbos to 3.5G. The test machine has 16GB of RAM. Over the past few days, the box has been running at roughly 50% usage on all 4 cores with SDRT 0.6 Alpha 6 (Linux) to monitor a busy-ish 8 channel, 14 talk path Phase 2 simulcast site. IMO, this is about the most loading I would be comfortable with before considering a move to a more powerful machine. I hope to compare to OP25 later today, depending on my "assignments" (ahem.)
 
Top