Re: [wsjt-devel] AC Log Hamlib error on frequencies 1GHz and higher

2025-04-19 Thread Mike Lewis via wsjt-devel
I found the hamlib source code today and took a look.  AC log uses the Dummy 
rig and aclog.c translates the AC Log commands to hamlib commands for this 
virtual rig interface.

In aclog_get_freq() function, the frequency is read from the http string.  
FREQ>1,296.171100");
*freq = 0;

if (p) { sscanf(p, "%lf", freq); }

*freq *= 1e6; // convert from MHz to Hz

if (*freq == 0)
{
rig_debug(RIG_DEBUG_ERR, "%s: freq==0??\nvalue=%s\n", __func__,
  value);
RETURNFUNC(-RIG_EPROTO);
}
else
{
rig_debug(RIG_DEBUG_TRACE, "%s: freq=%.0f\n", __func__, *freq);
}

if (vfo == RIG_VFO_A)
{
priv->curr_freqA = *freq;
}
else // future support in ACLOG maybe?
{
priv->curr_freqB = *freq;
}

-Original Message-
From: Mike Lewis via wsjt-devel  
Sent: Thursday, April 17, 2025 10:23 AM
To: wsjt-devel@lists.sourceforge.net
Cc: Mike Lewis 
Subject: [wsjt-devel] AC Log Hamlib error on frequencies 1GHz and higher

I am using N3FJP AC Log which has rig control.  I set up various versions 
(2.7.0 and 2.8.0_improved)  of WSJT-X to use the N3FJP AC Log rig definition.   
Radios tested are IC-905, IC-705 (with a transverter aware band decoder) and 
Elecraft K3. The later 2 have transverters on 903 and 1296 and they report the 
transverter's frequency over CAT.

Focusing on just the K3 or IC-905, when any band below 1GHz is selected, all 
works as it should, with or without WSJT-X running.

Change bands by any means (radio or WSJTX) to any band higher than 903, WSJT-X 
reads the frequency as only the 1GHz digit times 1,000,000.   For example.  
1296 results in 1.000,000Hz.  
2304.100.000 results in 2.000MHz
5760.1 results in 5.000MHz

After WSJTZX now think the frequency is 1.000Mhz (for 1296) it thinks a band 
change occurredon the WSJT-X side and sends 1.0MHz to AC Log where it is 
updated and AC Log in turn changes the radio to 1.000Mhz.


I turned on WSJT_X Rig Control logging and got a narrowed log that I think 
shows the problem is in the WSJT-X hamlib code.   I tried WSJT-X 
V2.8.0_improved today, same issue with frequencies above >999Mhz.

In this attached log, I have the K3 set to 1296.171.100.  AC Log is controlling 
the rig.  All is good so far.

I then start up WSJT-X.  It queries AC Log for freq and gets 1296.   Has 
correct band (23) and mode (SSB).
string='23SSBPH1,296.171100

The next thing is it extracts the frequency from the message wrong
[2025-04-17 16:32:23.578614][00:00:02.941014][RIGCTRL:trace] aclog_get_freq: 
freq=100

Now WSJTX thinks it is 1.000MHz.  It polls AC Log a bit more, it still gets 
1296 as proper.
Then it decided the frequency has changed and sends 1.000MHz to AC Log.  Now AC 
log says 1.55MHz.
[2025-04-17 16:32:23.585489][00:00:02.951073][RIGCTRL:trace] aclog_set_freq: 
vfo=VFOA freq=155

[2025-04-17 16:32:23.585489][00:00:02.951193][RIGCTRL:trace] 3c 43 4d 
44 3e 3c 43 48 41 4e 47 45 46 52 45 51 1.55

On the K3 I see 1.000.055 on the dial, then it immediately changes to 
1.000.000.No idea why, step size is 10Hz on the radio. 

A log excerpt is pasted  below, a full log attached if not stripped.

Shutdown WSJT-X and AC Log frequency stays at 1.000.000.

73,

Mike Lewis, K7MDL
CN87xs
 

__

