How to add and use talkgroup rewrites for DMR Gateway
*
To use more than one DMR network you need to tell the hotspot what network you want to use, this is done by using talk group rewrites
rewrites are talk groups that have a prefix routing number that corresponds with the network, for example lets say you want to use DMR network #5  it would 500XXXX
3105 is used on BrandMeister, TGIF, as well so how do you route the call to the correct network below are some examples of network rewrites

To send the call to TGIF in network location #4 you will add 4 at the beginning and some extra zeros after than for padding to equal 7 digits, all rewrites must equal 7 digits

So to route 31665 TGIF Main to TGIF the talk group rewrite  would be 4031665
to route this call to network 5
the talk group rewrite  would be 500XXXX
*
NOTE: If you're running the WPSD on your hotspot some of these rewrites are not on the same network location for example TGIF is on network location 5 and all the TGIF rewrites start with 5

Below is an example of the talk group rewites for TGIF DMR network to add that network to my hotspot  I'm using 4 as the routing prefix. So now when I use talk group 4003105  my hotspot will  know I want to use the TGIF 3105  located in Network location #4
Red Text indicates where you add your data

[DMR Network 4]
Enabled=1
Address=tgif.network
Port=62031
Name=TGIF_Network
Debug=0
Location=4
Id=1234567
Password="your TGIF passkey"
TGRewrite1=1,4000001,1,1,999999
TGRewrite2=2,4000001,2,1,999999
SrcRewrite1=1,1,1,4000001,999999
SrcRewrite2=2,1,2,4000001,999999
* Below is an example ofthe talk group rewites for  network #5  to add that network to my hotspot  I'm using 5 as the routing prefix.  So now when I use talk group 5003105 my hotspot will  know I want to use the 50xxxxx I located in Network location #5
Red Text indicates where you add your data

[DMR Network 5]
Enabled=1
Address=
Port=62031
TGRewrite0=2,5,2,9,1
PCRewrite0=2,54000,2,4000,100
Password="passw0rd"
Id=1234567
Debug=0
Location=5
Name=
PCRewrite1=1,5009990,1,9990,1
PCRewrite2=2,5009990,2,9990,1
PCRewrite3=1,5000001,1,1,999999
PCRewrite4=2,5000001,2,1,999999
TypeRewrite1=1,5009990,1,9990
TypeRewrite2=2,5009990,2,9990
TGRewrite1=1,5000001,1,1,999999
TGRewrite2=2,5000001,2,1,999999
SrcRewrite1=1,9990,1,5009990,1
SrcRewrite2=2,9990,2,5009990,1
SrcRewrite3=1,1,1,5000001,999999
SrcRewrite4=2,1,2,5000001,999999
Options="PASS=Add Small Password"

More examples of talkgroup rewrites can be found here




After you have added your data its a simple matter of copy and pasting this text into your hotspot in the Full Edit: DMR GW
using this url to access that configuration page
http://pi-star.local/admin/expert/fulledit_dmrgateway.php


*


Here's an example of some TGIF talk group rewrites

4000870

TGIF AR RTable

4006222

TGIF Larys Chat

4006282

TGIF NA TB

4031656

TGIF Am-Link

4031665

TGIF Main

4031226

TGIF Worldwide

4009050

TGIF EC REF

4043389

TGIF SE-Link

4000320

TGIF QN Main

4000196

TGIF QN Tech

4009990

TGIF Parrot

4004000

TGIF Disc


Note you need to get creative on the talk group and channel name to fit within the 16 charaters limitation

*

Understanding how to create rewrite rules for the DMR Gateway init script

Simplified DMR Gateway Talkgroup rewrites
For Simplex Use

Net 2     DMR+IPSC2
TGRewrite=2,8000001,2,1,999999
PCRewrite=2,8000001,2,1,999999 - send RF out to server
SrcRewrite=2,1,2,8000001,999999 - receive from server and send out RF

Net 3 QuadNet DMR
TGRewrite=2,7000001,2,1,999999
PCRewrite=2,7000001,2,1,999999 - send RF out to server
SrcRewrite=2,1,2,7000001,999999 - receive from server and send out RF

Net 4 TGIF 8 digit Talkgroup rewrites for the use of 7 digit DMR ID private call
TGRewrite=2,10000001,2,1,99999999
PCRewrite=2,10000001,2,1,99999999
SrcRewrite=2,1,2,10000001,99999999

Net 5 
TGRewrite=2,5000001,2,1,999999
PCRewrite=2,5000001,2,1,999999 - send RF out to server
SrcRewrite=2,1,2,5000001,999999 - receive from server and send out RF



Explanation of TGRewrite=2,5000001,2,1,999999
2 - RF Time Slot
5000001 - RF - First TG of a series
2 - Network Time Slot
1 - Network - First TG of a series
999999- quantity of tg's in the series
(ie RF 5000310 translates to 310 on Net5). The return on Net5 310 translated back to radio 5000310)

The TGRewrite rule is bi-directional
The PCRewrite rule is not bi-directional so you need two rules for private call

PCRewrite=2,5000001,2,1,999999 - send RF out to server
SrcRewrite=2,1,2,5000001,999999 - receive from server and send out


TGIF rewrites to accommodate the new private call feature recently added to the server
Using 8 digit talkgroup rewrites

 So for TGIF it would look like this for simplex or duplex
PCRewrite1=1,10000001,1,1,99999999     (TS-1) Private Call For 7 digit TG TGIF
PCRewrite2=2,10000001,2,1,99999999     (TS-2) Private Call For 7 digit TG TGIF

TypeRewrite1=1,10000001,1,99999999     (TS-1)
TypeRewrite2=2,10000001,2,99999999     (TS-2)

TGRewrite1=1,10000001,1,1,99999999     (TS-1)
TGRewrite2=2,10000001,2,1,99999999     (TS-2)

SrcRewrite1=1,1,1,10000001,99999999     (TS-1) Source from server
SrcRewrite2=2,1,2,10000001,99999999     (TS-2) Source from server

Don't feel comfortable doing it?, let me do it



donate to the soup  no soup for you



email the soup for help

*

Free Website Hit Counter