Date   

Re: Setting up Analog_bridge for P25

Steve N4IRS
 

Stephen,
It looks like I need to update the RPi and the x86 versions of Analog_Bridge. I will TRY to get it done this week, but this is my first day back at work after a week. I doing catch up. In the mean time, use this as a template for your RPi AB:
; Analog_Bridge configuration file.
;   This file should be placed in either /etc or it can be
;   supplied as a path on the Analog_Bridge command line.

; General Section describes settings for Analog_Bridge itself.
;   For RPI, don't forget to modprobe snd_pcm_oss to get the devices populated
[GENERAL]
logLevel = 2                            ; Show messages and above 0=No logging, 1=Debug, 2=Message, 3=Info, 4=Warning, 5=Error, 6=Fatal

; Metadata management
exportMetadata = true                   ; Export metadata to USRP partner (transcode setups require this)
subscriberFile = /var/lib/dvswitch/subscriber_ids.csv   ; DMR ID to callsign lookup data

; General vocoder setup information
decoderFallBack = true                 ; Allow software AMBE decoding if a hardware decoder is not found
useEmulator = true                     ; Use the MD380 AMBE emulator for AMBE72 (DMR/YSFN/NXDN)
emulatorAddress = 127.0.0.1:2470        ; IP address and port of the server

; Audio devices are normally not needed when in gateway service.  These devices should
; only be set when local monitor or dongle modes are required.
outputAudioDevice = /dev/null           ; Audio device /dev/null, /dev/dsp1, portaudio, etc
inputAudioDevice = /dev/null            ; Only used for dongle mode

; Below values are for using this as a local DMR dongle (no ASL needed)
useMicrophone = false                   ; Use app as just a fancy dongle for DMR
useVox = false                          ; If using dongle mode (useMicrophone), enable VOX
voxDecay = 2                            ; Hang time in seconds
voxTrigger = 200                        ; Value to trip PTT (0-32767)

; Information for xx_Bridges (Where xx is MMDVM, HB, IPSC)
[AMBE_AUDIO]
server = 127.0.0.1                      ; IP address of xx_Bridge.py
fromDMRPort = 31000                     ; AMBE frames from xx_Bridge (should match "toGatewayPort" in xx_Bridge.cfg)
toDMRPort = 31003                       ; AMBE frames from xx_Bridge (should match "fromGatewayPort" in xx_Bridge.cfg)
ambeMode = DMR                          ; DMR, DMR_IPSC, DSTAR, NXDN, P25, YSFN, YSFW
minTxTimeMS = 2000                      ; Minimum time in MS for hang delay
gatewayDmrId = 3112138                  ; ID to use when transmitting from Analog_Bridge
repeaterID = 311213850                  ; ID of source repeater
txTg = 9                                ; TG to use for all frames received from Analog_Bridge -> xx_Bridge
txTs = 2                                ; Slot to use for frames received from Analog_Bridge -> xx_Bridge
colorCode = 1                           ; Color Code to assign DMR frames

; Information for USRP channel driver.  This interface uses PCM to transfer audio information
; There are two typical configurations, ASL and Transcode.  ASL (AllstarLink) is for analog clients connected
; to a digital network.  Transcode is when Analog_Bridge actually points its PCM interfaces back at itself,
; causing a TLV <-- (pcm <--> pcm) --> TLV type of architecture.
;   When using ASL, this matches the rpt.conf ASL file with a setting like:
;   rxchannel = usrp/127.0.0.1:34001:32001
;   When Transcoding, make toASLPort equal to the other instance fromASLPort (crossover)
[USRP]
server = 127.0.0.1                      ; IP address of Allstar/Asterisk
toASLPort = 32001                       ; Analog_Bridge <-- ASL
fromASLPort = 34001                     ; Analog_Bridge --> ASL
aslAudio = AUDIO_UNITY                  ; Audio to ASL (AUDIO_UNITY, AUDIO_USE_AGC, AUDIO_USE_GAIN)
agcGain = -20                           ; Gain (in db) of the AGC filter
dmrAudio = AUDIO_UNITY                  ; Audio from ASL (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_BPF)
dmrGain = 0.35                          ; Gain factor of audio from ASL (0.0-1.0)

; Information for DV3000 hardware decoder
;   There are two configuration modes: IP (AMBEServer) and serial (direct connect hardware)
;   Use top server and port if using AMBEServer
;   Use bottom server/port and serial = true if using the DV3000u (thumbdv)
;   Did you run AMBETest4.py before using this?
[DV3000]
server = 127.0.0.1                      ; IP address of AMBEServer
port = 2460                             ; Port of AMBEServer
; server = /dev/ttyUSB0                 ; Device of DV3000U on this machine
; port = 460800                         ; Baud rate of the dongle
; serial = true                         ; Use serial (DV3000U) or IP


On 9/11/2018 11:18 AM, Stephen Brown - K1LNX wrote:
Thanks Steve, here it is: 

; Analog_Bridge configuration file.
;   This file should be placed in either /etc or it can be
;   supplied as a path on the Analog_Bridge command line.

; The best way to think of this file is that there are two main sections, the USRP (analog audio) and
; AMBE_AUDIO (compressed audio).  Analog_Bridge will take everything sent to the USRP port and
; encode it for transmission on the AMBE_AUDIO port.  The encoder will use the format defined in ambeMode.
; As you might expect, the reverse direction is defined too.


; General Section describes settings for Analog_Bridge itself.
[GENERAL]
logLevel = 2                            ; Show messages and above 0=No logging, 1=Debug, 2=Message, 3=Info, 4=Warning, 5=Error, 6=Fatal

; Metadata management
subscriberFile = ./subscriber_ids.csv   ; DMR ID to callsign lookup data
exportMetadata = true                   ; Export metadata to USRP partner (transcode setups require this)

; General vocoder setup information
decoderFallBack = true                  ; Allow software AMBE decoding if a hardware decoder is not found
useEmulator = false                     ; Use the MD380 AMBE emulator for AMBE72 (DMR/YSFN/NXDN)
emulatorAddress = 127.0.0.1:2470        ; IP address and port of the md380 server

; Information for xx_Bridge (Where xx is MMDVM, Quantar, HB, IPSC)
[AMBE_AUDIO]
address = 127.0.0.1                     ; IP address of xx_Bridge
txPort = 31003                          ; Transmit TLV frames to partner on this port
rxPort = 31000                          ; Listen for TLV frames from partner on this port
ambeMode = P25                          ; DMR, DMR_IPSC, DSTAR, NXDN, P25, YSFN, YSFW (encode PCM to this format)
minTxTimeMS = 2000                      ; Minimum time in MS for hang delay (0-10000)

; The metadata below is used when ASL is the source since it does not have any concept of digital modes
gatewayDmrId = 1234567                  ; ID to use when transmitting from Analog_Bridge
repeaterID = 123456789                  ; ID of source repeater
txTg = 9                                ; TG to use for all frames sent from Analog_Bridge -> xx_Bridge
txTs = 2                                ; Slot to use for frames sent from Analog_Bridge -> xx_Bridge
colorCode = 1                           ; Color Code to assign DMR frames

; Information for USRP channel driver.  This interface uses PCM to transfer audio information
; There are two typical configurations, ASL and Transcode.  ASL (AllstarLink) is for analog clients connected
; to a digital network.  Transcode is when Analog_Bridge actually points its PCM interfaces back at itself, 
; causing a TLV <-- (pcm <--> pcm) --> TLV type of architecture.
;   When using ASL, this matches the rpt.conf ASL file with a setting like:
;   rxchannel = usrp/127.0.0.1:34001:32001
;   When Transcoding, make two ini files and set txPort equal to the other instance rxPort (crossover).  Launch
;   each instance with its own ini file.
[USRP]
address = 127.0.0.1                     ; IP address of USRP partner (Allstar/Asterisk or another Analog_Bridge)
txPort = 32001                          ; Transmit USRP frames on this port
rxPort = 34001                          ; Listen for USRP frames on this port
aslAudio = AUDIO_UNITY                  ; Audio to ASL (AUDIO_UNITY, AUDIO_USE_AGC, AUDIO_USE_GAIN)
agcGain = -20                           ; Gain (in db) of the AGC filter
dmrAudio = AUDIO_UNITY                  ; Audio from ASL (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_BPF)
dmrGain = 0.35                          ; Gain factor of audio from ASL (0.0-1.0)

; Information for DV3000 hardware decoder
;   There are two configuration modes: IP (AMBEServer) and serial (direct connect hardware)
;   Use top server and port if using AMBEServer
;   Use bottom server/port and serial = true if using the DV3000u (thumbdv)
;   Did you run AMBETest4.py before using this?
[DV3000]
address = 127.0.0.1                     ; IP address of AMBEServer
rxPort = 2460                           ; Port of AMBEServer
; address = /dev/ttyUSB0                ; Device of DV3000U on this machine
; baud = 460800                         ; Baud rate of the dongle (230400 or 460800)
; serial = true                         ; Use serial=true for direct connect or serial=false for AMBEServer


On Tue, Sep 11, 2018 at 11:16 AM Steve N4IRS <szingman@...> wrote:
Stephen,
Please post your Analog_Bridge_P25.ini 

On 9/11/2018 11:01 AM, Stephen Brown - K1LNX wrote:
Hi guys, 
    So I'm just starting to play with Analog_bridge and P25. My (limited) understanding is that transcoding to/from PCM is handled via software and the OP25 libraries. 

I think I have everything setup correctly, however I don't seem to be getting any traffic from P25 into Analog_bridge. There also seems to be some conflicts in the ini file, I see this in the debug messages when I start it up: 

