do_kissparms


Setting AX25 KISS parameters on devices...

Here is a very "plain vanilla" script that I have found helpful when setting up or tweaking device parameters for the AX25 Utilities. You may call this script from another driver/config script or just use it to select certain devices and experiment with them from the OS prompt.

As you can see, you will have to edit this script between calls if you need to make frequent changes for testing. Once you have found the "best" parameters, you can call this from another master script with a list of devices as arguments.

When I first began using the AX25 Utilities, I found this script to be very helpful. You can see at a glance, and all in one place, the devices in service and how they have been configured.

NOTE: You will need the binary kissparms which comes standard with the AX25 Utilities, found under the /kiss directory.)




do_kissparms

As usual, I have left all comments in this script so that you may see the documentation and previous attempts at getting it to work. If you need a coding explanation as to how you might be able to apply this on your system, please see a Case Excerpt

#! /bin/sh
# do_kissparms
# 03-26-98
# 04-29-00
# 06-25-04
# KA1FSB/kbn
# ---------------------------------------------------------------------
# Use this script to change the 'behavior' of the radio for TX/RX, etc
#
# Usage: do_kissparms portname portname ... 
#  $1 is the port name passed in ... Enter as many devices as you like,
#  from the list below.
#
# For AX25 Utilities, version 2.1.42a under /kiss directory
# ---------------------------------------------------------------------

#----- Parameter list
# port:          -p vhf      # name of port from axports file
# full duplex:   -f y|n      # yes is for full
# txtail:        -l          # in milliseconds
# persistence:   -r          # 0-255
# slottime       -s          # in milliseconds
# txdelay        -t          # in milliseconds
# normal mode    -x          # optional: may not always work


#----- If operating half duplex, the resptime timer is suspended when PTT
#-----  or carrier detect is operating.


while [ "$1" ]
do
#----- Should have one for each port!
        case $1 in
        hf)
                /usr/sbin/kissparms -p $1 -f n -l 300 -r 192 -s 50 -t 300
        ;;
        hf1)
                /usr/sbin/kissparms -p $1 -f n -l 300 -r 192 -s 50 -t 300
        ;;
        vhf)
                /usr/sbin/kissparms -p $1 -f y -l 50 -r 128 -s 100 -t 300
        ;;
        bc0)
                /usr/sbin/kissparms -p $1 -f n -l 200 -r 128 -s 100 -t 200
        ;;
        sm0)
                /usr/sbin/kissparms -p $1 -f n -l 20 -r 128 -s 100 -t 200
        ;;
        axip0)
                echo ": Nothing to do for port $1"
        ;;
        *)
                echo ": Usage: do_kissparms <portname portname ... >"
        ;;
        esac

shift
done

#----- End of do_kissparms


(Courtesy KBNorton Computer Services)