[Elecraft] K3 programming problem
Nate Bargmann
n0nb at n0nb.us
Sun Jan 29 19:26:21 EST 2012
* On 2012 29 Jan 14:36 -0600, Neoklis Kyriazis wrote:
> Hi
>
> I have started adding support for the K3 in my ham radio applications for Linux.
> I am currently working with my xdemorse app which decodes Morse code via
> the sound card and can also control the transceiver (tune in a signal on the
>
> waterfall exactly by changing the frequency of the receiver).
>
> Doing this involves reading the current VFO frequency, correcting it according
> to the offset from the center of the waterfall and then sending it to the K3 VFO.
> I have gotten all this to work well (I can tune in a CW signal to the nearest 1-2 Hz
> just by clicking near the trace!), but in order to read data from the K3 it was
>
> necessary to invoke the posix read() command to pull data from the K3 one byte
> at a time, e.g. read( serial_fd, buffer, 1 ) enough times to read all the data (14
> times to read the frequency with the FA; command!).
>
> Normally it should have been read( serial_fd, buffer, 14 ) to read all bytes, as it
> is done for the FT847/FT857 CAT. I would like to know if the above is the normal
> way to read the serial port of the K3 (e.g. one byte at a time), or if I am doing
> something wrong here.
As Hamlib is available for POSIX and Win32 systems, have you considered
it? If the K3 support is not up to part, let me know. I'd like to
improve it. The upshot for you is that you can write to a single API to
control all manner of rigs. c.f. Fldigi, CQRlog, gpredict, etc.
73, de Nate, N0NB >>
--
"The optimist proclaims that we live in the best of all
possible worlds. The pessimist fears this is true."
Ham radio, Linux, bikes, and more: http://www.n0nb.us
More information about the Elecraft
mailing list