n4af / TR4W

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

WSJT-X coloring of CQ not working #660

Closed ny4i closed 1 year ago

ny4i commented 1 year ago

When a CQ is received by WSJT-X, TR4W should highlight if it is a dupe or a mult. This message appears in the DEBUG log:

25 Jun 2023 12:10:41.853 5515259 [6296] warn TR4WDebugLog  - Either DXCall (W4BFB) or grid () was not present in CQ message: CQ FD W4BFB EM95
25 Jun 2023 12:10:41.853 5515259 [6296] debug TR4WDebugLog  - [uWSJTX] W4BFB is a DUPE
25 Jun 2023 12:10:41.853 5515259 [6296] debug TR4WDebugLog  - [uWSJTX] Highlighting call CQ FD W4BFB EM95 as a dupe with RGB colors 255:  0:  0
25 Jun 2023 12:10:41.864 5515270 [6296] debug TR4WDebugLog  - [uWSJTX] Processing message CQ FD W2TTT EM80
25 Jun 2023 12:10:41.864 5515270 [6296] debug TR4WDebugLog  - Checking if FD is a valid call
25 Jun 2023 12:10:41.864 5515270 [6296] debug TR4WDebugLog  - Checking if W2TTT is a valid call
25 Jun 2023 12:10:41.865 5515271 [6296] debug TR4WDebugLog  - W2TTT is a valid call
25 Jun 2023 12:10:41.865 5515271 [6296] debug TR4WDebugLog  - Found callsign W2TTT
25 Jun 2023 12:10:41.865 5515271 [6296] warn TR4WDebugLog  - Either DXCall (W2TTT) or grid () was not present in CQ message: CQ FD W2TTT EM80

The action reported by this line is not happening:

25 Jun 2023 12:10:41.853 5515259 [6296] debug TR4WDebugLog - [uWSJTX] Highlighting call CQ FD W4BFB EM95 as a dupe with RGB colors 255: 0: 0

Also, see why this error message appears: Either DXCall (W2TTT) or grid () was not present in CQ message: CQ FD W2TTT EM80 The call is clearly present as is the grid.

ny4i commented 1 year ago

I completely reworked this code. Now I just highlight the call or grid. You cannot send back the whole message verbatim as given by WSJT-X as it will not accept the ? a7 or a1 at the end of the message.