DIR Return Create A Forum - Home
---------------------------------------------------------
TGIF.Network
HTML https://tgifnetwork.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: DMR Gateway (beta)
*****************************************************
#Post#: 4557--------------------------------------------------
DMRGateway-4 Installation Simplified
DIR By: VE3RD
Date: June 29, 2021, 8:26 am
---------------------------------------------------------
The DMRGateway-4 now runs in three different modes, Basic
Mode(RF31665=TG31665), 8 Digit Translation
Mode(RF14031665=TG31665) and 7 Digit Translation
Mode(RF4031665=TG31665). Before proceeding with the install,
MAKE A DECISION... What mode do you want? Changing modes is as
easy as re-running the install script and making a choice. This
version of DMRGateway will ONLY run in one mode.
CAUTION:
Do NOT cut and paste from/to a windows panel connection in the
Pi-Star Dashboard. Windows adds control characters to the end of
each line when you cut and paste. and this will cause the
DMRGateway to fail.
Before starting this Install, do the pi-star configuration to
start the DMRGateway. ie select only DMR Mode, and in the DMR
Configuration select DMRGateway as the master server.
[b][b][New Installation] [/b][/b]
Type the following, after logging into pi-star, with putty, in
ssh mode
rpi-rw
sudo su
git clone
HTML https://github.com/ve3rd/DMRGateway-4.git
cd DMRGateway-4
make clean
[Update Existing DMRGateway-4 Installation]
Type the following, after logging into pi-star, with putty, in
ssh mode
rpi-rw
sudo su
cd DMRGateway-4
git pull
//This should update all the files in DMRGateway-4
make clean
// Run the ./GWConfig.sh script as described under Configuration
below
[Configuration]
Run the script
./GWConfig.sh #
where # is a hotspot number from 0 to 9, This is used to set
the first character of the extended id used in each network
If you only have one hotspot, use zero. The second character of
the extended id will be the network number.
Next you will get an instruction page as follows
----------------------------------------------------------------------------------------------------
BASIC INSTRUCTIONS
Menu Options
Item 1:
This will create and/or edit a password file. (Required
for a new Install)
Item 2, 3 and 4 Common:
This will overwrite the /etc/dmrgateway file with a
default version and
will compile a new Binary if required and
will install the Binary DMRGateway File
Item 2
will proceed with a limited configuration Using Basic
Mode
In the Radio CPS use basic 31665 for 31665 on the Server
Key on Tg 9001 to 9006 to select Network 1 to 6
This mode will handle 7 digit talk groups
Item 3
will proceed with a limited configuration Using 8 Digit
Translation Mode
In the Radio CPS use 14031665 for TG 31665 on Network 4
etc.
This mode will handle 7 digit talk groups
Item 4
will proceed with a limited configuration Using 7 Digit
Translation Mode
In the Radio CPS use 4031665 for TG 31665 on Network 4
etc
This mode will NOT handle 7 digit talk groups
Item 5:
will Ignore the existing Configuration File and
will Compile a new Binary if Required and
will Install the Binary File
Item 6:
will Restore the Original DMRGateway from
/usr/local/bin/DMRGateway.orig
( If it exists )
Press any key to Continue
------------------------------------------------------------------------------
Press any key and you will get the actual menu where you will
make your selection
A new installation will require selecting option 1 and entering
your appropriate passwords and enabling the networks you want to
use
You will be returned to the menu where you select Options 2,3,or
4
The script will then grab the pertinent information from
/etc/mmdvmhost and fill in /etc/dmrgateway
[It may miss a item or two of non essential data, so a quick
check with nano may be appropriate)
The script will restart dmrgateway and mmdvmhost and it should
come up running in the selected mode
The script may be re-run at any time to change the desired mode.
You should be able to configure DMR+ and BM via the Pi-Star
Dashboard Configuration Page
#Post#: 4788--------------------------------------------------
Re: DMRGateway-4 Installation Simplified
DIR By: ka4udx
Date: December 16, 2021, 7:29 am
---------------------------------------------------------
With DMRGATEWAY-4 the settings were kind of done manually from
BM. Basically the “Name” and “Address” settings have to match
(be valid) something in the /usr/local/etc/DMR_Hosts.txt
The network name showed up as the IP Address not BM_3104
whatever name. The BM Manager (API) to disconnect didn’t show up
at all. NOTE: You have to get a BM (API) key code from your Self
Care on brandmeister.network site. You have to enter it in
Configuration > Expert > BM API and click APPLY CHANGES to have
it work. The TGIF manager works by default without having to do
this kind of thing.
In /var/www/dashboard/mmdvmhost there is bm_manager.php. It (and
tgif_manager) is supposed to get loaded by the
/var/www/index.php if the one loaded is the
/var/www/admin/index.php, only. It’s a symbolic link anyway.
In bm_manager.php (see below) it indicates it will check
/usr/local/etc/DMR_Hosts.txt (light bulb just came on.) For the
most part in the hosts file they are not using IP Addresses.
There are using full domain names. So the name they use and the
web hostname needs to match what’s in that hosts file. ONCE DONE
and PI-STAR restarted – the name and the BM Manager shows up on
HTML the http://pi-star/admin/ web page. Both TGIF and BM manages
show up. Also the name for the BM network (along with the other
two) shows up.
//Load the dmrgateway config file
$dmrGatewayConfigFile = '/etc/dmrgateway';
if (fopen($dmrGatewayConfigFile,'r')) { $configdmrgateway =
parse_ini_file($dmrGatewayConfigFile, true); }
// Get the current DMR Master from the config
$dmrMasterHost = getConfigItem("DMR Network", "Address",
$mmdvmconfigs);
if ( $dmrMasterHost == '127.0.0.1' ) {
$dmrMasterHost = $configdmrgateway['DMR Network
1']['Address'];
if (isset($configdmrgateway['DMR Network 1']['Id']))
{ $dmrID = $configdmrgateway['DMR Network 1']['Id']; }
} elseif (getConfigItem("DMR", "Id", $mmdvmconfigs)) {
$dmrID = getConfigItem("DMR", "Id", $mmdvmconfigs);
} else {
$dmrID = getConfigItem("General", "Id", $mmdvmconfigs);
}
// Store the DMR Master IP, we will need this for the JSON
lookup
$dmrMasterHostIP = $dmrMasterHost;
// Make sure the master is a BrandMeister Master
$dmrMasterFile = fopen("/usr/local/etc/DMR_Hosts.txt", "r");
while (!feof($dmrMasterFile)) {
$dmrMasterLine = fgets($dmrMasterFile);
$dmrMasterHostF = preg_split('/\s+/',
$dmrMasterLine);
if ((strpos($dmrMasterHostF[0], '#') === FALSE)
&& ($dmrMasterHostF[0] != '')) {
if ($dmrMasterHost == $dmrMasterHostF[2])
{ $dmrMasterHost = str_replace('_', ' ', $dmrMasterHostF[0]); }
}
*****************************************************
Page 1 of 1