Hi!

Again I have problems with our school-station which I can�t solve alone
:-(

After a hardwareproblem (harddisk crash) we reinstalled the system from
the scratch. System is an P75 with 16 MB and SuSE 6.1 distribution.

We use a selfmade SCC-card with two baycom-modems.

First the init-file for the z8530-driver
---/etc/ax25/z8530drv.conf
# z8530drv.conf
# file generated by $Id: gencfg.c,v 1.4 1995/11/17 01:11:27 jreuter Exp jreuter
#
#
chip 1
data_a 0x223
data_b 0x221
ctrl_a 0x222
ctrl_b 0x220
irq 5
pclock 4915200
board PA0HZP
escc no
#
#
#
# the following is a skelleton of the MODEM and KISS parameter
# definitions. Adjust to your situation.
#
device /dev/scc0
speed 1200      # baudrate
clock dpll      # clock source
mode nrzi       # NRZI or NRZ
#
txdelay 36
persist 64
slot     8
tail     8
fulldup  0
wait    12
min      3
maxkey   7
idle     3
maxdef 120
group    0
txoff  off
softdcd on
#
#
#
device /dev/scc1
speed 1200      # baudrate
clock dpll      # clock source
mode nrzi       # NRZI or NRZ
#
txdelay 36
persist 64
slot     8
tail     8
fulldup  0
wait    12
min      3
maxkey   7
idle     3
maxdef 120
group    0
txoff  off
softdcd on
#
#
#
# EOF
---

SCCcard is found after inserting z8530 and ax25 module (I compiled all
things as modules).
Then I initialize both scc-ports with sccparam:
#! /bin/sh
echo -n "Initialising scc-card "
        /sbin/sccparam scc0 speed 1200
        /sbin/sccparam scc1 speed 1200
        /sbin/sccparam scc0 persist 64
        /sbin/sccparam scc1 persist 50
        /sbin/sccparam scc0 txdelay 45
        /sbin/sccparam scc1 txdelay 45
        /sbin/sccparam scc0 slot 10
        /sbin/sccparam scc1 slot 10
        /sbin/sccparam scc0 txtail 10
        /sbin/sccparam scc1 txtail 10

Since linuXnet needs kiss-devices, I used net2kiss:
#! /bin/sh
        echo -n "Setup route for scc-card "
        /sbin/ifconfig scc0 192.168.3.10 hw ax25 no1zgl
        /sbin/ifconfig scc1 192.168.3.10 hw ax25 no1zgl
        /usr/sbin/net2kiss -a -i scc0 /dev/ptyp1 &
        /usr/sbin/net2kiss -a -i scc1 /dev/ptyp0 &

Then I start linuXnet with this AUTOEXEC.NET:
attach sdev0 kiss 0 1 1200 /dev/ttyp0
attach sdev1 kiss 1 1 1200 /dev/ttyp1
attach sdev2 kiss 2 1 19200 /dev/ptyp2

"sdev0" and "sdev1" for both scc-ports and "sdev2" for an internal link
to tfkiss-tnt-dpbox.

All this seemed to be correct. I made a few testconnects from the
tnt-console and it worked.
Later I tried to connect the node from outside, and it seems that there
are some routing or protocol problems:

After sending ONE "SABM" to the station, I receive TWO "UA" and the
Ctext from the node. After sending "RR1" the station sends a "SABM"
back to me and after this I got Frame-rejects.

No connect to the station is possible, since it sends a lot of "SABM"s
and "FRMR"s.
The station behaves as if both ports are on the same channel and
receives each packet two times from outside.
Using the station as digipeater (VIA link to dpbox on port2/sdev2)
works well without problems.

If I enable the monitor-function of linuXnet I see each frame two
times, one time with header and one time without (on info-frames).

Hope you can help.

73
Matthias
-- 
\"""\\"""\\""/----------------------------------------------------------
 \   \\   \\/  WSPse / Matthias Hensler  -  [EMAIL PROTECTED]  -  ICQ: 24719025
  \  / \  / My Linux/PR/C64-Page: http://excelsior.kullen.rwth-aachen.de
   \/   \/--------------------------------------------------------------

Reply via email to