<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Thanks Doug! Looks pretty cool. <br>
      <br>
      Looks like I'll have plenty of time to play with it this weekend,
      as we are supposed to get dumped on by a foot or more of snow.<br>
      <br>
      Ed<br>
      <br>
      <br>
      On 1/20/2016 11:57 PM, Doug Crompton wrote:<br>
    </div>
    <blockquote cite="mid:BLU171-W103347FDD211F1DDE96E2ABAC30@phx.gbl"
      type="cite">
      <div dir="ltr">
        <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
        <div dir="ltr"><font style="" color="#000000"
            face="Tahoma,sans-serif">Ed,<br>
            <br>
            OK, here is how to do it. First add the attached script and
            check -<br>
            <br>
            Put bcd_control.sh  in /etc/asterisk/local<br>
            <br>
            Make it executable  -<br>
            <br>
            chmod 750 bcd_control.sh<br>
            <br>
            Get your hardware connected. The script defaults to RPI2 WPi
            pins 21, 22, 23, 24 - hardware pin numbers 29, 31, 33, 35<br>
            <br>
            You can run the script manually standalone and see how it
            works. Channels are  01-16. They must be entered as 2
            digits, preceding 0 for channels less than 10.<br>
            <br>
            Channel 01-15 are BCD channels. Channel 16 is all high or
            front panel.<br>
            <br>
            Use 'gpio readall' to see bits and how they change with the
            program. You can do this without anything connected to the
            Pi.<br>
            <br>
            Once you have it working add this line to rpt.conf -<br>
            <br>
62=autopatchup,context=radio_control,noct=1,farenddisconnect=1,dialtime=7000,quiet=1<br>
            <br>
            The function does not have to be 62 but that is convenient.
            Could be any unused code that does not conflict. If you are
            extremely slow entering digits you can set the dialtime
            higher but 7 seconds should be fine for 5 digits in most
            cases.<br>
            <br>
            Then add this to your extensions.conf  file, can be at the
            end.<br>
            <br>
            [radio_control]<br>
            exten => _xx,1,System(/etc/asterisk/local/bcd_control.sh
            ${EXTEN})<br>
            exten => _xx,n,Hangup()<br>
            <br>
            Restart Asterisk -<br>
            <br>
            astres.sh<br>
            <br>
            Now you should have DTMF control of your channels.<br>
            <br>
            *6201  thru *6215 = channels and *6216 would be front panel.
              <br>
            <br>
            You could get fancy and add Asterisk audio feedback in the
            script to tell you what channel it is on. If you need an
            example I can show you.<br>
            <br>
            Let me know how it works for you. If you need more channels
            the script could be modified to control another bit for 32
            channels.<br>
            <br id="FontBreak">
          </font><b><font style="font-size:16pt;" size="4">73 Doug</font><font
              style="font-size:16pt;" size="4"><br>
            </font><font style="font-size:16pt;" size="4">WA3DSP</font><font
              style="font-size:16pt;" size="4"><br>
            </font><font style="font-size:16pt;" size="4"><a class="moz-txt-link-freetext" href="http://www.crompton.com/hamradio">http://www.crompton.com/hamradio</a></font></b><font
            style="font-size:16pt;" size="4"><br>
          </font><br>
          <br>
          <div>
            <hr id="stopSpelling">To: <a class="moz-txt-link-abbreviated" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br>
            From: <a class="moz-txt-link-abbreviated" href="mailto:vacuumtubesforever@gmail.com">vacuumtubesforever@gmail.com</a><br>
            Date: Wed, 20 Jan 2016 22:31:35 -0500<br>
            Subject: Re: [arm-allstar] Remote Base BCD Channel Steering<br>
            <br>
            <div class="ecxmoz-cite-prefix">Just saw the Repeater
              Builder link. None of that stuff exists. Will be going
              from the rpi gpio to probably a ULN2803 and then to the 4
              pins on the accessory connector.<br>
              <br>
              If nothing is pulled low the radio will operate normally.<br>
              <br>
              Ed<br>
              <br>
              <br>
              On 01/20/2016 10:09 PM, Doug Crompton wrote:<br>
            </div>
            <blockquote
              cite="mid:BLU171-W667B3F74AB5EEA728225C6BAC30@phx.gbl">
              <style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
              <div dir="ltr"><font style="" color="#000000"
                  face="Tahoma,sans-serif">OK, So am I to assume the
                  external diode BCD steering does not exist and the
                  RPi2 just controls the 4 bits (or 5) bits straight
                  into the radio? If all are high the front panel works?<br>
                  <br>
                </font><b><font style="font-size:16pt;" size="4">73 Doug</font><font
                    style="font-size:16pt;" size="4"><br>
                  </font><font style="font-size:16pt;" size="4">WA3DSP</font><font
                    style="font-size:16pt;" size="4"><br>
                  </font><font style="font-size:16pt;" size="4"><a
                      moz-do-not-send="true"
                      class="ecxmoz-txt-link-freetext"
                      href="http://www.crompton.com/hamradio"
                      target="_blank"><a class="moz-txt-link-freetext" href="http://www.crompton.com/hamradio">http://www.crompton.com/hamradio</a></a></font></b><font
                  style="font-size:16pt;" size="4"><br>
                </font><br>
                <br>
                <div>
                  <hr id="ecxstopSpelling">Date: Wed, 20 Jan 2016
                  17:33:27 -0800<br>
                  From: <a moz-do-not-send="true"
                    class="ecxmoz-txt-link-abbreviated"
                    href="mailto:kg6uyz@gmail.com">kg6uyz@gmail.com</a><br>
                  To: <a moz-do-not-send="true"
                    class="ecxmoz-txt-link-abbreviated"
                    href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br>
                  Subject: Re: [arm-allstar] Remote Base BCD Channel
                  Steering<br>
                  <br>
                  <div dir="ltr">
                    <div>For a GM300 you supply a GND trigger to one or
                      more of the 4 channel steering pins.  The pins
                      have to stay grounded to stay on the channel you
                      selected, if you release the triggers the radio
                      reverts back to whatever channel you last manually
                      selected with the channel up/down button.<br>
                      <br>
                    </div>
                    Example in this link:   <a moz-do-not-send="true"
