Topics

DMRGateway help for HBLINK to XLX bridge

N0KEG
 

What I'm trying to accomplish is....

HomebrewRepeaters<->hblink<->mmdvm_bridge<->DMRGateway<->XLX Server in DMR Mode

Ultimately, each repeater will have a static TG on each time slot which I want tied back to 2 different modules on the XLX transcoder.   

I've got HBLink running as a master server on 62030.  MMDVM bridge comes up, connects to HBLink on 62030 and is listening on 62024.  For the life of me I can't get DMRGateway to connect to the MMDVM Bridge.  Everything is running on the same box except for the XLX reflector.  XLX and the AMBE transcoder are up and working already on a separate physical server on the same IP subnet.

I imagine I have to have separate instances of both the MMDVM bridge and DMRGateway services, one for each TG I want connected to each XLX module?

Is this the proper way to build the bridge or can I get rid of MMDVM bridge and use DMR_Gateway directly between HBLink and XLXd?

Does anyone have an example of a working DMRGateway.ini I can look at?

MMDVM_Bridge is listening on both 31103 and and 62024.  I imagine 31103 is for actual call traffic while 62024 is for command and control?

Once I get the configs figured out, is there any reason why I can't run all of these services on the XLX box providing I change the HBLink port to something else?  Looks like XLXd uses 62030 as well.

Any help would be greatly appreciated!



Log from the DMRGateway startup:

