[arm-allstar] Help Radio to GPIO Channel Select
Doug Crompton
wa3dsp at gmail.com
Mon Jul 31 12:28:43 EST 2017
I am resending this as apparently the attachment did not make it through.
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>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20170731/66821ded/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bcd_control.sh
Type: application/x-sh
Size: 2375 bytes
Desc: not available
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20170731/66821ded/attachment.sh>
More information about the arm-allstar
mailing list