[Packet] Linux & axports.

Doug Laidlaw [email protected]
Sun, 25 May 2003 03:32:56 +1000


On Saturday 24 May 2003 3:49 pm, Shane Deering wrote:
> On Sat, 24 May 2003 14:51, Doug Laidlaw wrote:
> > I am trying to get packet running under Linux.  At the moment I am
> > concentrating on getting my computer to talk to the TNC.  I can read =
the
> > TNC's copyright message with minicom, and sending a "connect" with
> > minicom keys the TNC, but when I start up xcall with the tnc running =
I
> > get a message in the Linux terminal
> >
> > axconfig: port Port1 not active
> >
> > and an error message box in xcall :
> >
> > ERROR: No AX.25 port data configured
> >
> > My axports file is as follows:
> >
> > # Axports file
> > Port1 VK3KDI 300 5  Port1
>
> You are missing port speed or packlen.
>
> Port1 VK3KDI XXX 255 5  Port1
> xxx should be your serial port speed and it should be the same as you h=
ave
> set in your TNC.
> Most likely
> Port1 VK3KDI 1200 255 5  Port1
> or
> Port1 VK3KDI 9600 255 5  Port1
>
> Starting ax25.
>
> #First thing to do is put your TNC into KISS mode
> #The following should work for a TNC2 clone if the dip switches on the =
back
> #are set for 9600bd terminal rate.
> #
> #Tiny2 to KISS mode
> stty -F /dev/ttyS1 speed 9600
> echo -en "KISS ON\015" > /dev/ttyS1
> echo -en "RESTART\015" > /dev/ttyS1
> echo  "Tiny2 should be in KISS mode now"
> #
> #If using modules, you activate the kiss module
> modprobe mkiss
> #You must activate the port(s). This one is on your second serial port
> # and give it an IP address. Use your 44 address if you have one.
> /usr/sbin/kissattach /dev/ttyS1 Port1 192.168.0.10
>
> > I can't type in the Port field in xcall.  I am not sure where I tell =
the
> > program what COM port I am using.
>
> It should find the ports you have.
>
> To recap.
> First fix your axports file.
>
> # /etc/ax25/axports
> #
> # The format of this file is:
> #
> # name callsign speed paclen window description
> Port1 VK3KDI 9600 255 5  Port1
> #
>
> Now start ax25.
> Try this bash script.
>
> #!/bin/sh
> # /etc/ax25/startax25
> # Test script for starting up ax25 support.
> #
> # Don't worry about this if your TNC is already in KISS mode, but it wo=
n't
> # hurt and if your TNC dropped out of KISS mode, this will fix it.
> #Tiny2 to KISS mode
> stty -F /dev/ttyS1 speed 9600
> echo -en "KISS ON\015" > /dev/ttyS1
> echo -en "RESTART\015" > /dev/ttyS1
> echo  "Tiny2 should be in KISS mode now"
> #
> # Remove the following # if you're using modules.
> #modprobe mkiss
> /usr/sbin/kissattach /dev/ttyS1 Port1 192.168.0.10
> #
> #ax25 should now be working
> # The end

Thanks.  I gave you the wrong axports. It must have been the precedent in=
=20
$HOME.  /etc/ax25/axports is

# Axports file
Port1 =09VK3KDI-1=091200=09255=091=09VHF Port

The modprobe worked O.K.  I am using Mandrake 9.0 and installed the libax=
25=20
and libax25-devel RPMs, but I don't seem to have /usr/sbin/kisattach.
Should I change 192.168.0.10 to 127.0.0.1 for my system, as I don't have =
my=20
own domain name?

Cheers,

Doug.


=20
--=20
Linux: in a world without fences, who needs Gates?
--and what's more, it's immune to viruses.