Re: DMR to Analog Bridge PTT assert quirk


David Ranch
 


Hello Steve,

"It showed the Allstar, the MMDVM, and the Analog_bridge output."
"Btw.. there is no Allstar here"

So, which is it?

Sorry, maybe I'm not using the right terminology here.  What I was meaning is that this system isn't on the Allstar network.  It's just a private node using Allstar version of Asterisk and DV-Switch's MMDVM and Analog_bridge.


Without seeing the output from AB I don't see the data flow. From the AB systemd unit:
Environment=AnalogBridgeLogDir=/var/log/dvswitch/Analog_Bridge
This is the location of the AB log file.

When I key up the DMR radio on the local repeater which is on the BM talk group, I then get the audio on this DV Switch setup.  I've included all the log lines I see when I key up the radio but there isn't anything showing on the Analog_bridge side when I do the key up.  Maybe I don't have enough debugging or logging enabled?  Below is the output when I start Analog_Bridge in non-daemon mode as well as it's config.  I'm happy to include any more details that you might need though I'm still new at this setup so I appreciate your patience.  :-)


----------------------------------------------------------------------------------------
[root@ww6bay-asl Analog_Bridge]# cat Analog_Bridge.ini                  
                                                                                                 

; 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
decoderFallBack = false                ; 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 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 = 31100                     ; was rxport; AMBE frames from xx_Bridge (should match "toGatewayPort" in xx_Bridge.cfg)
toDMRPort = 31103                       ; was txport; 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 = 3107955                  ; ID the DMR listener will see when Allstar people speak; the repeater's main DMR ID; ID to use when transmitting from Analog_Bridge
repeaterID = 310795501                  ; private DMR ID used in the MMDVM bridge config; ID of source repeater
txTg = 31075                            ; 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 I

----------------------------------------------------------------------------------------



