[arm-allstar] simultaneous asterisk and direwolf possible?
Tony
node4139x at gmail.com
Sun Apr 5 18:24:55 EDT 2020
My hamvoip node is often connected to an ASL hub node on a large network
of linked repeaters. Occasionally, we all hear what sound like APRS
beacons, as they occur regularly every 10 or 15 minutes. The idea occurs
to me to use "direwolf" to decode these beacons, so that the responsible
operator can be alerted to their error of beaconing on a linked network
of FM repeaters.
The initial problem occurs as an inability to share the USB sound card
audio:
[root at yellow ~]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Device [USB Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0
[root at yellow ~]# grep -E "^ADEVICE|^ACHANNELS" direwolf.conf
ADEVICE plughw:0,0 -
ACHANNELS 1
[root at yellow ~]# direwolf -t 0
Dire Wolf version 1.5
...
Reading config file direwolf.conf
Audio device for both receive and transmit: plughw:0,0 (channel 0)
Could not open audio device plughw:0,0 for input
Device or resource busy
Pointless to continue without audio device.
This occurs even if /run/lock/asound.state.lock and its symlink
/var/lock/asound.state.lock are rm'd. It runs properly if asterisk isn't
running, but then the ASL audio stream containing the APRS isn't available:
[root at yellow ~]# astdn.sh && direwolf -t 0
Stopping Asterisk...
Asterisk ended with exit status 0
Asterisk shutdown normally.
Dire Wolf version 1.5
...
Reading config file direwolf.conf
Audio device for both receive and transmit: plughw:0,0 (channel 0)
Channel 0: 1200 baud, AFSK 1200 & 2200 Hz, E+, 44100 sample rate / 3,
DTMF decoder enabled.
Ready to accept AGW client application 0 on port 8000 ...
Ready to accept KISS TCP client application 0 on port 8001 ...
Is there some way to get both asterisk and direwolf listening to the
same audio stream? Or must I use a USB RTL-SDR stream listening on the
simplex node radio frequency and decode the APRS from among that audio
stream?
More information about the ARM-allstar
mailing list