Linux-Hams archive - January 1997: Re: How to make real CW on Linux ?

Re: How to make real CW on Linux ?

Terry Dawson (stohqyvr.loxdui@kerailya.tunkki.fi)
Mon, 06 Jan 1997 09:39:22 +1100


Iztok Saje wrote:

> Here comes my questions:
> - TX output:
> How to control individual output pins on RS-232 PC interface
> with good timing control ?
> - TX timing:
> CW TX program should execute at least every milisecond or
> have good timing control. One dot is really short when
> QRQing at 200 LPM.
> - TX key input:
> It had to be scanned every milisecond, or IRQ driven with good
> time info.
>
> I am afraid of writing complete device driver for CW - based on
> HB9JNX baycom code (he solved all my problems there). Is there a
> way to do it in user space ? Or are there some nice HOW-TOs
> describing what I need ?

There is a parallel port programming mini-howto about the place.
A good web search should find it (its probably on sunsite.unc.edu).

The Kernel Hackers Guide should help with other bits and pieces,
and for millisecond resolution timing from user space, take a
look at the man page for the select() function. If you call it
with null fields for all but the timeout parameter it will
act like sleep(), except with mS resolution.

Terry