Help needed with TGRewrite commands

Help with DMR issues
Post Reply
W8DSB
Posts: 30
Joined: Thu Jun 14, 2018 5:54 pm

Help needed with TGRewrite commands

Post by W8DSB »

Hi, and thanks for reading. I have the below network setup, the problem is the TGRewrite's do not seem to do what I think they should do. If you transmit on TG#310195 on slot 1 or 2 it should go out on slot 2. If you transmit on TG#311887 on slot 1 or 2 it should go out on slot 1. All other traffic should go out Network 1. Am I missing something?


[DMR Network 4]
Enabled=1
Address=w8lrk.ddnsfree.com
Port=62033
Password="secret"
Debug=0
Id=3126781
Name=LARK
TGRewrite1=1,310195,2,310195,1
TGRewrite2=2,310195,2,310195,1
TGRewrite3=2,311887,1,311887,1
TGRewrite4=1,311887,1,311887,1
WB3IHY
Posts: 31
Joined: Wed Mar 20, 2019 3:29 pm

Re: Help needed with TGRewrite commands

Post by WB3IHY »

W8DSB wrote: Sat Jul 11, 2020 11:08 pm All other traffic should go out Network 1. Am I missing something?
As long as you also have:

[DMR Network 1]
PassAllTG=1
PassAllTG=2

Then I'd say, yes, that's what you should expect.
VK3HAW
Posts: 39
Joined: Sat Dec 14, 2019 3:31 am

Re: Help needed with TGRewrite commands

Post by VK3HAW »

I think you will only be able to hear TG310195 on TS1, and TG311887 on TS2. ....I think.
W8DSB
Posts: 30
Joined: Thu Jun 14, 2018 5:54 pm

Re: Help needed with TGRewrite commands

Post by W8DSB »

Well this kinda whats happening:

TGRewrite1=1,310195,2,310195,1 <== I thought this should rewrite any 310195 on slot one to slot two and put on network 4
TGRewrite2=2,310195,2,310195,1 <== I thought this should rewrite any 310195 on slot two (from above or RF) to slot two on network 4
TGRewrite3=2,311887,1,311887,1
TGRewrite4=1,311887,1,311887,1

It appears to NOT rewrite the RF to NET as I thought but it is rewriting the NET to RF the wrong way. I found this in another tread:

TGRewrite=fromSlot,fromTG,toSlot,toTG,range

But it does not say which direction it is rewriting, I ASSUMED RF to NET and also it does not say what range does.
VK3HAW
Posts: 39
Joined: Sat Dec 14, 2019 3:31 am

Re: Help needed with TGRewrite commands

Post by VK3HAW »

W8DSB wrote: Sun Jul 12, 2020 12:40 am Well this kinda whats happening:

TGRewrite1=1,310195,2,310195,1 <== I thought this should rewrite any 310195 on slot one to slot two and put on network 4
TGRewrite2=2,310195,2,310195,1 <== I thought this should rewrite any 310195 on slot two (from above or RF) to slot two on network 4
TGRewrite3=2,311887,1,311887,1
TGRewrite4=1,311887,1,311887,1

It appears to NOT rewrite the RF to NET as I thought but it is rewriting the NET to RF the wrong way. I found this in another tread:

TGRewrite=fromSlot,fromTG,toSlot,toTG,range

But it does not say which direction it is rewriting, I ASSUMED RF to NET and also it does not say what range does.
From the Net to RF, it will go through the Rewrite rules sequentially until one is triggered
From the Net, TG310195/TS2 will trigger TGRewrite1 and it will broadcast on TS1.
From the Net, TG311887/TS1 will trigger TGRewrite 3 and it will be broadcast on TS2

TGRewrite1=1,RF,2,NET,1
From RF it goes >>>> to NET
From NET it goes <<<< to RF, or backwards

Try:
TGRewrite1=2,310195,2,310195,1
TGRewrite2=1,310195,2,310195,1
TGRewrite3=1,311887,1,311887,1
TGRewrite4=2,311887,1,311887,1
but it will always only be broadcast on 1 TS.

It will not consider which TS was used from RF, only which rule is triggered first. If you put range as 3 it will rewrite TG's 310195 to 310197 according to the rule.
W8DSB
Posts: 30
Joined: Thu Jun 14, 2018 5:54 pm

Re: Help needed with TGRewrite commands

Post by W8DSB »

Thank You, I will give it a try and report
VK3HAW
Posts: 39
Joined: Sat Dec 14, 2019 3:31 am

Re: Help needed with TGRewrite commands

Post by VK3HAW »

You could add a Receive Group with both time slots to the channel and then you would be able to hear it. Otherwise use Digital Monitor/Promiscuous for the channel.

Edit: Ooops, if you are running a simplex hotspot, RF will only be on TS2, so I am not quite sure what your server does with time slots, maybe it puts all TS's on the server side, to TS2 on gateway side (or not). Duplex hotspot, no problem.
W8DSB
Posts: 30
Joined: Thu Jun 14, 2018 5:54 pm

Re: Help needed with TGRewrite commands

Post by W8DSB »

I am the president of a local club we have built maybe 200 hotspots over the last 2 to 3 years. Most of them are simplex but we do have some duplex ones.

The traffic coming in is from a HBlink hub so we can control what port and slot its on, its just the outgoing traffic I am trying to control. What you laid out yesterday works great.

Simplex hotspots are always on slot 2 but we can reroute what TG they hear by what port they connect to....

If your interested I have a graphic map at http://www.w8lrk.org/projects/2020_07_02_DMR.pdf

Soon to be updated with the new information
VK3HAW
Posts: 39
Joined: Sat Dec 14, 2019 3:31 am

Re: Help needed with TGRewrite commands

Post by VK3HAW »

Great work, well done.

Cheers
Steve, VK3HAW
Post Reply