href="http://www.repeater-builder.com/motorola/maxtrac/remote-channel-select.html"
                      target="_blank">http://www.repeater-builder.com/motorola/maxtrac/remote-channel-select.html</a><br>
                    <br>
                  </div>
                  <div class="ecxgmail_extra"><br>
                    <div class="ecxgmail_quote">On Wed, Jan 20, 2016 at
                      2:04 PM, Doug Crompton <span dir="ltr"><<a
                          moz-do-not-send="true"
                          class="ecxmoz-txt-link-abbreviated"
                          href="mailto:doug@crompton.com"><a class="moz-txt-link-abbreviated" href="mailto:doug@crompton.com">doug@crompton.com</a></a>></span>
                      wrote:<br>
                      <blockquote class="ecxgmail_quote"
                        style="border-left:1px #ccc
                        solid;padding-left:1ex;">
                        <div>
                          <div dir="ltr"><font color="#000000"
                              face="Tahoma,sans-serif">Ed,<br>
                              <br>
                               OK fine. I can supply an example if you
                              want but I was wondering what they wanted
                              to see. Do you set the four lines BCD and
                              then strobe another pin to load it? That
                              is often the way it is done or maybe it
                              just monitors the lines for them being
                              stable and switches?<br>
                            </font><span><br>
                              <b><font style="font-size:16pt;" size="4">73
                                  Doug</font><font
                                  style="font-size:16pt;" size="4"><br>
                                </font><font style="font-size:16pt;"
                                  size="4">WA3DSP</font><font
                                  style="font-size:16pt;" size="4"><br>
                                </font><font style="font-size:16pt;"
                                  size="4"><a moz-do-not-send="true"
                                    class="ecxmoz-txt-link-freetext"
                                    href="http://www.crompton.com/hamradio"
                                    target="_blank">http://www.crompton.com/hamradio</a></font></b><font
                                style="font-size:16pt;" size="4"><br>
                              </font><br>
                              <br>
                            </span>
                            <div><span>
                                <hr>To: <a moz-do-not-send="true"
                                  href="mailto:arm-allstar@hamvoip.org"
                                  target="_blank">arm-allstar@hamvoip.org</a><br>
                                From: <a moz-do-not-send="true"
                                  href="mailto:vacuumtubesforever@gmail.com"
                                  target="_blank">vacuumtubesforever@gmail.com</a><br>
                              </span>Date: Wed, 20 Jan 2016 16:44:27
                              -0500
                              <div>
                                <div class="h5"><br>
                                  Subject: Re: [arm-allstar] Remote Base
                                  BCD Channel Steering<br>
                                  <br>
                                  <div>Doug,<br>
                                    <br>
                                    Nothing fancy, just 16 channel
                                    stuff.  GM300, Maxtracs, Kenwood 90
                                    series stuff. Just got to yank the
                                    lines low. <br>
                                    <br>
                                    Ed<br>
                                    <br>
                                    On 1/20/2016 11:14 AM, Doug Crompton
                                    wrote:<br>
                                  </div>
                                  <blockquote>
                                    <div dir="ltr"><font color="#000000"
                                        face="Tahoma,sans-serif">Ed,<br>
                                        <br>
                                         What is the format of the BCD
                                        control you are wanting? 16
                                        channels - 0001 - 1111 ??</font> <font
                                        face="Tahoma,sans-serif"> Does
                                        the radio take TTL  levels? Is
                                        there a strobe bit once the
                                        other bits are setup?</font><font
                                        face="Tahoma,sans-serif"><br>
                                      </font><br>
                                      <b><font style="font-size:16pt;"
                                          size="4">73 Doug</font><font
                                          style="font-size:16pt;"
                                          size="4"><br>
                                        </font><font
                                          style="font-size:16pt;"
                                          size="4">WA3DSP</font><font
                                          style="font-size:16pt;"
                                          size="4"><br>
                                        </font><font
                                          style="font-size:16pt;"
                                          size="4"><a
                                            moz-do-not-send="true"
                                            href="http://www.crompton.com/hamradio"
                                            target="_blank"><a class="moz-txt-link-freetext" href="http://www.crompton.com/hamradio">http://www.crompton.com/hamradio</a></a></font></b><font
                                        style="font-size:16pt;" size="4"><br>
                                      </font><br>
                                      <br>
                                      <div>
                                        <hr>To: <a
                                          moz-do-not-send="true"
                                          href="mailto:arm-allstar@hamvoip.org"
                                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a></a><br>
                                        From: <a moz-do-not-send="true"
