John's Vademecum

Try to learn something about everything, and everything about something -Thomas Huxley “Darwin's bulldog” (1824-1895)

User Tools

Site Tools


public:radio:allstar:allstar_dmr

AllStar Linking

DMR Bridging

First try at DVSwitch Bridging

FIXME

Overview of IP UDP ports

    Asterisk              Analog_Bridge         DVSwitch
    ========              =============         MMDVM_Bridge
                                                ============
    [node]                [USPR]
    rxPort 31001 <------- txPort 31001
    txPort 34001 -------> rxPort 34001
                             ↓ ↑
                          [md380-emu]:2470
                             ↓ ↑
                          [AMBE]                [DMR]                  
                          txPort 31103 ------>  rxPort 31103  
                          rxPort 31100 <------  txPort 31100 
                                                   ↓  ↑
                                                [DMR Network]
                                                Host : xx.xx.xx.xx
                                                Port : xxxxxx

The main Things

  • Make sure Analog_Bridge.ini has the correct txPort and rxPort in its [USRP] section
[USRP]
address = 127.0.0.1           ; IP address of USRP partner (Analog_Reflector, Allstar/Asterisk or another Analog_Bridge)
txPort = 31001                ; Transmit USRP frames on this port
rxPort = 34001                ; Listen for USRP frames on this port
  • It should match Asterisk's private node as defined in /etc/asterisk/rpt.conf - in this case it's [1398]
[1398]
rxchannel = USRP/127.0.0.1:34001:31001 ; Use the USRP channel driver. Must be enabled in modules.conf
 ; 127.0.0.1 = IP of the target application
 ; 34001 = UDP port the target application is listening on
 ; 32001 = UDP port ASL is listening on
  • Make Sure Analog_Bridge.ini has the correct txPort and rxPort in its [AMBE_AUDIO] section
[AMBE_AUDIO]
address = 127.0.0.1                     ; IP address of xx_Bridge
; For DMR  - match the ports set in DVSwitch.ini
txPort = 31103                          ; Transmit TLV frames to partner on this port
rxPort = 31100                          ; Listen for TLV frames from partner on this port

; FOr NXDN - match the ports set in DVSwitch.ini
;txPort = 33103                          ; Transmit TLV frames to partner on this port
;rxPort = 33100                          ; Listen for TLV frames from partner on this port
ambeMode = DMR                          ; DMR, DMR_IPSC, DSTAR, NXDN, P25, YSFN, YSFW (encode PCM to this format)
  • should match the ports in DVSwitch.ini [DMR] section
; 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)
  • Enable [DMR] in MMDVM_Bridge.ini
[DMR]
Enable=1
ColorCode=1
EmbeddedLCOnly=1
DumpTAData=0
  • Enable [DMR Network] in MMDVM_Bridge.ini and choose the DMR Network, password, port
[DMR Network]
Enable=1

; TGIF
Address=tgif.network
Port=62031
;TGIF Password for 2354435
;Password=XXXXXXXXXXX
; TGIF Password for 2354429
Password=XXXXXXXXXX

; Brandmeister
;Address=2341.master.brandmeister.network
;Password=XXXXXXXXXX
;Port=62031
 
Jitter=750
Local=62032

; FOR DVS_Ph F
;Address=78.129.135.43
;Port=55555
;Password=PASSWORD
;Options=StartRef=4000;RelinkTime=0;UserLink=0;TS1_1=733;
 
Slot1=0
Slot2=1
Debug=0
  • Select hotspot/repeater source ID&SSID (repeaterID=235442998) and your DMR ID (gatewayDmrId = 2354429), plus choice of Talkgroup in Analog_Bridge.ini
; The metadata below is used when ASL is the source since it does not have any concept of digital modes
gatewayDmrId = 2354429                  ; ID to use when transmitting from Analog_Bridge 7 digit ID
repeaterID = 235442998                  ; ID of source repeater 7 digit ID plus 2 digit SSID 
; Talkgroup needed for DMR and NXDN.
; NXDNGateway uses Talkgroup to choose the reflector IP/Port from its Host Files
txTg = 2354429                        ; 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

Updating DVSwitch Hostfiles

  • DVSwtich keep its hostfiles in /var/lib/mmdvm and updates via cron.daily/DVSM_Update which calls /opt/MMDVM_Bridge/dvswitch.sh update
  • This tries to download hostfiles from various places using curl
  • It seems to fail most of the time due to a SSL problem
  • A workaround is to put “insecure” in root's ~/.curlrc
sudo su -

echo insecure >> ~/.curlrc

/opt/MMDVM_Bridge/dvswitch.sh update

Section Two

John Pumford-Green 10/06/25 08:55 BST

Further Information

public/radio/allstar/allstar_dmr.txt · Last modified: by john