OP25 no audio...alsa plug in (python 2.7)?

Status
Not open for further replies.

ve2cwn

Newbie
Joined
Apr 14, 2020
Messages
3
Hi all...I installed Op25 on a Linux Mint 19.3 box dedicated to Ham/SDR stuff. The box has been used for quite some time..its been very stable with no weird behavior with long uptimes...runs Gqrx fine and no issues (audio or else) with any other apps...but I get no audio from OP25...tried in command line...plughw:0,0...-U...-S 2400000 etc...log files seems ok...Behavior looks ok...using..../rx.py --args 'rtl' -N 'LNA:48' -S 960000 -f 772.2890e6 -q -1 -o -100 -T trunk.tsv -V -U 2> stderr.2...

I did a 'git pull' at one point hunting for issues with this...no change

Screenshot from 2020-04-14 10-18-16.png

and this looks ok

83204

this looks fine

83206

This from sound settings when Op25 is running...this screen will occassionnaly flicker between this and the "there is no app currently playing or recording audio"...but no audio....issue with OP25 > python 2.7 Alsa plug in...to pulseaudio?

83203

I am running out of ideas...
 
Last edited:

boatbod

Member
Joined
Mar 3, 2007
Messages
3,411
Location
Talbot Co, MD
./rx.py --args 'rtl' -N 'LNA:48' -S 960000 -f 772.2890e6 -q -1 -o -100 -T trunk.tsv -V -U 2> stderr.2

The above command line will send audio to the "default" device. You can verify if this is going to work by finding a .wav file (lets call it test.wav) and using the aplay command to play it via ALSA.
e.g. "aplay test.wav"

If you need to redirect to a different audio device you can use the -O option but then you'll need to know what the devices are called. You can get a listing of devices you can use "aplay -l".
e.g. ./rx.py ... -O plughw:0,0 ...
./rx.py ... -O plughw:1,0 ...

Anyway, coming back to your reported problem, it'd be useful to see the opening section of your stderr.2 log file up to the line that should say "
audio device: default". As long as that line is present the audio player is enabled (corresponding to the -U option).
 

ve2cwn

Newbie
Joined
Apr 14, 2020
Messages
3
HI...Ooops hit reply too quick sorry...I had done most of what you suggested...Should I be hearing garbled audio if this is encrypted? I am *pretty sure* this is P25 Phase I non encrypted... I am out of ideas...now think I need to find another P25 system in my area confirmed working with OP25 by someone and tune/test to that...

aplay xxx.wav...yes audio heard...

aplay -L...reports:

default
Playback/recording through the PulseAudio sound server
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
sysdefault:CARD=PCH
HDA Intel PCH, ALC887-VD Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Digital
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
Direct sample mixing device
dmix:CARD=PCH,DEV=1
HDA Intel PCH, ALC887-VD Digital
Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
Direct sample snooping device
dsnoop:CARD=PCH,DEV=1
HDA Intel PCH, ALC887-VD Digital
Direct sample snooping device
hw:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
Direct hardware device without any conversions
hw:CARD=PCH,DEV=1
HDA Intel PCH, ALC887-VD Digital
Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
Hardware device with all software conversions
plughw:CARD=PCH,DEV=1
HDA Intel PCH, ALC887-VD Digital
Hardware device with all software conversions


and yes shows default device audio...

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
Using device #0 Realtek RTL2838UHIDIR SN: 00000001
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
gain: name: LNA range: start 0 stop 0 step 0
setting gain LNA to 48
supported sample rates 250000-2560000 step 24000
[R82XX] PLL not locked!
Using two-stage decimator for speed=2400000, decim=25/4 if1=96000 if2=24000
Project 25 IMBE Encoder/Decoder Fixed-Point implementation
Developed by Pavel Yazev E-mail: pyazev@gmail.com
Version 1.0 (c) Copyright 2009
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; see the file ``LICENSE'' for details.
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[0], do_nocrypt[0]
metadata update not enabled
audio device: default
 

ve2cwn

Newbie
Joined
Apr 14, 2020
Messages
3
Looking at the radio reference page for this system I see some talkgroups with DE and some with just D in the mode field...I suppose I should be earing the D unencrypted ones...
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,411
Location
Talbot Co, MD
Looking at the radio reference page for this system I see some talkgroups with DE and some with just D in the mode field...I suppose I should be earing the D unencrypted ones...
Add the command line option "--no-crypt" and see what happens next.
It'll scan every voice grant for the presence of encryption and suppress playing audio when encryption is present.
 
Status
Not open for further replies.
Top