Author Topic: New DMR Gateway - June 2020  (Read 321 times)

0 Members and 0 Guests are viewing this topic.

Offline VE3RD

  • Newbie
  • *
  • Posts: 26
  • Referrals: 0
New DMR Gateway - June 2020
« on: June 28, 2020, 11:55:25 am »
DMRGateway-3 by VE3RD

The DMRGatewar Rule are explained here https://github.com/g4klx/DMRGateway/wiki/Rewrite-Rules

New with This Version
1) Network 6 Added
2) Hard coded 7 Digit TG Translation tied to Network Number
ie 4031665 will translate to 31665 on Network 4 and 6031665 will put you on Network 6 tg 31665
with TGRewrite Rules as follows
[DMR Network 4]
TGRewrite0=2,4000001,2,1,999999

[DMR Network 6]
TGRewrite0=2,6000001,2,1,999999

Note 1 - Known Issue
If you click on [Apply Changes] in the Pi-Star Dashboard Configuration screen, your /etc/dmrgateway file will be replaced with a default file, missing Networks 4, 5 and 6.  Therefore keep a backup copy of /etc/dmrgateway that you can restore should this unfortunate occurrence happen. Pi-Star makes certain assumptions, and if sees something that does not match what it expects to see, it restores default files.

Note 2 - This gateway will NOT normally handle both the normal tg number as well as the 7 digit talk group number in the same Network.
example:
TGRewrite0=2,4031665,2,1,999999
TGRewrite1=2,31665,2,999999
4031665 will operate as expected. Tx on 4031665 will come back on 4031665 as it matches the first rule.
TX on 31665 will come back on 4031665 and you will not hear anything, but busy light will be on.

Reversing The Order
TGRewrite0=2,31665,2,999999
TGRewrite1=2,4031665,2,1,999999
TX on 31665, will match the first rule and come back on 31665
TX on 4031665, will match the first rule and come back on 31665.  So adding a Receive group with 31665 in all your 7 digit tg's will resolve this issue
ie: RX Group=31665 added to 4031665, 5031665, 6031665 works just fine.


Download and Install
// Lines starting with // are instructions and/or comments only, not to be typed.
Step 1 - Set the Master DMR Server to DMRGateway in the Pi-Star Dashboard Configuration Screen,
Step 2 - Press [Apply Changes]
Step 3 - Proceed with the DMRGateway Download and Install

// log into pi-star via ssh
// type as follows

rpi-rw
sudo su
git clone http://github.com/ve3rd/DMRGateway-3
cd ./DMRGateway-3
make clean
make

// If this is your first gateway install, backup the original as follows
cp /usr/local/bin/DMRGateway /usr/local/bin/DMRGateway.orig

dmrgateway.service stop
cp DMRGateway /usr/local/bin/

// There are many ways to setup the /etc/dmrgateway file. The following samples for network 4,5 and 6 are suggestions only.
// These samples are the bare minimum. Get these working first before adding more rules.
// Configure /etc/dmrgateway and then do a pi-star reboot

[DMR Network 4]
Enabled=1
Name=TGIF_Network
Address=tgif.network
Port=62031
Local=62034
Id=???????44
TGRewrite0=2,4000001,2,1,999999
PCRewrite0=2,4009990,2,9990,1
SrcRewrite0=2,9990,2,4009990,1
Password=passw0rd
Location=0
Debug=1

[DMR Network 5]
Enabled=1
Name=Prime_TGIF_Network
Address=prime.tgif.network
Port=62031
Local=62035
Id=???????45
TGRewrite0=2,5000001,2,1,999999
Password=xxxxxxxxxxxxxxxxxxxxxxxx   {<- Your Security Code goes here}
Location=0
Debug=1


[DMR Network 6]
Enabled=1
Name=MNet_Network
Address=mnet.hopto.org
Port=62031
Local=62036
Id=???????46
TGRewrite0=2,6000001,2,1,999999
Password=xxxxxxxxxxxxxxxxxxxxxxxx   {<- Your Security Code goes here}
Location=0
Debug=1
« Last Edit: August 01, 2020, 06:15:28 pm by VE3RD »

Share on Facebook Share on Twitter


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
212 Views
Last post December 19, 2018, 07:56:50 pm
by N3MEL
2 Replies
149 Views
Last post December 23, 2018, 01:28:16 pm
by KD8DVR
6 Replies
124 Views
Last post July 14, 2019, 11:22:27 pm
by WB3IHY
16 Replies
755 Views
Last post August 05, 2019, 08:57:57 am
by Kd0ess
0 Replies
17 Views
Last post May 06, 2020, 07:33:18 am
by ke5cdk