summaryrefslogtreecommitdiffstats
path: root/hdlcutil/soundmodem.9
blob: 89c945ceec085710d25f189dc08e6a6d9f196bcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
.\" Copyright 1996 Thomas Sailer (t.sailer@alumni.ethz.ch)
.\" May be distributed under the GNU General Public License
.\" "
.TH SOUNDMODEM 9 "27 April 2008" "Linux 2.1.x" "Kernel Reference Guide"
.SH NAME
soundmodem \- amateur (AX.25) packet radio network driver for soundcards
.SH SYNOPSIS

.nf
.B #include <linux/soundmodem.h>
.B #include <linux/hdlcdrv.h>
.fi

.SH DESCRIPTION
The driver currently supports both 1200 baud AFSK and 9600 baud FSK
(G3RUH compatible) using a standard SoundBlaster compatible or
WindowsSoundSystem compatible soundcard. The whole decoding is done
in software, so you definitely do not want to use it on a 386SX class
machine.

.SH "KEYING THE TRANSMITTER"
Soundcards do not have a DC coupled output that could serve as a
PTT signal. So there are basically for possibilities for
obtaining a PTT signal. Sample schematic diagrams can be found on
\fIhttp://www.ife.ee.ethz.ch/~sailer/pcf/ptt_circ/ptt.html\fP.
.SS "VOX circuitry"
A simple VOX circuitry that detects output signals at the output of
the soundcard can be used, especially as it can be built with a single
transistor plus a few passive components and typical soundcards have
strong output signals.
.SS "Parallel Port"
A parallel port line can also be used to signal PTT. If selected,
the PTT signal is output on the DATA0 line and DCD is output on the
DATA1 line.
.SS "Serial Port"
A standard serial port (8250, 16450, 16550) can also be used to output
PTT. PTT is output on RTS and TxD, while DCD is output on DTR.
.SS "MPU401 MIDI Port"
The MIDI port is basically an asynchronous serial interface and
thus cannot output a straight DC level, however it may be used if
connected through a retriggerable monoflop with about 15ms pulse
duration. Note that only newer SoundBlaster models have a genuine
MPU401 MIDI port. The older SB MIDI port cannot be used.

.SH "IOCTL CALLS"
The \fBioctl\fP calls follow the implementation in the \fIhdlcdrv\fP.

.TP
.B SMCTL_GETMODEMTYPE
returns the modem type (i.e. \fISBC1200\fP, \fISBC9600\fP, \fIWSS1200\fP
or \fIWSS9600\fP)
.TP
.B SMCTL_SETMODEMTYPE
sets the modem type. Only superuser can do this.
.TP
.B SMCTL_GETMIXER
returns the mixer type and the contents of the specified
mixer register.
.TP
.B SMCTL_SETMIXER
sets the specified mixer register, if the specified
mixer type matches the mixer type of the soundcard. Only
superuser can do this.
.TP
.B SMCTL_DIAGNOSE
returns the contents of the diagnose buffer, which is used by
\fIsmdiag\fP to display the eye and oscilloscope diagrams.
.TP
.B SMCTL_GETDEBUG
return some debugging values. Not always available.


.SH "SEE ALSO"
.BR baycom " (9), " soundmodem " (9)," smdiag " (8)," smmixer " (9),"
linux/drivers/net/hdlcdrv.c,

.SH AUTHOR
soundmodem was written by Thomas Sailer, HB9JNX/AE4WA, (t.sailer@alumni.ethz.ch).