Re: Setting up a YSFn <--> ASL bridge


Tom Corcoran
 

Hello Steve,

here goes … I hope this is a "learning experience" for the whole community … it sure is for me!!
--
tnx … Tom VE3NY

mmdvm log

I: 2019-06-10 21:30:36.665 MMDVM_Bridge:
I: 2019-06-10 21:30:36.665 Portions Copyright (C) 2018 DVSwitch, INAD.
I: 2019-06-10 21:30:36.665 Hacks by Mike N4IRR and Steve N4IRS
I: 2019-06-10 21:30:36.665 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
I: 2019-06-10 21:30:36.665 This software is for use on amateur radio networks only,
I: 2019-06-10 21:30:36.665 it is to be used for educational purposes only. Its use on
I: 2019-06-10 21:30:36.665 commercial networks is strictly prohibited.
I: 2019-06-10 21:30:36.665 Copyright(C) 2015-2018 by Jonathan Naylor, G4KLX and others
M: 2019-06-10 21:30:36.665 MMDVM_Bridge-20180423 is starting
M: 2019-06-10 21:30:36.665 Built 13:54:43 May 30 2018 (GitID #9cdea41)
I: 2019-06-10 21:30:36.665 General Parameters
I: 2019-06-10 21:30:36.665     Callsign: VE3NY
I: 2019-06-10 21:30:36.665     Id: 3023284
I: 2019-06-10 21:30:36.665     Duplex: no
I: 2019-06-10 21:30:36.665     Timeout: 180s
I: 2019-06-10 21:30:36.665     D-Star: disabled
I: 2019-06-10 21:30:36.665     DMR: disabled
I: 2019-06-10 21:30:36.665     YSF: enabled
I: 2019-06-10 21:30:36.665     P25: disabled
I: 2019-06-10 21:30:36.665     NXDN: disabled
I: 2019-06-10 21:30:36.665 Modem Parameters
I: 2019-06-10 21:30:36.665     Port: /dev/null
I: 2019-06-10 21:30:36.665     RX Invert: no
I: 2019-06-10 21:30:36.665     TX Invert: no
I: 2019-06-10 21:30:36.665     PTT Invert: no
I: 2019-06-10 21:30:36.665     TX Delay: 100ms
I: 2019-06-10 21:30:36.665     RX Offset: 0Hz
I: 2019-06-10 21:30:36.665     TX Offset: 0Hz
I: 2019-06-10 21:30:36.665     RX DC Offset: 0
I: 2019-06-10 21:30:36.665     TX DC Offset: 0
I: 2019-06-10 21:30:36.665     RF Level: 100.0%
I: 2019-06-10 21:30:36.665     DMR Delay: 0 (0.0ms)
I: 2019-06-10 21:30:36.665     RX Level: 50.0%
I: 2019-06-10 21:30:36.666     CW Id TX Level: 50.0%
I: 2019-06-10 21:30:36.666     D-Star TX Level: 50.0%
I: 2019-06-10 21:30:36.667     DMR TX Level: 50.0%
I: 2019-06-10 21:30:36.667     YSF TX Level: 50.0%
I: 2019-06-10 21:30:36.667     P25 TX Level: 50.0%
I: 2019-06-10 21:30:36.667     NXDN TX Level: 50.0%
I: 2019-06-10 21:30:36.667     RX Frequency: 222340000Hz (222340000Hz)
I: 2019-06-10 21:30:36.667     TX Frequency: 224940000Hz (224940000Hz)
M: 2019-06-10 21:30:36.667 Opening the MMDVM
I: 2019-06-10 21:30:36.667 Display Parameters
I: 2019-06-10 21:30:36.667     Type:
I: 2019-06-10 21:30:36.667 System Fusion Network Parameters
I: 2019-06-10 21:30:36.667     Local Address: 0
I: 2019-06-10 21:30:36.667     Local Port: 3200
I: 2019-06-10 21:30:36.667     Gateway Address: 144.217.241.23
I: 2019-06-10 21:30:36.667     Gateway Port: 42100
I: 2019-06-10 21:30:36.667     Mode Hang: 3s
M: 2019-06-10 21:30:36.667 Opening YSF network connection
I: 2019-06-10 21:30:36.667 RSSI
I: 2019-06-10 21:30:36.667     Mapping File: RSSI.dat
W: 2019-06-10 21:30:36.667 Cannot open the RSSI data file - RSSI.dat
I: 2019-06-10 21:30:36.667 DMR Id Lookups
I: 2019-06-10 21:30:36.667     File: /var/lib/mmdvm/DMRIds.dat
I: 2019-06-10 21:30:36.667     Reload: 24 hours
I: 2019-06-10 21:30:36.808 Loaded 135612 Ids to the DMR callsign lookup table
I: 2019-06-10 21:30:36.808 YSF RF Parameters
I: 2019-06-10 21:30:36.808     Low Deviation: no
I: 2019-06-10 21:30:36.808     Remote Gateway: no
I: 2019-06-10 21:30:36.808     Self Only: no
I: 2019-06-10 21:30:36.808     DSQ: no
I: 2019-06-10 21:30:36.808     Mode Hang: 10s
M: 2019-06-10 21:30:36.808 YSF, Opening INI file: DVSwitch.ini
M: 2019-06-10 21:30:36.808 YSF, Setting [YSF] Address -> 127.0.0.1
M: 2019-06-10 21:30:36.808 YSF, Setting [YSF] TXPort -> 31103
M: 2019-06-10 21:30:36.808 YSF, Setting [YSF] RXPort -> 31100
M: 2019-06-10 21:30:36.808 YSF, Setting [YSF] FallbackID -> 3112488
M: 2019-06-10 21:30:36.808 YSF, Setting [YSF] ExportTG -> 77353
M: 2019-06-10 21:30:36.808 YSF, Setting [YSF] Slot -> 2
M: 2019-06-10 21:30:36.808 YSF, Transmitting on 127.0.0.1:31103 and listening on port 31100.  Result = 1
M: 2019-06-10 21:30:36.808 MMDVM_Bridge-20180423 is running
I: 2019-06-10 21:30:36.808 Started the DMR Id lookup reload thread
M: 2019-06-10 21:30:41.873 YSF, received network data from VA3AGZ     to ALL        at VE2DMR   
I: 2019-06-10 21:30:41.873 YSF, Lookup call VA3AGZ returned id 3023594 -> 3023594
M: 2019-06-10 21:30:57.964 YSF, received network end of transmission, 16.5 seconds, 0% packet loss, BER: 0.0%
M: 2019-06-10 21:31:02.137 YSF, received network data from VE3BWP     to ALL        at VE2DMR   
I: 2019-06-10 21:31:02.137 YSF, Lookup call VE3BWP returned id 3023340 -> 3023340


MMDVM ini

[General]
Callsign=VE3NY
Id=3023284
Timeout=180
Duplex=0
[Info]
RXFrequency=222340000
TXFrequency=224940000
Power=1
Latitude=47.7333
Longitude=-78.3999
Height=0
Location=Toronto, Canada
Description=MMDVM_Bridge
URL=https://groups.io/g/DVSwitch
[Log]
# Logging levels, 0=No logging, 1=Debug, 2=Message, 3=Info, 4=Warning, 5=Error, 6=Fatal
DisplayLevel=1
FileLevel=2
FilePath=/var/log/mmdvm
FileRoot=MMDVM_Bridge
[DMR Id Lookup]
File=/var/lib/mmdvm/DMRIds.dat
Time=24
[NXDN Id Lookup]
File=/var/lib/mmdvm/NXDN.csv
Time=24
[Modem]
Port=/dev/null
RSSIMappingFile=RSSI.dat
Trace=0
Debug=0
[D-Star]
Enable=0
Module=C
[DMR]
Enable=0
ColorCode=1
EmbeddedLCOnly=1
DumpTAData=0
[System Fusion]
Enable=1
[P25]
Enable=0
NAC=293
[NXDN]
Enable=0
RAN=1
Id=12345
[D-Star Network]
Enable=0
GatewayAddress=127.0.0.1
GatewayPort=20010
LocalPort=20011
Debug=0
[DMR Network]
Enable=0
Address=hblink.dvswitch.org
Port=62031
Jitter=360
Local=62032
Password=passw0rd
Slot1=1
Slot2=1
Debug=0
[System Fusion Network]
Enable=1
LocalAddress=0
LocalPort=3200
GatewayAddress=144.217.241.23
GatewayPort=42100
Debug=0
[P25 Network]
Enable=0
GatewayAddress=127.0.0.1
GatewayPort=42020
LocalPort=32010
Debug=0
[NXDN Network]
Enable=0
#LocalAddress=127.0.0.1
Debug=0
LocalPort=14021
GatewayAddress=127.0.0.1
GatewayPort=14020


DVSwitch ini

; MMDVM_Bridge export / import configuration file.
;   This file should be placed along side of MMDVM_Bridge or it can be
;   supplied as a path on the MMDVM_BRIDGE environment variable.
; Configure the Quantar Repeater Partner
; Note that the TX and RX ports are already reversed for MMDVM_Bridge <--> Quantar_Bridge
[QUANTAR]
logFilePath = /var/log/Quantar_Bridge.log
Address = 127.0.0.1             ; Address to send AMBE TLV frames to (export)
TXPort = 34103                  ; Port to send AMBE TLV frames to (export)
RXPort = 34100                  ; Port to listen on (import)
quantarPort = 1994              ; HDLC frames To/From the Quantar repeater
logLevel = 2                    ; Show messages and above 0=No logging, 1=Debug, 2=Message, 3=Info, 4=Warning, 5=Error, 6=Fatal
debug = 0                       ; Debug 0 = off, 1 = on (adds lots of additional messages)
; Configure the DMR Partner
; Audio format is AMBE 72 bit
[DMR]
Address = 127.0.0.1             ; Address to send AMBE TLV frames to (export)
TXPort = 31100                  ; Port to send AMBE TLV frames to (export)
RXPort = 31103                  ; Port to listen on (import)
Slot = 2                        ; Export slot
; Configure the D-Star Partner
; Audio format is AMBE 48 bit (DSAMBE)
[DSTAR]
Address = 127.0.0.1             ; Address to send AMBE TLV frames to (export)
TXPort = 32100                  ; Port to send AMBE TLV frames to (export)
RXPort = 32103                  ; Port to listen on (import)
FallbackID = 1234567            ; In case we can not find a valid DMR id in the database, export this one
ExportTG = 9                    ; Which TG to export
Slot = 2                        ; Export slot
; Configure the NXDN Partner
; Audio format is AMBE 72 bit
[NXDN]
Address = 127.0.0.1             ; Address to send AMBE TLV frames to (export)
TXPort = 33100                  ; Port to send AMBE TLV frames to (export)
RXPort = 33103                  ; Port to listen on (import)
FallbackID = 1234567            ; In case we can not find a valid DMR id in the database, export this one
NXDNFallbackID  = 12345         ; Use this ID when the input DMR ID is not found in the database
Translate = 1234=4321           ; Translate NXDN TG < -- > DMR TG (bidirectional)
Slot = 2                        ; Export slot
; Configure the P25 Partner
; Audio format is IMBE 88 bit
[P25]
Address = 127.0.0.1             ; Address to send AMBE TLV frames to (export)
TXPort = 34100                  ; Port to send AMBE TLV frames to (export)
RXPort = 34103                  ; Port to listen on (import)
Slot = 2                        ; Export slot
; Configure the Yaesu Fusion Partner
; Audio format is AMBE 72 bit
; Audio format is IMBE 88 bit
[YSF]
Address = 127.0.0.1             ; Address to send AMBE TLV frames to (export)
TXPort = 31103                  ; 35100  Port to send AMBE TLV frames to (export)
RXPort = 31100                  ; 35103  Port to listen on (import)
FallbackID = 3112488            ; In case we can not find a valid DMR id in the database, export this one
ExportTG = 77353                ; Canada Which TG to export
Slot = 2                        ; Export slot


Analog 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 = 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   ; AMBE frames from xx_Bridge (should match "toGatewayPort" in xx_Bridge.cfg)
toDMRPort = 31103   ;  AMBE frames from xx_Bridge (should match "fromGatewayPort" in xx_Bridge.cfg)
ambeMode = YSFN                         ; DMR, DMR_IPSC, DSTAR, NXDN, P25, YSFN, YSFW
minTxTimeMS = 2000                      ; Minimum time in MS for hang delay
gatewayDmrId = 3023284                  ; ID to use when transmitting from Analog_Bridge
repeaterID = 302328401                  ; ID of source repeater
txTg = 77353                            ; 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_USE_Gain               ; Audio to ASL (AUDIO_UNITY, AUDIO_USE_AGC, AUDIO_USE_GAIN)
agcGain = 83                             ; Gain (in db) of the AGC filter
dmrAudio = AUDIO_USE_GAIN               ; Audio from ASL (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_BPF)
dmrGain = 0.25                          ; 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



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