href="mailto:vacuumtubesforever@gmail.com" target="_blank">vacuumtubesforever@gmail.com</a><br>
                                        Date: Wed, 20 Jan 2016 06:31:55
                                        -0500<br>
                                        Subject: Re: [arm-allstar]
                                        Remote Base BCD Channel Steering<br>
                                        <br>
                                        <div>Hi Doug,<br>
                                          <br>
                                          Never did get a response. Was
                                          trying to avoid reinventing
                                          the wheel.<br>
                                          <br>
                                          Never thought of using the
                                          patch command to do DTMF
                                          stuff. Will do some
                                          investigating.<br>
                                          That's the cool thing about
                                          Allstar/Asterisk, if you can
                                          think of something, there's
                                          usually a way to do it.<br>
                                          <br>
                                          All your efforts are really
                                          appreciated.<br>
                                          <br>
                                          Ed W8VT<br>
                                          <br>
                                          On 1/19/2016 9:21 PM, Doug
                                          Crompton wrote:<br>
                                        </div>
                                        <blockquote>
                                          <div dir="ltr"><font
                                              color="#000000"
                                              face="Tahoma,sans-serif">Ed,<br>
                                              <br>
                                              In researching I saw you
                                              asked the same question
                                              years ago and I did not
                                              see an answer then. Did
                                              you ever get one?<br>
                                              <br>
                                              <a moz-do-not-send="true"
