OP25 Boatbod OP25 Multi_rx no audio

Status
Not open for further replies.

vk2mpj

Member
Joined
Dec 22, 2011
Messages
8
Location
Wagga Wagga, New South Wales
G'day all,

I come to you with cap in hand, as this is really getting frustrating.
I can successfully get OP25 working using rx.py, but I would like to use multi_rx.py so that I can add radio ID tags.
I have gotten it running, and it is decoding control channel data, and seems to be following voice as expected, but I am not hearing anything. All I want to do is have it play the audio out of the speakers just like rx.py does. No streaming to any services etc. But alas, it just wont do it.
What (most likely obvious) step am I missing? If someone could have a look at my config below and let me know

thanks in advance

Config is
JSON:
{
    "channels": [
        {
            "name": "Voice_ch1",
            "device": "sdr0",
            "trunking_sysname": "Willans Hill",
            "meta_stream_name": "",
            "demod_type": "cqpsk",
            "cqpsk_tracking": true,
            "tracking_threshold": 120,
            "tracking_feedback": 0.75,
            "destination": "udp://127.0.0.1:23456",
            "excess_bw": 0.2,
            "filter_type": "rc",
            "frequency": 419550000,
            "if_rate": 24000,
            "plot": "",
            "symbol_rate": 4800,
            "enable_analog": "off",
            "blacklist": "",
            "whitelist": "",
            "crypt_keys": ""
        }
                
        ],
        
    "devices": [
        {
            "args": "airspy=0",
            "frequency": 419550000,
            "gains": "LNA:10,MIX:10,IF:5",
            "gain_mode": false,
            "name": "sdr0",
            "offset": 0,
            "ppm": 0,
            "rate": 10000000,
            "usable_bw_pct": 0.95,
            "tunable": false
        }
    ],
    "trunking": {
        "module": "tk_p25.py",
        "chans": [
            {
                "nac": "0x2d7",
                "sysname": "Willans Hill",
                "control_channel_list": "419.550",
                "whitelist": "",
                "blacklist": "",
                "tgid_tags_file": "",
                "rid_tags_file": "",
                "tdma_cc": false,
                "crypt_behavior": 2
            }
        ]
    },
    
    "audio": {
        "module": "sockaudio.py",
        "instances": [
            {
                "instance_name": "audio0",
                "device_name": "default",
                "udp_port": 23466,
                "audio_gain": 1.0,
                "number_channels": 1
            }
        ]
    },
    "terminal": {
        "module": "terminal.py",
        "terminal_type": "curses",
        "#terminal_type": "http:127.0.0.1:8080",
        "curses_plot_interval": 0.1,
        "http_plot_interval": 1.0,
        "http_plot_directory": "../www/images",
        "tuning_step_large": 1200,
        "tuning_step_small": 100
    }
}
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,411
Location
Talbot Co, MD
UDP port number needs to be the same in the channel destination as in the audio listener.
Code:
"destination": "udp://127.0.0.1:23456",
Code:
"udp_port": 23466,
 

vk2mpj

Member
Joined
Dec 22, 2011
Messages
8
Location
Wagga Wagga, New South Wales
UDP port number needs to be the same in the channel destination as in the audio listener.
Code:
"destination": "udp://127.0.0.1:23456",
Code:
"udp_port": 23466,
Hi mate,
Thanks for the reply.
I have just fixed that one up and still no go. I can see it via curses terminal that it is receiving but still no audio.

Running DragonOS Focal (lubuntu based).

rx.py works perfectly

EDIT:
Just spotted this in the stderr log


Using Python /usr/bin/python3
Configuring audio instance #0 [audio0]
using ALSA sound system
audio device: default
ALSA lib pcm_dmix.c:1032:(snd_pcm_dmix_open) unable to open slave
failed to open audio device: default

rx.py uses Pulse. Might look closer at that
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,411
Location
Talbot Co, MD
Hi mate,
Thanks for the reply.
I have just fixed that one up and still no go. I can see it via curses terminal that it is receiving but still no audio.

Running DragonOS Focal (lubuntu based).

rx.py works perfectly

EDIT:
Just spotted this in the stderr log


Using Python /usr/bin/python3
Configuring audio instance #0 [audio0]
using ALSA sound system
audio device: default
ALSA lib pcm_dmix.c:1032:(snd_pcm_dmix_open) unable to open slave
failed to open audio device: default

rx.py uses Pulse. Might look closer at that
ALSA "default" should be almost universally supported so I'm not sure why that wouldn't work unless there is a permissions problem. That said, if "pulse" works for rx.py it should work for multi_rx.py as well. Just edit the config file and you should be good to go.
 
Status
Not open for further replies.
Top