----------------------------------------------------------------------------------------
[root@ww6bay-asl log]# cat /var/log/Analog_Bridge.log                                                                                                                     
I: 2019-09-14 19:24:06.893 Analog Bridge Version 1.1 Wed  9 May 05:56:17 EDT 2018                                                                                         
I: 2019-09-14 19:24:06.893 Copyright (C) 2018 DVSwitch, INAD.                                                                                                             
I: 2019-09-14 19:24:06.893 Created by Mike N4IRR and Steve N4IRS                                                                                                          
I: 2019-09-14 19:24:06.893 Analog Bridge comes with ABSOLUTELY NO WARRANTY                                                                                                
I: 2019-09-14 19:24:06.893                                                                                                                                                
I: 2019-09-14 19:24:06.893 This software is for use on amateur radio networks only,                                                                                       
I: 2019-09-14 19:24:06.893 it is to be used for educational purposes only. Its use on                                                                                     
I: 2019-09-14 19:24:06.893 commercial networks is strictly prohibited.
I: 2019-09-14 19:24:06.893
I: 2019-09-14 19:24:06.894 Analog Bridge is starting
M: 2019-09-14 19:24:06.894 Setting [GENERAL] logLevel -> 2
M: 2019-09-14 19:24:06.894 Setting [GENERAL] exportMetadata -> true
M: 2019-09-14 19:24:06.894 Setting [GENERAL] subscriberFile -> /var/lib/dvswitch/subscriber_ids.csv
M: 2019-09-14 19:24:06.894 Setting [GENERAL] decoderFallBack -> false
M: 2019-09-14 19:24:06.894 Setting [GENERAL] useEmulator -> false
M: 2019-09-14 19:24:06.894 Setting [GENERAL] emulatorAddress -> 127.0.0.1:2470
M: 2019-09-14 19:24:06.894 Setting [GENERAL] outputAudioDevice -> /dev/null
M: 2019-09-14 19:24:06.894 Setting [GENERAL] inputAudioDevice -> /dev/null
M: 2019-09-14 19:24:06.894 Setting [GENERAL] useMicrophone -> false
M: 2019-09-14 19:24:06.894 Setting [GENERAL] useVox -> false
M: 2019-09-14 19:24:06.894 Setting [GENERAL] voxDecay -> 2
M: 2019-09-14 19:24:06.894 Setting [GENERAL] voxTrigger -> 200
M: 2019-09-14 19:24:06.894 Setting [AMBE_AUDIO] server -> 127.0.0.1
M: 2019-09-14 19:24:06.894 Setting [AMBE_AUDIO] fromDMRPort -> 31100
M: 2019-09-14 19:24:06.894 Setting [AMBE_AUDIO] toDMRPort -> 31103
M: 2019-09-14 19:24:06.894 Setting [AMBE_AUDIO] ambeMode -> DMR
M: 2019-09-14 19:24:06.894 Setting [AMBE_AUDIO] minTxTimeMS -> 2000
M: 2019-09-14 19:24:06.894 Setting [AMBE_AUDIO] gatewayDmrId -> 3107955
M: 2019-09-14 19:24:06.894 Setting [AMBE_AUDIO] repeaterID -> 310795501
M: 2019-09-14 19:24:06.894 Setting [AMBE_AUDIO] txTg -> 31075
M: 2019-09-14 19:24:06.894 Setting [AMBE_AUDIO] txTs -> 2
M: 2019-09-14 19:24:06.894 Setting [AMBE_AUDIO] colorCode -> 1
M: 2019-09-14 19:24:06.894 Setting [USRP] server -> 127.0.0.1
M: 2019-09-14 19:24:06.894 Setting [USRP] toASLPort -> 32001
M: 2019-09-14 19:24:06.894 Setting [USRP] fromASLPort -> 34001
M: 2019-09-14 19:24:06.894 Setting [USRP] aslAudio -> AUDIO_UNITY
M: 2019-09-14 19:24:06.894 Setting [USRP] agcGain -> -20
M: 2019-09-14 19:24:06.894 Setting [USRP] dmrAudio -> AUDIO_UNITY
M: 2019-09-14 19:24:06.894 Setting [USRP] dmrGain -> 0.35
M: 2019-09-14 19:24:06.894 Setting [DV3000] server -> /dev/ttyUSB0
M: 2019-09-14 19:24:06.894 Setting [DV3000] port -> 460800
M: 2019-09-14 19:24:06.894 Setting [DV3000] serial -> true
W: 2019-09-14 19:24:06.895 ioctl reset error
W: 2019-09-14 19:24:06.895 ioctl speed error
W: 2019-09-14 19:24:06.895 ioctl stereo error
W: 2019-09-14 19:24:06.895 ioctl setfmt error
M: 2019-09-14 19:24:06.895 Audio In/Out Device: /dev/null
I: 2019-09-14 19:24:06.895 Open UDP listener on 127.0.0.1:31100
I: 2019-09-14 19:24:06.895 Open USRP on 127.0.0.1:32001
M: 2019-09-14 19:24:06.895 Connecting to DV3000 hardware......
M: 2019-09-14 19:24:06.906 Begin DV3000 decode
I: 2019-09-14 19:24:06.906 Subscriber IDs loaded: 0
I: 2019-09-14 19:24:06.906 Default extended metadata <3107955>
I: 2019-09-14 19:24:06.906 Using hardware AMBE vocoder
I: 2019-09-14 19:24:06.907 Starting Analog_Bridge --> USRP thread
I: 2019-09-14 19:24:06.907 Open UDP listener on 127.0.0.1:34001
I: 2019-09-14 19:24:06.907 Starting USRP --> HB_Bridge thread
----------------------------------------------------------------------------------------

I don't see any more output from the Analog_Bridge log file after this.

--David





On 9/14/19 6:55 PM, David Ranch wrote:

Hey Steve,

What I want to see is a snip from each log when receiving inbound traffic from DMR. The idea would be to see the start of transmission received on MB, the same signal passed to AB and finally to ASL.

That's what my first email showed.  It showed the Allstar, the MMDVM, and the Analog_bridge output.   Btw.. there is no Allstar here.. it's just going to Analog_Bridge as the audio will go to an analog repeater controller.

--David
KI6ZHD


Join main@DVSwitch.groups.io to automatically receive all group messages.