n4af / TR4W

TRLOG 4 Windows free amateur radio logging application
GNU General Public License v3.0
19 stars 6 forks source link

Investigate IF Shift on K3 and K4 #541

Closed ny4i closed 2 years ago

ny4i commented 2 years ago

We have reports that the K3 will shift the IF frequency on occasion. It is not clear what is causing this but this is a place to track research into the issue.

To see if the program is sending something strange, use the DEBUG LOG LEVEL CTRL-J config item. The code is already in MASTER to dump the data sent to the radio.Set it to DEBUG and you should get something like this in tr4w.log (in the program directory).

The log should produce something like this:

12 Nov 2021 14:28:21.655 19428 [13200] debug TR4WDebugLog  - Clearing main call window
12 Nov 2021 14:28:21.655 19428 [13200] debug TR4WDebugLog  - [TuneOnFreqFromCallWindow] Clearing Mults and QSO Needs Headers
12 Nov 2021 14:29:09.721 67494 [13200] debug TR4WDebugLog  - [SetRadioFreq] set frequency to 7025000
12 Nov 2021 14:29:09.721 67494 [13200] debug TR4WDebugLog  - FA00007025000;
12 Nov 2021 14:29:09.721 67494 [13200] debug TR4WDebugLog  - MD3;007025000;
12 Nov 2021 14:29:13.441 71214 [13200] debug TR4WDebugLog  - [ShowMultiplierStatus] MultNeedsHeader field set to 70
12 Nov 2021 14:29:13.441 71214 [13200] debug TR4WDebugLog  - [SetMultStatus] Entered with call = 70 and TempMult = 
12 Nov 2021 14:29:13.441 71214 [13200] debug TR4WDebugLog  - [SetMultStatus] Exiting early because NumberDifferentMults = 0
12 Nov 2021 14:29:14.129 71902 [13200] debug TR4WDebugLog  - [ShowMultiplierStatus] MultNeedsHeader field set to 703
12 Nov 2021 14:29:14.151 71924 [13200] debug TR4WDebugLog  - [SetMultStatus] Entered with call = 703 and TempMult = 
12 Nov 2021 14:29:14.151 71924 [13200] debug TR4WDebugLog  - [SetMultStatus] Exiting early because NumberDifferentMults = 0
12 Nov 2021 14:29:14.293 72066 [13200] debug TR4WDebugLog  - [ShowMultiplierStatus] MultNeedsHeader field set to 7030
12 Nov 2021 14:29:14.293 72066 [13200] debug TR4WDebugLog  - [SetMultStatus] Entered with call = 7030 and TempMult = 
12 Nov 2021 14:29:14.293 72066 [13200] debug TR4WDebugLog  - [SetMultStatus] Exiting early because NumberDifferentMults = 0
12 Nov 2021 14:29:14.621 72394 [13200] debug TR4WDebugLog  - [SetRadioFreq] set frequency to 7030000
12 Nov 2021 14:29:14.621 72394 [13200] debug TR4WDebugLog  - FA00007030000;
12 Nov 2021 14:29:14.621 72394 [13200] debug TR4WDebugLog  - MD3;007030000;
12 Nov 2021 14:29:14.621 72394 [13200] debug TR4WDebugLog  - Clearing main call window
12 Nov 2021 14:29:14.621 72394 [13200] debug TR4WDebugLog  - [TuneOnFreqFromCallWindow] Clearing Mults and QSO Needs Headers
12 Nov 2021 14:29:21.753 79526 [13200] debug TR4WDebugLog  - [SetRadioFreq] set frequency to 7040000
12 Nov 2021 14:29:21.754 79527 [13200] debug TR4WDebugLog  - FB00007040000;
12 Nov 2021 14:29:21.754 79527 [13200] debug TR4WDebugLog  - MD3;007040000;
12 Nov 2021 14:29:21.757 79530 [13200] debug TR4WDebugLog  - FR0;FT1;
ny4i commented 2 years ago

The IS 9999; command does reset the IF to center on the K4. My K3 is not hooked backup yet.

n4af commented 2 years ago

good enuff. next question-- can DEBUG TRACE pick it up ??

Tks, Howie

On Fri, Nov 12, 2021 at 4:17 PM Tom Schaefer @.***> wrote:

The IS 9999; command does reset the IF to center on the K4. My K3 is not hooked backup yet.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/n4af/TR4W/issues/541#issuecomment-967573354, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVLCUG22SNQB6G7EOTOUALULV75TANCNFSM5H5RK5FQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

ny4i commented 2 years ago

Let me confirm the debug is right before we send to the serial port (and there is only one place we do). Otherwise, I will add some code to log there too.

ny4i commented 2 years ago

Refresh my memory. Is this what should be in the CFG file to send this to the radio?

CQ CW MEMORY F12=<03>SRSIS 9999;<04>
CQ CW MEMORY F12 CAPTION=IF Cntr
n4af commented 2 years ago

close but not quite. u need the srs'='

CQ CW MEMORY CONTROLF1=<03>SRS=IS 9999;<04>

On Fri, Nov 12, 2021 at 4:29 PM Tom Schaefer @.***> wrote:

Refresh my memory. Is this what should be in the CFG file to send this to the radio?

CQ CW MEMORY F12=<03>SRSIS 9999;<04> CQ CW MEMORY F12 CAPTION=IF Cntr

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/n4af/TR4W/issues/541#issuecomment-967594166, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVLCUAO3QQIRMKLXSP7R5LULWBM7ANCNFSM5H5RK5FQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