[2025-04-17 16:32:23.578614][00:00:02.940480][RIGCTRL:debug] network_flush 
called
[2025-04-17 16:32:23.578614][00:00:02.940574][RIGCTRL:trace] write_block(): TX 
22 bytes
[2025-04-17 16:32:23.578614][00:00:02.940579][RIGCTRL:trace] 3c 43 4d 
44 3e 3c 52 45 41 44 42 4d 46 3e 3c 2f ..
[2025-04-17 16:32:23.578614][00:00:02.940588][RIGCTRL:debug] 
*5:aclog.c(247):write_transaction returning(0)
[2025-04-17 16:32:23.578614][00:00:02.940592][RIGCTRL:debug] 
*5:aclog.c(141):read_transaction entered
[2025-04-17 16:32:23.578614][00:00:02.940923][RIGCTRL:trace] 
read_string_generic(): RX 109 characters, direct=1
[2025-04-17 16:32:23.578614][00:00:02.940948][RIGCTRL:trace] 3c 43 4d 
44 3e 3c 52 45 41 44 42 4d 46 52 45 53 23SSBP
[2025-04-17 16:32:23.578614][00:00:02.940963][RIGCTRL:trace] 004048 3c 2f 
4d 4f 44 45 54 45 53 54 3e 3c 46 52 45 H1,296.171100..
[2025-04-17 16:32:23.578614][00:00:02.940975][RIGCTRL:trace] read_transaction: 
string='23SSBPH1,296.171100
'
[2025-04-17 16:32:23.578614][00:00:02.940983][RIGCTRL:trace] read_transaction: 
got 
[2025-04-17 16:32:23.578614][00:00:02.940989][RIGCTRL:debug] 
*5:aclog.c(208):read_transaction returning(0)
[2025-04-17 16:32:23.578614][00:00:02.940995][RIGCTRL:debug] 
4:aclog_transaction: elapsed=0ms
[2025-04-17 16:32:23.578614][00:00:02.941001][RIGCTRL:debug] 
4:aclog.c(311):aclog_transaction returning(0)
[2025-04-17 16:32:23.578614][00:00:02.941014][RIGCTRL:trace] aclog_get_freq: 
freq=100
[2025-04-17 16:32:23.578614][00:00:02.941022][RIGCTRL:debug] 
***3:aclog.c(488):aclog_get_freq returning(0)
[2025-04-17 16:32:23.578614][00:00:02.941028][RIGCTRL:

Re: [wsjt-devel] v2.8.0 improved with OmniRig

2025-04-19 Thread Andy Durbin via wsjt-devel
"2.8.0 improved, when used with OnmiRig, does not control rig frequency when 
Mode = None.  It does control rig frequency when Mode = USB."

A bit more experimenting with 2.8.0. showed MODE=USB was a necessary but not 
sufficient condition.  Rig control only seemed to work if Split operation was 
changed too.

E.g.

Start with Mode None, Split Rig - frequency control inop
Set Mode USB - frequency control inop
Set Split Fake it - Rig RX VFO responds. TX VFO unchanged
Set Split Rig - Frequency control ok
Set Mode none - Frequency control inop
Set Mode USB - Frequency control inop
Set Split none - Rig RX VFO responds. TX VFO unchanged
Set Split Rig - frequency control ok

This is only part of the problem.  The fact that the WSJT-X dial frequency does 
change means the WSJT-X frequency display is not always rig dial frequency but 
is sometimes the commanded dial frequency.

Shouldn't WSJT-X dial frequency always be the frequency reported by the rig and 
have some alert if rig frequency is not equal to commanded frequency?

73,
Andy, k3wyc

___
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel


Re: [wsjt-devel] ICR8600

2025-04-19 Thread David Owen via wsjt-devel
Hi
I had a very similar problem with my R8600. I did try to find the
cause but gave up trying a debugging version of Hamlib.
Versions of Hamlib before July 2024 work OK and I don't think there
are any features lost
 as far as the R8600 is concerned.
Regards

David Owen
GM1OXB

On Thu, Apr 17, 2025 at 6:59 PM Christopher Smith via wsjt-devel
 wrote:
>
> When upgrading to version 2.7.0 I can no longer control my Icom R8600. It was 
> working with earlier versions (2.6.1).
>
> I am running Windows 10 Pro.
>
> The program starts and shows the current radio frequency. (This seems to be 
> the case whether I start the program with the radio in the VFO mode or memory 
> mode - it has never mattered before.)
>
> When I use the frequency drop down box the frequency does not change. When I 
> try again I get a Rig Control Error box with details:
>
> > Hamlib error:
> > icom.c(9652):set_vfo_curr returning2(-9) Command rejected by the rig
> >
> > icom.c(1595):icom_set_freq returning2(-9) Command rejected by the rig
> >
> > rig_set_cache_freq(171):  vfo=VFOA, current_vfo=currVFO
> > rig_set_freq: vfo=VFOA, save=currVFO
> > *rig.c(2410) trace
> > **2:rig.c():rig_set_vfo entered
> > rig_set_vfo called vfo=currVFO
> > vfo_fixup:(from rig_set_vfo:3347) vfo=currVFO, vfo_curr=currVFO, split=0
> > vfo_fixup: Leaving currVFO alone
> > **2:rig_set_vfo: elapsed=0ms
> > **2:rig.c(3352):rig_set_vfo returning(0)
> > *1:rig_set_freq: elapsed=31ms
> > rig_lock: client lock disengaged
> > *1:rig.c(2416):rig_set_freq returning(-9) Command rejected by the rig
> >
> > Command rejected by the rig
> > Command rejected by the rig
> >  while setting frequency
> >
> > Timestamp: 2025-04-15T16:31:36.050Z
>
> When reverting to the previous hamlib version, but still running WSJT-X 
> version 2.7.0 I  have the same problem.
>
> I might note the current FLDIGI embedded hamlib version works, to a point. I 
> can always set the frequency from the radio, but when I vary the frequency 
> from the radio, FLDIGI only follows it for a few changes, then the display 
> (on the program, not the radio) locks up.
>
> 73,
>
> Chris NX0E
>
>
>
> ___
> wsjt-devel mailing list
> wsjt-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wsjt-devel


___
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel