[arm-allstar] Tx and Rx LEDs on GPIO4 &5
Doug Crompton
wa3dsp at gmail.com
Sun Apr 19 10:07:50 EDT 2020
Yes this works as an example to USBFOB bits....
Using bit 1 to indicate COS
In simpleusb.conf -
gpio1=out0
in [events] stanza of rpt.conf -
cop,62,GPIO1:1 = c|t|RPT_RXKEYED
cop,62,GPIO1:0 = c|f|RPT_RXKEYED
Using bit 2 to indicate TX
In simpleusb.conf -
gpio2=out0
In rpt.conf [events] stanza -
cop,62,GPIO2:1 = c|t|RPT_TXKEYED
cop,62,GPIO2:0 = c|f|RPT_TXKEYED
Caveats - This only works with Hamvoip code as shown and GPIO3 is reserved
for PTT. You actually do not need TX to an individual bit as you have it in
the form of PTT which could also drive an LED as it is done in many FOBS.
*73 Doug, WA3DSP*
*http://wa3dsp.org <http://wa3dsp.org>*
On Sun, Apr 19, 2020 at 6:02 AM "Michael Fleetwood via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:
> I have setup a radioless node using Hamvoip on a RPi 3A+ and it works
> well. Am wanting to add LEDs to indicate Rx and Tx and found the info
> below in the archives but can't get it to work. The LEDs do respond
> to gpio commands entered directly so I think the hardware side is OK.
>
> Can anyone please advise what the problem might be and if this is
> still the way to do it?
>
> Many thanks and 73
>
> Mike
> VK2AMF.
>
> The new ARN FOBs use it for COS but yes you can drive any bit you want.
> This is nothing new. It has been there for a long time. For the FOB you
> just set the bit you want to output on assuming it is available adding this
> in simpleusb.conf -
>
> gpiox=outy ; where x = bit number 1-8 and y is 0|1 for initial output
> level
>
> Then in rpt.conf as an event you add -
>
> For RX indicator -
>
> cop,62,GPIOx:1 = c|t|RPT_RXKEYED
> cop,62,GPIOx:0 = c|f|RPT_RXKEYED
>
> or
>
> For TX indicator -
>
> cop,62,GPIOx:1 = c|t|RPT_RXKEYED
> cop,62,GPIOx:0 = c|f|RPT_RXKEYED
>
> Where x is the corresponding port from the gpio setting in simpleusb.conf
>
>
> *73 Doug*
>
> *WA3DSP*
>
>
> Mike Fleetwood
> Canberra Australia and Sidcup UK.
>
> Worldwide email address is: mfleetwood at gmail.com
> _______________________________________________
>
> 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/4 web page - http://hamvoip.org
>
More information about the ARM-allstar
mailing list