root@radioserver:/opt/Analog_Bridge# ./Analog_Bridge Analog_Bridge_P25.ini 
I: 2018-09-10 23:15:23.979 Analog Bridge Version 1.1 Wed  9 May 05:56:17 EDT 2018
I: 2018-09-10 23:15:23.979 Copyright (C) 2018 DVSwitch, INAD.
I: 2018-09-10 23:15:23.979 Created by Mike N4IRR and Steve N4IRS
I: 2018-09-10 23:15:23.979 Analog Bridge comes with ABSOLUTELY NO WARRANTY
I: 2018-09-10 23:15:23.979 
I: 2018-09-10 23:15:23.979 This software is for use on amateur radio networks only,
I: 2018-09-10 23:15:23.979 it is to be used for educational purposes only. Its use on
I: 2018-09-10 23:15:23.979 commercial networks is strictly prohibited.
I: 2018-09-10 23:15:23.979 
I: 2018-09-10 23:15:23.979 Analog Bridge is starting
M: 2018-09-10 23:15:23.980 Setting [GENERAL] logLevel -> 2
M: 2018-09-10 23:15:23.980 Setting [GENERAL] subscriberFile -> ./subscriber_ids.csv
M: 2018-09-10 23:15:23.980 Setting [GENERAL] exportMetadata -> true
M: 2018-09-10 23:15:23.980 Setting [GENERAL] decoderFallBack -> true
M: 2018-09-10 23:15:23.980 Setting [GENERAL] useEmulator -> false
M: 2018-09-10 23:15:23.980 Setting [GENERAL] emulatorAddress -> 127.0.0.1:2470
W: 2018-09-10 23:15:23.980 Unknown section/name in .ini file: AMBE_AUDIO/address
W: 2018-09-10 23:15:23.980 Unknown section/name in .ini file: AMBE_AUDIO/txPort
W: 2018-09-10 23:15:23.980 Unknown section/name in .ini file: AMBE_AUDIO/rxPort
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] ambeMode -> P25
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] minTxTimeMS -> 2000
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] gatewayDmrId -> 1234567
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] repeaterID -> 123456789
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] txTg -> 9
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] txTs -> 2
M: 2018-09-10 23:15:23.981 Setting [AMBE_AUDIO] colorCode -> 1
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: USRP/address
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: USRP/txPort
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: USRP/rxPort
M: 2018-09-10 23:15:23.981 Setting [USRP] aslAudio -> AUDIO_UNITY
M: 2018-09-10 23:15:23.981 Setting [USRP] agcGain -> -20
M: 2018-09-10 23:15:23.981 Setting [USRP] dmrAudio -> AUDIO_UNITY
M: 2018-09-10 23:15:23.981 Setting [USRP] dmrGain -> 0.35
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: DV3000/address
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: DV3000/rxPort
W: 2018-09-10 23:15:23.981 ioctl reset error 
W: 2018-09-10 23:15:23.981 ioctl speed error 
W: 2018-09-10 23:15:23.981 ioctl stereo error 
W: 2018-09-10 23:15:23.981 ioctl setfmt error 
M: 2018-09-10 23:15:23.981 Audio In/Out Device: /dev/null
I: 2018-09-10 23:15:23.981 Open UDP listener on 127.0.0.1:31000
I: 2018-09-10 23:15:23.981 Open USRP on 127.0.0.1:32001
M: 2018-09-10 23:15:23.982 Connecting to DV3000 hardware......
W: 2018-09-10 23:15:24.991 DV3000 not found at 127.0.0.1:2460
Project 25 IMBE Encoder/Decoder Fixed-Point implementation
Developed by Pavel Yazev E-mail: pyazev@...
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.
I: 2018-09-10 23:15:24.992 Subscriber IDs file not found.
I: 2018-09-10 23:15:24.992 Default extended metadata <1234567>
W: 2018-09-10 23:15:24.992 Using software MBE decoder version 1.2.3
W: 2018-09-10 23:15:24.992 Using software OP25 IMBE/AMBE vocoder
I: 2018-09-10 23:15:24.993 Starting Analog_Bridge --> USRP thread
I: 2018-09-10 23:15:24.993 Open UDP listener on 127.0.0.1:34001
I: 2018-09-10 23:15:24.993 Starting USRP --> IPSC_Bridge thread

MMDVM_bridge/P25Gateway appear to work fine, I have them pointed at a test reflector I built. All are locally hosted on the same raspberry pi, and there doesn't appear to be any firewall issues blocking anything, I allow everyting in and out on lo. I built a private node on the app_rpt side and see key/unkey events if I connect my normal node to it so that part seems to be working at least. 

I think I might be missing something, or something is potentially misconfig'd, but can't really put a finger on it. Does Analog_bridge handle P25/IMBE transcoding, or do I need something "external" for that to take place? I also will typically use a different ID on private networks such as this, and have had that sort of stuff get me in the past, so also wanted to make sure there is no ID checking? 

73
Stephen
K1LNX




Re: Setting up Analog_bridge for P25

Stephen Brown - K1LNX
 

Thanks Steve, here it is: 

; Analog_Bridge configuration file.
;   This file should be placed in either /etc or it can be
;   supplied as a path on the Analog_Bridge command line.

; The best way to think of this file is that there are two main sections, the USRP (analog audio) and
; AMBE_AUDIO (compressed audio).  Analog_Bridge will take everything sent to the USRP port and
; encode it for transmission on the AMBE_AUDIO port.  The encoder will use the format defined in ambeMode.
; As you might expect, the reverse direction is defined too.


; General Section describes settings for Analog_Bridge itself.
[GENERAL]
logLevel = 2                            ; Show messages and above 0=No logging, 1=Debug, 2=Message, 3=Info, 4=Warning, 5=Error, 6=Fatal

; Metadata management
subscriberFile = ./subscriber_ids.csv   ; DMR ID to callsign lookup data
exportMetadata = true                   ; Export metadata to USRP partner (transcode setups require this)

; General vocoder setup information
decoderFallBack = true                  ; Allow software AMBE decoding if a hardware decoder is not found
useEmulator = false                     ; Use the MD380 AMBE emulator for AMBE72 (DMR/YSFN/NXDN)
emulatorAddress = 127.0.0.1:2470        ; IP address and port of the md380 server

; Information for xx_Bridge (Where xx is MMDVM, Quantar, HB, IPSC)
[AMBE_AUDIO]
address = 127.0.0.1                     ; IP address of xx_Bridge
txPort = 31003                          ; Transmit TLV frames to partner on this port
rxPort = 31000                          ; Listen for TLV frames from partner on this port
ambeMode = P25                          ; DMR, DMR_IPSC, DSTAR, NXDN, P25, YSFN, YSFW (encode PCM to this format)
minTxTimeMS = 2000                      ; Minimum time in MS for hang delay (0-10000)

; The metadata below is used when ASL is the source since it does not have any concept of digital modes
gatewayDmrId = 1234567                  ; ID to use when transmitting from Analog_Bridge
repeaterID = 123456789                  ; ID of source repeater
txTg = 9                                ; TG to use for all frames sent from Analog_Bridge -> xx_Bridge
txTs = 2                                ; Slot to use for frames sent from Analog_Bridge -> xx_Bridge
colorCode = 1                           ; Color Code to assign DMR frames

; Information for USRP channel driver.  This interface uses PCM to transfer audio information
; There are two typical configurations, ASL and Transcode.  ASL (AllstarLink) is for analog clients connected
; to a digital network.  Transcode is when Analog_Bridge actually points its PCM interfaces back at itself, 
; causing a TLV <-- (pcm <--> pcm) --> TLV type of architecture.
;   When using ASL, this matches the rpt.conf ASL file with a setting like:
;   rxchannel = usrp/127.0.0.1:34001:32001
;   When Transcoding, make two ini files and set txPort equal to the other instance rxPort (crossover).  Launch
;   each instance with its own ini file.
[USRP]
address = 127.0.0.1                     ; IP address of USRP partner (Allstar/Asterisk or another Analog_Bridge)
txPort = 32001                          ; Transmit USRP frames on this port
rxPort = 34001                          ; Listen for USRP frames on this port
aslAudio = AUDIO_UNITY                  ; Audio to ASL (AUDIO_UNITY, AUDIO_USE_AGC, AUDIO_USE_GAIN)
agcGain = -20                           ; Gain (in db) of the AGC filter
dmrAudio = AUDIO_UNITY                  ; Audio from ASL (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_BPF)
dmrGain = 0.35                          ; Gain factor of audio from ASL (0.0-1.0)

; Information for DV3000 hardware decoder
;   There are two configuration modes: IP (AMBEServer) and serial (direct connect hardware)
;   Use top server and port if using AMBEServer
;   Use bottom server/port and serial = true if using the DV3000u (thumbdv)
;   Did you run AMBETest4.py before using this?
[DV3000]
address = 127.0.0.1                     ; IP address of AMBEServer
rxPort = 2460                           ; Port of AMBEServer
; address = /dev/ttyUSB0                ; Device of DV3000U on this machine
; baud = 460800                         ; Baud rate of the dongle (230400 or 460800)
; serial = true                         ; Use serial=true for direct connect or serial=false for AMBEServer


On Tue, Sep 11, 2018 at 11:16 AM Steve N4IRS <szingman@...> wrote:
Stephen,
Please post your Analog_Bridge_P25.ini 

On 9/11/2018 11:01 AM, Stephen Brown - K1LNX wrote:
Hi guys, 
    So I'm just starting to play with Analog_bridge and P25. My (limited) understanding is that transcoding to/from PCM is handled via software and the OP25 libraries. 

I think I have everything setup correctly, however I don't seem to be getting any traffic from P25 into Analog_bridge. There also seems to be some conflicts in the ini file, I see this in the debug messages when I start it up: 

