DMRGateway is NOT Difficult to set Up

Help with DMR issues
Post Reply
VE3RD
Posts: 113
Joined: Thu Oct 11, 2018 7:21 pm

DMRGateway is NOT Difficult to set Up

Post by VE3RD »

Not withstanding the title above, the most work you will need to do will be setting up your CPS. After installing, look at the rewrite rules in
/etc/dmrgateway. This will show you what you need to program talkgroups for each of your selected networks

My DMRGateway-4 and now -5 has more bells and whistles than the pi-star default version. However if you really want to use the default pi-star version then you can install the DMRGateway-4 as indicated below, then replace the original DMRGateway binary /usr/local/bin/DMRGateway the setup script developed will setup every thing for you and copy the original binary to /usr/local/bin/DMRGateway.orig

./GWConfig.sh
The setup graphical interactive menu script GWConfig.sh looks as follows
1) Create and edit the DMRGateway Password File (Described Below)
2) Install DMRGateway & Update /etc/DMRGateway - Basic Mode
3) Install DMRGateway & Update /etc/DMRGateway - 8 Digit Translation Mode
4) Install DMRGateway & Update /etc/DMRGateway - 7 Digit Translation Mode
5) Install DMRGateway No config file update
6) Restore Original Pi-Star DMRGateway
7 Quit

Item 1 creates a dmrgwpass file in /etc/ as shown below. You need to turn on the networks you want to use and enter your security codes. Saving your changes puts you back into the menu
Item 2 installs the DMRGateway-4 to use 9001-9006 to select and lock in the selected network, to use raw tg ids
Item 3 for use by advanced users. This uses 11 to 16 in the two left positions in an 8 digit string to select and lock in the selected network
Item 4 installs DMRGateway-4 in 7 digit mode. Use this if you want to revert back to the original pi-star DMRGateway. This uses 1 to 6 in the left or 7 digit position to select and lock in the selected network(Note the Net 6 does not exist and the lock does not work in the pi-star Gateway)

NOTE1: the pi-star gateway's default 7 digit mode will not handle 7 digit talk groups without using complicated rewrite rules. DMRGateway-4 Raw and 8 Digit modes WILL handle 7 digit talk groups with default simple rules.

NOTE2: There are only four basic steps to installing DMRGateway-4. and one step to revert back to the pi-star gateway. Make sure you are in RW mode with "rpi-rw"
A) Download DMRGateway-4 ## sudo git https://github.com/ve3rd/DMRGateway-4, then cd to DMRGateway-4
B) run ./GWConfig.sh 0 (where the 0 is a hotspot number from 0 to 9) and choose item 1 and setup the password file and save it
C) Choose the mode you want to run with and press "Enter"
D) your Gateway is now almost configured. If you want to use Brandmeister on Network 1 and/or DMR+ on Network 2 then you can select servers and enable them through the Pi-Star Configuration Page.

Now the real work begins, when you configure your CPS to work with the DMRGateway. See the comments at the end of this document.

NOTE3: The GWConfig.sh script will grab pertinent data from /etc/mmdvmhost and insert it into /etc/dmrgateway, relieving you of this burden. BM(Net1) and DMR+(Net2) are configured through the Pi-Star Dashboard Configuration Page. Network 4 defaults to TGIF and Net5 defaults to MNET, but this can be changed by editing /etc/dmrgateway after the Script is finished.

For more documentation take a look at

https://tgifnetwork.createaforum.com/ne ... gateway-4/

/etc/dmrgwpass

[DMR Network 1]
PWD="A1BCDEFG"
Enabled=0

[DMR Network 2]
PWD="P2ASSWORD2"
Enabled=1

[DMR Network 3]
PWD="PASSWORD3"
Enabled=0

[DMR Network 4]
PWD="Pass4"
Enabled=1

[DMR Network 5]
PWD="Pass5"
Enabled=1

[DMR Network 6]
PWD="NET6PWD"
Enabled=0

Configure Your CPS
Basic:

Step 1: Create a contact. ie:31665
Step 2: Create a Channel and put your new contact in it
Step 3: Put your new channel in a zone.

A) TG31665 Raw Mode. Create a contact for 31665 as indicated above
Create a contact for 9001 to 9006 as indicated above
B) TG31665 7 Digit Mode. Create a contact for 4031665 as indicated above, to access 31665 on network 4. 1031000 will access 31000 on Network 1 BM
C) TG31665 8 Dgit Mode . Create a contact for 14031665 as indicated above, to access 31665 on network 4. 11031000 will access 31000 on Network 1 BM
With any Network locked, 3012345 will access 7 digit talk group (3012345) on locked network

If you have trouble with this, I will be happy to help.
Contact [email protected]

PS Jonatan G4KLX has requested permission to use some of my mods his DMRGateway
Post Reply