[arm-allstar] Radio-less ed le bell LED light for connection?

Doug Crompton wa3dsp at gmail.com
Fri Mar 16 00:01:16 EST 2018


Chris,

I still don't know why you can't just keyup and ID but you are lucky, I had
a little more time tonight. Here is the script to do it via GPIO It checks
twice per minute. I would not check more often than that. I could also make
it change a bit on the USB FOB BUT that would require soldering to a GPIO
pin on the radio-less node you are using and since it is not an end pin I
would not recommend that. Perhaps Ed will bring out a couple of the GPIO
bits to pads in a future update.

Cut and paste the script to a file called test_connect.sh  - save it - make
it executable - chmod 750 test_connect.sh
See comments in the script for more info.

#!/bin/bash
#
# Test for connection and turn on/off GPIO bit
# Checks twice per minute
# WA3DSP 3/2018

# Uses two parameters - node to check and
# node to check for. If node to check for is
# blank it checks if anything is connected.
# This script would be run in the background

#Example
#
# test_connect.sh 1998           - check for ANY node connected to 1998
#       "                 1998 1999  - check if 1999 is connected to 1998
#  Append & to run in the background

# Connect LED with 1K series resister from Pi GPIO bit to ground
# Do NOT apply any voltage.

# Select bit to test
# use 'gpio readall' to view bits
# GPIO 25 is pin physical pin 37
connect_test_pin=25

gpio mode $connect_test_pin out

if [ -z $1 ]
 then
  echo "No node number given"
  exit
fi

if [ -z $2 ]
 then
   checkFor="NONE"
else
   checkFor=$2
fi

while (true)
do
  connectCheck=`/usr/bin/asterisk -rx "rpt nodes $1" | grep $checkFor`
  if [ $checkFor == "NONE" ]
    then
       if [ ! "$connectCheck" == "" ]
         then
           echo "$connectCheck - No Connection"
           Connected=0
       else
           echo "$connectCheck - Connected"
       Connected=1
       fi
    else
       if [ "$connectCheck" == "" ]
         then
           echo "$connectCheck - No Connection"
       Connected=0
       else
           echo "$connectCheck - Connected"
       Connected=1
       fi
  fi
  gpio write $connect_test_pin $Connected
  sleep 30
done
# End script



*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*


On Thu, Mar 15, 2018 at 10:53 PM, "chris novara via arm-allstar" <
arm-allstar at hamvoip.org> wrote:

> Hello all,
>
> I’m desperately trying to figure out how it would be possible to have a
> visual indication on the radio less node adapter built by Ed Le Bell if
> there is a connection to our system hub or not. Right now the only way is
> to key the microphone and listen to the courtesy beep. The problem with
> this is we get lots of KerChunks on our system do to mobile users wondering
> if their mobile node is connected.
>
> I cannot express how awesome it would be if there is someway to manipulate
> the heartbeat flashing LED or somehow work with the TX/RX LED to show
> visually if we are connected to our HUB
>
> I received some help a few weeks ago but was unsuccessful using the GPIO
> pins but the problem is that is on the raspberry pie is not visually
> accessible by the driver as it is tucked away.....only the black box by Ed
> is visual and running wires is a pain.
>
>
> Any ideas ?!??!!!?!?!
>
>
> Chris Novara
> Phone: 541-778-1175
> Eugene, Oregon
> Email-Chris at redcrosscommunications.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


More information about the arm-allstar mailing list