[arm-allstar] Help Radio to GPIO Channel Select
Doug Crompton
wa3dsp at gmail.com
Sun Jul 30 17:50:05 EST 2017
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
More information about the arm-allstar
mailing list