-
Notifications
You must be signed in to change notification settings - Fork 39
ui: Allow callbook lookups for WSJT-X contacts even without grid square #825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This change is to allow WSJT-X format broadcast packets to trigger a callbook lookup even when the grid square is not specified. This is useful for non FT8 content. For example, realtime contest logs being sent from WriteLog to Qlog via the WSJT-X protocol. It is safe to call finalizeCallsignEdit() even without the grid square because the CallbookManager will cache lookups and prevent redundant lookups when WSJT-X sends multiple status type messages.
|
Unfortunately, this change breaks the essence of why it was there. And that is the fact that if you have a QSO from WSJT and it doesn't have a Grid, you can't tell whether the received Callbook entry corresponds to the current position of the DX Station. That's why the condition "to have a grid" was there. |
OK, that makes sense. Right now I have a work-around, and that is sending grid AA00 if it is not filled in. That's in the middle of the ocean and unlikely to be valid. This will trigger a callbook lookup in Qlog ... but it results in the AA00 being logged (the callbook lookup won't override it). What would you say about allowing the callbook to override the grid if it was something like AA00 or even something invalid like |
|
Oops.. i meant |
|
@foldynl How about a change like this instead? |
|
Can we go back to the beginning? Through which messages does writelog send that data? Because you’re modifying the handling of the “WSJTX Status message”, but that message itself doesn’t log anything. The QSO is written only when the “WSJTX Log message” is received. You’re right that the “WSJTX Status message” with the Grid triggers a Callbook query, but that’s only a preparation phase for the “WSJTX Log message.” Could you please send me the complete message flow you expect to occur? Will you also include the XXXX grid in the “WSJTX Log message”? |
|
Hi @foldynl - Here's a summary of the packets that my script sends:
The actual script that is doing the realtime conversion of WriteLog xml packets and forwarding them on to Qlog can be found here: https://github.com/sjwoodr/QLog/blob/n9oh/scripts/wl2qlog.py edit: this script works as-is and QSOs do show up in QLog after being entered in WriteLog. However, that fake "XXXX" grid gets logged. If I send no grid at all, we still log the QSO in QLog, but none of the callbook lookups happen, and the name, qth, etc is left unfilled out in the log entry. |
|
To be honest, I don't like this solution much when grid contains something invalid. But I have another idea. There is already a workaround for JTDX due to time zone. An acceptable solution would be to follow the approach used for JTDX. That is, don't try to pretend your script is WSJTX (I mean the packet application ID), but choose some unique identifier. If we slightly change how information is passed in QLog we can do something like: |
|
@foldynl - OK let's look at what your suggestion would look like: Key Changes:
How it works:
I can submit a new PR with this change if you agree with the approach and I understood your suggestion correctly. :) Thanks! |
|
I haven’t tested it, but probably something like you described. I’m not sure if it will be exactly like this; I might still make some changes, but the principle will stay the same. Just note that this is a functional change, so it will be in version 0.47 at the earliest. And to be honest, 0.47 will come sometime in January. |
This change is to allow WSJT-X format broadcast packets to trigger a callbook lookup even when the grid square is not specified. This is useful for non FT8 content. For example, realtime contest logs being sent from WriteLog to Qlog via the WSJT-X protocol. It is safe to call finalizeCallsignEdit() even without the grid square because the CallbookManager will cache lookups and prevent redundant lookups when WSJT-X sends multiple status type messages.