From fc161939568f1331ff9e15652daafa109dcd99f0 Mon Sep 17 00:00:00 2001 From: Steve Zingman N4IRS Date: Sun, 6 Dec 2015 17:27:28 -0500 Subject: [PATCH 1/5] DMRGateway Install script --- dmr_install | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ get_ids.sh | 8 ++++++++ 2 files changed, 64 insertions(+) create mode 100755 dmr_install diff --git a/dmr_install b/dmr_install new file mode 100755 index 0000000..61f4223 --- /dev/null +++ b/dmr_install @@ -0,0 +1,56 @@ +#! /bin/sh + +################################################# +# # +# Create directory structure for DMRlink # +# # +################################################# + +# Minor updates to DIAL +rm /etc/asterisk/firsttime +cd /etc/asterisk/ +wget https://github.com/N4IRS/AllStar/raw/master/configs/dnsmgr.conf +wget https://github.com/N4IRS/AllStar/raw/master/configs/modules.conf + +# Checkout DMRlink and put it in /opt +cd /srv +git clone https://github.com/N4IRS/DMRlink +cd /srv/DMRlink/ +./mk_dmrlink + +# setup boot for DV3000 +cd /srv +systemctl stop getty@ttyAMA0.service +systemctl disable getty@ttyAMA0.service +apt-get install -y sudo + +# Setup WiringPi +git clone git://git.drogon.net/wiringPi +cd wiringPi/ +./build +cd .. + +# Setup AMBEserverGPIO +git clone https://github.com/dl5di/OpenDV.git +mv OpenDV/DummyRepeater/DV3000 DV3000 +rm -rf OpenDV +cd DV3000/ +make clean +make +make install +make init-install +python AMBEtest3.py +cd /etc/init.d +update-rc.d AMBEserverGPIO start 50 2 3 4 5 + +# Setup DMRGateway +cd /srv +git clone https://github.com/N4IRS/DMRGateway.git +cd DMRGateway/ +# ./install.sh +cp config.txt /boot +cp cmdline.txt /boot + +# reboot + + diff --git a/get_ids.sh b/get_ids.sh index 20c1b9d..e8984cd 100644 --- a/get_ids.sh +++ b/get_ids.sh @@ -1,3 +1,11 @@ +#! /bin/sh + +################################################# +# # +# Create directory structure for DMRlink # +# # +################################################# + # To provide more readable output from DMRlink with current subscriber and repeater IDs, we download the CSV files from DMR-MARC # If you are going to use this in a cron task, don't run it more then once a day. # It might be good to find alternale a source as a backup. From 818b2a353636d5b565355b75e9a0d733971bf648 Mon Sep 17 00:00:00 2001 From: Steve Zingman N4IRS Date: Sun, 6 Dec 2015 17:45:32 -0500 Subject: [PATCH 2/5] remove overwrite of modules.conf --- dmr_install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dmr_install b/dmr_install index 61f4223..8797c33 100755 --- a/dmr_install +++ b/dmr_install @@ -7,10 +7,10 @@ ################################################# # Minor updates to DIAL -rm /etc/asterisk/firsttime +# rm /etc/asterisk/firsttime cd /etc/asterisk/ wget https://github.com/N4IRS/AllStar/raw/master/configs/dnsmgr.conf -wget https://github.com/N4IRS/AllStar/raw/master/configs/modules.conf +# wget https://github.com/N4IRS/AllStar/raw/master/configs/modules.conf # Checkout DMRlink and put it in /opt cd /srv From c1abb7e705c83fdc88726226b07eb8c920b7a0d6 Mon Sep 17 00:00:00 2001 From: Steve Zingman N4IRS Date: Sun, 6 Dec 2015 21:00:06 -0500 Subject: [PATCH 3/5] Fix DMRGateway install --- dmr_install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dmr_install b/dmr_install index 8797c33..9f8bc41 100755 --- a/dmr_install +++ b/dmr_install @@ -7,7 +7,7 @@ ################################################# # Minor updates to DIAL -# rm /etc/asterisk/firsttime +# rm /etc/asterisk/firsttime cd /etc/asterisk/ wget https://github.com/N4IRS/AllStar/raw/master/configs/dnsmgr.conf # wget https://github.com/N4IRS/AllStar/raw/master/configs/modules.conf @@ -16,7 +16,7 @@ wget https://github.com/N4IRS/AllStar/raw/master/configs/dnsmgr.conf cd /srv git clone https://github.com/N4IRS/DMRlink cd /srv/DMRlink/ -./mk_dmrlink +./mk_dmrlink # setup boot for DV3000 cd /srv @@ -47,7 +47,7 @@ update-rc.d AMBEserverGPIO start 50 2 3 4 5 cd /srv git clone https://github.com/N4IRS/DMRGateway.git cd DMRGateway/ -# ./install.sh +./install.sh cp config.txt /boot cp cmdline.txt /boot From 9776784fb2e26a75bff48b158afd7e9bbe6acce7 Mon Sep 17 00:00:00 2001 From: Steve Zingman N4IRS Date: Sun, 6 Dec 2015 21:38:30 -0500 Subject: [PATCH 4/5] Remove old .csv --- mk_dmrlink | 1 - 1 file changed, 1 deletion(-) diff --git a/mk_dmrlink b/mk_dmrlink index b5f6dd9..4dcbf8d 100755 --- a/mk_dmrlink +++ b/mk_dmrlink @@ -41,7 +41,6 @@ rm bitstring-3.1.3.zip # Put common files in /opt/dmrlink cp /srv/DMRlink/subscriber_ids.csv /opt/dmrlink -cp /srv/DMRlink/subscriber_idsxxx.csv /opt/dmrlink cp /srv/DMRlink/talkgroup_ids.csv /opt/dmrlink cp /srv/DMRlink/peer_ids.csv /opt/dmrlink cp /srv/DMRlink/get_ids.sh /opt/dmrlink From 047963cd93f66a8de675458e4524cad5552fc3f2 Mon Sep 17 00:00:00 2001 From: Steve Zingman N4IRS Date: Sun, 6 Dec 2015 22:16:39 -0500 Subject: [PATCH 5/5] Expand examples --- dmrlink_SAMPLE.cfg | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/dmrlink_SAMPLE.cfg b/dmrlink_SAMPLE.cfg index 0d73f73..5bf7482 100644 --- a/dmrlink_SAMPLE.cfg +++ b/dmrlink_SAMPLE.cfg @@ -58,7 +58,7 @@ PRINT_PEERS_INC_FLAGS: 0 [LOGGER] LOG_FILE: /var/log/dmrlink/dmrlink.log LOG_HANDLERS: file -LOG_LEVEL: WARNING +LOG_LEVEL: INFO LOG_NAME: DMRlink @@ -69,7 +69,7 @@ LOG_NAME: DMRlink # [NAME] The name you want to use to identify the IPSC instance (use # something better than "IPSC1"...) # ENABLED: Should we communiate with this network? Handy if you need to -# shut one down but don't want to lose the config +# shut one down but don't want to lose the config # RADIO_ID: This is the radio ID that DMRLink should use to communicate # IP: This is the local IPv4 address to listen on. It may be left blank if you do not need or wish to specify. It is mostly @@ -105,10 +105,10 @@ LOG_NAME: DMRlink # ...Repeat the block for each IPSC network to join. # -[IPSC1] +[SAMPLE_PEER] ENABLED: True RADIO_ID: 12345 -IP: 4.3.2.1 +IP: 127.0.0.1 PORT: 50000 ALIVE_TIMER: 5 MAX_MISSED: 20 @@ -128,3 +128,31 @@ AUTH_ENABLED: True AUTH_KEY: 1A2B3C MASTER_IP: 1.2.3.4 MASTER_PORT: 50000 + + +[SAMPLE_MASTER] +ENABLED: False +RADIO_ID: 54321 +IP: 192.168.1.1 +PORT: 50000 +ALIVE_TIMER: 5 +MAX_MISSED: 20 +PEER_OPER: True +IPSC_MODE: DIGITAL +TS1_LINK: True +TS2_LINK: True +CSBK_CALL: False +RCM: True +CON_APP: True +XNL_CALL: False +XNL_MASTER: False +DATA_CALL: True +VOICE_CALL: True +MASTER_PEER: True +AUTH_ENABLED: True +AUTH_KEY: 1A2B3C +# Below not used for a Master +# MASTER_IP: 1.2.3.4 +# MASTER_PORT: 50000 + +