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
  #1681 (permalink)  
Old 01-12-2018, 4:01 PM
Member
   
Join Date: Jul 2008
Posts: 14
Default

How do you get the updated build and does anyone know how to stop the PCM Underruns? I am using UNbuntu 16.04.3. The audio on p25 phase 2 is getting all garbled after reinstalling op25.
Reply With Quote
Sponsored links
  #1682 (permalink)  
Old 01-12-2018, 4:46 PM
Member
   
Join Date: Sep 2016
Posts: 27
Default

Open up a terminal in the root of op25 source tree
Copy and paste each line and hit enter one line at a time:

git pull
cd build && sudo rm -r * && cmake .. && make -j6
sudo make install && sudo ldconfig

Last edited by Dark-Sky; 01-12-2018 at 4:57 PM..
Reply With Quote
  #1683 (permalink)  
Old 01-12-2018, 4:50 PM
Member
   
Join Date: Jul 2008
Posts: 14
Default

THANK YOU! I will give this a shot.
Reply With Quote
  #1684 (permalink)  
Old 01-12-2018, 5:01 PM
Member
   
Join Date: Jul 2008
Posts: 14
Default

Any idea what these errors are. These errors appeared after the new build.

1515797638.530558 PCM underrun
p25_framer::nid_codeword: nid=3607c7ecc78b9528, ec=10
p25_framer::nid_codeword: nid=3607c7ecc78b9528, ec=10
p25_framer::nid_codeword: nid=770f5a63c3a60c68, ec=10
p25_framer::nid_codeword: nid=3607c7ecc78b9528, ec=10
p25_framer::nid_codeword: nid=3607c7ecc78b9528, ec=10
Reply With Quote
  #1685 (permalink)  
Old 01-12-2018, 5:04 PM
Member
   
Join Date: Sep 2016
Posts: 27
Default

I have never seen them. My trunking is on phase 1.

I wonder if he has done an update since yesterday when I did a pull...

Added:

This might be the issue in his last update he did that I do not have:

[ray@arch op25]$ git pull
remote: Counting objects: 8, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 8 (delta 6), reused 8 (delta 6), pack-reused 0
Unpacking objects: 100% (8/8), done.
From https://github.com/boatbod/op25
0da35a4..f359471 master -> origin/master
Updating 0da35a4..f359471
Fast-forward
op25/gr-op25_repeater/apps/trunking.py | 2 +-
op25/gr-op25_repeater/lib/p25_framer.cc | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)
Reply With Quote
Sponsored links
  #1686 (permalink)  
Old 01-12-2018, 5:07 PM
Member
   
Join Date: Jul 2008
Posts: 14
Default

I am on phase 2. First time to ever see them.
Reply With Quote
  #1687 (permalink)  
Old 01-12-2018, 5:11 PM
Member
   
Join Date: Sep 2016
Posts: 27
Default

I can tell you how to checkout the commit before that if you want to try it. That is the one I am on.
Reply With Quote
  #1688 (permalink)  
Old 01-12-2018, 5:24 PM
Member
   
Join Date: Sep 2016
Posts: 27
Default

If you want to test the prior commit:

# Open up a terminal in the root of op25 source tree
# Copy and paste each line and hit enter one line at a time:

git checkout 0da35a4
cd build && sudo rm -r * && cmake .. && make -j6
sudo make install && sudo ldconfig

# Test op25 and see if it fixes your sound problem.

# You will be in a detached state when you do this. When he checks out what the
# issue is you need to go back to the master branch and do another pull and recompile:

# Open up a terminal in the root of op25 source tree
# Copy and paste each line and hit enter one line at a time:

git checkout master
git pull
cd build && sudo rm -r * && cmake .. && make -j6
sudo make install && sudo ldconfig

Last edited by Dark-Sky; 01-12-2018 at 5:33 PM..
Reply With Quote
  #1689 (permalink)  
Old 01-12-2018, 7:30 PM
dseven's Avatar
Member
  Premium Subscriber
Premium Subscriber
Amateur Radio Operator
Amateur Radio
 
Join Date: Sep 2008
Location: SF Bay / Delta, CA
Posts: 114
Default

Quote:
Originally Posted by ntborg View Post
Any idea what these errors are. These errors appeared after the new build.

1515797638.530558 PCM underrun
Lowering the sample rate might help with PCM underruns, if you're limited on CPU capacity.

Quote:
p25_framer::nid_codeword: nid=3607c7ecc78b9528, ec=10
p25_framer::nid_codeword: nid=3607c7ecc78b9528, ec=10
p25_framer::nid_codeword: nid=770f5a63c3a60c68, ec=10
p25_framer::nid_codeword: nid=3607c7ecc78b9528, ec=10
p25_framer::nid_codeword: nid=3607c7ecc78b9528, ec=10
Those don't look like errors per se - rather just debug output.
Reply With Quote
  #1690 (permalink)  
Old 01-12-2018, 7:48 PM
Member
   
