RadioReference on Facebook   RadioReference on Twitter   RadioReference Blog
 

Go Back   The RadioReference.com Forums > Computer Aided Monitoring and Programming > Software Defined Radio

Software Defined Radio - A forum for general discussion of software defined radio (SDR) receiver equipment.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-19-2017, 9:47 PM
Member
   
Join Date: Aug 2001
Location: Roseville, CA
Posts: 45
Default RPi 3 & RTL-SDR/OP25?

I'm curious to know if the RPi3 has enough "horsepower" to use Gnuradio/OP25 to decode a p25 trunked system using RTL-SDR. I haven't been able to find minimum hardware requirements and curious if this would work.
Reply With Quote
Sponsored links
  #2 (permalink)  
Old 06-19-2017, 10:14 PM
mtindor's Avatar
OH/WV DB Admin
  RadioReference Database Admininstrator
Database Admin
Amateur Radio Operator
Amateur Radio
 
Join Date: Dec 2006
Location: Carroll Co OH / EN90LN
Posts: 6,071
Default

Quote:
Originally Posted by BigRon View Post
I'm curious to know if the RPi3 has enough "horsepower" to use Gnuradio/OP25 to decode a p25 trunked system using RTL-SDR. I haven't been able to find minimum hardware requirements and curious if this would work.
I'd have to suggest "no way in hell", especially once you are trying to use it via GUI instead of CLI -- but Max KA1RBI might feel differently, so I'll defer to him. I have PI3s, and really I'm not impressed by performance at all. Even what I consider rudimentary applications seem to take up more CPU than I would have suspected.

Pretty damned good devices for the price though.

mike
__________________
Mike / AA8IA
PSR800/PRO197/BCD436HP/BCD536HP

If I PM you about a submission, please reply promptly or your submission may be rejected.
Reply With Quote
  #3 (permalink)  
Old 06-21-2017, 7:14 PM
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Aug 2008
Posts: 375
Default

Quote:
Originally Posted by mtindor View Post
I'd have to suggest "no way in hell",
haha, just finished a session running OP25 on the RPI - it's a "3" model "B" if that means anything. It works perfectly. I used the new rx.py version in straight CLI mode, with audio piped over UDP to an audio server running on a nearby PC. The speaker output port of the RPI requires a special type of audio connector (4-pole) that I haven't played with yet, but there's no reason it shouldn't work. Load average (keep in mind this is a 4-core unit) was around 1.5 or 1.6, with the RPI GUI running and 'top' running in another window...

Max
Reply With Quote
  #4 (permalink)  
Old 06-25-2017, 7:47 PM
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Apr 2003
Location: Green Bay, WI
Posts: 82
Default

Thanks for this report Max, and I appreciate the work you are doing on the project. Do you take donations?

You should only need the 4 pole connector if you are trying to get the composite video out. In my experiences, a normal 1/8" audio cable works.

Last edited by kb9mwr; 06-25-2017 at 9:22 PM..
Reply With Quote
  #5 (permalink)  
Old 06-25-2017, 9:59 PM
mtindor's Avatar
OH/WV DB Admin
  RadioReference Database Admininstrator
Database Admin
Amateur Radio Operator
Amateur Radio
 
Join Date: Dec 2006
Location: Carroll Co OH / EN90LN
Posts: 6,071
Default

Quote:
Originally Posted by KA1RBI View Post
haha, just finished a session running OP25 on the RPI - it's a "3" model "B" if that means anything. It works perfectly. I used the new rx.py version in straight CLI mode, with audio piped over UDP to an audio server running on a nearby PC. The speaker output port of the RPI requires a special type of audio connector (4-pole) that I haven't played with yet, but there's no reason it shouldn't work. Load average (keep in mind this is a 4-core unit) was around 1.5 or 1.6, with the RPI GUI running and 'top' running in another window...

Max
I'm glad I deferred to you Talking out of my *** -- what's new about that ! I wasn't aware of rx.py, UDP to an audio server, or any possibilities like that.

Mike
__________________
Mike / AA8IA
PSR800/PRO197/BCD436HP/BCD536HP

If I PM you about a submission, please reply promptly or your submission may be rejected.
Reply With Quote
Sponsored links
  #6 (permalink)  
Old 06-27-2017, 5:44 AM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Mar 2007
Location: Talbot Co, MD
Posts: 377
Default

Quote:
Originally Posted by mtindor View Post
I'm glad I deferred to you Talking out of my *** -- what's new about that ! I wasn't aware of rx.py, UDP to an audio server, or any possibilities like that.

Mike
The "max" branch of the op25 repository has the rx.py version. It doesn't require the gui so it's cpu utilization is a bit lower.
Reply With Quote
  #7 (permalink)  
Old 06-27-2017, 9:13 AM
mtindor's Avatar
OH/WV DB Admin
  RadioReference Database Admininstrator
Database Admin
Amateur Radio Operator
Amateur Radio
 
Join Date: Dec 2006
Location: Carroll Co OH / EN90LN
Posts: 6,071
Default

