[arm-allstar] Help Radio to GPIO Channel Select
Sam Skolfield
kj6qfs at gmail.com
Sun Jul 30 20:00:07 EST 2017
Rad! I was actually about to ask you about doing this too!
My friend has a CDM and a beaglebone and he wants me to set him up a little
node that behaves like a remote base. He wants something where he can dial
up his node on his IAX client, and change channels with macros. He'll be
using a CDM with 15 channels via 4 lines.
With the CDMs, the lines are grounded and held to ground for channel
select. They recognize transitions, not pulses. Could yourcode be tweaked
for this? The CDM/ Radius/GM300 is a very popular node radio as you know,
and I'm sure many people would love to have such a script available!
Thanks
-SS
On Sun, Jul 30, 2017 at 3:50 PM "Doug Crompton via arm-allstar" <
arm-allstar at hamvoip.org> wrote:
> Bobby,
>
> Attached is a bash script I wrote some time ago to write the GPIO with BCD
> data given decimal data input. The bits selected are 21, 22, 23, 24. Give
> it a try. The format is:
>
> bcd_control.sh <channel 1-16> .... Just the channel number No brackets.
>
> Also remember to execute a script it must be executable - if it is not do -
> chmod 750 bcd_control.sh and if executing it in the current directory do
> - ./bcd_control.sh
>
> After you execute it will tell you what it did. Then at the Linux prompt
> type:
>
> gpio readall
>
> You will get a chart of the I/O bits. Bits 21, 22, 23, 24 will show the BCD
> representation of the decimal channel you entered.
>
> This also includes a strobe bit because the system I was writing it for
> required that. You can ignore it if you don't need it. It is bit 25 for
> 100ms.
>
> You can see how this could be implemented as DTMF functions or better yet
> using the autopatch through extensions.conf. See the howto on that on the
> hamvoip.org web page. Also the howto on GPIO.
>
> Using the autopatch method a DTMF like *6201 through *6216 could change
> the 16 channels.
>
> Any yes this could be done in supermon but first you need to understand
> this part of it and get it working. You need to interface those 4 bits to
> the radio and manually execute this command.
>
> Here is a link from this forum January 2016 about this -
>
> http://lists.hamvoip.org/pipermail/arm-allstar/2016-January/002637.html
>
>
> *73 Doug*
>
> *WA3DSP*
>
> *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
>
>
> On Sun, Jul 30, 2017 at 1:27 PM, "Bobby Bruton via arm-allstar" <
> arm-allstar at hamvoip.org> wrote:
>
> > I need some assistance, I have a challenge, I have a dual node setup
> > running Comptons's latest release in a Pi3.Using Motorola CDM commercial
> > Radios with URI interfaces, everything is running fine, but I want to use
> > the channel controll built into the AUX pin assignment in the radio that
> > part I have no problem assigning the pins in the radio,you can only do 4
> > channels per radio in channel select aux io pin assignment which is
> > fine.Let me get to the piont.I have 2 Radios, I wanna be able to go to
> > Supermon have a drop down menu that will let me use the GPIO to select
> > channels on the radios,independently, which will give me a latchd hi or
> > latched open output. example of DROP DOWN in supermon would look similar
> to
> > this
> > VHFCH1 on or off CH2 on or offCh3 on or offCh4 on or off
> > UHFCh1 on or offCh2 on or offCH3 on or offCh4 on or off
> >
> > and if possable to change the name of CH to say, like ex, My Repeater on
> > or off
> > Johns Repeater on or off
> > ETC
> > "I am not good with command line so this will have to be eather a file I
> > can copy and paste to a directory or directory's
> > or written as a how to guide for dummies. step by step line by line"
> > Many thanks Hope you guys are up to the challange 73's BobAG5BB
> > _______________________________________________
> >
> > 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
> _______________________________________________
>
> 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
>
--
KJ6QFS
Sam Skolfield
More information about the arm-allstar
mailing list