locked Re: JTAlert 2.16.4 & earlier: Caller's sign mistakenly ID'd as grid, then falsely alerts New Grid - there being no match.

HamApps Support (VK3AMA)

On 23/04/2020 3:46 pm, TomK wrote:
I noticed this bug for at least the last 5 versions.
JT mistakenly interprets the caller's call sign as a grid no when the message's format is abbreviated to only contain the caller and called signs.
E.g., JT wen detects/decodes the message, "974Y AN195A" - the caller being a Spanish station.
JT parses out the "AN195A" as a grid no, not the caller's sign.
It then populates the grid column in the DECODES matrix with "AN195A"
I assume it then leaves the caller's sign value blank
It then triggers a new grid alert by not finding any grid value of "AN195A" in the Log DB.
Since call signs rarely match valid grid nos, a New Grid Alert is generated.
If I'm chasing grids, I double click the entry, nothing happens and my head gets balder. 
I assume nothing happens because there is no Caller Call Sign so JT goes NOP.

For the moment  don't recall the other call signs that trigger this bug.
Suffice it to say, "974Y AN195A" triggers this bug.

Suggested Code Change:
Pre-flight check the format of the messages based on token count.
Parse tokens left to right.
If only 2 tokens and 1st is not a call director group (CQ, CQ DX, CQ etc)
.. assume they are Called and Caller
Voila. Fudged and fixed.
Just a thought.

Ps. Still holding my breath for US County alert either by band or not.

Thanks Laurie.


Are your sure about 2.16.4 producing that result. I can't reproduce here in testing. I don't bother testing older versions.
I have a couple of hundred non-typical decode strings I routinely test against to ensure that the JTAlert code is correctly identifying the Callsigns and Grids.

Putting "
974Y AN195A" into that test gives me this result... "974Y AN195A --> call = [AN195A], grid = []"

It correctly identifies AN195A as the calling station.

I also cannot reproduce the Decodes window displaying "AN195A" in the grid columns.
It is not a valid grid and gets ignored. The "5" digit should be an alpha character in the "a" to "z" range. The Decodes window will only display valid 4 or 6 characters Grids, a 5 character grid would not.

de Laurie VK3AMA

Join Support@HamApps.groups.io to automatically receive all group messages.