RE: How to Enable/Disable KISS mode in a TNC-2 with Linux?

From: Henk van Asselt (evpul@vandewiele.com)
Date: Mon Apr 10 2000 - 10:18:03 EEST

  • Next message: Robin Gilks: "Re: Node query"

    Dear Manos,

    Following is a my script file to start ax25:

    /usr/bin/startax25

    This is the basic script to start the AX25 operation. No NET/ROM, ROSE and
    routes are configured here.

    #!/bin/sh
    #Get rid of any locks
    cd /var/lock
    rm -f LCK*
    #Set TNC in KISS mode
    echo "Starting KISS"
    echo -ne "kiss on\r" > /dev/ttyS1
    echo -ne "restart\r" > /dev/ttyS1
    # three seconds delay before restart of ax.25
    sleep 3
    #Configure TCP/IP. Are the /etc/ax25/axports set up correctly?
    #Note the new command line format
    #kissattach [-l] [-m mtu] [-v] ttyinterface port inetaddr
    /usr/sbin/kissattach -m 230 /dev/ttyS1 1 194.229.49.136
    #Configure KISS TNC
    /usr/sbin/kissparms -p 1 -t 100 -s 100 -r 63
    # Configure and start the beacon
    /usr/sbin/beacon -c PA3BTL -t 25 1 "PA3BTL uit Purmerend, LINUX SuSE 6.2"
    # start the ax25 daemon
    /usr/sbin/ax25d
    #Associate a call with a username
    axparms -assoc pa3btl henka
    #Start the mheard daemon
    /usr/sbin/mheardd -f -l
    # end of startax25

    Henk van Asselt
    Senior System Support Engineer
    tel: +31-(0)346-217063
    fax: +31-(0)346-217075
    Mailto:uqwrlz.pnlak@webquarry.com
    Mailto:jsmvjxvt.keuumuyusg@biuro.perla.pl
    Personal Web Page:
    http://www.qsl.net/pa3btl

    > ----------
    > From: Manos Chalaris (SV1DAY)[SMTP:fdgtrbw@sacura.net]
    > Reply To: jdzj.cipfhxjar@ipc.be
    > Sent: Friday, April 07, 2000 6:36 AM
    > To: wsavuop@infospace.com
    > Subject: How to Enable/Disable KISS mode in a TNC-2 with Linux?
    >
    > Hello everybody,
    >
    > I am wondering whether there is a "nice" way to enable/ disable KISS mode
    > on
    > a TNC-2 with Linux.
    > (I am using an MFJ 1270C, but I think the same is for all the TNC-2 type
    > TNCs...)
    >
    > In various HOWTO, it is written that you can do it with the minicom.
    > Yes, this is true but I do not like it at all.
    >
    > I have tried to send to my /dev/tnc ( which is a soft link to /dev/ttyS1
    > in
    > my case) the commands KISS ON and RESTART but no luck.
    > The method I used to do it was:
    >
    > TO ENABLE
    > 1. setserial /dev/ttyS1 baud_base 9600 (because my TNC has as serial port
    > speed 9600, so I must change the default speed of PC serial port)
    > 2. echo "KISS ON" > /dev/tnc
    > 3. echo "RESTART" > /dev/tnc
    > So, I did not see any STA and CON led flashing. (and the TNC was not in
    > KISS
    > mode)
    >
    > The only working method for me is to start minicom and issue the above
    > commands. (KISS ON and RESTART).
    > (But even in this case the leds are not flashing, though KISS mode is
    > actually enabled...???...Strange...)
    >
    > TO DISABLE
    > I did not manage to disable KISS mode with Linux at all!!!
    > The method I follow to disale KISS mode is, to reboot in DOS, start JNOS
    > program (which it is already configured in KISS) and exit JNOS in the
    > end.....!!!!! This works. When I start JNOS, the CON and STA leds are
    > flashing and also during the exit from JNOS, again the CON and STA led are
    > flashing. Everything works fine in JNOS case.
    >
    > According to the manual of MFJ, it says the way to enable and disable KISS
    > mode if you are using the JNOS program (Enable: KISS ON and RESTART and
    > Disable: param <interface_name> 255 from the command prompt of JNOS).
    > It does not mention anything about other software or operating system.
    > Also, there is another method, according to MFJ manual, in order to
    > disable
    > KISS mode. To remove jumper JMP5, and wait 5 few minutes, then reinstall
    > it.......!!!!!!!!
    >
    > Does anyone knows and nice way, like the one in JNOS?
    >
    > Thanks.
    >
    > 73 de SV1DAY
    > Manos
    >
    >
    >



    This archive was generated by hypermail 2b29 : Mon Apr 10 2000 - 10:27:24 EEST