Mike Black W9MDB
64c2a4d4a9
Add TRACE statements to allow for better debug following top level rig calls
2021-04-27 09:36:27 -05:00
Mike Black W9MDB
19fb0e421d
Change rig_set_split_mode to return RIG_OK when set_vfo and vfo_op are not available
...
For the FT-991 example there's no need to set mode on VFOB as there is only one mode for both VFOs
So if rig has neither of these we will assume VFOB mode does not need to be set
https://github.com/Hamlib/Hamlib/issues/684
2021-04-27 06:50:00 -05:00
Mike Black W9MDB
1d79b9e01c
Fix icom \get_mode in non-vfo mode to stay on VFOB/Sub
...
https://github.com/Hamlib/Hamlib/issues/676
2021-04-23 17:43:54 -05:00
Mike Black W9MDB
d0af094d39
Fix set freq on Sub VFO return to Main
...
https://github.com/Hamlib/Hamlib/issues/670
2021-04-23 11:01:17 -05:00
Mike Black W9MDB
b0e006ce6c
astyle files
2021-04-21 23:48:29 -05:00
Mike Black W9MDB
aefe8c44b7
In rig.c if rig does not set get_split_vfo then return cached values
...
https://github.com/Hamlib/Hamlib/issues/654
https://github.com/Hamlib/Hamlib/issues/665
2021-04-18 11:35:35 -05:00
Mike Black W9MDB
8fe1615ccd
Force Icom rigs to set VFOA as startup VFO
...
https://github.com/Hamlib/Hamlib/issues/665
2021-04-16 17:30:39 -05:00
Mike Black W9MDB
1bd795e297
Add vfo_fixup to rig_set_vfo
...
https://github.com/Hamlib/Hamlib/issues/665
2021-04-15 17:19:42 -05:00
Mike Black W9MDB
7d79b59bd7
When vfo twiddling is being done set_freq calls will be skipped
...
https://github.com/Hamlib/Hamlib/issues/664
2021-04-15 11:47:58 -05:00
Mike Black W9MDB
44925bbfca
Fir rig.c rig_set_split_freq_mode to use VFOB/Sub as appropriate
...
https://github.com/Hamlib/Hamlib/issues/665
2021-04-14 23:06:00 -05:00
Mike Black W9MDB
73464a6c2e
Fix IC910 behavior with gpredict -- also should fix some Main/Sub behavior elsewhere too
...
https://github.com/Hamlib/Hamlib/issues/657
2021-04-11 11:49:37 -05:00
Mike Black W9MDB
778758200e
A more robust rigctld that can survive the rig disappearing and coming back again.
...
This means when a rigctld client sees RIG_EIO it can keep polling and will reconnect when the rig reappears.
2021-04-10 14:22:53 -05:00
Mike Black W9MDB
1d1259545a
Change CHECK_RIG in rig.c to return RIGEIO instead of RIGEINVAL
...
This is a hard error and allows rigctld to reopen ports and not have to restart
2021-04-10 07:58:38 -05:00
Mike Black W9MDB
0981fa630d
astyle files
2021-04-06 11:40:02 -05:00
Mike Black W9MDB
7d2a5078c4
Fix get_vfo_info when VFOA is requested without setting VFOA first
...
https://github.com/Hamlib/Hamlib/issues/648
2021-04-05 11:46:58 -05:00
Mike Black W9MDB
bbc8e00074
astyle files
2021-04-04 12:50:07 -05:00
Mike Black W9MDB
92e40eca30
In rig.c reduce tx_range from ERR to VERBOSE -- it's not fatal at all
...
Was causing problems with powershell execution detecting the error condition
2021-04-03 10:32:43 -05:00
Michael Black W9MDB
0794e6e1e6
Merge branch 'master' of https://github.com/Hamlib/Hamlib
2021-04-02 08:04:37 -05:00
Michael Black W9MDB
33f299d16d
Change get_vfo_info return VFOA cached mode/width when TARGETABLE_VFO is false
...
https://github.com/Hamlib/Hamlib/issues/643
2021-04-02 08:03:13 -05:00
Mike Black W9MDB
8e1fae4ea4
Fix rig_set_split_freq in rig.c -- was not setting freq at all for non-targetable rigs
...
https://github.com/Hamlib/Hamlib/issues/640
2021-04-01 08:02:49 -05:00
Mike Black W9MDB
ac5a94a6f1
Fix debug statement in rig.c
2021-04-01 07:57:49 -05:00
Mike Black W9MDB
ca090e258c
Force rig_set_split_freq_mode to use VFOB
...
https://github.com/Hamlib/Hamlib/issues/640
2021-03-31 22:55:36 -05:00
Mike Black W9MDB
ebbf96efac
Fix spelling error in rig.c
2021-03-31 07:41:16 -05:00
Mike Black W9MDB
169c0ed2b5
Fix rig_set_split_vfo to use tx_vfo on non-vfo swap check
...
https://github.com/Hamlib/Hamlib/issues/640
2021-03-30 23:05:04 -05:00
Michael Black W9MDB
4135a65503
Add TARGETABLE_FREQ and TARGETABLE mode to IC7300 IC7610 IC7800 IC785X IC9700
...
This reduces VFO swapping during get_freq and get_mode operations
Log4OMV2 2.0.12 supports vfo mode using new get_vfo_info call
New debug level RIG_DEBUG_CACHE as it can get very verbose
https://github.com/Hamlib/Hamlib/issues/626
2021-03-26 10:54:11 -05:00
Michael Black W9MDB
86ca6de85f
Change rig_get_freq call to use VFO_CURR instead of vfo to avoid looping
...
https://github.com/Hamlib/Hamlib/issues/625
2021-03-23 11:03:57 -05:00
Michael Black W9MDB
cb9d2e064c
Comment out loop logic in rig_set_split_freq_mode -- seems to causing a permanent loop -- why?
...
https://github.com/Hamlib/Hamlib/issues/625
2021-03-23 08:57:45 -05:00
Michael Black W9MDB
b90cd8b8c7
Fix MainB caching
...
Satmode ops now maps Sub vfo to Sub_A
https://github.com/Hamlib/Hamlib/issues/620
2021-03-23 08:08:21 -05:00
Michael Black W9MDB
ae3fef1e0c
Disable set_ptt confirmation logic. Seems many rigs can't deal with it.
...
https://github.com/Hamlib/Hamlib/issues/623
2021-03-20 16:57:46 -05:00
Michael Black W9MDB
1224e9f6ba
Move hamlibdatetime.h generation to src directory
...
https://github.com/Hamlib/Hamlib/issues/617
2021-03-19 23:14:13 -05:00
Michael Black W9MDB
6eee309b56
Improve rig_get_version and hamlib_version2 information to include commit information
...
https://github.com/Hamlib/Hamlib/issues/617
2021-03-19 22:56:18 -05:00
Michael Black W9MDB
b9cc75c4a0
Remove all frequency verification as it seems to create problems on some rigs
...
https://github.com/Hamlib/Hamlib/issues/615
2021-03-18 15:40:32 -05:00
Michael Black W9MDB
30eaa78034
astyle rig.c
2021-03-18 08:16:06 -05:00
Michael Black W9MDB
c7c5cd81bc
In rig.c change RETURNFUNC calls with functions into separate lines
...
https://github.com/Hamlib/Hamlib/issues/615
2021-03-18 07:09:58 -05:00
Michael Black W9MDB
ab59951e97
astyle files
2021-03-17 07:56:27 -05:00
Michael Black W9MDB
8817f12180
Fix rig_set_freq and set_cache_freq so if freq=0 cache is expired
...
https://github.com/Hamlib/Hamlib/issues/610
2021-03-15 22:55:45 -05:00
Michael Black W9MDB
3bc39aaec1
astyle files is preparation for 4.2 release
2021-03-15 17:51:22 -05:00
Michael Black W9MDB
1ba72fa725
Improve caching
...
https://github.com/Hamlib/Hamlib/issues/280
https://github.com/Hamlib/Hamlib/issues/606
2021-03-15 11:16:11 -05:00
Michael Black W9MDB
d816d27c74
Fix FlRig conditon where 0Hz can be returned on a network error
...
Was returning a bad error code
If any rig returns 0 Hz freq will be returned from cache instead
I don't think there's anytime we want a zero Hz frequency
2021-03-12 09:02:26 -06:00
Michael Black W9MDB
198f1cb43e
Remove some cache debug
2021-03-11 08:51:30 -06:00
Michael Black W9MDB
74a10af560
Increase msg size
2021-03-09 17:29:29 -06:00
Michael Black W9MDB
59dcb2e9b6
Remove RIG_TARGETABLE_PURE as it was not referenced in any rig
...
https://github.com/Hamlib/Hamlib/issues/414
2021-03-09 00:01:05 -06:00
Michael Black W9MDB
79f58bce6f
Finish rig_get_vfo_list and \get_vfo_list
...
https://github.com/Hamlib/Hamlib/issues/577
2021-03-08 23:42:35 -06:00
Michael Black W9MDB
207f28b256
Add debug to rig.c
...
https://github.com/Hamlib/Hamlib/issues/593
2021-03-08 16:59:22 -06:00
Michael Black W9MDB
0ad32a4f8a
Update logic to suppress bogus set freq error
2021-03-08 16:44:29 -06:00
Michael Black W9MDB
57ba6800f1
More debug info when frequency cannot be set
2021-03-08 07:31:21 -06:00
Michael Black W9MDB
c1f539b1f6
Add one more level of debug msg history
2021-03-07 12:02:26 -06:00
Michael Black W9MDB
3d613519d5
Rename macros to avoid collisions with other software
2021-03-06 12:37:53 -06:00
Michael Black W9MDB
3aac60b5df
Add a 50ms sleep between set_ptt and get_ptt -- give the relays a chance
...
https://github.com/Hamlib/Hamlib/issues/587
2021-03-06 09:08:13 -06:00
Michael Black W9MDB
b9afd75110
Expire cache in set_ptt before get_ptt to ensure we read the real ptt status
...
https://github.com/Hamlib/Hamlib/issues/587
2021-03-06 08:47:00 -06:00
Michael Black W9MDB
a33a4ee098
Fix more mingw compilation warnings
2021-03-05 12:10:29 -06:00
Michael Black W9MDB
f88c3f4a4c
Fix mingw compilation errors on new rig_debug macro
2021-03-05 12:03:40 -06:00
Michael Black W9MDB
c3a1b489b7
Add return code to debug statements
...
Remove some RETURNFUNC that don't work with this change
2021-03-05 11:51:56 -06:00
Michael Black W9MDB
82126a4f09
Phase 1 of changing sprintflst functions to use buffer length
...
https://github.com/Hamlib/Hamlib/issues/580
2021-03-03 08:03:18 -06:00
Michael Black W9MDB
221d87c2e4
Add auto_power_off option from JTDX team
...
Change rig_get_vfo_info to do real calls intstead of cache
2021-03-02 13:03:30 -06:00
Michael Black W9MDB
8371f335cd
Add modeB to caching
...
update rig_vfo_get_info to recognize different VFO caches
https://github.com/Hamlib/Hamlib/issues/578
2021-03-02 11:11:12 -06:00
Michael Black W9MDB
396d985261
Change rig_get_vfo_info to use only cached values
...
This will avoid any vfo swapping on all rigs
Apps like Log4OM can now poll VFOA and VFOB without bothering the rig at all
2021-03-02 08:36:37 -06:00
Michael Black W9MDB
10fbe9bd4a
Change get_vfo_info to also return split
...
Since this is still a new call in 4.2 not considering this an API breakage
since it shouldn't be in common use yet
2021-03-01 14:56:21 -06:00
Michael Black W9MDB
52703c35d5
Fix cppcheck warning in rig.c
2021-02-28 12:37:54 -06:00
Michael Black W9MDB
ee60a68bec
astyle files
2021-02-28 09:46:01 -06:00
Michael Black W9MDB
c9913526be
Fix clang compile warning in rig.c
2021-02-28 06:57:09 -06:00
Michael Black W9MDB
26cfe0bb3f
Improve rig_set_freq to not rety when WSJT-X is doing it's 55Hz check
...
And don't confirm freq if no get_get exists
2021-02-26 23:53:31 -06:00
Michael Black W9MDB
4729f2a0f2
Small change to rig_set_freq retry
2021-02-26 23:37:25 -06:00
Michael Black W9MDB
bb00c35980
In rig_set_ptt allow rig_get_ptt to fail and retry
...
IC-9700 seems unable to query ptt right after setting it
https://github.com/Hamlib/Hamlib/issues/571
2021-02-26 11:35:53 -06:00
Michael Black W9MDB
84e4a6a88c
Fix compilation warnings in rig.c
2021-02-26 11:07:32 -06:00
Michael Black W9MDB
7eb50d0d97
Add verification of set_ptt with get_ptt
2021-02-24 22:39:45 -06:00
Michael Black W9MDB
e64c1e8eb7
Add freq check in rig_set_split_freq_mode to ensure requested freq is actually set
...
https://github.com/Hamlib/Hamlib/issues/558
2021-02-23 07:44:16 -06:00
Michael Black W9MDB
c83eb29e25
Add retry in rig_set_split_freq to ensure freq is actually changed
...
https://github.com/Hamlib/Hamlib/issues/558
2021-02-21 16:44:28 -06:00
Michael Black W9MDB
f4748ebf8a
Change rig.c to query freq after set freq to ensure it gets set
...
Up to 4 retries
https://github.com/Hamlib/Hamlib/issues/549
2021-02-16 15:58:12 -06:00
Michael Black W9MDB
b35191d6ad
Fix extra LF in rigerror output
...
ENTERFUNC/RETURNFUNC in dummy.c
https://github.com/Hamlib/Hamlib/issues/514
2021-02-10 22:58:45 -06:00
Michael Black W9MDB
6ffbf168d0
Add get_vfo_list command so rigctl can see available vfos
...
Should allow Log4OM to query VFOB/Sub freq now
Another fix to argumenet prompting with rigctl/rigctld
Add 2nd line of return for rigerror -- we well gradually be improving error info
https://github.com/Hamlib/Hamlib/issues/530
2021-02-10 17:32:59 -06:00
Michael Black W9MDB
02fffca989
Update currVFO cache freq before figuring out the real vfo in rig.c
2021-02-10 12:44:00 -06:00
Michael Black W9MDB
5b59868191
Add resetting of all VFO caches via set_cache_freq using RIG_VFO_ALL
...
https://github.com/Hamlib/Hamlib/issues/539
2021-02-09 15:41:33 -06:00
Michael Black W9MDB
a23a3b4882
Add a little debug to rig.c
...
https://github.com/Hamlib/Hamlib/issues/539
2021-02-08 17:36:48 -06:00
Michael Black W9MDB
2bb74f77d2
Fix debug msg formatting in rig.c
2021-02-08 17:31:43 -06:00
Michael Black W9MDB
54aca79671
Change ptt check in newcat.c set_freq to check ptt only for affected rigs
...
https://github.com/Hamlib/Hamlib/issues/540
2021-02-08 16:29:04 -06:00
Michael Black W9MDB
ad9d464822
Remove MainC from caching due to effect on rig_caps structure offsets
...
https://github.com/Hamlib/Hamlib/issues/537
2021-02-08 12:54:33 -06:00
Michael Black W9MDB
b05a1638a8
Add caching of MEM and MAINC vfos
2021-02-07 15:03:43 -06:00
Michael Black W9MDB
e0e743ee90
Update rig.c docs
2021-02-07 14:58:33 -06:00
Michael Black W9MDB
418e963c86
Add \get_vfo_info to rigctl and rigctld to allow geting freq/mode/width by vfo in one call
...
Overcomes limitation of f command where vfo swapping is needed if not in --vfo mode
rig_get_vfo_info function added
Log4OM should be able to get VFOB frequency on most rigs
https://github.com/Hamlib/Hamlib/issues/530
2021-02-07 12:45:59 -06:00
Michael Black W9MDB
96e2cc7829
Fix extra LF in debug messages
2021-02-03 09:59:14 -06:00
root
228cc10aeb
Fix compile warnings with -O2 flag
2021-02-03 06:13:12 +01:00
Michael Black W9MDB
84ce231daf
Fix link error for debugmsgsave on MacOS and perhaps others
2021-01-31 07:08:08 -06:00
Michael Black W9MDB
431b5dfc37
Make lack of tx_range_list non-fatal -- some rigs don't have this
2021-01-29 08:30:35 -06:00
c vw
f38f35beeb
corrected bug
2021-01-29 09:50:11 +01:00
Michael Black W9MDB
2be172ac4e
Improve robustness of rigctld
...
Now retries opening indefinitely
Improved client side too
Error message should now show timeout if rig disappears
2021-01-24 10:51:19 -06:00
Michael Black W9MDB
85205abd45
Keep debug msg for rig_check_rig_caps on all the time for now
2021-01-22 07:52:15 -06:00
Michael Black W9MDB
0058cffcc7
Add rig_check_rig_caps to check that shared library compatibility is good
...
Returns -RIG_EINTERNAL if bad, RIG_OK if good
Prints out WARN level message if bad
2021-01-21 17:18:45 -06:00
Michael Black W9MDB
1e96b1f4d7
Remove get_freq -- seems to be causing a problem with FLRig
2021-01-19 12:12:24 -06:00
Michael Black W9MDB
bc607bfc1d
Add rig_get_freq to rig_open to set up internal status correctly
2021-01-19 06:30:00 -06:00
Michael Black W9MDB
2654503779
small improvement on caching check logic
2021-01-18 08:48:10 -06:00
Michael Black W9MDB
60279707e2
Fix VFOB caching
2021-01-18 08:28:20 -06:00
Michael Black W9MDB
5cd82c4026
Change print format on a few freq items
2021-01-17 22:24:39 -06:00
Michael Black W9MDB
b1b6a0a771
Fix range_list check in src.c
2021-01-17 11:59:26 -06:00
Michael Black W9MDB
544777f935
Fixed ENTER func error
2021-01-17 07:32:42 -06:00
Michael Black W9MDB
c5c60f0f43
First phase of improving debug messages
2021-01-17 07:25:28 -06:00
Michael Black W9MDB
598b105e79
astyle files prepping for 4.1 release
2021-01-15 16:48:32 -06:00
Michael Black W9MDB
612de9762e
Fix intialization of rx_range_list
...
https://github.com/Hamlib/Hamlib/issues/504
2021-01-11 14:53:35 -06:00
Michael Black W9MDB
6e8b90aeec
Fix cppcheck warnings
2021-01-09 15:19:19 -06:00
Michael Black W9MDB
ca8ed30f8f
astyle files
2021-01-09 10:13:17 -06:00