[arm-allstar] Fwd: BCD Remote Base Dual Node HELP!!!!!

Doug Crompton wa3dsp at gmail.com
Thu Aug 17 01:01:38 EST 2017


​I am repeating my original email below and I adding some more comments.
Below I am describing how to add voice prompts telling you what channel you
are on. The word "channel" and the digit numbers are already available as
.gsm files in Allstar. So the lines below would be put into the BCD script
you said you had running to say the channel number. You just have to
substitute the correct variable name. It may not be Channel in your case. I
think you need to learn some scripting in Linux. In bash which is the
primary Linux scripting language you define a variable like

Channel=3

That assigns the value 3 to the variable channel. You can then read back
that value or use it in the script. To print it to the console you would do

echo $Channel

So in the code below the $Channel is the channel you set in your BCD
script. You may have it defined as some other variable name.

All this is done in Linux preferably using the nano editor or vi if you are
familiar with it. I don't use winscp. I log directly in with putty and do
everything in Linux. I rarely use Windows.​ There is a lot to learn and if
you are just starting out perhaps you need to slow down a little and get
some books and understand Linux and scripting a little better.

​Original message -​

What you are asking could be done but would require some script writing. As
far as announcements the BCD script I sent could say what ever you want to
your local nodes after a channel is changed. You just need to send the
voice message out to them. Knowing the channel number in the script you
could do the following -

Lets assume the channel number is defined as $Channel in the script and the
two nodes you wanted to play to were 40000 and 40001.

/usr/sbin/asterisk "rpt localplay 40000 /var/lib/asterisk/sounds/channel"
/usr/sbin/asterisk "rpt localplay 40000 /var/lib/asterisk/sounds/
digits/$Channel"
/usr/sbin/asterisk "rpt localplay 40001 /var/lib/asterisk/sounds/channel"
/usr/sbin/asterisk "rpt localplay 40001 /var/lib/asterisk/sounds/
digits/$Channel"

This would play the word "channel" and the actual channel number to both
nodes. I think this is what you wanted. Setting it up to work with supermon
would not be hard but would require some scripting. I don't think there is
any way to know what channel it is currently on other than storing the
change to a file or environment variable and reading it back. So in the BCD
script you might do something like this after the channel was changed.

echo $Channel > /tmp/last_channel

Then it could be read back in another script to determine what channel you
are currently on.


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*



On Tue, Aug 15, 2017 at 11:22 PM, "Bobby Bruton via arm-allstar" <
arm-allstar at hamvoip.org> wrote:

> Dave thanks for the BCD and DTMF script its working great.What I have a
> dual node setup RUNNING DUPLEX 0, Radios are Motorola CDM series, 1 UHF 1
> VHF. using 4 wire BCD channel controll.
> I was able to take your BCD Script , BCD_Control and make a second one
> called BCD_Controll And change the IO pins for the second node.
> I took the DTMF control for the first one which is 62xx  xx being channel
> number pointed to BCD_controlMade a second DTMF which is 63xx  xx being
> channel number pointed to BCD_controll  (note first is control second is
> conroll with 2 LL'S )
> 62=autopatchup,context=radio_control1,noct=1,farenddisconnec
> t=1,dialtime=7000,quiet=1
> 63=autopatchup,context=radio_controll1,noct=1,farenddisconne
> ct=1,dialtime=7000,quiet=1
>
> built up NPN transistor buffers for the channel select lines for both
> radios.
> I can change channels on both radios independently using IaXRpt  *62xx
> or *63xx it works great!!!!
> What I would like to do now is add DTMF Voice telementry that will go out
> both nodes at the same time, example I send *6210, I hear R1 10come out
> both radios, I send 6303 I heare R2 03 come out both radios, I would like
> voice for both radios ch1  thru 16
> Then I would like to Redo the GPIO GUI or Add to Controlls or somwhere  in
> Supermon to just show Radio 1 and Radio 2 and show which channels are set
> for on or active which will reflect the BCD code selected in the
> BCD_Control, or BCD_Controll script.
> any help from anybody would be greatly appreciatedThanks Bob AG5BB
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org


More information about the arm-allstar mailing list