href="http://lists.allstarlink.org/pipermail/app_rpt-users/2013-February/005962.html"
                                                target="_blank">http://lists.allstarlink.org/pipermail/app_rpt-users/2013-February/005962.html</a><br>
                                              <br>
                                              Using the GPIO on the Pi
                                              to BCD control a radio
                                              would not be hard. In fact
                                              a user has already done
                                              that using function codes
                                              and an external script I
                                              wrote to control the bits.
                                              It is in use
                                              commercially.  <br>
                                              <br>
                                              The idea for the future
                                              code we are writing is to
                                              get specific stuff out of
                                              the base code and put it
                                              where users can create
                                              their own interfaces to
                                              whatever hardware they
                                              want.<br>
                                              <br>
                                              Here are the basics of how
                                              I would do it....<br>
                                              <br>
                                              Use the patch command
                                              (with a different code) to
                                              pass DTMF to a Linux
                                              script via an
                                              extensions.conf dial plan.<br>
                                              Then the script would take
                                              the number sent, convert
                                              it to BCD or any other
                                              format the radio requires<br>
                                              and send it to the GPIO
                                              bits. Of course you would
                                              have to interface those
                                              bits to the actual
                                              hardware.<br>
                                            </font><br>
                                            <font
                                              face="Tahoma,sans-serif">If

                                              you needed to pass a code
                                              to a remote node you would
                                              use the standard codes to
                                              pass the command to the
                                              remote nodes dial plan.</font><br>
                                            <br>
                                            <b><font
                                                style="font-size:16pt;"
                                                size="4">73 Doug</font><font
                                                style="font-size:16pt;"
                                                size="4"><br>
                                              </font><font
                                                style="font-size:16pt;"
                                                size="4">WA3DSP</font><font
                                                style="font-size:16pt;"
                                                size="4"><br>
                                              </font><font
                                                style="font-size:16pt;"
                                                size="4"><a
                                                  moz-do-not-send="true"
class="ecxmoz-txt-link-freetext" href="http://www.crompton.com/hamradio"
                                                  target="_blank"><a class="moz-txt-link-freetext" href="http://www.crompton.com/hamradio">http://www.crompton.com/hamradio</a></a></font></b><font
                                              style="font-size:16pt;"
                                              size="4"><br>
                                            </font><br>
                                            <br>
                                            <div>> To: <a
                                                moz-do-not-send="true"
                                                class="ecxmoz-txt-link-abbreviated"
href="mailto:arm-allstar@hamvoip.org"><a class="moz-txt-link-abbreviated" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a></a><br>
                                              > From: <a
                                                moz-do-not-send="true"
                                                class="ecxmoz-txt-link-abbreviated"
href="mailto:vacuumtubesforever@gmail.com"><a class="moz-txt-link-abbreviated" href="mailto:vacuumtubesforever@gmail.com">vacuumtubesforever@gmail.com</a></a><br>
                                              > Date: Tue, 19 Jan
                                              2016 20:04:16 -0500<br>
                                              > Subject:
                                              [arm-allstar] Remote Base
                                              BCD Channel Steering<br>
                                              > <br>
                                              > Is this supported
                                              with the current image? If
                                              so, anyone know the <br>
                                              > details, what gpio
                                              pins, etc?<br>
                                              > <br>
                                              > Tnx<br>
                                              > <br>
                                              > Ed W8VT<br>
                                              > Beckley WV<br>
                                              > Nodes 27849, 29496,
                                              29982<br>
                                              >
                                              _______________________________________________<br>
                                              > <br>
                                              > arm-allstar mailing
                                              list<br>
                                              > <a
                                                moz-do-not-send="true"
                                                href="mailto:arm-allstar@hamvoip.org"
                                                target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a></a><br>
                                              > <a
                                                moz-do-not-send="true"
                                                href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar"
                                                target="_blank"><a class="moz-txt-link-freetext" href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a></a><br>
                                              > <br>
                                              > Visit the BBB and
                                              RPi2 web page - <a
                                                moz-do-not-send="true"
                                                href="http://hamvoip.org"
                                                target="_blank"><a class="moz-txt-link-freetext" href="http://hamvoip.org">http://hamvoip.org</a></a><br>
                                              > <br>
                                            </div>
                                          </div>
                                          <br>
                                          <fieldset></fieldset>
                                          <br>
                                          <pre>_______________________________________________

arm-allstar mailing list
<a moz-do-not-send="true" href="mailto:arm-allstar@hamvoip.org" target="_blank">arm-allstar@hamvoip.org</a>
<a moz-do-not-send="true" href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar" target="_blank">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a>

Visit the BBB and RPi2 web page - <a moz-do-not-send="true" href="http://hamvoip.org" target="_blank">http://hamvoip.org</a></pre>
                                        </blockquote>
                                        <br>
                                        <br>
                                        _______________________________________________


                                        arm-allstar mailing list <a
                                          moz-do-not-send="true"
                                          class="ecxmoz-txt-link-abbreviated"