I: 2019-05-05 18:45:19.390 This software is for use on amateur radio networks only,
I: 2019-05-05 18:45:19.390 it is to be used for educational purposes only. Its use on
I: 2019-05-05 18:45:19.390 commercial networks is strictly prohibited.
I: 2019-05-05 18:45:19.390 Copyright(C) 2017 by Jonathan Naylor, G4KLX and others
M: 2019-05-05 18:45:19.390 DMRGateway-20180606 is starting
M: 2019-05-05 18:45:19.390 Built 23:36:27 May  4 2019 (GitID #366730e)
I: 2019-05-05 18:45:19.390 MMDVM Network Parameters
I: 2019-05-05 18:45:19.390     Rpt Address: 127.0.0.1
I: 2019-05-05 18:45:19.390     Rpt Port: 62024
I: 2019-05-05 18:45:19.390     Local Address: 127.0.0.1
I: 2019-05-05 18:45:19.390     Local Port: 62020
M: 2019-05-05 18:45:19.390 MMDVM Network, Opening
M: 2019-05-05 18:45:19.390 Waiting for MMDVM to connect.....

Log from the MMDVM Bridge Startup:
I: 2019-05-05 18:58:17.318 MMDVM_Bridge:
I: 2019-05-05 18:58:17.318 Portions Copyright (C) 2018 DVSwitch, INAD.
I: 2019-05-05 18:58:17.318 Hacks by Mike N4IRR and Steve N4IRS
I: 2019-05-05 18:58:17.318 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
I: 2019-05-05 18:58:17.318 This software is for use on amateur radio networks only,
I: 2019-05-05 18:58:17.318 it is to be used for educational purposes only. Its use on
I: 2019-05-05 18:58:17.318 commercial networks is strictly prohibited.
I: 2019-05-05 18:58:17.318 Copyright(C) 2015-2018 by Jonathan Naylor, G4KLX and others
M: 2019-05-05 18:58:17.318 MMDVM_Bridge-20180423 is starting
M: 2019-05-05 18:58:17.318 Built 09:44:16 May  7 2018 (GitID #9cdea41)
I: 2019-05-05 18:58:17.318 General Parameters
I: 2019-05-05 18:58:17.318     Callsign: <CALLSIGN>
I: 2019-05-05 18:58:17.318     Id: <7 Digit ID>
I: 2019-05-05 18:58:17.318     Duplex: yes
I: 2019-05-05 18:58:17.318     Timeout: 300s
I: 2019-05-05 18:58:17.318     D-Star: disabled
I: 2019-05-05 18:58:17.318     DMR: enabled
I: 2019-05-05 18:58:17.318     YSF: disabled
I: 2019-05-05 18:58:17.318     P25: disabled
I: 2019-05-05 18:58:17.318     NXDN: disabled
I: 2019-05-05 18:58:17.318 Modem Parameters
I: 2019-05-05 18:58:17.318     Port: /dev/null
I: 2019-05-05 18:58:17.318     RX Invert: no
I: 2019-05-05 18:58:17.318     TX Invert: no
I: 2019-05-05 18:58:17.318     PTT Invert: no
I: 2019-05-05 18:58:17.318     TX Delay: 100ms
I: 2019-05-05 18:58:17.318     RX Offset: 0Hz
I: 2019-05-05 18:58:17.318     TX Offset: 0Hz
I: 2019-05-05 18:58:17.318     RX DC Offset: 0
I: 2019-05-05 18:58:17.318     TX DC Offset: 0
I: 2019-05-05 18:58:17.318     RF Level: 100.0%
I: 2019-05-05 18:58:17.318     DMR Delay: 0 (0.0ms)
I: 2019-05-05 18:58:17.318     RX Level: 50.0%
I: 2019-05-05 18:58:17.318     CW Id TX Level: 50.0%
I: 2019-05-05 18:58:17.318     D-Star TX Level: 50.0%
I: 2019-05-05 18:58:17.318     DMR TX Level: 50.0%
I: 2019-05-05 18:58:17.318     YSF TX Level: 50.0%
I: 2019-05-05 18:58:17.318     P25 TX Level: 50.0%
I: 2019-05-05 18:58:17.318     NXDN TX Level: 50.0%
I: 2019-05-05 18:58:17.318     RX Frequency: 222340000Hz (222340000Hz)
I: 2019-05-05 18:58:17.318     TX Frequency: 224940000Hz (224940000Hz)
M: 2019-05-05 18:58:17.318 Opening the MMDVM
I: 2019-05-05 18:58:17.318 Display Parameters
I: 2019-05-05 18:58:17.318     Type: 
I: 2019-05-05 18:58:17.318 DMR Network Parameters
I: 2019-05-05 18:58:17.318     Address: 127.0.0.1
I: 2019-05-05 18:58:17.318     Port: 62030
I: 2019-05-05 18:58:17.318     Local: 62024
I: 2019-05-05 18:58:17.318     Jitter: 360ms
I: 2019-05-05 18:58:17.318     Slot 1: disabled
I: 2019-05-05 18:58:17.318     Slot 2: enabled
I: 2019-05-05 18:58:17.318     Mode Hang: 3s
I: 2019-05-05 18:58:17.318 Info Parameters
I: 2019-05-05 18:58:17.318     Callsign: <CALLSIGN>
I: 2019-05-05 18:58:17.318     RX Frequency: 222340000Hz
I: 2019-05-05 18:58:17.318     TX Frequency: 224940000Hz
I: 2019-05-05 18:58:17.318     Power: 1W
I: 2019-05-05 18:58:17.318     Latitude: 41.733299deg N
I: 2019-05-05 18:58:17.318     Longitude: -50.399899deg E
I: 2019-05-05 18:58:17.318     Height: 0m
I: 2019-05-05 18:58:17.318     Location: "Iceberg, North Atlantic"
I: 2019-05-05 18:58:17.318     Description: "MMDVM_Bridge"
I: 2019-05-05 18:58:17.318     URL: "https://groups.io/g/DVSwitch"
M: 2019-05-05 18:58:17.318 DMR, Opening DMR Network
I: 2019-05-05 18:58:17.318 RSSI
I: 2019-05-05 18:58:17.318     Mapping File: RSSI.dat
W: 2019-05-05 18:58:17.318 Cannot open the RSSI data file - RSSI.dat
I: 2019-05-05 18:58:17.318 DMR Id Lookups
I: 2019-05-05 18:58:17.319     File: /var/lib/mmdvm/DMRIds.dat
I: 2019-05-05 18:58:17.319     Reload: 24 hours
W: 2019-05-05 18:58:17.319 Cannot open the DMR Id lookup file - /var/lib/mmdvm/DMRIds.dat
I: 2019-05-05 18:58:17.319 DMR RF Parameters
I: 2019-05-05 18:58:17.319     Id: <7 Digit ID>
I: 2019-05-05 18:58:17.319     Color Code: 1
I: 2019-05-05 18:58:17.319 Started the DMR Id lookup reload thread
I: 2019-05-05 18:58:17.319     Self Only: no
I: 2019-05-05 18:58:17.319     Embedded LC Only: yes
I: 2019-05-05 18:58:17.319     Dump Talker Alias Data: no
I: 2019-05-05 18:58:17.319     Prefixes: 0
I: 2019-05-05 18:58:17.319     Call Hang: 3s
I: 2019-05-05 18:58:17.319     TX Hang: 3s
I: 2019-05-05 18:58:17.319     Mode Hang: 10s
M: 2019-05-05 18:58:17.319 DMR, Opening INI file: DVSwitch.ini
M: 2019-05-05 18:58:17.319 DMR, Setting [DMR] Address -> 127.0.0.1
M: 2019-05-05 18:58:17.319 DMR, Setting [DMR] TXPort -> 31100
M: 2019-05-05 18:58:17.319 DMR, Setting [DMR] RXPort -> 31103
M: 2019-05-05 18:58:17.319 DMR, Setting [DMR] Slot -> 2
M: 2019-05-05 18:58:17.319 DMR, Transmitting on 127.0.0.1:31100 and listening on port 31103.  Result = 1
M: 2019-05-05 18:58:17.319 MMDVM_Bridge-20180423 is running
M: 2019-05-05 18:58:27.336 DMR, Logged into the master successfully


Steve KC1AWV
 

DMRGateway is not a requirement if you're going HB to MB. Set the TG in HB to one between 4001-4026 depending on the module you are using on XLX. You will need to make a transmission after MB connects for it to show up connected to the module.

Steve KC1AWV

On Sun, May 5, 2019, 3:17 PM <raymond.strickoff@...> wrote:
What I'm trying to accomplish is....

HomebrewRepeaters<->hblink<->mmdvm_bridge<->DMRGateway<->XLX Server in DMR Mode

Ultimately, each repeater will have a static TG on each time slot which I want tied back to 2 different modules on the XLX transcoder.   

I've got HBLink running as a master server on 62030.  MMDVM bridge comes up, connects to HBLink on 62030 and is listening on 62024.  For the life of me I can't get DMRGateway to connect to the MMDVM Bridge.  Everything is running on the same box except for the XLX reflector.  XLX and the AMBE transcoder are up and working already on a separate physical server on the same IP subnet.

I imagine I have to have separate instances of both the MMDVM bridge and DMRGateway services, one for each TG I want connected to each XLX module?

Is this the proper way to build the bridge or can I get rid of MMDVM bridge and use DMR_Gateway directly between HBLink and XLXd?

Does anyone have an example of a working DMRGateway.ini I can look at?

MMDVM_Bridge is listening on both 31103 and and 62024.  I imagine 31103 is for actual call traffic while 62024 is for command and control?

Once I get the configs figured out, is there any reason why I can't run all of these services on the XLX box providing I change the HBLink port to something else?  Looks like XLXd uses 62030 as well.

Any help would be greatly appreciated!



Log from the DMRGateway startup:

I: 2019-05-05 18:45:19.390 This software is for use on amateur radio networks only,
I: 2019-05-05 18:45:19.390 it is to be used for educational purposes only. Its use on
I: 2019-05-05 18:45:19.390 commercial networks is strictly prohibited.
I: 2019-05-05 18:45:19.390 Copyright(C) 2017 by Jonathan Naylor, G4KLX and others
M: 2019-05-05 18:45:19.390 DMRGateway-20180606 is starting
M: 2019-05-05 18:45:19.390 Built 23:36:27 May  4 2019 (GitID #366730e)
I: 2019-05-05 18:45:19.390 MMDVM Network Parameters
I: 2019-05-05 18:45:19.390     Rpt Address: 127.0.0.1
I: 2019-05-05 18:45:19.390     Rpt Port: 62024
I: 2019-05-05 18:45:19.390     Local Address: 127.0.0.1
I: 2019-05-05 18:45:19.390     Local Port: 62020
M: 2019-05-05 18:45:19.390 MMDVM Network, Opening
M: 2019-05-05 18:45:19.390 Waiting for MMDVM to connect.....

Log from the MMDVM Bridge Startup:
I: 2019-05-05 18:58:17.318 MMDVM_Bridge:
I: 2019-05-05 18:58:17.318 Portions Copyright (C) 2018 DVSwitch, INAD.
I: 2019-05-05 18:58:17.318 Hacks by Mike N4IRR and Steve N4IRS
I: 2019-05-05 18:58:17.318 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
I: 2019-05-05 18:58:17.318 This software is for use on amateur radio networks only,
I: 2019-05-05 18:58:17.318 it is to be used for educational purposes only. Its use on
I: 2019-05-05 18:58:17.318 commercial networks is strictly prohibited.
I: 2019-05-05 18:58:17.318 Copyright(C) 2015-2018 by Jonathan Naylor, G4KLX and others
M: 2019-05-05 18:58:17.318 MMDVM_Bridge-20180423 is starting
M: 2019-05-05 18:58:17.318 Built 09:44:16 May  7 2018 (GitID #9cdea41)
I: 2019-05-05 18:58:17.318 General Parameters
I: 2019-05-05 18:58:17.318     Callsign: <CALLSIGN>
I: 2019-05-05 18:58:17.318     Id: <7 Digit ID>
I: 2019-05-05 18:58:17.318     Duplex: yes
I: 2019-05-05 18:58:17.318     Timeout: 300s
I: 2019-05-05 18:58:17.318     D-Star: disabled
I: 2019-05-05 18:58:17.318     DMR: enabled
I: 2019-05-05 18:58:17.318     YSF: disabled
I: 2019-05-05 18:58:17.318     P25: disabled
I: 2019-05-05 18:58:17.318     NXDN: disabled
I: 2019-05-05 18:58:17.318 Modem Parameters
I: 2019-05-05 18:58:17.318     Port: /dev/null
I: 2019-05-05 18:58:17.318     RX Invert: no
I: 2019-05-05 18:58:17.318     TX Invert: no
I: 2019-05-05 18:58:17.318     PTT Invert: no
I: 2019-05-05 18:58:17.318     TX Delay: 100ms
I: 2019-05-05 18:58:17.318     RX Offset: 0Hz
I: 2019-05-05 18:58:17.318     TX Offset: 0Hz
I: 2019-05-05 18:58:17.318     RX DC Offset: 0
I: 2019-05-05 18:58:17.318     TX DC Offset: 0
I: 2019-05-05 18:58:17.318     RF Level: 100.0%
I: 2019-05-05 18:58:17.318     DMR Delay: 0 (0.0ms)
I: 2019-05-05 18:58:17.318     RX Level: 50.0%
I: 2019-05-05 18:58:17.318     CW Id TX Level: 50.0%
I: 2019-05-05 18:58:17.318     D-Star TX Level: 50.0%
I: 2019-05-05 18:58:17.318     DMR TX Level: 50.0%
I: 2019-05-05 18:58:17.318     YSF TX Level: 50.0%
I: 2019-05-05 18:58:17.318     P25 TX Level: 50.0%
I: 2019-05-05 18:58:17.318     NXDN TX Level: 50.0%
I: 2019-05-05 18:58:17.318     RX Frequency: 222340000Hz (222340000Hz)
I: 2019-05-05 18:58:17.318     TX Frequency: 224940000Hz (224940000Hz)
M: 2019-05-05 18:58:17.318 Opening the MMDVM
I: 2019-05-05 18:58:17.318 Display Parameters
I: 2019-05-05 18:58:17.318     Type: 
I: 2019-05-05 18:58:17.318 DMR Network Parameters
I: 2019-05-05 18:58:17.318     Address: 127.0.0.1
I: 2019-05-05 18:58:17.318     Port: 62030
I: 2019-05-05 18:58:17.318     Local: 62024
I: 2019-05-05 18:58:17.318     Jitter: 360ms
I: 2019-05-05 18:58:17.318     Slot 1: disabled
I: 2019-05-05 18:58:17.318     Slot 2: enabled
I: 2019-05-05 18:58:17.318     Mode Hang: 3s
I: 2019-05-05 18:58:17.318 Info Parameters
I: 2019-05-05 18:58:17.318     Callsign: <CALLSIGN>
I: 2019-05-05 18:58:17.318     RX Frequency: 222340000Hz
I: 2019-05-05 18:58:17.318     TX Frequency: 224940000Hz
I: 2019-05-05 18:58:17.318     Power: 1W
I: 2019-05-05 18:58:17.318     Latitude: 41.733299deg N
I: 2019-05-05 18:58:17.318     Longitude: -50.399899deg E
I: 2019-05-05 18:58:17.318     Height: 0m
I: 2019-05-05 18:58:17.318     Location: "Iceberg, North Atlantic"
I: 2019-05-05 18:58:17.318     Description: "MMDVM_Bridge"
I: 2019-05-05 18:58:17.318     URL: "https://groups.io/g/DVSwitch"
M: 2019-05-05 18:58:17.318 DMR, Opening DMR Network
I: 2019-05-05 18:58:17.318 RSSI
I: 2019-05-05 18:58:17.318     Mapping File: RSSI.dat
W: 2019-05-05 18:58:17.318 Cannot open the RSSI data file - RSSI.dat
I: 2019-05-05 18:58:17.318 DMR Id Lookups
I: 2019-05-05 18:58:17.319     File: /var/lib/mmdvm/DMRIds.dat
I: 2019-05-05 18:58:17.319     Reload: 24 hours
W: 2019-05-05 18:58:17.319 Cannot open the DMR Id lookup file - /var/lib/mmdvm/DMRIds.dat
I: 2019-05-05 18:58:17.319 DMR RF Parameters
I: 2019-05-05 18:58:17.319     Id: <7 Digit ID>
I: 2019-05-05 18:58:17.319     Color Code: 1
I: 2019-05-05 18:58:17.319 Started the DMR Id lookup reload thread
I: 2019-05-05 18:58:17.319     Self Only: no
I: 2019-05-05 18:58:17.319     Embedded LC Only: yes
I: 2019-05-05 18:58:17.319     Dump Talker Alias Data: no
I: 2019-05-05 18:58:17.319     Prefixes: 0
I: 2019-05-05 18:58:17.319     Call Hang: 3s
I: 2019-05-05 18:58:17.319     TX Hang: 3s
I: 2019-05-05 18:58:17.319     Mode Hang: 10s
M: 2019-05-05 18:58:17.319 DMR, Opening INI file: DVSwitch.ini
M: 2019-05-05 18:58:17.319 DMR, Setting [DMR] Address -> 127.0.0.1
M: 2019-05-05 18:58:17.319 DMR, Setting [DMR] TXPort -> 31100
M: 2019-05-05 18:58:17.319 DMR, Setting [DMR] RXPort -> 31103
M: 2019-05-05 18:58:17.319 DMR, Setting [DMR] Slot -> 2
M: 2019-05-05 18:58:17.319 DMR, Transmitting on 127.0.0.1:31100 and listening on port 31103.  Result = 1
M: 2019-05-05 18:58:17.319 MMDVM_Bridge-20180423 is running
M: 2019-05-05 18:58:27.336 DMR, Logged into the master successfully


N0KEG
 

Ok thanks, one less service running the better!  But where does the XLX config go?  Do I add an XLX stanza into MMDVM_Bridge.ini?

Steve KC1AWV
 

Yes it's set up just like brandmeister, just change the port and address to the correct values.


On Sun, May 5, 2019, 3:35 PM <raymond.strickoff@...> wrote:
Ok thanks, one less service running the better!  But where does the XLX config go?  Do I add an XLX stanza into MMDVM_Bridge.ini?

Eric Dayrit
 

make sure you use 7 digit ID number.

73, Eric

root@KF6ITCRPi2:/home/repeater# cd /opt/DMRGateway
root@KF6ITCRPi2:/opt/DMRGateway# ./DMRGateway DMRGateway.ini
I: 2019-05-06 15:11:26.851 This software is for use on amateur radio networks only,
I: 2019-05-06 15:11:26.851 it is to be used for educational purposes only. Its use on
I: 2019-05-06 15:11:26.851 commercial networks is strictly prohibited.
I: 2019-05-06 15:11:26.851 Copyright(C) 2017 by Jonathan Naylor, G4KLX and others
M: 2019-05-06 15:11:26.851 DMRGateway-20180606 is starting
M: 2019-05-06 15:11:26.851 Built 11:32:28 Mar 25 2019 (GitID #1491658)
I: 2019-05-06 15:11:26.851 MMDVM Network Parameters
I: 2019-05-06 15:11:26.851     Rpt Address: 127.0.0.1
I: 2019-05-06 15:11:26.851     Rpt Port: 62042
I: 2019-05-06 15:11:26.851     Local Address: 127.0.0.1
I: 2019-05-06 15:11:26.851     Local Port: 62041
M: 2019-05-06 15:11:26.851 MMDVM Network, Opening
M: 2019-05-06 15:11:26.851 Waiting for MMDVM to connect.....
M: 2019-05-06 15:12:48.576 MMDVM has connected
I: 2019-05-06 15:12:48.576 Rule trace: no
I: 2019-05-06 15:12:48.578 Loaded 386 XLX reflectors
I: 2019-05-06 15:12:48.579 XLX Network Parameters
I: 2019-05-06 15:12:48.579     Id: 3131536
I: 2019-05-06 15:12:48.579     Hosts file: /var/lib/mmdvm/XLXHosts.txt
I: 2019-05-06 15:12:48.579     Reload time: 60 minutes
I: 2019-05-06 15:12:48.579     Local: random
I: 2019-05-06 15:12:48.579     Port: 62030
I: 2019-05-06 15:12:48.579     Slot: 2
I: 2019-05-06 15:12:48.579     TG: 6
I: 2019-05-06 15:12:48.579     Base: 64000
I: 2019-05-06 15:12:48.579     Startup: XLX760
I: 2019-05-06 15:12:48.579     Relink: 10 minutes
I: 2019-05-06 15:12:48.579     User Control: enabled
I: 2019-05-06 15:12:48.579      Module: A
I: 2019-05-06 15:12:48.579 XLX: Using original configuration message: KF6ITC     222340000224940000010041.73329-50.39989000Iceberg, North AtlanMMDVM_Bridge       4https://groups.io/g/DVSwitch                                                                                                20180423                                MMDVM_Unknown
M: 2019-05-06 15:12:48.579 XLX, Opening DMR Network
M: 2019-05-06 15:12:48.579 XLX, Connecting to XLX760
I: 2019-05-06 15:12:48.579 Voice Parameters
I: 2019-05-06 15:12:48.579     Enabled: yes
I: 2019-05-06 15:12:48.580     Language: en_US
I: 2019-05-06 15:12:48.580     Directory: ./Audio
M: 2019-05-06 15:12:48.580 DMRGateway-20180606 is running
D: 2019-05-06 15:12:58.602 XLX, Sending authorisation
D: 2019-05-06 15:12:58.612 XLX, Sending configuration
M: 2019-05-06 15:12:58.623 XLX, Logged into the master successfully
M: 2019-05-06 15:12:58.623 XLX, Linking to reflector XLX760 A