Quote:
Originally Posted by boatbod View Post
The "max" branch of the op25 repository has the rx.py version. It doesn't require the gui so it's cpu utilization is a bit lower.
Very nice. I have max branch installed, but of course I never update it. I guess I need to. Thanks!

Mike
Reply With Quote
  #8 (permalink)  
Old 06-27-2017, 7:02 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Mar 2007
Location: Talbot Co, MD
Posts: 377
Default

Quote:
Originally Posted by mtindor View Post
Very nice. I have max branch installed, but of course I never update it. I guess I need to. Thanks!

Mike
Depending on how long ago you last updated, you'll find that the original "max" code moved up to the main line of the repository and then the max branch became what is known as "rx.py". I've been working with Max on some enhancements, so keep an eye out for upcoming changes as they get integrated.
Reply With Quote
  #9 (permalink)  
Old 06-27-2017, 8:38 PM
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Apr 2003
Location: Green Bay, WI
Posts: 82
Default

What is the least painful way to get gnu-radio on the Raspberry Pi?

My normal stress free method is to use the sbrac build-gnuradio script, but that sadly doesn't support Debian 8.

Kind of surprised there isn't a pre-built image for at least gnuradio, as that is likely going to take a while to build even with an automated install script..
Reply With Quote
Sponsored links
  #10 (permalink)  
Old 06-29-2017, 9:15 AM
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Aug 2008
Posts: 375
Default

Quote:
Originally Posted by kb9mwr View Post
What is the least painful way to get gnu-radio on the Raspberry Pi?
The PI that I bought came with bootable system that lets you install Raspbian, and from there it's basically the same procedure as a desktop for installing OP25. In my install I haven't yet tried running the GUI option (which utilizes gnuplot). Otherwise the commands are identical with the Ubuntu install.

I'll put together a list of commands that I used to get running.

Quote:
Kind of surprised there isn't a pre-built image for at least gnuradio
There isn't?? once you have raspbian installed, gnuradio install is basically trivial
Code:
apt-get update
apt-get install gnuradio
Max
Reply With Quote
  #11 (permalink)  
Old 06-29-2017, 9:24 AM
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Aug 2008
Posts: 375
Default

These commands should work as well on the PI as on ubuntu (with raspbian, tested on a PI 3 "B")

First install the OP25 prerequisites
Code:
sudo apt-get update
sudo apt-get build-dep gnuradio
sudo apt-get install gnuradio gnuradio-dev gr-osmosdr librtlsdr-dev libuhd-dev  libhackrf-dev libitpp-dev libpcap-dev git
then to build/install op25

Code:
cd ~
git clone https://git.osmocom.org/op25
git checkout max

cd op25
mkdir build
cd build
cmake ../
make
sudo make install
sudo ldconfig
The new rx.py app is discussed in the file
Code:
op25/gr-op25_repeater/apps/README
Reply With Quote
  #12 (permalink)  
Old 06-29-2017, 10:16 AM
gskroll's Avatar
Member
  Premium Subscriber
Premium Subscriber
Amateur Radio Operator
Amateur Radio
 
Join Date: Jun 2005
Location: Portland, ME
Posts: 43
Default

I am really looking forward to using my RPi3 to run OP25. I am new to Linux but have significant experience with Windows (Desktop and Server). I bought the Pi to gain some experience with Linux.

I had run the first commands suggested:
apt-get update
apt-get install gnuradio
with no apparent errors.

When starting down the list of additional commands, the first:
sudo apt-get update
works without issue but the next:
sudo apt-get build-dep gnuradio
yields
E: You must put some 'source' URIs in your sources.list

Do I have something out of sequence? What URIs would a add to the sources.list file (and where would I look for it)?

Thanks

Glenn
Reply With Quote
  #13 (permalink)  
Old 06-29-2017, 12:26 PM
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Aug 2008
Posts: 375
Default

Quote:
Originally Posted by gskroll View Post
sudo apt-get build-dep gnuradio
yields
E: You must put some 'source' URIs in your sources.list
OK, that's an oversight in the instructions. They should be edited to add the note that the /etc/apt/sources.list file contains the needed "deb-src" line in it, but it's commented out. To fix, edit the file and remove the '#' so the 'deb-src' appears in column one of the file. Save the file, then run
Code:
sudo apt-get update
to pull in the updates. Once this is done the rest of the install should be OK...

Max
Reply With Quote
  #14 (permalink)  
Old 06-29-2017, 4:22 PM
gskroll's Avatar
Member
  Premium Subscriber
Premium Subscriber
Amateur Radio Operator
Amateur Radio
 
Join Date: Jun 2005
Location: Portland, ME
Posts: 43
Default

OK - I think I got considerably farther along. I didn't notice anything that looked like a error message while completing the sequence of commands until the "git checkout max".

That returns:

pi@raspberrypi:~ $ git checkout max
fatal: Not a git repository (or any of the parent directories): .git

What do you suggest to resume the installation?

Thanks for your help (and patience).

Glenn
Reply With Quote
  #15 (permalink)  
Old 06-29-2017, 9:02 PM
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Apr 2003
Location: Green Bay, WI
Posts: 82
Default

Quote:
Originally Posted by KA1RBI View Post

