Page 1 of 1

Expand Talkgroup Field one more digit

Posted: Tue Dec 17, 2024 3:00 pm
by VE3RD
My version of the DMRGateway-6, widely used on TGIF, uses 8 digits as follows
CPS 14031665 translates to 31665 by the DMRGateway-6
This allows us the use of 7 digit talk groups with an extra rule
TGRewrite0=2,14000001,2,1,999999 //Regular handling
TGRewrite1=2,1000001,2,1000001,5599999 // Handles 7 digit TG's

11 precedes Net1
12 precedes Net2
etc
I also have a network 6 which works up to 2^24=16,777,216 (less a few) using 16 as the network switch

In the Admin Page, TGIF Manager, the Talk Group Number will not allow the full 8 digits

My request is to have this field expanded to allow 8 digits

Thankyou
Phil VE3RD

Re: Expand Talkgroup Field one more digit

Posted: Tue Dec 17, 2024 9:53 pm
by KN2TOD
Simple enuff fix:

Code: Select all

 160 │ <tr>
 161 │   <td><input type="text" name="tgifNumber" size="10" maxlength="7" /></td>   <--------
 162 │   <td><input type="radio" name="tgifSlot" value="1" />TS1 <input type="radio" name="tgifSlot" value="2" checked="checked" />TS2</td>
 163 │   <td><input type="radio" name="tgifAction" value="LINK" />Link <input type="radio" name="tgifAction" value="UNLINK" checked="checked" />UnLink</td>
 164 │   <td><input type="submit" value="Modify Static" name="tgifSubmit" /></td>
 165 │ </tr>
Run this patch and see if it fixes your problem:

Code: Select all

rpi-rw
sudo sed -i 's/maxlength="7"/maxlength="8"/g' /var/www/dashboard/mmdvmhost/tgif_manager.php
Curious to know if you see any down-stream consequences making this change.

Re: Expand Talkgroup Field one more digit

Posted: Wed Dec 18, 2024 7:44 pm
by VE3RD
This patch works GREAT!
Thankyou

I will add this to my install script for my DMRGateway-6

Phil VE3RD