root@radioserver:/opt/Analog_Bridge# ./Analog_Bridge Analog_Bridge_P25.ini 
I: 2018-09-10 23:15:23.979 Analog Bridge Version 1.1 Wed  9 May 05:56:17 EDT 2018
I: 2018-09-10 23:15:23.979 Copyright (C) 2018 DVSwitch, INAD.
I: 2018-09-10 23:15:23.979 Created by Mike N4IRR and Steve N4IRS
I: 2018-09-10 23:15:23.979 Analog Bridge comes with ABSOLUTELY NO WARRANTY
I: 2018-09-10 23:15:23.979 
I: 2018-09-10 23:15:23.979 This software is for use on amateur radio networks only,
I: 2018-09-10 23:15:23.979 it is to be used for educational purposes only. Its use on
I: 2018-09-10 23:15:23.979 commercial networks is strictly prohibited.
I: 2018-09-10 23:15:23.979 
I: 2018-09-10 23:15:23.979 Analog Bridge is starting
M: 2018-09-10 23:15:23.980 Setting [GENERAL] logLevel -> 2
M: 2018-09-10 23:15:23.980 Setting [GENERAL] subscriberFile -> ./subscriber_ids.csv
M: 2018-09-10 23:15:23.980 Setting [GENERAL] exportMetadata -> true
M: 2018-09-10 23:15:23.980 Setting [GENERAL] decoderFallBack -> true
M: 2018-09-10 23:15:23.980 Setting [GENERAL] useEmulator -> false
M: 2018-09-10 23:15:23.980 Setting [GENERAL] emulatorAddress -> 127.0.0.1:2470
W: 2018-09-10 23:15:23.980 Unknown section/name in .ini file: AMBE_AUDIO/address
W: 2018-09-10 23:15:23.980 Unknown section/name in .ini file: AMBE_AUDIO/txPort
W: 2018-09-10 23:15:23.980 Unknown section/name in .ini file: AMBE_AUDIO/rxPort
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] ambeMode -> P25
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] minTxTimeMS -> 2000
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] gatewayDmrId -> 1234567
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] repeaterID -> 123456789
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] txTg -> 9
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] txTs -> 2
M: 2018-09-10 23:15:23.981 Setting [AMBE_AUDIO] colorCode -> 1
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: USRP/address
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: USRP/txPort
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: USRP/rxPort
M: 2018-09-10 23:15:23.981 Setting [USRP] aslAudio -> AUDIO_UNITY
M: 2018-09-10 23:15:23.981 Setting [USRP] agcGain -> -20
M: 2018-09-10 23:15:23.981 Setting [USRP] dmrAudio -> AUDIO_UNITY
M: 2018-09-10 23:15:23.981 Setting [USRP] dmrGain -> 0.35
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: DV3000/address
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: DV3000/rxPort
W: 2018-09-10 23:15:23.981 ioctl reset error 
W: 2018-09-10 23:15:23.981 ioctl speed error 
W: 2018-09-10 23:15:23.981 ioctl stereo error 
W: 2018-09-10 23:15:23.981 ioctl setfmt error 
M: 2018-09-10 23:15:23.981 Audio In/Out Device: /dev/null
I: 2018-09-10 23:15:23.981 Open UDP listener on 127.0.0.1:31000
I: 2018-09-10 23:15:23.981 Open USRP on 127.0.0.1:32001
M: 2018-09-10 23:15:23.982 Connecting to DV3000 hardware......
W: 2018-09-10 23:15:24.991 DV3000 not found at 127.0.0.1:2460
Project 25 IMBE Encoder/Decoder Fixed-Point implementation
Developed by Pavel Yazev E-mail: pyazev@...
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.
I: 2018-09-10 23:15:24.992 Subscriber IDs file not found.
I: 2018-09-10 23:15:24.992 Default extended metadata <1234567>
W: 2018-09-10 23:15:24.992 Using software MBE decoder version 1.2.3
W: 2018-09-10 23:15:24.992 Using software OP25 IMBE/AMBE vocoder
I: 2018-09-10 23:15:24.993 Starting Analog_Bridge --> USRP thread
I: 2018-09-10 23:15:24.993 Open UDP listener on 127.0.0.1:34001
I: 2018-09-10 23:15:24.993 Starting USRP --> IPSC_Bridge thread

MMDVM_bridge/P25Gateway appear to work fine, I have them pointed at a test reflector I built. All are locally hosted on the same raspberry pi, and there doesn't appear to be any firewall issues blocking anything, I allow everyting in and out on lo. I built a private node on the app_rpt side and see key/unkey events if I connect my normal node to it so that part seems to be working at least. 

I think I might be missing something, or something is potentially misconfig'd, but can't really put a finger on it. Does Analog_bridge handle P25/IMBE transcoding, or do I need something "external" for that to take place? I also will typically use a different ID on private networks such as this, and have had that sort of stuff get me in the past, so also wanted to make sure there is no ID checking? 

73
Stephen
K1LNX



Re: Setting up Analog_bridge for P25

Steve N4IRS
 

Stephen,
Please post your Analog_Bridge_P25.ini 

On 9/11/2018 11:01 AM, Stephen Brown - K1LNX wrote:
Hi guys, 
    So I'm just starting to play with Analog_bridge and P25. My (limited) understanding is that transcoding to/from PCM is handled via software and the OP25 libraries. 

I think I have everything setup correctly, however I don't seem to be getting any traffic from P25 into Analog_bridge. There also seems to be some conflicts in the ini file, I see this in the debug messages when I start it up: 

root@radioserver:/opt/Analog_Bridge# ./Analog_Bridge Analog_Bridge_P25.ini 
I: 2018-09-10 23:15:23.979 Analog Bridge Version 1.1 Wed  9 May 05:56:17 EDT 2018
I: 2018-09-10 23:15:23.979 Copyright (C) 2018 DVSwitch, INAD.
I: 2018-09-10 23:15:23.979 Created by Mike N4IRR and Steve N4IRS
I: 2018-09-10 23:15:23.979 Analog Bridge comes with ABSOLUTELY NO WARRANTY
I: 2018-09-10 23:15:23.979 
I: 2018-09-10 23:15:23.979 This software is for use on amateur radio networks only,
I: 2018-09-10 23:15:23.979 it is to be used for educational purposes only. Its use on
I: 2018-09-10 23:15:23.979 commercial networks is strictly prohibited.
I: 2018-09-10 23:15:23.979 
I: 2018-09-10 23:15:23.979 Analog Bridge is starting
M: 2018-09-10 23:15:23.980 Setting [GENERAL] logLevel -> 2
M: 2018-09-10 23:15:23.980 Setting [GENERAL] subscriberFile -> ./subscriber_ids.csv
M: 2018-09-10 23:15:23.980 Setting [GENERAL] exportMetadata -> true
M: 2018-09-10 23:15:23.980 Setting [GENERAL] decoderFallBack -> true
M: 2018-09-10 23:15:23.980 Setting [GENERAL] useEmulator -> false
M: 2018-09-10 23:15:23.980 Setting [GENERAL] emulatorAddress -> 127.0.0.1:2470
W: 2018-09-10 23:15:23.980 Unknown section/name in .ini file: AMBE_AUDIO/address
W: 2018-09-10 23:15:23.980 Unknown section/name in .ini file: AMBE_AUDIO/txPort
W: 2018-09-10 23:15:23.980 Unknown section/name in .ini file: AMBE_AUDIO/rxPort
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] ambeMode -> P25
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] minTxTimeMS -> 2000
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] gatewayDmrId -> 1234567
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] repeaterID -> 123456789
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] txTg -> 9
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] txTs -> 2
M: 2018-09-10 23:15:23.981 Setting [AMBE_AUDIO] colorCode -> 1
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: USRP/address
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: USRP/txPort
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: USRP/rxPort
M: 2018-09-10 23:15:23.981 Setting [USRP] aslAudio -> AUDIO_UNITY
M: 2018-09-10 23:15:23.981 Setting [USRP] agcGain -> -20
M: 2018-09-10 23:15:23.981 Setting [USRP] dmrAudio -> AUDIO_UNITY
M: 2018-09-10 23:15:23.981 Setting [USRP] dmrGain -> 0.35
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: DV3000/address
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: DV3000/rxPort
W: 2018-09-10 23:15:23.981 ioctl reset error 
W: 2018-09-10 23:15:23.981 ioctl speed error 
W: 2018-09-10 23:15:23.981 ioctl stereo error 
W: 2018-09-10 23:15:23.981 ioctl setfmt error 
M: 2018-09-10 23:15:23.981 Audio In/Out Device: /dev/null
I: 2018-09-10 23:15:23.981 Open UDP listener on 127.0.0.1:31000
I: 2018-09-10 23:15:23.981 Open USRP on 127.0.0.1:32001
M: 2018-09-10 23:15:23.982 Connecting to DV3000 hardware......
W: 2018-09-10 23:15:24.991 DV3000 not found at 127.0.0.1:2460
Project 25 IMBE Encoder/Decoder Fixed-Point implementation
Developed by Pavel Yazev E-mail: pyazev@...
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.
I: 2018-09-10 23:15:24.992 Subscriber IDs file not found.
I: 2018-09-10 23:15:24.992 Default extended metadata <1234567>
W: 2018-09-10 23:15:24.992 Using software MBE decoder version 1.2.3
W: 2018-09-10 23:15:24.992 Using software OP25 IMBE/AMBE vocoder
I: 2018-09-10 23:15:24.993 Starting Analog_Bridge --> USRP thread
I: 2018-09-10 23:15:24.993 Open UDP listener on 127.0.0.1:34001
I: 2018-09-10 23:15:24.993 Starting USRP --> IPSC_Bridge thread

