OP25 Error running rx.py with Ettus USRP B200

Status
Not open for further replies.

jcardani

Member
Premium Subscriber
Joined
Jan 16, 2002
Messages
1,392
Location
Orlando, FL & Ocean City, NJ
Hi,

I'm trying to run Boatbod's version of OP25 using my B200 SDR and getting the error below. The USB appears to be working and I did download the hardware images. The B200 runs on the older builds using scope.py so it's good. I use the following hardware specific --args 'uhd,nchan=1,subdev=A:A' and 'PGA:50' in the older versions.

thanks!

jcardani@ubuntu:~/op25/op25/gr-op25_repeater/apps$ ./rx.py --args 'uhd,nchan=1,subdev=A:A' -g 65 -f 856.2625e6 -o 12e3 -N 'PGA:50'
Using Python /usr/bin/python3
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
[INFO] [UHD] linux; GNU C++ version 9.2.1 20200304; Boost_107100; UHD_3.15.0.0-2build5
[INFO] [B200] Detected Device: B200
[INFO] [B200] Operating over USB 2.
[INFO] [B200] Initialize CODEC control...
[ERROR] [UHD] Exception caught in safe-call.
in virtual radio_ctrl_core_3000_impl::~radio_ctrl_core_3000_impl()
at /build/uhd-FRfZNJ/uhd-3.15.0.0/host/lib/usrp/cores/radio_ctrl_core_3000.cpp:60
this->peek32(0); _async_task.reset(); -> EnvironmentError: IOError: Radio ctrl (0) packet parse error - AssertionError: packet_info.packet_count == (seq_to_ack & 0xfff)
in uint64_t radio_ctrl_core_3000_impl::wait_for_ack(bool)
at /build/uhd-FRfZNJ/uhd-3.15.0.0/host/lib/usrp/cores/radio_ctrl_core_3000.cpp:254

osmosdr source_c creation failure
Traceback (most recent call last):
File "./rx.py", line 1076, in <module>
rx = rx_main()
File "./rx.py", line 982, in __init__
self.tb = p25_rx_block(self.options)
File "./rx.py", line 168, in __init__
gain_names = self.src.get_gain_names()
AttributeError: 'NoneType' object has no attribute 'get_gain_names'
jcardani@ubuntu:~/op25/op25/gr-op25_repeater/apps$
 

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
Hi Joe

Been a Long time - good to hear from you.

This error, at least prima facie, appears to be outside of OP25. Can I have you test whether other apps (e.g, gqrx) which use the same gr-osmosdr API as OP25? There is a list of some of these other apps at GrOsmoSDR - gr-osmosdr - Open Source Mobile Communications

The older series of OP25 apps (scope.py) probably used the direct USRP API rather than gr-osmosdr. For this reason the older builds may not be a sufficient test.

Max
 

jcardani

Member
Premium Subscriber
Joined
Jan 16, 2002
Messages
1,392
Location
Orlando, FL & Ocean City, NJ
Looks like GQRX is comparable with Gnuradio 3.8.1 and not 3.9 darn!

jcardani@ubuntu:~$ git clone git://git.osmocom.org/gr-osmosdr
Cloning into 'gr-osmosdr'...
remote: Enumerating objects: 4958, done.
remote: Counting objects: 100% (4958/4958), done.
remote: Compressing objects: 100% (1893/1893), done.
remote: Total 4958 (delta 3569), reused 4266 (delta 3018), pack-reused 0
Receiving objects: 100% (4958/4958), 1.23 MiB | 196.00 KiB/s, done.
Resolving deltas: 100% (3569/3569), done.
jcardani@ubuntu:~$ cd gr-osmosdr
jcardani@ubuntu:~/gr-osmosdr$ mkdir build
jcardani@ubuntu:~/gr-osmosdr$ cd build
jcardani@ubuntu:~/gr-osmosdr/build$ cmake ../
-- The CXX compiler identification is GNU 9.4.0
-- The C compiler identification is GNU 9.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
CMake Error at CMakeLists.txt:45 (find_package):
Could not find a configuration file for package "Gnuradio" that is
compatible with requested version "3.9".

The following configuration files were considered but not accepted:

/usr/lib/x86_64-linux-gnu/cmake/gnuradio/GnuradioConfig.cmake, version: 3.8.1.0
/lib/x86_64-linux-gnu/cmake/gnuradio/GnuradioConfig.cmake, version: 3.8.1.0



-- Configuring incomplete, errors occurred!
See also "/home/jcardani/gr-osmosdr/build/CMakeFiles/CMakeOutput.log".
 

jcardani

Member
Premium Subscriber
Joined
Jan 16, 2002
Messages
1,392
Location
Orlando, FL & Ocean City, NJ
Boatbod, Max asked me to try to run gqrx using the B200 and I just documented the error message I received when I tried to build gqrx. So I imagine that OP25 can't work with USRPs anymore? thank you
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,416
Location
Talbot Co, MD
Boatbod, Max asked me to try to run gqrx using the B200 and I just documented the error message I received when I tried to build gqrx. So I imagine that OP25 can't work with USRPs anymore? thank you
Understood, but if you have gnuradio-3.9 installed on your system you won't be able to build and run boatbod op25 regardless of whether you can make the B200 work with gr-osmocom.
 

jcardani

Member
Premium Subscriber
Joined
Jan 16, 2002
Messages
1,392
Location
Orlando, FL & Ocean City, NJ
Hi Boatbod
Not sure how Gnuradio 3.9 got on here. I first created the VM, installed Ubuntu 20.04 then in Terminal I did a sudo apt-get update followed by the installation instructions for OP25. Unless when I tried to build gqrx something updated gnuradio? Thanks
 

jcardani

Member
Premium Subscriber
Joined
Jan 16, 2002
Messages
1,392
Location
Orlando, FL & Ocean City, NJ
cardani@ubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal

jcardani@ubuntu:~$ apt-cache policy gnuradio
gnuradio:
Installed: 3.8.1.0~rc1-2build2
Candidate: 3.8.1.0~rc1-2build2
Version table:
*** 3.8.1.0~rc1-2build2 500
500 Index of /ubuntu focal/universe amd64 Packages
100 /var/lib/dpkg/status
jcardani@ubuntu:~$
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,416
Location
Talbot Co, MD
Weird... the output from the gr-osmosdr build seems to think it's 3.9 so something got screwed up in there. 3.8 should be good to go if you can figure out the ghr-uhd problem.
CMake Error at CMakeLists.txt:45 (find_package):
Could not find a configuration file for package "Gnuradio" that is
compatible with requested version "3.9".
 
Last edited:

lwvmobile

DSD-FME
Joined
Apr 26, 2020
Messages
1,297
Location
Lafayette County, FL

jcardani

Member
Premium Subscriber
Joined
Jan 16, 2002
Messages
1,392
Location
Orlando, FL & Ocean City, NJ
Hi iwvmobile, I thought UHD would be already there. Anyway I am gonna re-install OS and start over. Gonna try with the RTL SDR first (getting it this weekend) then continue with the USRP issue. Thanks!
 
Status
Not open for further replies.
Top