href="mailto:arm-allstar@hamvoip.org"><a class="moz-txt-link-abbreviated" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a></a> <a
                                          moz-do-not-send="true"
                                          href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar"
                                          target="_blank"><a class="moz-txt-link-freetext" href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a></a>
                                        Visit the BBB and RPi2 web page
                                        - <a moz-do-not-send="true"
                                          class="ecxmoz-txt-link-freetext"
                                          href="http://hamvoip.org"
                                          target="_blank">http://hamvoip.org</a></div>
                                    </div>
                                    <br>
                                    <fieldset></fieldset>
                                    <br>
                                    <pre>_______________________________________________

arm-allstar mailing list
<a moz-do-not-send="true" href="mailto:arm-allstar@hamvoip.org" target="_blank">arm-allstar@hamvoip.org</a>
<a moz-do-not-send="true" href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar" target="_blank">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a>

Visit the BBB and RPi2 web page - <a moz-do-not-send="true" href="http://hamvoip.org" target="_blank">http://hamvoip.org</a></pre>
                                  </blockquote>
                                  <br>
                                  <br>
                                  _______________________________________________

arm-allstar

                                  mailing list <a
                                    moz-do-not-send="true"
                                    href="mailto:arm-allstar@hamvoip.org"
                                    target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a></a>
                                  <a moz-do-not-send="true"
                                    href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar"
                                    target="_blank">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a>
                                  Visit the BBB and RPi2 web page - <a
                                    moz-do-not-send="true"
                                    class="ecxmoz-txt-link-freetext"
                                    href="http://hamvoip.org"
                                    target="_blank"><a class="moz-txt-link-freetext" href="http://hamvoip.org">http://hamvoip.org</a></a></div>
                              </div>
                            </div>
                          </div>
                        </div>
                        <br>
                        _______________________________________________<br>
                        <br>
                        arm-allstar mailing list<br>
                        <a moz-do-not-send="true"
                          href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br>
                        <a moz-do-not-send="true"
                          href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar"
                          rel="noreferrer" target="_blank">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a><br>
                        <br>
                        Visit the BBB and RPi2 web page - <a
                          moz-do-not-send="true"
                          class="ecxmoz-txt-link-freetext"
                          href="http://hamvoip.org" target="_blank"><a class="moz-txt-link-freetext" href="http://hamvoip.org">http://hamvoip.org</a></a><br>
                      </blockquote>
                    </div>
                    <br>
                    <br clear="all">
                    <br>
                    -- <br>
                    <div class="ecxgmail_signature">Jeff Ackerman<br>
                      <a moz-do-not-send="true"
                        href="mailto:kg6uyz@gmail.com" target="_blank">kg6uyz@gmail.com</a><br>
                    </div>
                  </div>
                  <br>
                  _______________________________________________
                  arm-allstar mailing list <a moz-do-not-send="true"
                    class="ecxmoz-txt-link-abbreviated"
                    href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a>
                  <a moz-do-not-send="true"
                    class="ecxmoz-txt-link-freetext"
                    href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar"
                    target="_blank">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a>
                  Visit the BBB and RPi2 web page - <a
                    moz-do-not-send="true"
                    class="ecxmoz-txt-link-freetext"
                    href="http://hamvoip.org" target="_blank"><a class="moz-txt-link-freetext" href="http://hamvoip.org">http://hamvoip.org</a></a></div>
              </div>
              <br>
              <fieldset class="ecxmimeAttachmentHeader"></fieldset>
              <br>
              <pre>_______________________________________________

arm-allstar mailing list
<a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a>
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar" target="_blank">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a>

Visit the BBB and RPi2 web page - <a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://hamvoip.org" target="_blank">http://hamvoip.org</a></pre>
            </blockquote>
            <br>
            <br>
            _______________________________________________
            arm-allstar mailing list
            <a class="moz-txt-link-abbreviated" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a>
            <a class="moz-txt-link-freetext" href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a>

Visit
            the BBB and RPi2 web page - <a class="moz-txt-link-freetext" href="http://hamvoip.org">http://hamvoip.org</a></div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________

arm-allstar mailing list
<a class="moz-txt-link-abbreviated" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a>
<a class="moz-txt-link-freetext" href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a>

Visit the BBB and RPi2 web page - <a class="moz-txt-link-freetext" href="http://hamvoip.org">http://hamvoip.org</a></pre>
    </blockquote>
    <br>
  </body>
</html>