OP25 VirtualBox Project - Run OP25 on Windows 7

Status
Not open for further replies.

Dark-Sky

Member
Premium Subscriber
Joined
Sep 30, 2016
Messages
102
Location
Central Arkansas
There are no pulse anything in /etc/group. It looks like it is set up as a per user basis and not system wide. op25.lig runs fine using pulse after logging into a desktop. I can even set up a liquidsoap .desktop file in .config/autostart and it will run with autologin enabled at the graphical login screen.

Pic showing pulse loaded as default:

pulse.png

Like I said above not really worried about the local audio being alsa as the arm device will be headless and will not listen to it local anyway.
 

djshadowxm81

Member
Premium Subscriber
Joined
May 5, 2010
Messages
79
@boatbod So.. I installed new version of Ubuntu 18.10 fresh. I had this working alright on 14.04 for awhile, but I ran into some compat issues with other things on that old build so i'm building a new. I keep getting hung here when its compiling. What am i doing wrong?

FULL LOG: gist:186f65c39abb4481964a44f466158af2

Relevant Snippet

-- Build type not specified: defaulting to release.
-- Boost version: 1.67.0
-- Found the following Boost libraries:
-- filesystem
-- system
-- Build type not specified: defaulting to release.
-- Boost version: 1.67.0
-- Found the following Boost libraries:
-- filesystem
-- system
-- AMBE Tone Synthesis Enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /home/p25/Desktop/op25/build
[ 23%] Built target gnuradio-op25
[ 25%] Built target test-op25
[ 26%] Built target _op25_swig_swig_tag
[ 28%] Built target _op25_swig_doc_tag
make[2]: *** No rule to make target 'op25/gr-op25/swig/op25_swig.py', needed by 'op25/gr-op25/swig/op25_swig.pyc'. Stop.
make[1]: *** [CMakeFiles/Makefile2:385: op25/gr-op25/swig/CMakeFiles/pygen_op25_gr_op25_swig_75b16.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
[ 23%] Built target gnuradio-op25
[ 25%] Built target test-op25
[ 26%] Built target _op25_swig_swig_tag
[ 28%] Built target _op25_swig_doc_tag
make[2]: *** No rule to make target 'op25/gr-op25/swig/op25_swig.py', needed by 'op25/gr-op25/swig/op25_swig.pyc'. Stop.
make[1]: *** [CMakeFiles/Makefile2:385: op25/gr-op25/swig/CMakeFiles/pygen_op25_gr_op25_swig_75b16.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
======
====== 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
======
 

djshadowxm81

Member
Premium Subscriber
Joined
May 5, 2010
Messages
79
Reading package lists... Done
Building dependency tree
Reading state information... Done
swig is already the newest version (3.0.12-1.2).
The following packages were automatically installed and are no longer required:
fonts-liberation2 fonts-opensymbol gir1.2-geocodeglib-1.0
gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0
gir1.2-udisks-2.0 grilo-plugins-0.3-base guile-2.2-libs
libboost-iostreams1.67.0 libboost-locale1.67.0 libcdr-0.1-1
libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2
libdazzle-1.0-0 libe-book-0.1-1 libeot0 libepubgen-0.1-1 libetonyek-0.1-1
libevent-2.1-6 libexiv2-14 libfreerdp-client2-2 libfreerdp2-2 libgc1c2
libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6 libgpod-common libgpod4
liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0
libminiupnpc17 libmspub-0.1-1 libncursesw5 libodfgen-0.1-1 libqqwing2v5
libraw16 librevenge-0.0-0 libsgutils2-2 libssh-4 libsuitesparseconfig5
libtinfo5 libvncclient1 libwinpr2-2 libxmlsec1 libxmlsec1-nss lp-solve
media-player-info python3-mako python3-markupsafe syslinux syslinux-common
syslinux-legacy usb-creator-common
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,339
Location
Talbot Co, MD
kicked it down to cmake 3.10.3 and it works fine. Thanks for the tip Graham!

Version 3.11.4 works ok for me.

A while back I was working with another member running Arch linux and we ran into the exact same issue. Something changed in later cmake versions that have caused the ~/op25/cmake/Modules/GrSwig.cmake script to specify build dependencies in the wrong order. I pinpointed exactly what was going wrong with the resulting makefile but coudn't figure out a workaround to the .cmake script.
 

djshadowxm81

Member
Premium Subscriber
Joined
May 5, 2010
Messages
79
I appreciate your help now one thing tackled now I just got to figure out why I'm still having issues routing audio into Discord via pulseaudio for a low latency stream I use to get it to my phone. I tried the ice cast functionality but it's just not fast enough to get the audio that I need to my phone for it to be actionable. I have a sneaking suspicion it's something on Discord end because this is working just up until about a week ago so I don't know thanks for your help though!
 

Dark-Sky

Member
Premium Subscriber
Joined
Sep 30, 2016
Messages
102
Location
Central Arkansas
Although I do not not use Discord icecast with darkice and now liqudsoap has worked out just fine here streaming out on the internet using a dynamic dns provider even receiving on my phone.

I do not know if it will help in your case but have you tested your bufferfloat on dslreports.com. I have known of people in the past having issues due to bad bufferfloat with voip. Here is my report from dslreports.com. I have one of my pi3's set up as an openwrt router so I could tune it for the best results:

bufferfloat.png
 
Last edited:

djshadowxm81

Member
Premium Subscriber
Joined
May 5, 2010
Messages
79
I do work for a major ISP lol I know all about bufferbloat. The latency is probably as low as its gonna get. It's just an intrinsic thing with streaming services it seems. VoIP software like discord gets it down to like 1-2ms of latency where as its like 15-20ms of latency with icecast or shoutcast streaming servers. I should also add that this exists when streaming locally within the network as well.
 
Last edited:

djshadowxm81

Member
Premium Subscriber
Joined
May 5, 2010
Messages
79
I do work for a major ISP lol I know all about bufferbloat. The latency is probably as low as its gonna get. It's just an intrinsic thing with streaming services it seems. VoIP software like discord gets it down to like 1-2ms of latency where as its like 15-20ms of latency with icecast or shoutcast streaming servers. I should also add that this exists when streaming locally within the network as well.

Turns out it was a recent update with discord that broke everything
 

maus92

Member
Premium Subscriber
Joined
Jun 23, 2004
Messages
8,041
Location
The OP
So I decided to get ambitious and install Mint 19.1 on a spare Intel NUC i5 I have lying around doing nothing important. Seemed to install properly, had to apply a patch to the Broadcom WiFi adapter and the computer itself runs. I did the boatbod op25 install routine that seemed to work, but running the program fails - it seems that op25 is not finding the RTL device and exits.

Here is my command line and results:


charley@NUC:~/op25/op25/gr-op25_repeater/apps$ ./rx.py --args 'rtl=0' -N 'LNA:32' -n -q 0 -S 370000 -f 773.83125e6 -d 25 -T trunk.tsv -V -2 -U 2> stderr.2
linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown

setting gain LNA to 32
charley@NUC:~/op25/op25/gr-op25_repeater/apps$

Here is the stderr.2 file:

charley@NUC:~/op25/op25/gr-op25_repeater/apps$ cat stderr.2
gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.11
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp

FATAL: Wrong rtlsdr device index given.

Trying to fill up 1 missing channel(s) with null source(s).
This is being done to prevent the application from crashing
due to gnuradio bug #528.

Traceback (most recent call last):
File "./rx.py", line 876, in <module>
rx = rx_main()
File "./rx.py", line 797, in __init__
self.tb = p25_rx_block(self.options)
File "./rx.py", line 191, in __init__
self.open_usrp()
File "./rx.py", line 724, in open_usrp
self.__set_rx_from_osmosdr()
File "./rx.py", line 669, in __set_rx_from_osmosdr
self.__build_graph(self.src, capture_rate)
File "./rx.py", line 272, in __build_graph
symbol_rate = self.symbol_rate)
File "/home/charley/op25/op25/gr-op25_repeater/apps/p25_demodulator.py", line 249, in __init__
self.if1 = input_rate / self.decim
ZeroDivisionError: float division by zero

Ideas?

(this cmd line and rtlsdr works fine on my rpi3+
 

Dark-Sky

Member
Premium Subscriber
Joined
Sep 30, 2016
Messages
102
Location
Central Arkansas
Did you blacklist the kernel modules?

cat /etc/modprobe.d/blacklist-rtl-sdr.conf
blacklist r820t
blacklist rtl2832
blacklist rtl2830
blacklist dvb_usb_rtl28xxu
 

maus92

Member
Premium Subscriber
Joined
Jun 23, 2004
Messages
8,041
Location
The OP
Did you blacklist the kernel modules?

cat /etc/modprobe.d/blacklist-rtl-sdr.conf
blacklist r820t
blacklist rtl2832
blacklist rtl2830
blacklist dvb_usb_rtl28xxu


I did none of that because I don't know what that does and why...
 

Dark-Sky

Member
Premium Subscriber
Joined
Sep 30, 2016
Messages
102
Location
Central Arkansas
I did none of that because I don't know what that does and why...

Just in case "how" was either left out or in the periods. Create a file called blacklist-rtl-sdr.conf with nano in /etc/modprobe.d/ and add the 4 lines:

Code:
sudo nano /etc/modprobe.d/blacklist-rtl-sdr.conf

blacklist r820t
blacklist rtl2832
blacklist rtl2830
blacklist dvb_usb_rtl28xxu

When through adding the lines close out nano and save the file with CTRL-X and type y and hit the enter key. Then reboot so that what ever kernel module that has your device tied up can be released..
 
Last edited:

maus92

Member
Premium Subscriber
Joined
Jun 23, 2004
Messages
8,041
Location
The OP
Thanks for helping.

OK, did as instructed, (created file and rebooted) but with the same results. This is the fie I created:

charley@NUC:~$ cat /etc/modprobe.d/blacklist-rtl-sdr.conf
blacklist r820t
blacklist rtl2832
blacklist rtl2830
blacklist dvb_usb_rtl28xxu
charley@NUC:~$


(should I be changing the "xx" in "blacklist dvb_usb_rtl28xxu"?)

This is the run cmd:

charley@NUC:~/op25/op25/gr-op25_repeater/apps$ ./rx.py --args 'rtl=0' -N 'LNA:32' -n -q 0 -S 370000 -f 773.83125e6 -d 25 -T trunk.tsv -V -2 -U 2> stderr.2
linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown

setting gain LNA to 32
charley@NUC:~/op25/op25/gr-op25_repeater/apps$

This is the stderr file:

charley@NUC:~/op25/op25/gr-op25_repeater/apps$ cat stderr.2
gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.11
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp

FATAL: Wrong rtlsdr device index given.

Trying to fill up 1 missing channel(s) with null source(s).
This is being done to prevent the application from crashing
due to gnuradio bug #528.

Traceback (most recent call last):
File "./rx.py", line 876, in <module>
rx = rx_main()
File "./rx.py", line 797, in __init__
self.tb = p25_rx_block(self.options)
File "./rx.py", line 191, in __init__
self.open_usrp()
File "./rx.py", line 724, in open_usrp
self.__set_rx_from_osmosdr()
File "./rx.py", line 669, in __set_rx_from_osmosdr
self.__build_graph(self.src, capture_rate)
File "./rx.py", line 272, in __build_graph
symbol_rate = self.symbol_rate)
File "/home/charley/op25/op25/gr-op25_repeater/apps/p25_demodulator.py", line 249, in __init__
self.if1 = input_rate / self.decim
ZeroDivisionError: float division by zero
charley@NUC:~/op25/op25/gr-op25_repeater/apps$
 
Status
Not open for further replies.
Top