KY; command response

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

KY; command response

w9cf

I have been trying to use the computer control for my K2/100. I am using the
RS232 port on the KPA100. I cannot seem to ever get any response except
KY0; to the KY; command. If I send a KY; immediately after
KY 123456789012345678901234;
while the K2 is still sending the first character, it should respond KY1;,
but I get instead KY0;. If I send KY; after the sending is complete I get
KY0; instead of KY2;. What am I missing? I always get KY0; as a response.

73 Kevin w9cf
_______________________________________________
Elecraft mailing list
Post to: [hidden email]
You must be a subscriber to post to the list.
Subscriber Info (Addr. Change, sub, unsub etc.):
 http://mailman.qth.net/mailman/listinfo/elecraft   

Help: http://mailman.qth.net/subscribers.htm
Elecraft web page: http://www.elecraft.com

Reply | Threaded
Open this post in threaded view
|

Re: KY; command response

Jack Brindle
Kevin;

This tends to be a confusing command to many people. I have found  
that using the extended response format provides better information  
than the basic response, allowing the K2 to better throttle data  
coming from the computer.

Let's take a look at your examples:

On Jan 23, 2007, at 9:15 PM, Kevin Schmidt wrote:

> I have been trying to use the computer control for my K2/100. I am  
> using the
> RS232 port on the KPA100. I cannot seem to ever get any response  
> except
> KY0; to the KY; command. If I send a KY; immediately after
> KY 123456789012345678901234;
> while the K2 is still sending the first character, it should  
> respond KY1;,
> but I get instead KY0;. If I send KY; after the sending is complete  
> I get
> KY0; instead of KY2;. What am I missing? I always get KY0; as a  
> response.

Actually, if the K2 is sending a character, it has already pulled it  
from the buffer, so the buffer is not full. You can then send one  
character to the K2 and should see a KY1; response. This really  
doesn't provide very good information for the computer, though. Thus  
you probably want to send the K2 a K22; command to place it in  
extended response mode. You will then be able to send characters to  
the K2, then watch the buffer as it empties. In fact, to get a KY2;  
response, you must be in extended response mode. It is then  
realtively easy to have the computer send characters to the K2, then  
monitor the buffer level, sending more characters when the level  
drops below the 75% threshold.

Hope this helps!

- Jack Brindle, W6FB
------------------------------------------------------------------------
---------------------


_______________________________________________
Elecraft mailing list
Post to: [hidden email]
You must be a subscriber to post to the list.
Subscriber Info (Addr. Change, sub, unsub etc.):
 http://mailman.qth.net/mailman/listinfo/elecraft   

Help: http://mailman.qth.net/subscribers.htm
Elecraft web page: http://www.elecraft.com

Reply | Threaded
Open this post in threaded view
|

Re: KY; command response

w9cf
That was very helpful.  Thanks and 73

Kevin w9cf

On Tue, Jan 23, 2007 at 09:52:57PM -0800, Jack Brindle wrote:
> Kevin;
>
> This tends to be a confusing command to many people. I have found  
> that using the extended response format provides better information  
> than the basic response, allowing the K2 to better throttle data  
> coming from the computer.
...

_______________________________________________
Elecraft mailing list
Post to: [hidden email]
You must be a subscriber to post to the list.
Subscriber Info (Addr. Change, sub, unsub etc.):
 http://mailman.qth.net/mailman/listinfo/elecraft   

Help: http://mailman.qth.net/subscribers.htm
Elecraft web page: http://www.elecraft.com