Hello,
I recently started with packet radio again (after a pause of serveral
years). Finally I got the ax25 stuff to work and I already have made some
connections.
But I noticed a strange message in /var/log/messages (see below). There
might be an uninitialized variable in the soundmodem driver.
Furthermore I would like to have a feature added to the soundmodem-module.
I'm using a "homemade" pr-tranceiver (the t7f, which has been described in
the cq-dl 10-11/1998) which frequencies are programmed by TxD and RxD of the
serial interface.
Therefore I don't like the default behaviour of the soundmodem to toggle
RTS _and_ TxD simultaniously (to indicate PTT). To toggle _only_ RTS
would be very fine. Maybe this feature can be added by an option to
the soundmodem-module.
Empirically I found that replacing
outb(0x40 & (-ptt), UART_LCR(sm->hdrv.ptt_out.seriobase));
with
outb(0x40 , UART_LCR(sm->hdrv.ptt_out.seriobase));
outb(0x00 , UART_LCR(sm->hdrv.ptt_out.seriobase));
in linux/drivers/net/hamradio/soundmodem/sm.c produces the desired effect.
Yes, you have to use both of these lines. Omitting the first does not work!
Unfortunately I don't have any datasheet on the UART. Does anybody know where
I can download one?
vy 73, Peter
-----------------------------------------------------------------------------
I'm running:
Linux version 2.2.5
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
glibc-2.1
entries in /etc/conf.modules:
=============================
alias net-pf-3 ax25
alias net-pf-17 af_packet
alias sm0 soundmodem
options soundmodem mode='sbc:afsk1200' iobase=0x220 irq=5 dma=1
post-install soundmodem sethdlc -p -i sm0 serio 0x3f8
the init-file looks like this:
==============================
#initialize AWE64 soundcard
modprobe -a sound >/dev/null 2>&1
rmmod sb
rmmod uart401
rmmod sound
rmmod soundlow
rmmod soundcore
#load the soundmodem module and thus create the sm0 socket
#ifconfig requires that socket, but obviously can't tell it kerneld!?
sethdlc -p -i sm0
#configure the sm0 socket
#an pseudo IP-address and a netmask must be specified (why?)
ifconfig sm0 44.136.16.1 hw ax25 DG7MBK-0 netmask 255.255.255.0
#adjust the audio-levels
smmixer -i sm0 s=line.l i=0 o=-16
axparms -assoc dg7mbk hac
Entries in /var/log/messages:
=============================
Apr 25 14:02:29 sirius kernel: Soundblaster audio driver Copyright (C) by Hannu
Savolainen 1993-1996
Apr 25 14:02:29 sirius kernel: SB 4.16 detected OK (220)
Apr 25 14:02:30 sirius kernel: NET4: G4KLX/GW4PTS AX.25 for Linux. Version 0.37 for
Linux NET4.0
Apr 25 14:02:30 sirius kernel: hdlcdrv: (C) 1996 Thomas Sailer HB9JNX/AE4WA
Apr 25 14:02:30 sirius kernel: hdlcdrv: version 0.6 compiled 14:19:04 Apr 17 1999
Apr 25 14:02:30 sirius kernel: soundmodem: (C) 1996-1998 Thomas Sailer, HB9JNX/AE4WA
Apr 25 14:02:30 sirius kernel: soundmodem: version 0.8 compiled 14:01:42 Apr 25 1999
Apr 25 14:02:30 sirius kernel: soundmodem: SoundBlaster DSP revision 4.16
Apr 25 14:02:30 sirius kernel: soundmodem: ptt output: serial interface at 0x3f8, uart
16550A
Apr 25 14:02:30 sirius kernel: soundmodem: sbc mode afsk1200.afsk1200 at iobase 0x220
irq 5 dma 1 dma2 4294967295
^^^^^^^^^^
This here looks very strange!
-
Dr. Peter Hackenberg Phone: +49-331-7499-277
Astrophysikalisches Institut Potsdam Fax: +49-331-7499-352
Arbeitsgruppe solare Radioastronomie eMail: [EMAIL PROTECTED]
An der Sternwarte 16, D-14482 Potsdam WWW: http://www.aip.de:8080