FR CW tips

From Tučňák Wiki
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.

(http://www.ok1rr.com/view.php?cisloclanku=2007122501) 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
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
CONFIG_SMP=y
CONFIG_X86_PC=y

....

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 2.6.23.12) 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.

Démarrer sans les privilèges administrateur

Il y a nul besoin de démarrer séparément cwdaemon avec les privilèges administrateur. Il suffit d'ajouter quelques caractères dans votre script de démarrage et cwdaemon se lancera sans aucune commande particulière. C'est une bonne solution pour une machine radioamateur, mais cependant vous pourriez être confronté à quelques soucis lors de l'utilisation de votre port parallèle pour l'impression ou dans d'autres buts.

J'ai ajouté simplement quelques blocs de texte à /etc/rc.d/rc.local qui s'applique à la distribution Slackware GNU/Linux, cependant, le chemin et le nom peuvent être différents pour votre distribution.

Le premier bloc est utile pour lancer les modules parport et parport_pc qui sont essentiels au bon fonctionnement de cwdaemon. Le second bloc permet le lancement de cwdaemon. Premièrement, cela stoppe le module qui peut déjà utiliser le port parallèle - là en l'occurence, c'était cups. cwdaemon ne se lancera pas non plus sur le module lp est lancé, ainsi l'arrêt de ce dernier sera également nécessaire. Ensuite, un "noeud de dispositif" est créé et cwdaemon se lance.

#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

Rappelez-vous des options de cwdaemon :

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.

Amusez-vous avec cwdaemon !