[Packet] Linux & axports.

Shane Deering [email protected]
Sat, 24 May 2003 15:49:56 +1000


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 have 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 won'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

-- 
Shane Deering                   Sent using Kmail v1.4.3
[email protected]                  on Mandrake Linux, the Desktop OS
vk3bvp@vk3bvp.#sev.vic.aus.oc   MDK9.0 Up 49 minutes 
http://www.qsl.net/vk3bvp/      RH7.2 Up 19 hours and 57 minutes