📄 soundmodem.txt
字号:
LINUX DRIVER FOR SOUNDCARDS AS AX.25 MODEMS Thomas M. Sailer, HB9JNX/AE4WA, <sailer@ife.ee.ethz.ch>This driver allows either SoundBlaster (sbc) or Windows Sound System (wss)compatible soundcards to be used as either 1200 baud AFSK or 9600 baud FSKAX.25 packet radio modems. Only half duplex operation is supported; anattempt to include full duplex support failed because the hardware didnot support it (it appeared that the card only provides one DMA channel,although the codec chip would support two channels). The driver needssome processing power! A 66 MHz 486 DX2 is a minimum requirement. Otherwiseinteractive performance of the computer may become sluggish. This driverdoes *not* support telephone modem standards, it is intended for radiouse only.The Interface of the driverThe driver provides kernel network drivers named sm[0-3]. sethdlc from the ax25 utilities may be used to set driver states etc. Usersof userland AX.25 stacks may use the net2kiss utility (also availablein the ax25 utilities package) to convert packets of a network interfaceto a KISS stream on a pseudo tty. There's also a patch available fromme for WAMPES which allows attaching a kernel network interface directly.Configuring the driverSome sound cards need to be initialized before they operate in eitherSoundBlaster or WSS compatibility mode. The driver does _NOT_ do this;you may use the standard linux sound driver to initialize the soundcard;compile it as a module, and do insmod sound rmmod soundThe soundcard should then be initialized correctly. If this does not help,you'll have to write your own initialization utility.Every time the driver is inserted into the kernel, it has to know whichmodems it should access at which ports. This can be done with the setbaycomutility. If you are only using one modem, you can also configure thedriver from the insmod command line (or by means of an option line in/etc/modules.conf).Examples: insmod soundmodem mode="sbc:afsk1200" iobase=0x220 irq=5 dma=1 sethdlc -i sm0 -p mode "sbc:afsk1200" io 0x220 irq 5 dma 1Both lines configure the first port to drive a soundblaster cardin 1200 baud AFSK mode.The channel access parameters can be set with sethdlc -a or kissparms.Note that both utilities interpret the values slightly different.Input and output levelsIt is important that the input and output levels are adjusted properly.There are two utilities, available in the ax25 utilities distribution,to facilitate this: smmixer and smdiag. smdiag allows you to displaythe input signal in an oscilloscope like display or an eye diagram.smmixer allows you to adjust input/output levels. See the respectiveman pages.Transmitter keyingSince soundcards do not have a DC coupled output; PTT keying options includethe following:* VOX circuitry* Serial port pin* Parallel port pin* MPU401 MIDI output via a retriggerable monoflop.Circuit schematics may be found athttp://www.ife.ee.ethz.ch/~sailer/pcf/ptt_circ/ptt.html.Compatibility with the rest of the Linux kernelThe sound driver and the soundcard modem driver compete for the samehardware resources. Of course only one driver can access a giveninterface at a time. Worse yet, the sound driver grabs the soundcardat startup time. Therefore the soundcard modem driver subsequently won'tbe able to access the soundcard. You might therefore find it necessary tounload the sound driver before using the soundcard modem driver.vy 73s deTom Sailer, sailer@ife.ee.ethz.chhb9jnx @ hb9w.ampr.org
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -