K3 Programmer's Reference - Noise Reduction

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

K3 Programmer's Reference - Noise Reduction

N5GE
I know I'm missing it somewhere in the document, but I can't find a
command that sets the NR except for swt34; which does not trigger a
reply from the rig.

How do I query the K3 for the state of the NR?

Tom
Radio Amateur N5GE

______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Amateur Radio Operator N5GE
Reply | Threaded
Open this post in threaded view
|

Re: K3 Programmer's Reference - Noise Reduction

Stan Gibbs, KR7C
In K31 mode, the "DS" command returns the state of main NR in bit 2.  (Page 8)

Radio Amateur N5GE wrote
How do I query the K3 for the state of the NR?
73, Stan - KR7C
Reply | Threaded
Open this post in threaded view
|

Re: K3 Programmer's Reference - Noise Reduction

N5GE
In reply to this post by N5GE
On Tue, 02 Nov 2010 09:04:04 -0500, you wrote:

More confusion...

I used the K3 utility to try the command nr; and it always returns
nr0; regardless of the NR setting.

How do I get the state of the NR????

>I know I'm missing it somewhere in the document, but I can't find a
>command that sets the NR except for swt34; which does not trigger a
>reply from the rig.
>
>How do I query the K3 for the state of the NR?
>
>Tom
>Radio Amateur N5GE
>
>______________________________________________________________
>Elecraft mailing list
>Home: http://mailman.qth.net/mailman/listinfo/elecraft
>Help: http://mailman.qth.net/mmfaq.htm
>Post: mailto:[hidden email]
>
>This list hosted by: http://www.qsl.net
>Please help support this email list: http://www.qsl.net/donate.html

______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Amateur Radio Operator N5GE
Reply | Threaded
Open this post in threaded view
|

Re: K3 Programmer's Reference - Noise Reduction

wayne burdick
Administrator
"DS" command byte 2, bit 2 reflects the NR icon state, which will  
normally be the MAIN NR but is SUB NR in BSET mode with the sub on.

"IC" command reports sub receiver NR status in byte e, bit 2.

73,
Wayne
N6KR

On Nov 2, 2010, at 7:33 AM, Amateur Radio Operator N5GE wrote:

> On Tue, 02 Nov 2010 09:04:04 -0500, you wrote:
>
> More confusion...
>
> I used the K3 utility to try the command nr; and it always returns
> nr0; regardless of the NR setting.
>
> How do I get the state of the NR????
>
>> I know I'm missing it somewhere in the document, but I can't find a
>> command that sets the NR except for swt34; which does not trigger a
>> reply from the rig.
>>
>> How do I query the K3 for the state of the NR?
>>
>> Tom
>> Radio Amateur N5GE
>>
>> ______________________________________________________________
>> Elecraft mailing list
>> Home: http://mailman.qth.net/mailman/listinfo/elecraft
>> Help: http://mailman.qth.net/mmfaq.htm
>> Post: mailto:[hidden email]
>>
>> This list hosted by: http://www.qsl.net
>> Please help support this email list: http://www.qsl.net/donate.html
>
> ______________________________________________________________
> Elecraft mailing list
> Home: http://mailman.qth.net/mailman/listinfo/elecraft
> Help: http://mailman.qth.net/mmfaq.htm
> Post: mailto:[hidden email]
>
> This list hosted by: http://www.qsl.net
> Please help support this email list: http://www.qsl.net/donate.html

______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Reply | Threaded
Open this post in threaded view
|

Re: K3 Programmer's Reference - Noise Reduction

N5GE
In reply to this post by Stan Gibbs, KR7C
On Tue, 2 Nov 2010 07:32:50 -0700 (PDT), Stan wrote:

Thanks to both of you guys!

I see the DS and IC commands and had considered using the IC command
last night but I'm embarased to say that I don't know how to get the
bits out of a byte.

Is there a function in the C# language to do that?  Or does one of you
have  'C' or C# code that does this?

 I searched all of the online doc for C# but found nothing that I
understood and unfortunately no example that fit my needs.

Thanks

Tom
Radio Amateur N5GE

>
>In K31 mode, the "DS" command returns the state of main NR in bit 2.  (Page
>8)
>
>
>Radio Amateur N5GE wrote:
>>
>> How do I query the K3 for the state of the NR?
>>
>
>
>-----
>73, Stan - KR7C

______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Amateur Radio Operator N5GE
Reply | Threaded
Open this post in threaded view
|

Re: K3 Programmer's Reference - Noise Reduction

wayne burdick
Administrator
Hi Tom,

To test the value of bit 0 in an 8-bit variable X in C, you can use  
the bitwise AND operator (&):

    if( X & 0b1 )
       do_something()

0b1 is a binary constant that's the equivalent of a byte with only bit  
0 set. It is used by the & operator as a "mask". If bit 0 of byte X is  
also set, then the tested "if" statement will be true.

The other bits from 1 to 7 can be accessed with constant masks of  
0b10, 0b100, 0b1000, 0b10000, 0b100000, 0b1000000, and 0b10000000. Or  
you could use constant values of 1, 2, 4, 8, 16, 32, 64, and 128  
(decimal) or 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80  
(hexadecimal).

73,
Wayne
N6KR


On Nov 2, 2010, at 7:59 AM, Amateur Radio Operator N5GE wrote:

> On Tue, 2 Nov 2010 07:32:50 -0700 (PDT), Stan wrote:
>
> Thanks to both of you guys!
>
> I see the DS and IC commands and had considered using the IC command
> last night but I'm embarased to say that I don't know how to get the
> bits out of a byte.
>
> Is there a function in the C# language to do that?  Or does one of you
> have  'C' or C# code that does this?
>
> I searched all of the online doc for C# but found nothing that I
> understood and unfortunately no example that fit my needs.
>
> Thanks
>
> Tom
> Radio Amateur N5GE
>
>>
>> In K31 mode, the "DS" command returns the state of main NR in bit  
>> 2.  (Page
>> 8)
>>
>>
>> Radio Amateur N5GE wrote:
>>>
>>> How do I query the K3 for the state of the NR?
>>>
>>
>>
>> -----
>> 73, Stan - KR7C

______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html