Mitja,
Here is a script i borrowed from someone. If you use this script please
remember to modify the callsign info in the various fields so my call sign
doesnt appear out on the network somewhere else where i'm not. :)
Good luck.
#!/bin/sh
# This was based on ndc (for mainting your name server)... I'm sure it
# isn't the way to do things but...
# The procedure it to run axrun smodules (to load modules) then either
# axrun sm12 or sm96... To shutdown do a axrun smdown...
#
# This is just a starting point.... You NEED to change your network
# configuration to suit you network.
#
# You should note this missing link to getting your serial PTT working.
#
# Copyright 1997 James Jefferson <[EMAIL PROTECTED]> - do as you please
USAGE='echo \
"usage: $0 \
(sm12|sm96|smodules|kpc-3|kissmod|smdown) \
... \
"; exit 1'
for ARG
do
case $ARG in
sm12|sm96|smodules|kpc-3|kissmod|smdown)
;;
*)
[ $RUNNING -eq 0 ] && {
echo $PS
exit 1
}
esac
case $ARG in
smodules) /sbin/insmod ax25 ; /sbin/insmod hdlcdrv ; /sbin/insmod soundmodem;;
sm12)
# /usr/sbin/setcrystal -w 0x530 -i 11 -d 1
# /sbin/setserial /dev/cua0 uart none
# /usr/sbin/sethdlc -p -i sm0 mode sbc:afsk1200 io 0x220 irq 7 dma 1
pario 0x378
/usr/sbin/sethdlc -p -i sm0 mode sbc:afsk1200 io 0x220 irq 7 dma 1
pario 0x278
/sbin/ifconfig sm0 207.180.222.161 hw ax25 N8YHV broadcast
207.180.222.175 netmask 255.255.255.240 mtu 256 up
/sbin/route add -net 207.180.222.160 netmask 255.255.255.240 sm0
/usr/sbin/axparms -setcall sm0 n8yhv
/usr/sbin/smmixer i=0 o=10 s=line
/usr/sbin/sethdlc -a txd 400
beacon -t 10 1 "Linux Soundmodem running 1200 baud AFSK from Ryan
(N8YHV) in Cleveland, Ohio."
echo
echo "sm12 attached"
;;
sm96)
# /usr/sbin/setcrystal -w 0x530 -i 11 -d 1
# /sbin/setserial /dev/cua0 uart none
/usr/sbin/sethdlc -p -i sm0 mode sbc:fsk9600 io 0x220 irq 5 dma 1
pario 0x378
/sbin/ifconfig sm0 207.180.223.18 hw ax25 N8YHV-9 broadcast
207.180.223.23 netmask 255.255.255.248 mtu 256 up
# /sbin/route add -net 207.180.223.112 netmask 255.255.255.248 sm0
# /sbin/route add 207.180.222.161 dev sm0
/sbin/route add default gw 207.180.223.21 dev sm0
/usr/sbin/axparms -setcall sm0 n8yhv-9
/usr/sbin/smmixer i=0 o=10 s=line
# /usr/sbin/smmixer s=mic
/usr/sbin/sethdlc -a txd 300
/usr/sbin/beacon -t 10 2 "N8YHV-1/BBS N8YHV-5/SHELL - Ryan in North
Olmsted, Ohio. ([EMAIL PROTECTED])"
/usr/sbin/ax25d
/home/ryan/axdigi-0.02/axdigi &
echo "sm96 attached"
;;
kpc-3) echo "kpc-3 attached to cua0 - work on script";;
kissmod) /sbin/insmod ax25 ; /sbin/insmod mkiss;;
smdown) /sbin/ifconfig sm0 down ; /sbin/rmmod soundmodem ; /sbin/rmmod hdlcdrv
; /sbin/rmmod ax25 ; echo "Soundmodem DOWN!";;
*) eval "$USAGE";;
esac
done
test -z "$ARG" && eval "$USAGE"
exit 0
Ryan Wilkins
[EMAIL PROTECTED]
On Fri, 3 Mar 2000, Mitja Bezget wrote:
> Hi!
>
> Same problems here.. There is absolutly nothing that would make
> my configuration work (SB AWE32 & AWE 64).. I tried out various settings
> for in/out levels but still no luck.. Perhaps you will succeed (like
> most of other HAMs). Download smdiag and see what happens at RX side..
> Use smmixer to set the levels... Good luck!
>
> 73 de Mitja
>
> ps. Can somebody post his configuration script for sm0 device?
> insmod/modprobe, ifconfig, smmixer, routes setup... maybe an output
> of ifconfig? TNX
>
>
> On Fri, 3 Mar 2000, astari wrote:
> > i'd try to using soundmodem my rx seems good but my tx received nothing
> > what's wrong ?
>