ny4i commented 2 years ago

Issue #543 logs this properly. I saw the IS 9999; Now all data we send to the radio is logged with TRACE. Use TRACE instead of DEBUG.

I used Notepad++ and search for the string "Calling WriteFile to write" in current document to list them all.

        Line 15679: 12 Nov 2021 17:00:11.818 15824 [6372] trace TR4WDebugLog  - [K4] Calling WriteFile to write 3 bytes <IF;>
    Line 15686: 12 Nov 2021 17:00:11.865 15871 [6372] trace TR4WDebugLog  - [K4] Calling WriteFile to write 3 bytes <FB;>
    Line 15692: 12 Nov 2021 17:00:11.912 15918 [6372] trace TR4WDebugLog  - [K4] Calling WriteFile to write 3 bytes <IF;>
    Line 15699: 12 Nov 2021 17:00:11.959 15965 [6372] trace TR4WDebugLog  - [K4] Calling WriteFile to write 3 bytes <IF;>
    Line 15706: 12 Nov 2021 17:00:12.008 16014 [6372] trace TR4WDebugLog  - [K4] Calling WriteFile to write 3 bytes <IF;>
    Line 15713: 12 Nov 2021 17:00:12.055 16061 [6372] trace TR4WDebugLog  - [K4] Calling WriteFile to write 3 bytes <IF;>
    Line 15720: 12 Nov 2021 17:00:12.102 16108 [6372] trace TR4WDebugLog  - [K4] Calling WriteFile to write 3 bytes <IF;>
    Line 15727: 12 Nov 2021 17:00:12.129 16135 [12696] trace TR4WDebugLog  - [K4] Calling WriteFile to write 8 bytes <IS 9999;>
    Line 15729: 12 Nov 2021 17:00:12.138 16144 [6372] trace TR4WDebugLog  - [K4] Calling WriteFile to write 3 bytes <IF;>
    Line 15736: 12 Nov 2021 17:00:12.187 16193 [6372] trace TR4WDebugLog  - [K4] Calling WriteFile to write 3 bytes <IF;>
    Line 15743: 12 Nov 2021 17:00:12.234 16240 [6372] trace TR4WDebugLog  - [K4] Calling WriteFile to write 3 bytes <IF;>
    Line 15750: 12 Nov 2021 17:00:12.283 16289 [6372] trace TR4WDebugLog  - [K4] Calling WriteFile to write 3 bytes <IF;>
    Line 15757: 12 Nov 2021 17:00:12.330 16336 [6372] trace TR4WDebugLog  - [K4] Calling WriteFile to write 3 bytes <IF;>
    Line 15764: 12 Nov 2021 17:00:12.376 16382 [6372] trace TR4WDebugLog  - [K4] Calling WriteFile to write 3 bytes <FB;>
    Line 15770: 12 Nov 2021 17:00:12.411 16417 [6372] trace TR4WDebugLog  - [K4] Calling WriteFile to write 3 bytes <IF;>
    Line 15777: 12 Nov 2021 17:00:12.458 16464 [6372] trace TR4WDebugLog  - [K4] Calling WriteFile to write 3 bytes <IF;>
    Line 15784: 12 Nov 2021 17:00:12.507 16513 [6372] trace TR4WDebugLog  - [K4] Calling WriteFile to write 3 bytes <IF;>
    Line 15791: 12 Nov 2021 17:00:12.554 16560 [6372] trace TR4WDebugLog  - [K4] Calling WriteFile to write 3 bytes <IF;>
    Line 15798: 12 Nov 2021 17:00:12.601 16607 [6372] trace TR4WDebugLog  - [K4] Calling WriteFile to write 3 bytes <
ny4i commented 2 years ago

BTW, I did not put the *SRS and it works OK.

The following works fine:

CQ CW MEMORY F11=<03>SRS=RC;<04>
CQ CW MEMORY F11 CAPTION=CLR RIT
CQ CW MEMORY F12=<03>SRS=IS 9999;<04>
CQ CW MEMORY F12 CAPTION=IF Cntr
n4af commented 2 years ago

it seems to work. u ready 4 me to ask Marv to run 4.105.8 TRACE ?

[LEFT] Calling WriteFile to write 3 bytes <IF;> 12 Nov 2021 17:17:18.258 19515 [9476] trace TR4WDebugLog - Max wait time (ms) -0 12 Nov 2021 17:17:18.258 19515 [9476] trace TR4WDebugLog - [ReadFromSerialPort] Read IF00007040140 -000000 0003000011 ;

On Fri, Nov 12, 2021 at 5:09 PM Tom Schaefer @.***> wrote:

BTW, I did not put the *SRS and it works OK.

The following works fine:

CQ CW MEMORY F11=<03>SRS=RC;<04> CQ CW MEMORY F11 CAPTION=CLR RIT CQ CW MEMORY F12=<03>SRS=IS 9999;<04> CQ CW MEMORY F12 CAPTION=IF Cntr

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/n4af/TR4W/issues/541#issuecomment-967666392, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVLCUH2E7SW4WTBHKEA2SLULWGCHANCNFSM5H5RK5FQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

ny4i commented 2 years ago

I cannot recall if Marv still has the IF Shift issue?

n4af commented 2 years ago

I think this can be closed.