then to build/install op25

Code:
cd ~
git clone https://git.osmocom.org/op25
git checkout max

cd op25
mkdir build
cd build
cmake ../
make
sudo make install
sudo ldconfig
The new rx.py app is discussed in the file
Code:
op25/gr-op25_repeater/apps/README
I found you have to do change to the op25 directory before doing git checkout max, else you get that error.
So:

Code:
cd ~
git clone https://git.osmocom.org/op25
cd op25
git checkout max

mkdir build
cd build
cmake ../
make
sudo make install
sudo ldconfig
So I have it all installed, but am still poking around on how to use it :-)
I found some usage examples here, but some of the syntax must be a little different:
http://blog.febo.com/wp/?p=158

Last edited by kb9mwr; 06-29-2017 at 9:19 PM..
Reply With Quote
Sponsored links
  #16 (permalink)  
Old 06-29-2017, 9:58 PM
gskroll's Avatar
Member
  Premium Subscriber
Premium Subscriber
Amateur Radio Operator
Amateur Radio
 
Join Date: Jun 2005
Location: Portland, ME
Posts: 43
Default

Thanks for the suggestion I have now completed the install.

There were warnings. Should I be concerned about these:

Warning: Tag `SYMBOL_CACHE_SIZE' at line 289 of file `/home/pi/op25/build/op25/gr-op25_repeater/swig/op25_repeater_swig_doc_swig_docs/Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `SHOW_DIRECTORIES' at line 477 of file `/home/pi/op25/build/op25/gr-op25_repeater/swig/op25_repeater_swig_doc_swig_docs/Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `HTML_ALIGN_MEMBERS' at line 803 of file `/home/pi/op25/build/op25/gr-op25_repeater/swig/op25_repeater_swig_doc_swig_docs/Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `USE_INLINE_TREES' at line 956 of file `/home/pi/op25/build/op25/gr-op25_repeater/swig/op25_repeater_swig_doc_swig_docs/Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `XML_SCHEMA' at line 1149 of file `/home/pi/op25/build/op25/gr-op25_repeater/swig/op25_repeater_swig_doc_swig_docs/Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `XML_DTD' at line 1155 of file `/home/pi/op25/build/op25/gr-op25_repeater/swig/op25_repeater_swig_doc_swig_docs/Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: doxygen no longer ships with the FreeSans font.
You may want to clear or change DOT_FONTNAME.
Otherwise you run the risk that the wrong font is being used for dot generated graphs.

I also noticed when trying to find the README that I had somehow ended up with a directory structure of:

~/op25/op25/gr-op25_repeater

duplicating the /op25 levels. I assume this is incorrect and I should mv the contents from /op25/op25 (and subdirectories) to /op25 (I am enough of a Linux noob that I will have to research the proper syntax to accomplish that if appropriate). Or does that signify some broader issue?

Thanks for your help,

Glenn
Reply With Quote
  #17 (permalink)  
Old 06-29-2017, 10:14 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Mar 2007
Location: Talbot Co, MD
Posts: 377
Default

Don't worry about the Doxy warnings.

Directory structure will be along these lines:
~/op25/op25/gr-op25_repeater/...
~/op25/build

Once you've done the 'make' and 'sudo make install', you cd into the ./apps directory and create yourself a shell script with the correct command line args to start rx.py.
Reply With Quote
  #18 (permalink)  
Old 06-29-2017, 10:19 PM
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Apr 2003
Location: Green Bay, WI
Posts: 82
Default

I had the same warnings.

Some pointers on the correct command line args to start rx.py would be most helpful.
Reply With Quote
  #19 (permalink)  
Old 06-29-2017, 11:00 PM
gskroll's Avatar
Member
  Premium Subscriber
Premium Subscriber
Amateur Radio Operator
Amateur Radio
 
Join Date: Jun 2005
Location: Portland, ME
Posts: 43
Default

Quote:
Originally Posted by boatbod View Post
Don't worry about the Doxy warnings.



Directory structure will be along these lines:

~/op25/op25/gr-op25_repeater/...

~/op25/build



Once you've done the 'make' and 'sudo make install', you cd into the ./apps directory and create yourself a shell script with the correct command line args to start rx.py.


Ah, ok, so the op25 directory within another op25 directory is not a mistake.

I will dig deeper in the README to gain an idea of what the rx.py command line options should include.

I will likely be out of pocket for the next week vacationing in Maine. Someday soon I hope to be able to use the RPi to scan while away.

In the meantime I will use my 436 but will have to suspend my op25 efforts.

Thanks for the help and I look forward to resuming when back in Connecticut.

Glenn


Sent from my iPhone using Tapatalk
Reply With Quote
  #20 (permalink)  
Old 07-01-2017, 7:28 AM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Mar 2007
Location: Talbot Co, MD
Posts: 377
Default

Be aware there is an error in the README. If you wish to monitor p25 phase ii, you must set the "-2" command line option.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 9:45 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
All information here is Copyright 2012 by RadioReference.com LLC and Lindsay C. Blanton III.Ad Management by RedTyger
Copyright 2015 by RadioReference.com LLC Privacy Policy  |  Terms and Conditions