Join Date: Sep 2016
Posts: 27
Default

ntborg:

I did a pull on the latest and it is running just fine here so far.
Reply With Quote
  #1691 (permalink)  
Old 01-12-2018, 10:01 PM
simmsrep's Avatar
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Nov 2010
Location: Alton, VA
Posts: 108
Default

Quote:
Originally Posted by boatbod View Post
Pull the update I just pushed as it fixes the bug.

Thanks again boatbod, working great now.
Reply With Quote
  #1692 (permalink)  
Old 01-13-2018, 10:04 AM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Aug 2017
Location: harco MD
Posts: 10
Default

update for my setup - the VM is actually not performing well - even with 6 cores and 8gb of ram...lots of underruns. I went back to my standalone ubuntu machine for op25 - it works a lot better...

My computers are in a room not near where I spend my time - so I'm trying to solve the following problem -- does anyone have a solution for "real time" streaming audio (locally)?

I'm using darkice and icecast from my headless ubuntu box to hit the stream on my local network. I'd like to be able to view the remote desktop session while listening on another device so I can see the TG id...with darkice/icecast there's at least a 30 second delay. I'm not interested in streaming outside my network at the moment.

besides running a very long audio cable to speakers near me (which i am considering...) does anyone have any ideas for a low latency solution?

thanks!
Reply With Quote
  #1693 (permalink)  
Old 01-13-2018, 2:23 PM
dseven's Avatar
Member
  Premium Subscriber
Premium Subscriber
Amateur Radio Operator
Amateur Radio
 
Join Date: Sep 2008
Location: SF Bay / Delta, CA
Posts: 114
Default

Quote:
Originally Posted by bjc1131 View Post
update for my setup - the VM is actually not performing well - even with 6 cores and 8gb of ram...lots of underruns.
Are you using PulseAudio? If so, and you don't need to, you might try eliminating it.
Reply With Quote
  #1694 (permalink)  
Old 01-13-2018, 8:49 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Mar 2007
Location: Talbot Co, MD
Posts: 874
Default

Quote:
Originally Posted by ntborg View Post
Any idea what these errors are. These errors appeared after the new build.

1515797638.530558 PCM underrun
p25_framer::nid_codeword: nid=3607c7ecc78b9528, ec=10
p25_framer::nid_codeword: nid=3607c7ecc78b9528, ec=10
p25_framer::nid_codeword: nid=770f5a63c3a60c68, ec=10
p25_framer::nid_codeword: nid=3607c7ecc78b9528, ec=10
p25_framer::nid_codeword: nid=3607c7ecc78b9528, ec=10
This is additional debug that I put in so that I could understand whether there was a threshold number of "correctable" bit errors in the BCH (nac/duid) error correction routine. The interesting thing to see is that your NAC is 0x360 but due to bit errors you have one coming through as 0x770 which is clearly incorrect. The "ec" value is the number of bit corrections that were applied to the 63 bit NID field (nac+duid+parity). Anything above 8 seems to get very suspect as far as reliability is concerned.
Reply With Quote
  #1695 (permalink)  
Old 01-13-2018, 8:51 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Mar 2007
Location: Talbot Co, MD
Posts: 874
Default

Quote:
Originally Posted by ntborg View Post
How do you get the updated build and does anyone know how to stop the PCM Underruns? I am using UNbuntu 16.04.3. The audio on p25 phase 2 is getting all garbled after reinstalling op25.
Which repo are you using for the build? If you are running straight 'max' branch from osmocom then you need to know that version has an older version of sockaudio.py that does not have the most optimal ALSA pcm buffering routine. I recommend you either grab a copy of the newer sockaudio from my forked repo, or just use my version.
Reply With Quote
  #1696 (permalink)  
Old 01-13-2018, 8:55 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Mar 2007
Location: Talbot Co, MD
Posts: 874
Default

Quote:
Originally Posted by bjc1131 View Post
update for my setup - the VM is actually not performing well - even with 6 cores and 8gb of ram...lots of underruns. I went back to my standalone ubuntu machine for op25 - it works a lot better...

My computers are in a room not near where I spend my time - so I'm trying to solve the following problem -- does anyone have a solution for "real time" streaming audio (locally)?

I'm using darkice and icecast from my headless ubuntu box to hit the stream on my local network. I'd like to be able to view the remote desktop session while listening on another device so I can see the TG id...with darkice/icecast there's at least a 30 second delay. I'm not interested in streaming outside my network at the moment.

besides running a very long audio cable to speakers near me (which i am considering...) does anyone have any ideas for a low latency solution?

thanks!
For local streaming (i.e. inside a house) you could simply use the remote UDP capability of op25. Start the main op25 app using the -W -w ipaddr options (dropping the -U option) and then run audio.sh on the machine you want to actually play the audio.
Reply With Quote
  #1697 (permalink)  
Old 01-14-2018, 9:51 PM
dseven's Avatar
Member
  Premium Subscriber
