Switch Between BM and TGIF


Steve N4IRS
 

when you send a macro from DVSM, DMR, YSF, *13 *99 etc, you should see it in the AB log.

On 11/25/19 10:59 PM, Tom Corcoran wrote:
here is dump of analog log
--
Tom VE3NY


Ke4tlc
 
Edited

 

Thanks for the efforts of Jeff Lehman N8ACL, Dion Brown KE4TLC, and Jim Lathan W4JLP

 

Files located in /opt/MMDVM_Bridge

MMDVM_Bridge.ini

MMDVM_Bridge_BM.ini ß Brandmeister (copy of original MMDVM_Bridge.ini)

MMDVM_Bridge_TGIF.ini ß TGIF (copy of original MMDVM_Bridge.ini and change under section [DMR Network] Address=84.232.5.113 to Address=tgif.network, save file and close.

 

Scripts: Create these files in the /opt/Analog_Bridge

BM_chng.sh ß Changes MMDVM Bridge to Brandmeister

TGIF_chng.shß Changes MMDVM Bridge to TGIF

 

BM_chng.sh

#! /bin/bash

cp /opt/MMDVM_Bridge/MMDVM_Bridge_BM.ini  /opt/MMDVM_Bridge/MMDVM_Bridge.ini

service mmdvmb restart

 

TGIF_Chng.sh

#! /bin/bash

cp /opt/MMDVM_Bridge/MMDVM_Bridge_TGIF.ini  /opt/MMDVM_Bridge/MMDVM_Bridge.ini

service mmdvmb restart

 

Change Mod of BM_chng.sh and TGIF_chng.sh

                chmod 755 /opt/MMDVM_Bridge/BM_chng.sh

chmod 755 /opt/MMDVM_Bridge/TGIF_chng.sh

 

Edit /opt/Analog_Bridge/dvsm.ini and add the following macros, see example below:

Note: If you cannot access a keyboard on your device screen, use keypad numbers, i.e. *72.

AB=/opt/Analog_Bridge/BM_chng.sh dmr.ini

AC=/opt/Analog_Bridge/TGIF_chng.sh dmr.ini

 

So to ensure all is applied, restart Raspberry Pi.


Eddie
 

Wow fantastic work gentlemen, will look for everyone on TGIF soon.

Vy 73-Eddie, KQ6K 

On Tue, Nov 26, 2019 at 9:16 PM Ke4tlc <ke4tlc@...> wrote:

 

Thanks for the efforts of Jeff Lehman N8ACL, Dion Brown KE4TLC, and Jim Lathan W4JLP

 

Files located in /opt/MMDVM_Bridge

MMDVM_Bridge.ini

MMDVM_Bridge_BM.ini ß Brand Meister (copy of original MMDVM_Bridge.ini)

MMDVM_Bridge_TGIF.ini ß TGIF (copy of original MMDVM_Bridge.ini and change under section [DMR Network] Address=84.232.5.113 to Address=tgif.network, save file and close.

 

Scripts: Create these file in the /opt/Analog_Bridge

BM_chng.sh ß Changes MMDVM Bridge to Brand Meister

TGIF_chng.shß Changes MMDVM Bridge to TGIF

 

BM_chng.sh

#! /bin/bash

cp /opt/MMDVM_Bridge/MMDVM_Bridge_BM.ini  /opt/MMDVM_Bridge/MMDVM_Bridge.ini

service mmdvmb restart

 

TGIF_Chng.sh

#! /bin/bash

cp /opt/MMDVM_Bridge/MMDVM_Bridge_TGIF.ini  /opt/MMDVM_Bridge/MMDVM_Bridge.ini

service mmdvmb restart

 

Change Mod of BM_chng.sh and TGIF_chng.sh

                chmod 755 /opt/MMDVM_Bridge/BM_chng.sh

chmod 755 /opt/MMDVM_Bridge/TGIF_chng.sh

 

Edit /opt/Analog_Bridge/dvsm.ini and add the following macros, see example below:

Note: If you cannot access a keyboard on your device screen, use keypad numbers, i.e. *72.

AB=/opt/Analog_Bridge/BM_chng.sh dmr.ini

AC=/opt/Analog_Bridge/TGIF_chng.sh dmr.ini

 

So to ensure all is applied, restart Raspberry Pi.


Tom Corcoran
 

Switching macros working great. Also enabled switch to the QRM network. Tnx for collective efforts.
--
Tom VE3NY


Steve N4IRS
 

I'm glad to see the macro system is allowing you to do what you want to do. As Mike and I answer questions in the threads we find more about what people want to do. The best example of this is dvswitch.sh and the updated mvsm.macro.

Have fun guys.
Steve N4IRS


William WY7WL
 
Edited

This might be somewhere else updated, but I wanted to clean up these directions for anyone else..... (from post 5452)

 

Files located in /opt/MMDVM_Bridge

MMDVM_Bridge.ini

MMDVM_Bridge_BM.ini ß Brandmeister (copy of original MMDVM_Bridge.ini)

MMDVM_Bridge_TGIF.ini ß TGIF (copy of original MMDVM_Bridge.ini and change under section [DMR Network] Address=84.232.5.113 to Address=tgif.network, save file and close.
Make sure you update your password for MMDVM_Bridge_TGIF.ini.... TGIF is still passw0rd.. BM requires personal pw now... 

 

Scripts: Create these files in the /opt/Analog_Bridge

BM_chng.sh ß Changes MMDVM Bridge to Brandmeister

TGIF_chng.shß Changes MMDVM Bridge to TGIF

 

BM_chng.sh

#! /bin/bash

cp /opt/MMDVM_Bridge/MMDVM_Bridge_BM.ini  /opt/MMDVM_Bridge/MMDVM_Bridge.ini

service mmdvmb restart < replaced with line below 

systemctl restart mmdvm_bridge.service

 

TGIF_Chng.sh < = TGIF_chng.sh

#! /bin/bash

cp /opt/MMDVM_Bridge/MMDVM_Bridge_TGIF.ini  /opt/MMDVM_Bridge/MMDVM_Bridge.ini

service mmdvmb restart < replaced with line below 
systemctl restart mmdvm_bridge.service

 

Change Mod of BM_chng.sh and TGIF_chng.sh

                chmod 755 /opt/MMDVM_Bridge/BM_chng.sh

chmod 755 /opt/MMDVM_Bridge/TGIF_chng.sh

These are pointing to the wrong directory should be:
chmod 755 /opt/Analog_Bridge/BM_chng.sh

chmod 755 /opt/Analog_Bridge/TGIF_chng.sh

 

Edit /opt/Analog_Bridge/dvsm.ini and add the following macros, see example below:

My file was dvsm.macro not dvsm.ini

Note: If you cannot access a keyboard on your device screen, use keypad numbers, i.e. *72.

AB=/opt/Analog_Bridge/BM_chng.sh dmr.ini

AC=/opt/Analog_Bridge/TGIF_chng.sh dmr.ini

I used these two lines as per Steve's advice earlier in thread 

13 =    /opt/Analog_Bridge/TGIF_chng.sh

 

14 =    /opt/Analog_Bridge/BM_chng.sh

 

So to ensure all is applied, restart Raspberry Pi.


Steve N4IRS
 

Bill,
Thanks fir this but we no longer have to restart MMDVM_Bridge to switch servers. it's now a simple tune command.
/opt/MMDVM_Bridge/dvswitch.sh tune password@host:port:options.

Steve N4IRS

On 12/28/20 2:46 PM, William KC3CPO wrote:
This might be somewhere else updated, but I wanted to clean up these directions for anyone else..... (from post 5452)

 

Files located in /opt/MMDVM_Bridge

MMDVM_Bridge.ini

MMDVM_Bridge_BM.ini ß Brandmeister (copy of original MMDVM_Bridge.ini)

MMDVM_Bridge_TGIF.ini ß TGIF (copy of original MMDVM_Bridge.ini and change under section [DMR Network] Address=84.232.5.113 to Address=tgif.network, save file and close.
Make sure you update your password for MMDVM_Bridge_TGIF.ini.... TGIF is still passw0rd.. BM requires personal pw now... 

 

Scripts: Create these files in the /opt/Analog_Bridge

BM_chng.sh ß Changes MMDVM Bridge to Brandmeister

TGIF_chng.shß Changes MMDVM Bridge to TGIF

 

BM_chng.sh

#! /bin/bash

cp /opt/MMDVM_Bridge/MMDVM_Bridge_BM.ini  /opt/MMDVM_Bridge/MMDVM_Bridge.ini

service mmdvmb restart < replaced with line below 

systemctl restart mmdvm_bridge.service

 

TGIF_Chng.sh < = TGIF_chng.sh

#! /bin/bash

cp /opt/MMDVM_Bridge/MMDVM_Bridge_TGIF.ini  /opt/MMDVM_Bridge/MMDVM_Bridge.ini

service mmdvmb restart < replaced with line below 
systemctl restart mmdvm_bridge.service

 

Change Mod of BM_chng.sh and TGIF_chng.sh

                chmod 755 /opt/MMDVM_Bridge/BM_chng.sh

chmod 755 /opt/MMDVM_Bridge/TGIF_chng.sh

This are pointing to the wrong directory should be:
chmod 755 /opt/Analog_Bridge/BM_chng.sh

chmod 755 /opt/Analog_Bridge/TGIF_chng.sh

 

Edit /opt/Analog_Bridge/dvsm.ini and add the following macros, see example below:

My file for macros dvsm.macro not dvsm.ini

Note: If you cannot access a keyboard on your device screen, use keypad numbers, i.e. *72.

AB=/opt/Analog_Bridge/BM_chng.sh dmr.ini

AC=/opt/Analog_Bridge/TGIF_chng.sh dmr.ini

I used these two lines as per Steve's advice earlier in thread 

13 =    /opt/Analog_Bridge/TGIF_chng.sh

 

14 =    /opt/Analog_Bridge/BM_chng.sh

 

So to ensure all is applied, restart Raspberry Pi.



William WY7WL
 

Oh, Whoops. I'll try to figure this out now : )


G4WXN@...
 

Tom

I use some scripts to switch modes.

I keep copies of the config files on my desktop, and then copy them over as needed.

They are crude but work.

Once the app has registered do *00 in the dialer and send, this will invoke a macro which you can then select the mode required and the script it invokes copies over a mode specific mmdvd_bridge.ini file and restarts the service.

I have attached examples, hope it's useful
--
Derek

G4WXN


William WY7WL
 

Tune command now working via dvswitch.sh! I've been changing between the two networks under the dvs default network menu....

How do I now setup a command via the dvswitch phone app to change networks?


Steve N4IRS
 

You can create a macro(s).

see /opt/Analog_Bridge/dvsm.macro

On 2/23/2021 10:41 AM, William WY7WL wrote:
Tune command now working via dvswitch.sh! I've been changing between the two networks under the dvs default network menu....

How do I now setup a command via the dvswitch phone app to change networks?


William WY7WL
 

Ok thanks Steve, just wanted to be sure I didn't miss something. 


William WY7WL
 

Whats the line going to look like? I've tried DMR, tune, Tune.... 

I: 2021-02-23 16:43:42.729 USRP packet type: USRP_TYPE_TEXT (WY7WL) -> 3164636

I: 2021-02-23 16:43:48.274 Tune macro: *13 will invoke "/opt/MMDVM_Bridge/dvswitch.sh mode Tune"

I: 2021-02-23 16:43:48.307 Macro result was 65024


Steve N4IRS
 

What does your dvswitch.sh command look like?

On 2/23/2021 11:45 AM, William WY7WL wrote:
Whats the line going to look like? I've tried DMR, tune, Tune.... 

I: 2021-02-23 16:43:42.729 USRP packet type: USRP_TYPE_TEXT (WY7WL) -> 3164636

I: 2021-02-23 16:43:48.274 Tune macro: *13 will invoke "/opt/MMDVM_Bridge/dvswitch.sh mode Tune"

I: 2021-02-23 16:43:48.307 Macro result was 65024



William WY7WL
 
Edited

#################################################################

# Tune to a specific TG/Reflector/Server, etc

# Argument 1 is the TG to tune to.  The argument is mode specific.

#################################################################

function tune() {

    if [ $# -eq 0 ]; then

        getABInfoValue last_tune

    else

        remoteControlCommand "txTg=$1"

tune passw0rd @tgif.network (no space there)

    fi

}


Steve N4IRS
 

When you issue a tune command via dvswitch.sh

it's /opt/dvswitch.sh tune passw0rd@...:62031

So your macro would be:

13 = /opt/MMDVM_Bridge/dvswitch.sh tune passw0rd@...:62031



On 2/23/2021 11:49 AM, William WY7WL wrote:

#################################################################

# Tune to a specific TG/Reflector/Server, etc

# Argument 1 is the TG to tune to.  The argument is mode specific.

#################################################################

function tune() {

    if [ $# -eq 0 ]; then

        getABInfoValue last_tune

    else

        remoteControlCommand "txTg=$1"

tune passw0rd@...

    fi

}



William WY7WL
 

Log shows a runaway TG=0?


Steve N4IRS
 

Show your macro line

On 2/23/2021 12:06 PM, William WY7WL wrote:
Log shows a runaway TG=0?


William WY7WL
 

13 =   /opt/MMDVM_Bridge/dvswitch.sh tune passw0rd @ tgif.network:62031


Steve N4IRS
 

No space between passw0rd and @
No space between @ and tgif.network


On 2/23/2021 12:07 PM, William WY7WL wrote:

13 =   /opt/MMDVM_Bridge/dvswitch.sh tune passw0rd @ tgif.network:62031