MMDVM_bridge/P25Gateway appear to work fine, I have them pointed at a test reflector I built. All are locally hosted on the same raspberry pi, and there doesn't appear to be any firewall issues blocking anything, I allow everyting in and out on lo. I built a private node on the app_rpt side and see key/unkey events if I connect my normal node to it so that part seems to be working at least. 

I think I might be missing something, or something is potentially misconfig'd, but can't really put a finger on it. Does Analog_bridge handle P25/IMBE transcoding, or do I need something "external" for that to take place? I also will typically use a different ID on private networks such as this, and have had that sort of stuff get me in the past, so also wanted to make sure there is no ID checking? 

73
Stephen
K1LNX



Setting up Analog_bridge for P25

Stephen Brown - K1LNX
 

Hi guys, 
    So I'm just starting to play with Analog_bridge and P25. My (limited) understanding is that transcoding to/from PCM is handled via software and the OP25 libraries. 

I think I have everything setup correctly, however I don't seem to be getting any traffic from P25 into Analog_bridge. There also seems to be some conflicts in the ini file, I see this in the debug messages when I start it up: 

root@radioserver:/opt/Analog_Bridge# ./Analog_Bridge Analog_Bridge_P25.ini 
I: 2018-09-10 23:15:23.979 Analog Bridge Version 1.1 Wed  9 May 05:56:17 EDT 2018
I: 2018-09-10 23:15:23.979 Copyright (C) 2018 DVSwitch, INAD.
I: 2018-09-10 23:15:23.979 Created by Mike N4IRR and Steve N4IRS
I: 2018-09-10 23:15:23.979 Analog Bridge comes with ABSOLUTELY NO WARRANTY
I: 2018-09-10 23:15:23.979 
I: 2018-09-10 23:15:23.979 This software is for use on amateur radio networks only,
I: 2018-09-10 23:15:23.979 it is to be used for educational purposes only. Its use on
I: 2018-09-10 23:15:23.979 commercial networks is strictly prohibited.
I: 2018-09-10 23:15:23.979 
I: 2018-09-10 23:15:23.979 Analog Bridge is starting
M: 2018-09-10 23:15:23.980 Setting [GENERAL] logLevel -> 2
M: 2018-09-10 23:15:23.980 Setting [GENERAL] subscriberFile -> ./subscriber_ids.csv
M: 2018-09-10 23:15:23.980 Setting [GENERAL] exportMetadata -> true
M: 2018-09-10 23:15:23.980 Setting [GENERAL] decoderFallBack -> true
M: 2018-09-10 23:15:23.980 Setting [GENERAL] useEmulator -> false
M: 2018-09-10 23:15:23.980 Setting [GENERAL] emulatorAddress -> 127.0.0.1:2470
W: 2018-09-10 23:15:23.980 Unknown section/name in .ini file: AMBE_AUDIO/address
W: 2018-09-10 23:15:23.980 Unknown section/name in .ini file: AMBE_AUDIO/txPort
W: 2018-09-10 23:15:23.980 Unknown section/name in .ini file: AMBE_AUDIO/rxPort
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] ambeMode -> P25
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] minTxTimeMS -> 2000
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] gatewayDmrId -> 1234567
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] repeaterID -> 123456789
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] txTg -> 9
M: 2018-09-10 23:15:23.980 Setting [AMBE_AUDIO] txTs -> 2
M: 2018-09-10 23:15:23.981 Setting [AMBE_AUDIO] colorCode -> 1
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: USRP/address
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: USRP/txPort
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: USRP/rxPort
M: 2018-09-10 23:15:23.981 Setting [USRP] aslAudio -> AUDIO_UNITY
M: 2018-09-10 23:15:23.981 Setting [USRP] agcGain -> -20
M: 2018-09-10 23:15:23.981 Setting [USRP] dmrAudio -> AUDIO_UNITY
M: 2018-09-10 23:15:23.981 Setting [USRP] dmrGain -> 0.35
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: DV3000/address
W: 2018-09-10 23:15:23.981 Unknown section/name in .ini file: DV3000/rxPort
W: 2018-09-10 23:15:23.981 ioctl reset error 
W: 2018-09-10 23:15:23.981 ioctl speed error 
W: 2018-09-10 23:15:23.981 ioctl stereo error 
W: 2018-09-10 23:15:23.981 ioctl setfmt error 
M: 2018-09-10 23:15:23.981 Audio In/Out Device: /dev/null
I: 2018-09-10 23:15:23.981 Open UDP listener on 127.0.0.1:31000
I: 2018-09-10 23:15:23.981 Open USRP on 127.0.0.1:32001
M: 2018-09-10 23:15:23.982 Connecting to DV3000 hardware......
W: 2018-09-10 23:15:24.991 DV3000 not found at 127.0.0.1:2460
Project 25 IMBE Encoder/Decoder Fixed-Point implementation
Developed by Pavel Yazev E-mail: pyazev@...
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.
I: 2018-09-10 23:15:24.992 Subscriber IDs file not found.
I: 2018-09-10 23:15:24.992 Default extended metadata <1234567>
W: 2018-09-10 23:15:24.992 Using software MBE decoder version 1.2.3
W: 2018-09-10 23:15:24.992 Using software OP25 IMBE/AMBE vocoder
I: 2018-09-10 23:15:24.993 Starting Analog_Bridge --> USRP thread
I: 2018-09-10 23:15:24.993 Open UDP listener on 127.0.0.1:34001
I: 2018-09-10 23:15:24.993 Starting USRP --> IPSC_Bridge thread

MMDVM_bridge/P25Gateway appear to work fine, I have them pointed at a test reflector I built. All are locally hosted on the same raspberry pi, and there doesn't appear to be any firewall issues blocking anything, I allow everyting in and out on lo. I built a private node on the app_rpt side and see key/unkey events if I connect my normal node to it so that part seems to be working at least. 

I think I might be missing something, or something is potentially misconfig'd, but can't really put a finger on it. Does Analog_bridge handle P25/IMBE transcoding, or do I need something "external" for that to take place? I also will typically use a different ID on private networks such as this, and have had that sort of stuff get me in the past, so also wanted to make sure there is no ID checking? 

73
Stephen
K1LNX


Re: DR1X latest firmware

David KG5RDF
 

If you are referring to Yaesu DR-1XE FR. Then 1.2.1 is the latest version and is not available for download. Should of been loaded when you received the unit.

Sent from my T-Mobile 4G LTE Device

-------- Original message --------
From: Manos Darkadakis <sv1iw@...>
Date: 9/11/18 9:06 AM (GMT-06:00)
To: main@DVSwitch.groups.io
Subject: [DVSwitch] DR1X latest firmware

Hi all
I believe there are some people on the list using DR1X for DMR. Has anyone use the latest firmware which is V1.10Q  EXP  Β1 ?
Please let me know what you use and how it performs if possible.
Thank you in advance....
73 Manos SV1IW


DR1X latest firmware

Manos Darkadakis
 

Hi all
I believe there are some people on the list using DR1X for DMR. Has anyone use the latest firmware which is V1.10Q  EXP  Β1 ?
Please let me know what you use and how it performs if possible.
Thank you in advance....
73 Manos SV1IW


Re: Allstar & DMR | piping audio from talkgroup into USB soundcard

Lou Michaels
 

I hear that, too

Its a long thread, and may get longer. 

I'm planning to write up a full procedure and/or do a video once we get it all working. 

On Mon, Sep 10, 2018 at 1:55 PM Steve N4IRS <szingman@...> wrote:
Chris,
Thanks, that is the way I took it.
I agree but it does bother some people and make it harder to find answers. My plan is to try to move those types of traffic to support and report back to the main thread resolution and pointer to the back and forth in support.

Steve

On 09/10/2018 01:24 PM, Chris WB4ULK via Groups.Io wrote:
No. I really meant it. I get a lot out of those back and forth threads and if it isn’t something I am interested in, I can mute it.

On Sep 10, 2018, at 9:28 AM, Steve N4IRS <szingman@...> wrote:

Lou,
I did some testing this morning and though I do not have a signal link device, I can listen to TG traffic through a CMedia sound device plugged into a Pi3. So, let's move this over to support and we can report back here whn we get further. I'll generate the first message. If you are not subscribed to support, add it here: <https://dvswitch.groups.io/g/support>

Steve



On 09/09/2018 10:52 PM, Lou Michaels wrote:
Thanks for the back and forth with ideas. I'll be around

On Sun, Sep 9, 2018 at 10:49 PM Steve N4IRS <szingman@...> wrote:
Last message of the night. Morning comes early. We will continue this.
See if audio from DMR is sent to the SL device.
We have more work to do on the python program.
In case it was not clear, USRPaudio is a simple USRP client for Analog_Bridge. It is used in another application but we think it can be adapted to your application.
More tomorrow.

Steve

On 09/09/2018 10:43 PM, Lou Michaels wrote:
Ok, received on py run:

ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory


On Sun, Sep 9, 2018 at 10:41 PM Steve N4IRS <szingman@...> wrote:
You can disable the on-board sound device by editing /boot/config.txt
add to the bottom of the file:
dtparam=audio=off

On 09/09/2018 10:33 PM, Lou Michaels wrote:
Thank you

I follow the steps, installed pyaudio and ran the script. 

Recieved:

ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.front.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory


On Sun, Sep 9, 2018 at 10:04 PM Steve N4IRS <szingman@...> wrote:
run it from the command line python usrpaudio.py
you may also need pyaudio
apt-get install python-pyaudio

Steve

On 09/09/2018 10:00 PM, Lou Michaels wrote:
That doesn't seem to have an effect, unless I'm running the py script incorrectly. ( using Thonny)

On Sun, Sep 9, 2018 at 9:53 PM Lou Michaels <w2lmm.qsl@...> wrote:
Sure. 

So return:

