FR CW tips

From Tučňák Wiki
Revision as of 11:57, 13 March 2008 by F0FLO (talk | contribs) (New page: ''Note de OK1ZIA : Tucnak2 n'utilise plus cwdaemon (le démon CW) mais des infos sur la configuration du noyau est possible sur Tucnak.'' (
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Note de OK1ZIA : Tucnak2 n'utilise plus cwdaemon (le démon CW) mais des infos sur la configuration du noyau est possible sur Tucnak.

( Publié le 25. 12. 2007 (vu 212 fois)

Malgré l'existence de cwdaemon (grand merci à Joop. PG4I et les autres) plusieurs développeurs de logiciels sont tentés par l'utilisation de solutions matérielles, par exemple la WinKey de K1EL. C'est certainement un bon produit mais il n'existe pas de pilote utilisable sur Linux, excepté winkeydaemon de Rein, PA0R, qui est actuellement un script Perl et, malheureusement, je n'aime pas trop ce genre de gadget interprété.

Actuellement, cwdaemon est un très bon logiciel qui fait du bon boulot si vous compilez votre propre noyau et vous n'avez pas besoin de le lancer séparément avce les privilèges administrateurs si vous avez des ajouts dans votre script de démarrage.

Son faible en CW

Sloppy CW from the cwdaemon it depends on kernel settings. I tested it thoroughly because I love CW at higher speeds. Latency of 1000 Hz helped a bit, I was able to run at usual contest speeds up to 36 wpm. Since kernel 2.6.23 the problem seems cured with tickless kernel. Here is an excerpt from my config:

# Processor type and features


Now I can go up to 60 wpm and the resulting CW is excellent, however I'm using cwdaemon 0.9.4beta1. Versions below 0.8 are actually useless, the worst CW I ever heard was produced by cwdaemon 0.5 and an unmodified kernel.

The newest cwdaemon 0.9.4 depends on the unixcw version 2.3 (or above) which won't compile on my Slackware (and I was not patient enough to track all the dependencies), therefore not tested. Let me believe that the new dependency was a bad step back... I hope that new versions of cwdaemon will continue the way set by the 0.9.4beta1 version (source download here). Anyway, with this version of cwdaemon and custom made kernel 2.6.23 (actually I'm using now the latest I am fully satisfied. I am convinced that any development of CW related software should be thoroughly consulted with high speed freaks, it is rather bad if a developer or tester means he did well if he is limited by 25 wpm...

My Slackware package of the best cwdaemon ever issued is here.

Start-up without root privileges

There is no need to start the cwdaemon separately with root privileges. Put a little addition to your start-up script and cwdaemon will start without any keystroke. It is a good solution for a ham radio machine, however you may have some problems if you want to evaluate your parallel port for printing or other purposes.

I added two simple blocks to the /etc/rc.d/rc.local which applies to Slackware GNU/Linux, however your preferred distribution may use another name and location.

The first block is used to load parport and parport_pc modules whioch are essential to the cwdaemon. The second block actually loads the cwdaemon. First, it stops the module which can occupy your parallel port - here it was cups. cwdaemon also won't work if lp module is loaded, so unload it if necessary. Next, a device node is created and cwdaemon is loaded.

#load parport, parport_pc
modprobe parport
modprobe parport_pc

# Load cwdaemon
echo "starting cwdaemon"
/etc/rc.d/rc.cups stop
# rmmod lp
cd /dev
mknod -m 0660 parport0 c 99 0
/usr/local/sbin/cwdaemon -x n

Remember the cwdaemon options:

Usage: cwdaemon [option]...
       -d    Use a different device
                     (e.g. ttyS0,1,2, parport0,1, etc. default = parport0)
       -h            Display this help and exit
       -n            Do not fork and print debug information to stdout
       -p    Use a different UDP port number (> 1023, default = 6789)
       -P    Set cwdaemon priority (-20 ... 20, default = 0)
       -s    Set morse speed (4 ... 60 wpm, default = 24)
       -t    Set PTT delay (0 ... 50 ms, default = 0)
       -v    Set volume for soundcard output
       -V            Output version information and exit
       -w    Set weighting (-50 ... 50, default = 0)
       -x    Use a different sound device
                     (c = console (default), s = soundcard, b = both, n = none)

I find useful to start the cwdaemon without any sidetone, it seems much better to use the sidetone of your radio rather than the PC speaker.

Enjoy youy cwdaemon!