Switch Between BM and TGIF


William WY7WL
 

All working sorry for the confusion.... Not sure why I thought something had to be in the dvswitch.sh file. 


Steve N4IRS
 

As root:
/opt/MMDVM_Bridge/dvswitch.sh mode DMR
/opt/MMDVM_Bridge/dvswitch.sh tune passw0rd@...:62031

Show me the MMDVM_Bridge log

There is no stanza involved.

On 2/23/21 9:25 PM, William WY7WL wrote:
What I have in the dvswitch.sh under the tune to a specific tg/reflector/server stanza is definitely wrong. 

I'm changing a TG and not the server. 

So what exactly should that look like? Maybe a screen grab of that stanza or something would help me? I don't have any experience with scripts.  


William WY7WL
 

What I have in the dvswitch.sh under the tune to a specific tg/reflector/server stanza is definitely wrong. 

I'm changing a TG and not the server. 

So what exactly should that look like? Maybe a screen grab of that stanza or something would help me? I don't have any experience with scripts.  


Steve N4IRS
 

OK,
You are running the current version.
As root:
/opt/MMDVM_Bridge/dvswitch.sh mode DMR
/opt/MMDVM_Bridge/dvswitch.sh tune passw0rd@...:62031

Post the 5 lines above the tune and 5 lines below.


On 2/23/2021 2:15 PM, William WY7WL wrote:

dvswitch.sh version 1.6.0

Analog_Bridge version 1.6.0

MMDVM_Bridge version 20201129_V1.6.2 git #89f8998

P25Gateway version 20200824

NXDNGateway version 20200824

YSFGateway version 20200908



William WY7WL
 

dvswitch.sh version 1.6.0

Analog_Bridge version 1.6.0

MMDVM_Bridge version 20201129_V1.6.2 git #89f8998

P25Gateway version 20200824

NXDNGateway version 20200824

YSFGateway version 20200908


Steve N4IRS
 

Show the outut of:
/opt/MMDVM_Bridge/dvswitch.sh version all

On 2/23/2021 1:49 PM, William WY7WL wrote:
this doesn't look right to me... 

M: 2021-02-23 18:47:16.645 DMR, Remote CMD: txTg=passw0rd@...



Steve N4IRS
 

M: 2021-02-23 19:03:19.278 DMR, Remote CMD: txTg=passw0rd@...:62031
M: 2021-02-23 19:03:19.278 DMR, Closing DMR Network
M: 2021-02-23 19:03:19.328 DMR, Opening DMR Network
M: 2021-02-23 19:03:19.343 DMR, Remote CMD: info
M: 2021-02-23 19:03:29.337 DMR, Logged into the master successfully: tgif.network:62031


On 2/23/2021 1:49 PM, William WY7WL wrote:
this doesn't look right to me... 

M: 2021-02-23 18:47:16.645 DMR, Remote CMD: txTg=passw0rd@...



William WY7WL
 

this doesn't look right to me... 

M: 2021-02-23 18:47:16.645 DMR, Remote CMD: txTg=passw0rd@...


Steve N4IRS
 

Nothing before that?

On 2/23/2021 1:42 PM, William WY7WL wrote:

I: 2021-02-23 18:42:04.301 txTg=: 0

I: 2021-02-23 18:42:04.338 txTg=: 0

I: 2021-02-23 18:42:04.427 txTg=: 0

I: 2021-02-23 18:42:04.495 txTg=: 0

I: 2021-02-23 18:42:04.582 txTg=: 0

I: 2021-02-23 18:42:04.653 txTg=: 0




Steve N4IRS
 

from the command
/opt/MMDVM_Bridge/dvswitch.sh tune passw0rd@...:62031

Show me the MMDVM_Bridge log when you issue the command.

On 2/23/2021 12:34 PM, William WY7WL wrote:
It works in the dvs menu, change networks. That’s didn’t work until I added the tune command in dvswitch.sh maybe I’m all mixed up somehow. Yes it’s in the mmdvm bridge. 


William WY7WL
 

It works in the dvs menu, change networks. That’s didn’t work until I added the tune command in dvswitch.sh maybe I’m all mixed up somehow. Yes it’s in the mmdvm bridge. 


Steve N4IRS
 

Is your dvswitch.sh in /opt/MMDVM_Bridge

You said you had it working from the command line what did you type from the command line?

On 2/23/2021 12:10 PM, William WY7WL wrote:
I did that so you could see everything.... no space in the actual line 


William WY7WL
 

I did that so you could see everything.... no space in the actual line 


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



William WY7WL
 

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


Steve N4IRS
 

Show your macro line

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


William WY7WL
 

Log shows a runaway TG=0?


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
 
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
 

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