outputAudioDevice = /dev/null           ; Audio device /dev/null, /dev/dsp1, po$
inputAudioDevice = /dev/null            ; Only used for dongle mode

And I believe this is stock, save for the last four lines

[USRP]
server = 127.0.0.1                          ; IP address of Allstar/Asterisk
toASLPort = 32001                        ; Analog_Bridge <-- ASL
fromASLPort = 34001                    ; Analog_Bridge --> ASL
aslAudio = AUDIO_USE_GAIN     ; Audio to ASL (AUDIO_UNITY, AUDIO_U$
agcGain = -5                                  ; Gain (in db) of the AGC filter
dmrAudio = AUDIO_USE_GAIN    ; Audio from ASL (AUDIO_UNITY, AUDIO$
dmrGain = 0.6                                ; Gain factor of audio from ASL (0.0-1.0)

Trying the script now. 






On Sun, Sep 9, 2018 at 9:43 PM Mike Zingman - N4IRR <mike.zingman@...> wrote:
Lou,

If you want to help us and play a little:
- Grab the python code in this message: https://dvswitch.groups.io/g/main/message/1340?p=,,,20,0,0,0::relevance,,USRPAudio,20,2,0,19300038
- Return your Analog_Bridge.ini audio section back to stock (turn off AB local audio)
- Make sure your SignalLink is the default audio device
- Make sure your USRP ports in AB.ini are set to the defaults
- Run the python app above and it should get USRP packets from AB and turn them into audio which is output to the default audio device.
- The SL vox should take over the ptt processing.

If you hear audio come out of your radio, then transmit on a local FM radio and press the space bar on the python app (it was ment for another purpose).  If that works, I can port some simple vox code into USRPAudio.py






Re: Allstar & DMR | piping audio from talkgroup into USB soundcard

Steve N4IRS
 

Chris,
Thanks, that is the way I took it.
I agree but it does bother some people and make it harder to find answers. My plan is to try to move those types of traffic to support and report back to the main thread resolution and pointer to the back and forth in support.

Steve

On 09/10/2018 01:24 PM, Chris WB4ULK via Groups.Io wrote:
No. I really meant it. I get a lot out of those back and forth threads and if it isn’t something I am interested in, I can mute it.

On Sep 10, 2018, at 9:28 AM, Steve N4IRS <szingman@...> wrote:

Lou,
I did some testing this morning and though I do not have a signal link device, I can listen to TG traffic through a CMedia sound device plugged into a Pi3. So, let's move this over to support and we can report back here whn we get further. I'll generate the first message. If you are not subscribed to support, add it here: <https://dvswitch.groups.io/g/support>

Steve



On 09/09/2018 10:52 PM, Lou Michaels wrote:
Thanks for the back and forth with ideas. I'll be around

On Sun, Sep 9, 2018 at 10:49 PM Steve N4IRS <szingman@...> wrote:
Last message of the night. Morning comes early. We will continue this.
See if audio from DMR is sent to the SL device.
We have more work to do on the python program.
In case it was not clear, USRPaudio is a simple USRP client for Analog_Bridge. It is used in another application but we think it can be adapted to your application.
More tomorrow.

Steve

On 09/09/2018 10:43 PM, Lou Michaels wrote:
Ok, received on py run:

ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory


On Sun, Sep 9, 2018 at 10:41 PM Steve N4IRS <szingman@...> wrote:
You can disable the on-board sound device by editing /boot/config.txt
add to the bottom of the file:
dtparam=audio=off

On 09/09/2018 10:33 PM, Lou Michaels wrote:
Thank you

I follow the steps, installed pyaudio and ran the script. 

Recieved:

ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.front.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory


On Sun, Sep 9, 2018 at 10:04 PM Steve N4IRS <szingman@...> wrote:
run it from the command line python usrpaudio.py
you may also need pyaudio
apt-get install python-pyaudio

Steve

On 09/09/2018 10:00 PM, Lou Michaels wrote:
That doesn't seem to have an effect, unless I'm running the py script incorrectly. ( using Thonny)

On Sun, Sep 9, 2018 at 9:53 PM Lou Michaels <w2lmm.qsl@...> wrote:
Sure. 

So return:

outputAudioDevice = /dev/null           ; Audio device /dev/null, /dev/dsp1, po$
inputAudioDevice = /dev/null            ; Only used for dongle mode

And I believe this is stock, save for the last four lines

[USRP]
server = 127.0.0.1                          ; IP address of Allstar/Asterisk
toASLPort = 32001                        ; Analog_Bridge <-- ASL
fromASLPort = 34001                    ; Analog_Bridge --> ASL
aslAudio = AUDIO_USE_GAIN     ; Audio to ASL (AUDIO_UNITY, AUDIO_U$
agcGain = -5                                  ; Gain (in db) of the AGC filter
dmrAudio = AUDIO_USE_GAIN    ; Audio from ASL (AUDIO_UNITY, AUDIO$
dmrGain = 0.6                                ; Gain factor of audio from ASL (0.0-1.0)

Trying the script now. 






On Sun, Sep 9, 2018 at 9:43 PM Mike Zingman - N4IRR <mike.zingman@...> wrote:
Lou,

If you want to help us and play a little:
- Grab the python code in this message: https://dvswitch.groups.io/g/main/message/1340?p=,,,20,0,0,0::relevance,,USRPAudio,20,2,0,19300038
- Return your Analog_Bridge.ini audio section back to stock (turn off AB local audio)
- Make sure your SignalLink is the default audio device
- Make sure your USRP ports in AB.ini are set to the defaults
- Run the python app above and it should get USRP packets from AB and turn them into audio which is output to the default audio device.
- The SL vox should take over the ptt processing.

If you hear audio come out of your radio, then transmit on a local FM radio and press the space bar on the python app (it was ment for another purpose).  If that works, I can port some simple vox code into USRPAudio.py






Re: Allstar & DMR | piping audio from talkgroup into USB soundcard

Chris WB4ULK
 

No. I really meant it. I get a lot out of those back and forth threads and if it isn’t something I am interested in, I can mute it.

On Sep 10, 2018, at 9:28 AM, Steve N4IRS <szingman@...> wrote:

Lou,
I did some testing this morning and though I do not have a signal link device, I can listen to TG traffic through a CMedia sound device plugged into a Pi3. So, let's move this over to support and we can report back here whn we get further. I'll generate the first message. If you are not subscribed to support, add it here: <https://dvswitch.groups.io/g/support>

Steve



On 09/09/2018 10:52 PM, Lou Michaels wrote:
Thanks for the back and forth with ideas. I'll be around

On Sun, Sep 9, 2018 at 10:49 PM Steve N4IRS <szingman@...> wrote:
Last message of the night. Morning comes early. We will continue this.
See if audio from DMR is sent to the SL device.
We have more work to do on the python program.
In case it was not clear, USRPaudio is a simple USRP client for Analog_Bridge. It is used in another application but we think it can be adapted to your application.
More tomorrow.

Steve

On 09/09/2018 10:43 PM, Lou Michaels wrote:
Ok, received on py run:

ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory


On Sun, Sep 9, 2018 at 10:41 PM Steve N4IRS <szingman@...> wrote:
You can disable the on-board sound device by editing /boot/config.txt
add to the bottom of the file:
dtparam=audio=off

On 09/09/2018 10:33 PM, Lou Michaels wrote:
Thank you

I follow the steps, installed pyaudio and ran the script. 

Recieved:

ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.front.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory


On Sun, Sep 9, 2018 at 10:04 PM Steve N4IRS <szingman@...> wrote:
run it from the command line python usrpaudio.py
you may also need pyaudio
apt-get install python-pyaudio

Steve

On 09/09/2018 10:00 PM, Lou Michaels wrote:
That doesn't seem to have an effect, unless I'm running the py script incorrectly. ( using Thonny)

On Sun, Sep 9, 2018 at 9:53 PM Lou Michaels <w2lmm.qsl@...> wrote:
Sure. 

So return:

outputAudioDevice = /dev/null           ; Audio device /dev/null, /dev/dsp1, po$
inputAudioDevice = /dev/null            ; Only used for dongle mode

And I believe this is stock, save for the last four lines

[USRP]
server = 127.0.0.1                          ; IP address of Allstar/Asterisk
toASLPort = 32001                        ; Analog_Bridge <-- ASL
fromASLPort = 34001                    ; Analog_Bridge --> ASL
aslAudio = AUDIO_USE_GAIN     ; Audio to ASL (AUDIO_UNITY, AUDIO_U$
agcGain = -5                                  ; Gain (in db) of the AGC filter
dmrAudio = AUDIO_USE_GAIN    ; Audio from ASL (AUDIO_UNITY, AUDIO$
dmrGain = 0.6                                ; Gain factor of audio from ASL (0.0-1.0)

Trying the script now. 






On Sun, Sep 9, 2018 at 9:43 PM Mike Zingman - N4IRR <mike.zingman@...> wrote:
Lou,

If you want to help us and play a little:
- Grab the python code in this message: https://dvswitch.groups.io/g/main/message/1340?p=,,,20,0,0,0::relevance,,USRPAudio,20,2,0,19300038
- Return your Analog_Bridge.ini audio section back to stock (turn off AB local audio)
- Make sure your SignalLink is the default audio device
- Make sure your USRP ports in AB.ini are set to the defaults
- Run the python app above and it should get USRP packets from AB and turn them into audio which is output to the default audio device.
- The SL vox should take over the ptt processing.

If you hear audio come out of your radio, then transmit on a local FM radio and press the space bar on the python app (it was ment for another purpose).  If that works, I can port some simple vox code into USRPAudio.py





Re: Multiple instances of Bridge

Steve N4IRS
 

Jeff,
Welcome back.
You are correct, Since you are adding a second DMR TG, you will need a second copy of MMDVM_Bridge, Analog_Bridge, and md380-emu. You will need to edit the port numbers on the 3 programs to avoid port conflicts.
We are discussing alleviating the requirement but This will be a MAJOR revision to all the involved programs.

Steve N4IRS

On 09/10/2018 09:51 AM, Jeff Lehman, KC8QCH wrote:
Hi All,
    Some how I think I accidentally unsubscribed from the group a couple of months ago (I was trying to unsub from another list and I think I wasn't paying attention). Anyway...
 
    So when last I was on the list, I vaguely remember someone asking if it was possible to run multiple bridges on one machine. 

    Situation: I have one bridge running for a private node for me to connect easily from work for one of my local clubs DMR TG. I am hosting the Allstar node for another club I am with and want to bridge that to our (another) DMR TG. The problem: Both nodes are on the same machine. Basically I need to run two copies of the three programs on the same machine. For whatever reason, I am having a hard time wrapping my head around this one and am afraid I am over thinking it. Does anyone do this and how easy is it? Why am I having brain vapor lock?

     Thanks much!
          Jeff
 


Multiple instances of Bridge

Jeff Lehman, N8ACL
 

Hi All,
    Some how I think I accidentally unsubscribed from the group a couple of months ago (I was trying to unsub from another list and I think I wasn't paying attention). Anyway...
 
    So when last I was on the list, I vaguely remember someone asking if it was possible to run multiple bridges on one machine. 

    Situation: I have one bridge running for a private node for me to connect easily from work for one of my local clubs DMR TG. I am hosting the Allstar node for another club I am with and want to bridge that to our (another) DMR TG. The problem: Both nodes are on the same machine. Basically I need to run two copies of the three programs on the same machine. For whatever reason, I am having a hard time wrapping my head around this one and am afraid I am over thinking it. Does anyone do this and how easy is it? Why am I having brain vapor lock?

     Thanks much!
          Jeff
 


Re: Allstar & DMR | piping audio from talkgroup into USB soundcard

Steve N4IRS
 

Lou,
I did some testing this morning and though I do not have a signal link device, I can listen to TG traffic through a CMedia sound device plugged into a Pi3. So, let's move this over to support and we can report back here whn we get further. I'll generate the first message. If you are not subscribed to support, add it here: <https://dvswitch.groups.io/g/support>

Steve



On 09/09/2018 10:52 PM, Lou Michaels wrote:
Thanks for the back and forth with ideas. I'll be around

On Sun, Sep 9, 2018 at 10:49 PM Steve N4IRS <szingman@...> wrote:
Last message of the night. Morning comes early. We will continue this.
See if audio from DMR is sent to the SL device.
We have more work to do on the python program.
In case it was not clear, USRPaudio is a simple USRP client for Analog_Bridge. It is used in another application but we think it can be adapted to your application.
More tomorrow.

Steve

On 09/09/2018 10:43 PM, Lou Michaels wrote:
Ok, received on py run:

ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory


On Sun, Sep 9, 2018 at 10:41 PM Steve N4IRS <szingman@...> wrote:
You can disable the on-board sound device by editing /boot/config.txt
add to the bottom of the file:
dtparam=audio=off

On 09/09/2018 10:33 PM, Lou Michaels wrote:
Thank you

I follow the steps, installed pyaudio and ran the script. 

Recieved:

ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.front.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory


On Sun, Sep 9, 2018 at 10:04 PM Steve N4IRS <szingman@...> wrote:
run it from the command line python usrpaudio.py
you may also need pyaudio
apt-get install python-pyaudio

Steve

On 09/09/2018 10:00 PM, Lou Michaels wrote:
That doesn't seem to have an effect, unless I'm running the py script incorrectly. ( using Thonny)

On Sun, Sep 9, 2018 at 9:53 PM Lou Michaels <w2lmm.qsl@...> wrote:
Sure. 

So return:

outputAudioDevice = /dev/null           ; Audio device /dev/null, /dev/dsp1, po$
inputAudioDevice = /dev/null            ; Only used for dongle mode

And I believe this is stock, save for the last four lines

[USRP]
server = 127.0.0.1                          ; IP address of Allstar/Asterisk
toASLPort = 32001                        ; Analog_Bridge <-- ASL
fromASLPort = 34001                    ; Analog_Bridge --> ASL
aslAudio = AUDIO_USE_GAIN     ; Audio to ASL (AUDIO_UNITY, AUDIO_U$
agcGain = -5                                  ; Gain (in db) of the AGC filter
dmrAudio = AUDIO_USE_GAIN    ; Audio from ASL (AUDIO_UNITY, AUDIO$
dmrGain = 0.6                                ; Gain factor of audio from ASL (0.0-1.0)

Trying the script now. 






On Sun, Sep 9, 2018 at 9:43 PM Mike Zingman - N4IRR <mike.zingman@...> wrote:
Lou,

If you want to help us and play a little:
- Grab the python code in this message: https://dvswitch.groups.io/g/main/message/1340?p=,,,20,0,0,0::relevance,,USRPAudio,20,2,0,19300038
- Return your Analog_Bridge.ini audio section back to stock (turn off AB local audio)
- Make sure your SignalLink is the default audio device
- Make sure your USRP ports in AB.ini are set to the defaults
- Run the python app above and it should get USRP packets from AB and turn them into audio which is output to the default audio device.
- The SL vox should take over the ptt processing.

If you hear audio come out of your radio, then transmit on a local FM radio and press the space bar on the python app (it was ment for another purpose).  If that works, I can port some simple vox code into USRPAudio.py





Re: Allstar & DMR | piping audio from talkgroup into USB soundcard

Steve N4IRS
 

I hope that is a good thing. ;)
Support back and forth can generate a lot of messages. I did setup a subgroup for this type of traffic. I guess I should have move to it. anyway...

Steve

On 09/10/2018 12:02 AM, Chris WB4ULK via Groups.Io wrote:
That was BEAUTIFUL to watch!!!

Chris
WB4ULK

On Sep 9, 2018, at 10:52 PM, Lou Michaels <w2lmm.qsl@...> wrote:

Thanks for the back and forth with ideas. I'll be around

On Sun, Sep 9, 2018 at 10:49 PM Steve N4IRS <szingman@...> wrote:
Last message of the night. Morning comes early. We will continue this.
See if audio from DMR is sent to the SL device.
We have more work to do on the python program.
In case it was not clear, USRPaudio is a simple USRP client for Analog_Bridge. It is used in another application but we think it can be adapted to your application.
More tomorrow.

Steve

On 09/09/2018 10:43 PM, Lou Michaels wrote:
Ok, received on py run:

ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory


On Sun, Sep 9, 2018 at 10:41 PM Steve N4IRS <szingman@...> wrote:
You can disable the on-board sound device by editing /boot/config.txt
add to the bottom of the file:
dtparam=audio=off

On 09/09/2018 10:33 PM, Lou Michaels wrote:
Thank you

I follow the steps, installed pyaudio and ran the script. 

Recieved:

ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.front.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory


On Sun, Sep 9, 2018 at 10:04 PM Steve N4IRS <szingman@...> wrote:
run it from the command line python usrpaudio.py
you may also need pyaudio
apt-get install python-pyaudio

Steve

On 09/09/2018 10:00 PM, Lou Michaels wrote:
That doesn't seem to have an effect, unless I'm running the py script incorrectly. ( using Thonny)

On Sun, Sep 9, 2018 at 9:53 PM Lou Michaels <w2lmm.qsl@...> wrote:
Sure. 

So return:

outputAudioDevice = /dev/null           ; Audio device /dev/null, /dev/dsp1, po$
inputAudioDevice = /dev/null            ; Only used for dongle mode

And I believe this is stock, save for the last four lines

[USRP]
server = 127.0.0.1                          ; IP address of Allstar/Asterisk
toASLPort = 32001                        ; Analog_Bridge <-- ASL
fromASLPort = 34001                    ; Analog_Bridge --> ASL
aslAudio = AUDIO_USE_GAIN     ; Audio to ASL (AUDIO_UNITY, AUDIO_U$
agcGain = -5                                  ; Gain (in db) of the AGC filter
dmrAudio = AUDIO_USE_GAIN    ; Audio from ASL (AUDIO_UNITY, AUDIO$
dmrGain = 0.6                                ; Gain factor of audio from ASL (0.0-1.0)

Trying the script now. 






On Sun, Sep 9, 2018 at 9:43 PM Mike Zingman - N4IRR <mike.zingman@...> wrote:
Lou,

If you want to help us and play a little:
- Grab the python code in this message: https://dvswitch.groups.io/g/main/message/1340?p=,,,20,0,0,0::relevance,,USRPAudio,20,2,0,19300038
- Return your Analog_Bridge.ini audio section back to stock (turn off AB local audio)
- Make sure your SignalLink is the default audio device
- Make sure your USRP ports in AB.ini are set to the defaults
- Run the python app above and it should get USRP packets from AB and turn them into audio which is output to the default audio device.
- The SL vox should take over the ptt processing.

If you hear audio come out of your radio, then transmit on a local FM radio and press the space bar on the python app (it was ment for another purpose).  If that works, I can port some simple vox code into USRPAudio.py 








Re: Allstar & DMR | piping audio from talkgroup into USB soundcard

Chris WB4ULK
 

That was BEAUTIFUL to watch!!!

Chris
WB4ULK

On Sep 9, 2018, at 10:52 PM, Lou Michaels <w2lmm.qsl@...> wrote:

Thanks for the back and forth with ideas. I'll be around

On Sun, Sep 9, 2018 at 10:49 PM Steve N4IRS <szingman@...> wrote:
Last message of the night. Morning comes early. We will continue this.
See if audio from DMR is sent to the SL device.
We have more work to do on the python program.
In case it was not clear, USRPaudio is a simple USRP client for Analog_Bridge. It is used in another application but we think it can be adapted to your application.
More tomorrow.

Steve

On 09/09/2018 10:43 PM, Lou Michaels wrote:
Ok, received on py run:

ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory


On Sun, Sep 9, 2018 at 10:41 PM Steve N4IRS <szingman@...> wrote:
You can disable the on-board sound device by editing /boot/config.txt
add to the bottom of the file:
dtparam=audio=off

On 09/09/2018 10:33 PM, Lou Michaels wrote:
Thank you

I follow the steps, installed pyaudio and ran the script. 

Recieved:

ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.front.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory


On Sun, Sep 9, 2018 at 10:04 PM Steve N4IRS <szingman@...> wrote:
run it from the command line python usrpaudio.py
you may also need pyaudio
apt-get install python-pyaudio

Steve

On 09/09/2018 10:00 PM, Lou Michaels wrote:
That doesn't seem to have an effect, unless I'm running the py script incorrectly. ( using Thonny)

On Sun, Sep 9, 2018 at 9:53 PM Lou Michaels <w2lmm.qsl@...> wrote:
Sure. 

So return:

outputAudioDevice = /dev/null           ; Audio device /dev/null, /dev/dsp1, po$
inputAudioDevice = /dev/null            ; Only used for dongle mode

And I believe this is stock, save for the last four lines

[USRP]
server = 127.0.0.1                          ; IP address of Allstar/Asterisk
toASLPort = 32001                        ; Analog_Bridge <-- ASL
fromASLPort = 34001                    ; Analog_Bridge --> ASL
aslAudio = AUDIO_USE_GAIN     ; Audio to ASL (AUDIO_UNITY, AUDIO_U$
agcGain = -5                                  ; Gain (in db) of the AGC filter
dmrAudio = AUDIO_USE_GAIN    ; Audio from ASL (AUDIO_UNITY, AUDIO$
dmrGain = 0.6                                ; Gain factor of audio from ASL (0.0-1.0)

Trying the script now. 






On Sun, Sep 9, 2018 at 9:43 PM Mike Zingman - N4IRR <mike.zingman@...> wrote:
Lou,

If you want to help us and play a little:
- Grab the python code in this message: https://dvswitch.groups.io/g/main/message/1340?p=,,,20,0,0,0::relevance,,USRPAudio,20,2,0,19300038
- Return your Analog_Bridge.ini audio section back to stock (turn off AB local audio)
- Make sure your SignalLink is the default audio device
- Make sure your USRP ports in AB.ini are set to the defaults
- Run the python app above and it should get USRP packets from AB and turn them into audio which is output to the default audio device.
- The SL vox should take over the ptt processing.

If you hear audio come out of your radio, then transmit on a local FM radio and press the space bar on the python app (it was ment for another purpose).  If that works, I can port some simple vox code into USRPAudio.py 







Re: Allstar & DMR | piping audio from talkgroup into USB soundcard

Lou Michaels
 

Thanks for the back and forth with ideas. I'll be around


On Sun, Sep 9, 2018 at 10:49 PM Steve N4IRS <szingman@...> wrote:
Last message of the night. Morning comes early. We will continue this.
See if audio from DMR is sent to the SL device.
We have more work to do on the python program.
In case it was not clear, USRPaudio is a simple USRP client for Analog_Bridge. It is used in another application but we think it can be adapted to your application.
More tomorrow.

Steve

On 09/09/2018 10:43 PM, Lou Michaels wrote:
Ok, received on py run:

ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory


On Sun, Sep 9, 2018 at 10:41 PM Steve N4IRS <szingman@...> wrote:
You can disable the on-board sound device by editing /boot/config.txt
add to the bottom of the file:
dtparam=audio=off

On 09/09/2018 10:33 PM, Lou Michaels wrote:
Thank you

I follow the steps, installed pyaudio and ran the script. 

Recieved:

ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.front.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory


On Sun, Sep 9, 2018 at 10:04 PM Steve N4IRS <szingman@...> wrote:
run it from the command line python usrpaudio.py
you may also need pyaudio
apt-get install python-pyaudio

Steve

On 09/09/2018 10:00 PM, Lou Michaels wrote:
That doesn't seem to have an effect, unless I'm running the py script incorrectly. ( using Thonny)

On Sun, Sep 9, 2018 at 9:53 PM Lou Michaels <w2lmm.qsl@...> wrote:
Sure. 

So return:

outputAudioDevice = /dev/null           ; Audio device /dev/null, /dev/dsp1, po$
inputAudioDevice = /dev/null            ; Only used for dongle mode

And I believe this is stock, save for the last four lines

[USRP]
server = 127.0.0.1                          ; IP address of Allstar/Asterisk
toASLPort = 32001                        ; Analog_Bridge <-- ASL
fromASLPort = 34001                    ; Analog_Bridge --> ASL
aslAudio = AUDIO_USE_GAIN     ; Audio to ASL (AUDIO_UNITY, AUDIO_U$
agcGain = -5                                  ; Gain (in db) of the AGC filter
dmrAudio = AUDIO_USE_GAIN    ; Audio from ASL (AUDIO_UNITY, AUDIO$
dmrGain = 0.6                                ; Gain factor of audio from ASL (0.0-1.0)

Trying the script now. 






On Sun, Sep 9, 2018 at 9:43 PM Mike Zingman - N4IRR <mike.zingman@...> wrote:
Lou,

If you want to help us and play a little:
- Grab the python code in this message: https://dvswitch.groups.io/g/main/message/1340?p=,,,20,0,0,0::relevance,,USRPAudio,20,2,0,19300038
- Return your Analog_Bridge.ini audio section back to stock (turn off AB local audio)
- Make sure your SignalLink is the default audio device
- Make sure your USRP ports in AB.ini are set to the defaults
- Run the python app above and it should get USRP packets from AB and turn them into audio which is output to the default audio device.
- The SL vox should take over the ptt processing.

If you hear audio come out of your radio, then transmit on a local FM radio and press the space bar on the python app (it was ment for another purpose).  If that works, I can port some simple vox code into USRPAudio.py




Re: Allstar & DMR | piping audio from talkgroup into USB soundcard

Steve N4IRS
 

Last message of the night. Morning comes early. We will continue this.
See if audio from DMR is sent to the SL device.
We have more work to do on the python program.
In case it was not clear, USRPaudio is a simple USRP client for Analog_Bridge. It is used in another application but we think it can be adapted to your application.
More tomorrow.

Steve

On 09/09/2018 10:43 PM, Lou Michaels wrote:
Ok, received on py run:

ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory


On Sun, Sep 9, 2018 at 10:41 PM Steve N4IRS <szingman@...> wrote:
You can disable the on-board sound device by editing /boot/config.txt
add to the bottom of the file:
dtparam=audio=off

On 09/09/2018 10:33 PM, Lou Michaels wrote:
Thank you

I follow the steps, installed pyaudio and ran the script. 

Recieved:

ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.front.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory


On Sun, Sep 9, 2018 at 10:04 PM Steve N4IRS <szingman@...> wrote:
run it from the command line python usrpaudio.py
you may also need pyaudio
apt-get install python-pyaudio

Steve

On 09/09/2018 10:00 PM, Lou Michaels wrote:
That doesn't seem to have an effect, unless I'm running the py script incorrectly. ( using Thonny)

On Sun, Sep 9, 2018 at 9:53 PM Lou Michaels <w2lmm.qsl@...> wrote:
Sure. 

So return:

outputAudioDevice = /dev/null           ; Audio device /dev/null, /dev/dsp1, po$
inputAudioDevice = /dev/null            ; Only used for dongle mode

And I believe this is stock, save for the last four lines

[USRP]
server = 127.0.0.1                          ; IP address of Allstar/Asterisk
toASLPort = 32001                        ; Analog_Bridge <-- ASL
fromASLPort = 34001                    ; Analog_Bridge --> ASL
aslAudio = AUDIO_USE_GAIN     ; Audio to ASL (AUDIO_UNITY, AUDIO_U$
agcGain = -5                                  ; Gain (in db) of the AGC filter
dmrAudio = AUDIO_USE_GAIN    ; Audio from ASL (AUDIO_UNITY, AUDIO$
dmrGain = 0.6                                ; Gain factor of audio from ASL (0.0-1.0)

Trying the script now. 






On Sun, Sep 9, 2018 at 9:43 PM Mike Zingman - N4IRR <mike.zingman@...> wrote:
Lou,

If you want to help us and play a little:
- Grab the python code in this message: https://dvswitch.groups.io/g/main/message/1340?p=,,,20,0,0,0::relevance,,USRPAudio,20,2,0,19300038
- Return your Analog_Bridge.ini audio section back to stock (turn off AB local audio)
- Make sure your SignalLink is the default audio device
- Make sure your USRP ports in AB.ini are set to the defaults
- Run the python app above and it should get USRP packets from AB and turn them into audio which is output to the default audio device.
- The SL vox should take over the ptt processing.

If you hear audio come out of your radio, then transmit on a local FM radio and press the space bar on the python app (it was ment for another purpose).  If that works, I can port some simple vox code into USRPAudio.py




Re: Allstar & DMR | piping audio from talkgroup into USB soundcard

Lou Michaels
 

Ok, received on py run:

ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory


On Sun, Sep 9, 2018 at 10:41 PM Steve N4IRS <szingman@...> wrote:
You can disable the on-board sound device by editing /boot/config.txt
add to the bottom of the file:
dtparam=audio=off

On 09/09/2018 10:33 PM, Lou Michaels wrote:
Thank you

I follow the steps, installed pyaudio and ran the script. 

Recieved:

ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.front.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory


On Sun, Sep 9, 2018 at 10:04 PM Steve N4IRS <szingman@...> wrote:
run it from the command line python usrpaudio.py
you may also need pyaudio
apt-get install python-pyaudio

Steve

On 09/09/2018 10:00 PM, Lou Michaels wrote:
That doesn't seem to have an effect, unless I'm running the py script incorrectly. ( using Thonny)

On Sun, Sep 9, 2018 at 9:53 PM Lou Michaels <w2lmm.qsl@...> wrote:
Sure. 

So return:

outputAudioDevice = /dev/null           ; Audio device /dev/null, /dev/dsp1, po$
inputAudioDevice = /dev/null            ; Only used for dongle mode

And I believe this is stock, save for the last four lines

[USRP]
server = 127.0.0.1                          ; IP address of Allstar/Asterisk
toASLPort = 32001                        ; Analog_Bridge <-- ASL
fromASLPort = 34001                    ; Analog_Bridge --> ASL
aslAudio = AUDIO_USE_GAIN     ; Audio to ASL (AUDIO_UNITY, AUDIO_U$
agcGain = -5                                  ; Gain (in db) of the AGC filter
dmrAudio = AUDIO_USE_GAIN    ; Audio from ASL (AUDIO_UNITY, AUDIO$
dmrGain = 0.6                                ; Gain factor of audio from ASL (0.0-1.0)

Trying the script now. 






On Sun, Sep 9, 2018 at 9:43 PM Mike Zingman - N4IRR <mike.zingman@...> wrote:
Lou,

If you want to help us and play a little:
- Grab the python code in this message: https://dvswitch.groups.io/g/main/message/1340?p=,,,20,0,0,0::relevance,,USRPAudio,20,2,0,19300038
- Return your Analog_Bridge.ini audio section back to stock (turn off AB local audio)
- Make sure your SignalLink is the default audio device
- Make sure your USRP ports in AB.ini are set to the defaults
- Run the python app above and it should get USRP packets from AB and turn them into audio which is output to the default audio device.
- The SL vox should take over the ptt processing.

If you hear audio come out of your radio, then transmit on a local FM radio and press the space bar on the python app (it was ment for another purpose).  If that works, I can port some simple vox code into USRPAudio.py



Re: Allstar & DMR | piping audio from talkgroup into USB soundcard

Steve N4IRS
 

You can disable the on-board sound device by editing /boot/config.txt
add to the bottom of the file:
dtparam=audio=off

On 09/09/2018 10:33 PM, Lou Michaels wrote:
Thank you

I follow the steps, installed pyaudio and ran the script. 

Recieved:

ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.front.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory


On Sun, Sep 9, 2018 at 10:04 PM Steve N4IRS <szingman@...> wrote:
run it from the command line python usrpaudio.py
you may also need pyaudio
apt-get install python-pyaudio

Steve

On 09/09/2018 10:00 PM, Lou Michaels wrote:
That doesn't seem to have an effect, unless I'm running the py script incorrectly. ( using Thonny)

On Sun, Sep 9, 2018 at 9:53 PM Lou Michaels <w2lmm.qsl@...> wrote:
Sure. 

So return:

outputAudioDevice = /dev/null           ; Audio device /dev/null, /dev/dsp1, po$
inputAudioDevice = /dev/null            ; Only used for dongle mode

And I believe this is stock, save for the last four lines

[USRP]
server = 127.0.0.1                          ; IP address of Allstar/Asterisk
toASLPort = 32001                        ; Analog_Bridge <-- ASL
fromASLPort = 34001                    ; Analog_Bridge --> ASL
aslAudio = AUDIO_USE_GAIN     ; Audio to ASL (AUDIO_UNITY, AUDIO_U$
agcGain = -5                                  ; Gain (in db) of the AGC filter
dmrAudio = AUDIO_USE_GAIN    ; Audio from ASL (AUDIO_UNITY, AUDIO$
dmrGain = 0.6                                ; Gain factor of audio from ASL (0.0-1.0)

Trying the script now. 






On Sun, Sep 9, 2018 at 9:43 PM Mike Zingman - N4IRR <mike.zingman@...> wrote:
Lou,

If you want to help us and play a little:
- Grab the python code in this message: https://dvswitch.groups.io/g/main/message/1340?p=,,,20,0,0,0::relevance,,USRPAudio,20,2,0,19300038
- Return your Analog_Bridge.ini audio section back to stock (turn off AB local audio)
- Make sure your SignalLink is the default audio device
- Make sure your USRP ports in AB.ini are set to the defaults
- Run the python app above and it should get USRP packets from AB and turn them into audio which is output to the default audio device.
- The SL vox should take over the ptt processing.

If you hear audio come out of your radio, then transmit on a local FM radio and press the space bar on the python app (it was ment for another purpose).  If that works, I can port some simple vox code into USRPAudio.py



Re: Allstar & DMR | piping audio from talkgroup into USB soundcard

Steve N4IRS
 

it looks like the SL is not the default.
Create a asound.conf in /etc

Put below in it.
defaults.pcm.card 1
defaults.ctl.card 1


On 09/09/2018 10:33 PM, Lou Michaels wrote:
Thank you

I follow the steps, installed pyaudio and ran the script. 

Recieved:

ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.front.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory


On Sun, Sep 9, 2018 at 10:04 PM Steve N4IRS <szingman@...> wrote:
run it from the command line python usrpaudio.py
you may also need pyaudio
apt-get install python-pyaudio

Steve

On 09/09/2018 10:00 PM, Lou Michaels wrote:
That doesn't seem to have an effect, unless I'm running the py script incorrectly. ( using Thonny)

On Sun, Sep 9, 2018 at 9:53 PM Lou Michaels <w2lmm.qsl@...> wrote:
Sure. 

So return:

outputAudioDevice = /dev/null           ; Audio device /dev/null, /dev/dsp1, po$
inputAudioDevice = /dev/null            ; Only used for dongle mode

And I believe this is stock, save for the last four lines

[USRP]
server = 127.0.0.1                          ; IP address of Allstar/Asterisk
toASLPort = 32001                        ; Analog_Bridge <-- ASL
fromASLPort = 34001                    ; Analog_Bridge --> ASL
aslAudio = AUDIO_USE_GAIN     ; Audio to ASL (AUDIO_UNITY, AUDIO_U$
agcGain = -5                                  ; Gain (in db) of the AGC filter
dmrAudio = AUDIO_USE_GAIN    ; Audio from ASL (AUDIO_UNITY, AUDIO$
dmrGain = 0.6                                ; Gain factor of audio from ASL (0.0-1.0)

Trying the script now. 






On Sun, Sep 9, 2018 at 9:43 PM Mike Zingman - N4IRR <mike.zingman@...> wrote:
Lou,

If you want to help us and play a little:
- Grab the python code in this message: https://dvswitch.groups.io/g/main/message/1340?p=,,,20,0,0,0::relevance,,USRPAudio,20,2,0,19300038
- Return your Analog_Bridge.ini audio section back to stock (turn off AB local audio)
- Make sure your SignalLink is the default audio device
- Make sure your USRP ports in AB.ini are set to the defaults
- Run the python app above and it should get USRP packets from AB and turn them into audio which is output to the default audio device.
- The SL vox should take over the ptt processing.

If you hear audio come out of your radio, then transmit on a local FM radio and press the space bar on the python app (it was ment for another purpose).  If that works, I can port some simple vox code into USRPAudio.py



Re: Allstar & DMR | piping audio from talkgroup into USB soundcard

Lou Michaels
 

Thank you

I follow the steps, installed pyaudio and ran the script. 

Recieved:

ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.front.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory


On Sun, Sep 9, 2018 at 10:04 PM Steve N4IRS <szingman@...> wrote:
run it from the command line python usrpaudio.py
you may also need pyaudio
apt-get install python-pyaudio

Steve

On 09/09/2018 10:00 PM, Lou Michaels wrote:
That doesn't seem to have an effect, unless I'm running the py script incorrectly. ( using Thonny)

On Sun, Sep 9, 2018 at 9:53 PM Lou Michaels <w2lmm.qsl@...> wrote:
Sure. 

So return:

outputAudioDevice = /dev/null           ; Audio device /dev/null, /dev/dsp1, po$
inputAudioDevice = /dev/null            ; Only used for dongle mode

And I believe this is stock, save for the last four lines

[USRP]
server = 127.0.0.1                          ; IP address of Allstar/Asterisk
toASLPort = 32001                        ; Analog_Bridge <-- ASL
fromASLPort = 34001                    ; Analog_Bridge --> ASL
aslAudio = AUDIO_USE_GAIN     ; Audio to ASL (AUDIO_UNITY, AUDIO_U$
agcGain = -5                                  ; Gain (in db) of the AGC filter
dmrAudio = AUDIO_USE_GAIN    ; Audio from ASL (AUDIO_UNITY, AUDIO$
dmrGain = 0.6                                ; Gain factor of audio from ASL (0.0-1.0)

Trying the script now. 






On Sun, Sep 9, 2018 at 9:43 PM Mike Zingman - N4IRR <mike.zingman@...> wrote:
Lou,

If you want to help us and play a little:
- Grab the python code in this message: https://dvswitch.groups.io/g/main/message/1340?p=,,,20,0,0,0::relevance,,USRPAudio,20,2,0,19300038
- Return your Analog_Bridge.ini audio section back to stock (turn off AB local audio)
- Make sure your SignalLink is the default audio device
- Make sure your USRP ports in AB.ini are set to the defaults
- Run the python app above and it should get USRP packets from AB and turn them into audio which is output to the default audio device.
- The SL vox should take over the ptt processing.

If you hear audio come out of your radio, then transmit on a local FM radio and press the space bar on the python app (it was ment for another purpose).  If that works, I can port some simple vox code into USRPAudio.py

7621 - 7640 of 9814