MAMorse.tcl
Þessi síða hefur verið heimsótt
sinnum síðan Maí 11 2003
MAMorse.tcl is a simple TCL/TK program for sending words to the
internal keyer of the Elecraft K2 tranceiver. It opens a serial port
connection to the K2 and sends words or characters to the internal
keyer using the KY command.
Two windows are opened on the screen with buttons at each side. The upper
window is for entering text, the lower window shows the text sent to
the K2 internal keyer.
The words are sent to the K2 as soon as a space or newline
is entered in the upper window.
Resending a word is simple just backspace to the end of the word and
press space again, the word will be sent again.
Text from a text file can also be sent to K2.
This needs more work, but currently the program waits for
some time after sending each word, depending of the length of the word,
600ms*wordlength at 20WPM speed. The speed selector in the File button
is for setting the delay, you can adjust the KEYER speed in K2 afterwards
using the speed pot.
This prevents buffer overflow, but is clumsy.
Buttons with user defined fixed texts are also available. The text
and button names can be configured at will, but keep the text string
length less than 23 characters long and the button names short.
The GUI the MAMorse.tcl
Please use some other name for your program and remember that the
code is distributed under
GPL
, which means that you can copy it, use it and
modify it as long as you let other people do the same to your version.
Download the program
Download the
MAMorse.tcl
program
Installation
I have only tested this program under Debian Linux using TCL 8.3 and TK 8.3,
but it should work on all Un*x platforms, and hopefully on Windblow$ as well.
Go to the Tcl/Tk home for downloading
the TCL/TK interpreter for various operating systems,
go to the Software section
You run the code as an ordinary user.
You have to have write permissions to the serial port you use,
in Debian Linux the serial ports are group writable by dialout, so
put yourself in the dialout group and connect the serial cable to
the appropriate port. Then install the MAMorse.tcl somewhere in PATH,
I use ~/bin, make MAMorse.tcl runnable by:
chmod 755 MAMorse.tcl
now change the serial PORT to the the serial device
(/dev/ttyS0 or /dev/ttyS1 in Linux) you use,
and also change the CALLSIGN, MYNAME and QTH
entries in MAMorse.tcl,
that's all folks, now you can test the program.
Initial testing and using
Put the K2 in CW testmode, (hold down the MODE button, while
in CW mode), or just put the K2 in CW mode and press the Test button.
Set the power output to minimum, and type in
a word, if all goes well you will hear the K2 outputting the morse
code when you enter a newline or space.
Then to try it on the air, press the Opr button and adjust the power. To
abort and stop sending the current word press Clear.
To send a file, select File->open and then File->send. This feature can be
used for practicing (with K2 in CW test mode) or even sending bulletins.
- File -> Open File --- open a textfile to send
- File -> Send File --- send the textfile at the indicated WPM
- File -> Stop sending --- abort file sending, same as Clear
- File -> 15 WPM --- set keyer speed for file sending
- File -> 20 WPM --- set keyer speed for file sending
- File -> 25 WPM --- set keyer speed for file sending
- File -> 30 WPM --- set keyer speed for file sending
- File -> Quit --- terminates the program
- Clear --- stop sending the current word
- Test --- put the K2 in CW TEST mode (only mterm.tcl)
- Opr --- put the K2 in CW OPR mode (only mterm.tcl)
- Left side buttons are 3 user defined messages sent to K2 keyer
- Rigth side buttons are 7 user defined messages sent to K2 keyer
You have to edit the MAMorse.tcl code to change the messages and the
button names.
GPL
Last updated
Lau Maí 17 20:29:48 GMT 2003
More TCL/TK programs for K2
Back