Premium Subscriber
Amateur Radio Operator
Amateur Radio
 
Join Date: Sep 2008
Location: SF Bay / Delta, CA
Posts: 114
Default

@boatbod, did you ever get a chance to see how long it takes your dongle(s) to change frequency, compared to mine? I'm considering investing in an AirSpy, or something, especially if it can do better in this respect.

An example of the missing words during a conversation can be heard here. In this recording, the right channel is my Uniden BCD396T, and the left channel is op25, which was given a whitelist with a single talkgroup. Note that first transmission after a pause is generally fine - it's just the subsequent ones in a conversation that start late.
Reply With Quote
  #1698 (permalink)  
Old 01-14-2018, 11:18 PM
Member
   
Join Date: Sep 2002
Location: Toronto, Ontario
Posts: 4,362
Default

Thagt's not a dongle fault. Dongles can retune in a tenth of a second or so. Slow retuning is a software issue.
Reply With Quote
  #1699 (permalink)  
Old 01-15-2018, 6:05 AM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Mar 2007
Location: Talbot Co, MD
Posts: 874
Default

Quote:
Originally Posted by dseven View Post
@boatbod, did you ever get a chance to see how long it takes your dongle(s) to change frequency, compared to mine? I'm considering investing in an AirSpy, or something, especially if it can do better in this respect.

An example of the missing words during a conversation can be heard here. In this recording, the right channel is my Uniden BCD396T, and the left channel is op25, which was given a whitelist with a single talkgroup. Note that first transmission after a pause is generally fine - it's just the subsequent ones in a conversation that start late.
Average seems to be about 0.4 sec from time that we see the group voice grant to the time that frame sync is reestablished and messages start flowing.

Quote:
Originally Posted by slicerwizard View Post
Thagt's not a dongle fault. Dongles can retune in a tenth of a second or so. Slow retuning is a software issue.
The trunking action all happen pretty quickly - biggest unknown is from time of retune to time when framing reestablishes. Additional debug would have to be added to quantify exactly where the time gets spent.
Reply With Quote
  #1700 (permalink)  
Old 01-15-2018, 8:42 AM
Member
   
Join Date: Mar 2016
Posts: 14
Default

Quote:
Originally Posted by n5pwp View Post
I run op25 on a RPi3 under Debian Stretch. My dongle is plugged directly into one of the Pi's USB ports. I have an external speaker plugged into it for audio and I RDP into it to check on things and make changes. It sits on my desk here and has been running for several weeks with no problems. When decoding audio the CPU jumps from about 18% to 24%. My 2nd Pi (the one running op25) had a crappy power supply. I replaced it with a CanaKit supply and it runs fine.

Good Luck
Mike
Mike,

I have read, re-read this and other threads, re-imaged my Pi3 4 times (to start clean) and yet try as I might, I cann't seem to get mine to work. I'm hoping you might have some instructions for me that work... Please...

Here is what I have:

Raspberry Pi 3 (using Raspian Debian Stretch - latest)

NooElec RTL dongle (the light blue one - works great under UniTrunker / DSD+ on my Win7 and Win10)

Attempting to montior APCO P25 Phase II, control freq is 771.18125 MHz (Johnson County Simulcast portion of the Fort Worth Regional Radio System - see this link: https://www.radioreference.com/apps/db/?sid=7349 )

I'm fairly adept at technical things, but not a programmer. I've what instructions I've found here (like what Boatbod posted) and what KB9MWR posted here: https://kb9mwr.blogspot.com/2017/07/ but I could only get one of two results.

Result #1 - Run the rx.py command and it starts, but the graphing just shows very light "snow bands" for the constelation, no audio, and increasing tbsk counts.

Result # - Run the rx.py command and .... nothing happens.

My trunk.tsv looks like this:
"Sysname" "Control Channel List" "Offset" "NAC" "Modulation" "TGID Tags File" "Whitelist" "Blacklist" "Center Frequency"
"Johnson County" "771.18125" "0" "0x1B8" "CQPSK" "johnson.tsv"

And a snippet of my johnson.tsv looks like this:
6664 Burleson Police Dispatch
6665 Burleson Police Dispatch 2
6666 Burleson Police Tactical
6667 Burleson SWAT 1
6668 Burleson SWAT 2
6669 Burleson PD Special Event
6670 Burleson PD Traffic



My install procedure (from a clean build of Debian Stretch) is:

#Initial Prep
#Edit the /etc/apt/sources.list file by removing the # from the "deb-src" line.
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 install OP25
cd ~
git clone https://git.osmocom.org/op25
#NOTE - I have also done a build, trying https://git.osmocom.org/op25
cd op25
git checkout max
mkdir build
cd build
cmake ../
make
sudo make install
sudo ldconfig

I have spend the last 2 days (about 8 - 10 hours each) working on this, and I am hoping there is a bit easier way to get this working.

Thanks and 73's,

Dutch (get my Technician ticket this week!)
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:10 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2018, 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