Wykres commitów

627 Commity (08c06aea147efe28d56baaf308b03d8463c9600e)

Autor SHA1 Wiadomość Data
Mike Black W9MDB c5378b9f70 Remove some more debug 2021-06-01 07:10:44 -05:00
Mike Black W9MDB 9755454ff8 Fix Icom UDP server check 2021-05-31 17:42:07 -05:00
Mike Black W9MDB 97e36926d3 Enable UDP network for Icom rigs 2021-05-31 09:05:41 -05:00
Mike Black W9MDB a419ad0c4b Fix spellilng error in export statement -- to quick to commit
https://github.com/Hamlib/Hamlib/issues/710
2021-05-26 13:12:44 -05:00
Mike Black W9MDB 0f5995aaf5 Change export to HAMLIB_EXPORT_VAR
https://github.com/Hamlib/Hamlib/issues/710
2021-05-26 13:07:11 -05:00
Mike Black W9MDB 8ded4461c2 Fix export of cookie_use for DLL linkage
https://github.com/Hamlib/Hamlib/issues/710
2021-05-26 12:50:30 -05:00
Mike Black W9MDB d2f7957e8b astyle rig.c 2021-05-26 09:30:02 -05:00
Mike Black W9MDB ca6692c022 Reduce cache verbosity to only when DEBUG_CACHE is asked for
Fix rig_get_rig_info -- it was adding binary CRC to the result
2021-05-26 09:05:38 -05:00
Mike Black W9MDB f08881613e Change another ECONF to EINVAL
https://github.com/Hamlib/Hamlib/issues/650
2021-05-25 10:24:00 -05:00
Mike Black W9MDB 552fd6159b Change power2mw ECONF error to EINVAL
https://github.com/Hamlib/Hamlib/issues/650
2021-05-25 10:22:52 -05:00
Mike Black W9MDB 8e63ce7a36 Add multicast thread -- the intent is that this will always run
https://github.com/Hamlib/Hamlib/issues/695
2021-05-25 09:29:27 -05:00
Mike Black W9MDB 556304d455 Merge branch 'master' of https://github.com/Hamlib/Hamlib 2021-05-25 09:19:33 -05:00
Mike Black W9MDB 70482d0afa Add cookie_use flag
https://github.com/Hamlib/Hamlib/issues/695
2021-05-25 09:17:25 -05:00
Mike Black W9MDB 238265f2ac Initialize CM108 pathname, rigport, and pttport in rig_init too
https://github.com/Hamlib/Hamlib/issues/673
2021-05-24 07:31:02 -05:00
Mike Black W9MDB 54e3efb466 Change random() to rand in rig_cookie -- some compilers are complaining about random being undefined
https://github.com/Hamlib/Hamlib/issues/710
https://github.com/Hamlib/Hamlib/issues/695
2021-05-21 22:22:36 -05:00
Mike Black W9MDB 82c27e55ee Fix testcookie behavior on shared libary test
https://github.com/Hamlib/Hamlib/issues/695
2021-05-21 17:04:09 -05:00
Mike Black W9MDB 3d780676b5 Finish rig_cookie
Not implemented anywhere yet but functional
2021-05-21 15:39:41 -05:00
Mike Black W9MDB c3441551e6 Add symantec versioning to rig_info 2021-05-20 23:34:48 -05:00
Mike Black W9MDB c408d88b5e Increase sleep from 10ms to 50ms during set_ptt OFF
Some problems reported on Fake It mode in JTDX with rigs unable to set freq after PTT OFF.
2021-05-18 07:10:00 -05:00
Mike Black W9MDB b849e00e1d Fix caching error -- check value instead of pointer....duh....
https://github.com/Hamlib/Hamlib/issues/694
2021-05-09 13:47:21 -05:00
Mike Black W9MDB 102439be15 Change CRC to use all data by substituting CRC value with zeros 2021-05-06 23:58:15 -05:00
Mike Black W9MDB 805cd8e60b Move ant_rx ant_tx set to after NULL check in rig.c
https://github.com/Hamlib/Hamlib/pull/691#issuecomment-832918894
2021-05-05 15:14:51 -05:00
Mike Black W9MDB a56e976787 Add null checks in rig.c for ant_tx and ant_rx
astyle rig.c
2021-05-05 10:45:22 -05:00
Mikael Nousiainen 9e8ef6dc9e Fix rig_get_ant NULL check 2021-05-05 18:23:02 +03:00
Mike Black W9MDB 7f60e1fcb0 Fix dummy rig to recognize Main/Sub VFOS -- this fixes "M CW 500"
Fix rig.c set_mode to recognize curr_vfo correctly
https://github.com/Hamlib/Hamlib/issues/689
2021-05-04 14:35:34 -05:00
Mike Black W9MDB 78a697e582 Add rig_get_mode_bandwidths -- see NEWS
Return token set of bandwidths for given mode
2021-05-03 15:35:56 -05:00
Mike Black W9MDB fc37f0aeaf Add 10ms delay after rig_set_ptt to allow hardware ptt relays to do their thing
https://github.com/Hamlib/Hamlib/issues/686
2021-05-01 22:18:28 -05:00
Mike Black W9MDB 12683d4faf Add Version, App, and CRC tags to rig_get_info
This output will eventually be used for a multicast broadcast/receive capability
2021-04-30 07:37:07 -05:00
Mike Black W9MDB 81e3e2e5d2 astyle files 2021-04-29 17:23:37 -05:00
Mike Black W9MDB 4c09c2362e Fix rig_get_info to return "None" for VFO if needed instead of empty string
Should make parsing easier ensuring all are token pairs
https://github.com/Hamlib/Hamlib/issues/682
2021-04-28 06:44:10 -05:00
Mike Black W9MDB 2066bb38fd Change rig_get_rig_info to use cached values for VFOB when not targetable
https://github.com/Hamlib/Hamlib/issues/682
2021-04-27 17:32:10 -05:00
Mike Black W9MDB 5034bf4451 Make 1st token in get_rig_info a paired token too so all are A=B token pairs
https://github.com/Hamlib/Hamlib/issues/682
2021-04-27 13:14:54 -05:00
Mike Black W9MDB af499a979e Fix freqB on rig_get_rig_info
https://github.com/Hamlib/Hamlib/milestone/7
2021-04-27 12:13:15 -05:00
Mike Black W9MDB 6b13c6c3a3 New rig_get_rig_info function
Also get_rig_info in rigctld too
Example output with rig in split mode
This is a string return to allow for easy future expansion without changing the API
New tokens may be introduced and can be skipped if not used by clients
VFOA Freq=10133000 Mode=LSB Width=0 RX=1 TX=0
VFOB Freq=10134000 Mode=LSB Width=0 RX=0 TX=1
Split=1 SatMode=0
https://github.com/Hamlib/Hamlib/issues/682
2021-04-27 11:51:43 -05:00
Mike Black W9MDB 6c13951da8 Add satmode to rig_get_vfo_info
Add prototype for rig_get_rig_info
https://github.com/Hamlib/Hamlib/issues/682
2021-04-27 10:32:12 -05:00
Mike Black W9MDB 622257c367 Add vfo_fixup to get_vfo_info
https://github.com/Hamlib/Hamlib/issues/681
2021-04-27 09:43:05 -05:00
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
Michael Black W9MDB 1d74711a00 Fix filling of range_list which affects vfo_list
See also
https://github.com/Hamlib/Hamlib/issues/498
https://github.com/Hamlib/Hamlib/issues/490
2021-01-08 17:49:56 -06:00
Michael Black W9MDB cf858bfa3c Change rig.c to return RIG_ENAVAIL instead of RIG_ENTARGET when set_vfo==NULL
Add IC706* to rigs that don't do dsp settings
Remove dynamic detection of transceive status in icom/frame.c
https://github.com/Hamlib/Hamlib/issues/490
2021-01-08 12:04:25 -06:00
Michael Black W9MDB 19e819948f Add RIG_TARGETABLE_ANT and fix Yaesu rigs -- Yaesu are only ones needing this right now
https://github.com/Hamlib/Hamlib/pull/495
2021-01-08 07:16:45 -06:00
Michael Black W9MDB 5fdf5f0e63 Fix freq_new error
https://github.com/Hamlib/Hamlib/issues/485
2021-01-02 16:32:16 -06:00
Michael Black W9MDB 92c6d98e8e Fix set_freq to not call get_freq if get_freq is not available
Correct cache setting for set_freq
https://github.com/Hamlib/Hamlib/issues/485
2021-01-02 15:22:01 -06:00
Michael Black W9MDB dbb06f9e7b Add debug to show vfos in vfo_list
https://github.com/Hamlib/Hamlib/issues/482
2020-12-29 16:15:54 -06:00
Michael Black W9MDB f484c4fdc8 Update copyright 2020-12-29 09:09:14 -06:00
Michael Black W9MDB 18e9d56b47 Add some debug for set_mode stuff 2020-12-22 17:01:06 -06:00
Michael Black W9MDB 3211e3aea1 astyle files 2020-12-21 23:50:29 -06:00
Michael Black W9MDB 2b1bce89bf Fix icom default filter settings
https://github.com/Hamlib/Hamlib/issues/471
2020-12-19 14:30:31 -06:00
Michael Black W9MDB 1e1f7529fa Fix debug statements in rig.c 2020-12-13 10:20:02 -06:00
Michael Black W9MDB 8c265a85f2 Fix debug statement in rig.c 2020-12-13 10:00:37 -06:00
Michael Black W9MDB 74356b3a99 Add RIG_TARGETABLE_PTT and RIG_TARGETABLE_RITXIT
For most rigs these are non-vfo specific commands so we can avoid doing VFO switching
Add flags to all Yaesu, Icom, and Kenwood in rig_open
Some rigs do have VFO specific but it's already in the backend
More rigs can use these flags..TBD...
https://github.com/Hamlib/Hamlib/issues/430
2020-10-31 17:19:08 -05:00
Michael Black W9MDB 3ffbeae881 clean up cppcheck warnings 2020-10-25 16:30:09 -05:00
Michael Black W9MDB 4e748df12b Add -x/--uplink switch for GPredict. Will avoid reading freq from the uplink VFO 1=Sub, 2=Main
This will likely deprecate the twiddle option
https://github.com/Hamlib/Hamlib/issues/404
2020-10-23 11:34:42 -05:00
Michael Black W9MDB 8a769c7011 Add VFO_CURR to set_cache_freq and get_cache_freq
https://github.com/Hamlib/Hamlib/issues/300
2020-10-19 22:22:59 -05:00
Michael Black W9MDB bafd6e97f4 Add a 200ms to wait_morse to allow previous CW request to assert PTT
https://github.com/Hamlib/Hamlib/issues/422
2020-10-19 12:28:13 -05:00
Michael Black W9MDB a8961426b0 Invalidate the cache so get_ptt is current
https://github.com/Hamlib/Hamlib/issues/422
2020-10-19 12:03:38 -05:00
Michael Black W9MDB 7e8bfc8b49 https://github.com/Hamlib/Hamlib/issues/422 2020-10-19 11:50:02 -05:00
Michael Black W9MDB 0443afc794 Add wait_morse command with generit wait_morse_ptt function
This should work for any send_morse with full breakin
https://github.com/Hamlib/Hamlib/issues/422
2020-10-18 12:34:36 -05:00
Michael Black W9MDB e1b3bcff9e New caching non-interfering side-by-side with old until 4.1 development underway
https://github.com/Hamlib/Hamlib/issues/280
2020-10-17 23:55:22 -05:00
Michael Black W9MDB 5add4b343d Add rig_stop_morse to API and stop_morse command for rigctl
No rigs implemented yet
https://github.com/Hamlib/Hamlib/issues/240
2020-10-16 08:41:57 -05:00
Michael Black W9MDB 4faad82da7 Change get_ptt RTS/DTR to keep serial port open
New option --set-conf=ptt_share=1 to revert to old behavior where serial port is opened/closed every get_ptt
https://github.com/Hamlib/Hamlib/issues/383
2020-10-12 23:27:13 -05:00
Michael Black W9MDB 34e9327446 Don't expire cache if we just read the freq 2020-10-11 23:40:29 -05:00
Michael Black W9MDB 6d51f65528 astyle files 2020-10-06 23:14:27 -05:00
Michael Black W9MDB fca4cc7903 Lots of changes to get Main/Sub recognized across rigctl/rigctld boundary
Needs lots of testing
https://github.com/Hamlib/Hamlib/issues/395
2020-10-06 21:50:37 +01:00
Michael Black W9MDB d18196f685 Lower log level of debug statement 2020-09-04 17:42:11 -05:00
Daniele Forsi d7b332c3f7 Fix spelling errors
Fixed using the following command:
codespell --write-changes --summary --skip=*.m4 --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor"
codespell --write-changes --summary --skip=aclocal.m4,lib --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor"

Codespell home page: https://github.com/codespell-project/codespell
2020-07-24 09:02:48 +02:00
c vw d0bff25bb9 Corrections 2020-07-17 12:22:21 +02:00
Bill Somerville 3f40029720
Add missing config parameters for rig power on/off and screen-saver
Defaults set to by compatible with prior released versions to avoid
regressive behaviour.
2020-07-04 19:42:37 +01:00
Michael Black W9MDB 699927b3e7 Add additional get_freq if freq > 100MHz to update cache
This covers rigs that round VHF/UHF freqs to different intervals
https://github.com/Hamlib/Hamlib/issues/334
2020-07-04 11:20:38 -05:00
Michael Black W9MDB e31500842c Ensure cache invalidated before re-reading freq in set_freq 2020-07-02 15:54:26 -05:00
Michael Black W9MDB 1ad029bfb3 astyle rig.c 2020-07-02 11:18:33 -05:00
Michael Black W9MDB 4cb0f2917e Fix rig_debug in rig.c 2020-07-02 11:15:27 -05:00
Michael Black W9MDB 613b7a6830 Add get_freq to set_freq for confirmation if < 100Hz interval
Should correct incorrect cache reporting and doppler issues
https://github.com/Hamlib/Hamlib/issues/334
2020-07-02 09:40:48 -05:00
Michael Black W9MDB d42d837162 Normalize cache namespaces to hamlib_ and HAMLIB_ 2020-07-01 22:33:32 -05:00
Michael Black W9MDB a789cb06bb Remove unnecessary debug 2020-06-27 23:21:39 -05:00
Michael Black W9MDB 720c123be0 Add some debug to rig.c 2020-06-25 05:54:06 -05:00
Michael Black W9MDB 4ff31d008f Fix rigctl -o with rigctld
https://github.com/Hamlib/Hamlib/issues/287
2020-06-22 23:16:02 -05:00
Michael Black W9MDB a3c4eb9ee0 Fix cppcheck warnings 2020-06-21 22:31:31 -05:00
Michael Black W9MDB e092a4a0a4 rigctld -T ::1 now works with rigctl -r ::1
More IPV6 testing needed on Windows and MacOS
Still not binding to link local addresses to be addressed next
https://github.com/Hamlib/Hamlib/issues/29
2020-06-21 17:47:04 -05:00
Michael Black W9MDB 379caace7c update comm_state when port_close is called 2020-06-21 16:15:00 -05:00
Michael Black W9MDB 3b3c2abb00 On a 2nd rig_open call it would fail since port was still open.
We now force close the port during rig_open.
This should prevent the invalid configuration error WSJT-X sees on rig_open
2020-06-19 23:26:59 -05:00
Michael Black W9MDB b0a956df81 Clean up compile/cppcheck warnings 2020-06-14 10:35:44 -05:00
Michael Black W9MDB ad08ee02e1 Fix get_split behavior in rig.c
This needs a lot of testing on different rigs
https://github.com/Hamlib/Hamlib/issues/303
2020-06-14 17:29:18 +02:00
Michael Black W9MDB f323a54b5a Fix cppcheck warnings and compile error 2020-06-13 16:31:25 -05:00
Michael Black W9MDB c5388b9f37 In icom.c remove priv->curr_vfo and change to rig->state.current_vfo
https://github.com/Hamlib/Hamlib/issues/299
2020-06-13 15:53:37 -05:00
Michael Black W9MDB 31fdc8cc0c Add some debug to rig.c 2020-06-13 12:54:33 -05:00
Michael Black W9MDB 2611cad188 Fix spelling error in rig.c 2020-06-13 07:36:31 -05:00
Michael Black W9MDB a11cddfd24 Clean up network_open pathname logic
https://github.com/Hamlib/Hamlib/issues/298
2020-06-13 06:57:27 -05:00
Michael Black W9MDB e54bc7e860 Change variable name for clarity 2020-06-12 22:51:16 -05:00
Michael Black W9MDB de20cadc85 Allow localhost, hostnames, and IPV6 addresses to enable NETWORK rig type
network_open still does not recognize valid IPV6 addresses yet
https://github.com/Hamlib/Hamlib/pull/290
2020-06-12 17:40:10 -05:00
Michael Black W9MDB b15c73d2d2 Fix segmentation fault/endless loop for Icom rigs 2020-06-12 16:34:48 -05:00
Michael Black W9MDB 1317bb8034 Fix vfo_fixup link error
Make vfo_fixup a HAMLIB function so it can be used elsewhere
https://github.com/Hamlib/Hamlib/issues/299
2020-06-12 08:28:05 -05:00
Michael Black W9MDB ef451705b8 Clean up redundant code in rig.c 2020-06-11 22:29:00 -05:00
Michael Black W9MDB f71c12da94 astyle files 2020-06-09 22:37:03 -05:00
Michael Black W9MDB ee6703107f Fix 'f VFOB' staying on VFOB instead of reverting to VFOA when VFOA is current VFO 2020-06-07 23:31:20 -05:00
Michael Black W9MDB 1cbdc5a7ea Fix incorrect setting of VFOA when VFOB requested using vfo_opt mode
Only affected rigs that were not (caps->targetable_vfo & RIG_TARGETABLE_FREQ) like the dummy rig
https://github.com/Hamlib/Hamlib/issues/284
2020-06-06 16:03:16 -05:00
Michael Black W9MDB 2a05008bd4 Add vfo_fixup to rig_get_split_freq 2020-06-04 10:27:00 -05:00
Michael Black W9MDB 4502769c8d Add FT-DX101D as a rig that can't get VFOA freq while VFOB is transmitting
Move the IC910 of the same problem to rig.c instead of icom.c
Eventually this may become a backend flag
https://github.com/Hamlib/Hamlib/issues/279
2020-06-03 18:12:17 -05:00
Michael Black W9MDB 847b73cdb1 Merge branch 'master' of https://github.com/mdblack98/Hamlib 2020-06-03 11:35:16 -05:00
Michael Black W9MDB 52c3b1d3c9 Rigs with no set_vfo and asking for currVFO will have vfo changed to something sensible
https://github.com/Hamlib/Hamlib/issues/278
2020-06-03 11:27:45 -05:00
Michael Black W9MDB bf5e0e21af Rigs with no set_vfo capability will now have a logical VFO assigned to vfo_curr
https://github.com/Hamlib/Hamlib/issues/278
2020-06-03 11:27:23 -05:00
Michael Black W9MDB fa6b0c3d04 Rigs with no set_vfo capability will now have a logical VFO assigned to vfo_curr
https://github.com/Hamlib/Hamlib/issues/275
2020-06-03 07:20:48 -05:00
Michael Black 567cd7145e Fix VFO_CURR return from vfo_fixup
https://github.com/Hamlib/Hamlib/issues/274
2020-06-01 17:07:20 -05:00
Michael Black W9MDB e49f1a9df9 Change rig.c to use some sensible defaults when rig_get_vfo fails
https://github.com/Hamlib/Hamlib/issues/274
2020-06-01 14:08:45 -05:00
Michael Black W9MDB 79fdfe8425 Change vfo_fixup to just return when currVFO is requested
https://github.com/Hamlib/Hamlib/issues/274
2020-06-01 12:53:07 -05:00
Michael Black W9MDB cbe269077b Fix one more cache expire for caps->get_vfo
https://github.com/Hamlib/Hamlib/issues/270
2020-05-31 10:05:44 -05:00
Michael Black W9MDB 58b1c36d29 Remove VFO_CURR fixup
https://github.com/Hamlib/Hamlib/issues/271
2020-05-30 22:49:49 -05:00
Michael Black W9MDB f4fee7913f Fix caching of get_vfo to avoid caching error returns
https://github.com/Hamlib/Hamlib/issues/270
2020-05-30 22:45:43 -05:00
Michael Black W9MDB 9ecc14f897 Fix RIG_PTT_NONE detection from rigctl client by adding ptt_type to dumpcaps
https://github.com/Hamlib/Hamlib/issues/270
2020-05-30 16:59:36 -05:00
Michael Black W9MDB 353066a232 Fix rigctl/rigctld split ops/queries
Add vfo_fixup function.  We should be able to do all vfo corrections in rig.c instead of backends.  So we're migrating that way....
https://github.com/Hamlib/Hamlib/issues/269
2020-05-30 09:34:13 -05:00
Michael Black W9MDB 4af80d44c7 Add cache setting in another rig_get_freq return location 2020-05-27 23:40:14 -05:00
Michael Black W9MDB 677ccac4bc astyle files 2020-05-27 12:23:08 -05:00
Michael Black W9MDB 87a83ffbb1 rigctld now works with rigctl in vfo mode
https://github.com/Hamlib/Hamlib/issues/259
set_vfo_opt can now dynamically change vfo mode on rigctld
So this example now works...does some non-vfo stuff then switches to vfo mode
rigctl -m 2 F 14074000 V VFOB F 14076000 V VFOA f V VFOB f set_vfo_opt 1 f VFOA
rigctl commands v,V and S have been changed to not require VFO arguments
New API function rig_set_vfo_opt -- only implemented for Net rigctl as it doesn't apply to any other rigs
2020-05-27 12:21:41 -05:00
Bill Somerville c78b98d36b
Revert "Add debug to serial.c"
This reverts commit be439ea394.

Remove debugging code that breaks  the intended functionality. How did
this change pass even the most basic of tests?
2020-05-27 11:22:46 +01:00
Michael Black W9MDB be439ea394 Add debug to serial.c 2020-05-25 15:31:58 -05:00
Michael Black W9MDB 4f3ad4f3da Add debug for RTS PTT 2020-05-25 14:35:49 -05:00
Michael Black W9MDB a8fdcc146a Add a littld debug to rig.c 2020-05-25 09:10:40 -05:00
Michael Black W9MDB 89cd5c2c99 on rig_get_vfo ask for the real split mode 2020-05-25 07:38:03 -05:00
Michael Black W9MDB 1add89bd71 Add rules for setting VFO_RX and VFO_TX for different rig types
https://github.com/Hamlib/Hamlib/issues/261
2020-05-24 23:42:35 -05:00
Michael Black W9MDB a77a57ff38 Disallow requesting a vfo that the rig doesn't have.
This could be changed to automatically selecting a valid VFO so
VFOA=Main or Main=VFOA for example but not sure if we want to do this.
This is already being done for the IC-9700 for example since satmode
only has Main/Sub where non-satmode has MainA/MainB/SubA/SubB
So the question is do we emulate VFOA/B and Main/Sub for all rigs?
2020-05-21 15:51:41 +02:00
Michael Black W9MDB 9320bfb6ea Fix main/sub frequency saved values 2020-05-18 17:53:49 -05:00
Michael Black W9MDB dc389d7908 Change rig.c to utilize caps function 2020-05-16 21:33:52 +02:00
Michael Black W9MDB 545081c8d4 Fix rigctl/rigctld "V VFOA" protocol error
4.0 rigctld now works with 3.3 rigctl client and 4.0 rigctl client
https://github.com/Hamlib/Hamlib/issues/246
2020-05-15 14:17:59 -05:00
Michael Black W9MDB baf0ee7169 Add debug to rig.c 2020-05-13 17:40:36 -05:00
Michael Black W9MDB 28ce6d0b54 Fix ptt cache -- not specific to IC910 but was noticed during debugging this problem
https://github.com/Hamlib/Hamlib/issues/237
2020-05-12 13:19:33 -04:00
Michael Black W9MDB 3b2225e489 Fix IC-910 split mode operation with gpredict
https://github.com/Hamlib/Hamlib/issues/237
2020-05-11 19:00:52 -04:00
Michael Black W9MDB 1a4e61b2dd Fix several strerror that should be rigerror 2020-05-09 11:52:27 -05:00
Michael Black W9MDB 8e744a4ad7 Do not ask for freq in rig_set_vfo unless we can set the VFO succesfully 2020-05-09 10:22:46 -05:00
Michael Black W9MDB 3fecc5d91e Only update cache.vfo when RIG_OK is returned 2020-05-08 11:24:33 -05:00
mdblack98 d3ebdc5737 Update cache only when retcode=RIG_OK 2020-05-05 09:59:55 -05:00
mdblack98 d5d2650c2e Update cache only when retcode=RIG_OK 2020-05-05 09:59:28 -05:00
mdblack98 bf1a05084d astyle files 2020-05-03 17:24:42 -05:00
mdblack98 b244fe234c Fix caching math...helps when you get the units right...nanoseconds...not microseconds
https://github.com/Hamlib/Hamlib/issues/228
2020-05-02 17:32:37 -05:00
mdblack98 baa3787bc5 Add ELAPSED_INVALIDATE for caching use
Change rig_get_vfo to use ELAPSED_INVALIDATE
Change elapsed_ms code to make a little more sense
https://github.com/Hamlib/Hamlib/issues/231
2020-05-02 11:19:44 -05:00
mdblack98 4dd1b03d56 Add some debug to rig.c 2020-05-02 07:25:17 -05:00
mdblack98 c4430b7cb9 Fix split caching 2020-05-01 16:58:22 -05:00
mdblack98 9e710156e3 Add ability for rigctld client to turn vfo mode on/off with (,)
https://github.com/Hamlib/Hamlib/issues/232
Add caching of some limited rig information
Can be adjusted or turned off with rig_cache_set_timeout_ms or in rigctl with \set_cache_timeout
https://github.com/Hamlib/Hamlib/issues/228
2020-05-01 12:03:54 -05:00
Michael Black 2d0c157b09 Improve logic slightly in rig.c 2020-04-25 11:18:45 -05:00
c vw f6e3570e37 Allow device addresses of the form ":19000" to switch from serial to TCP
(not only aaa.bbb.ccc.ddd.port)
2020-04-25 17:44:07 +02:00
Michael Black 0267c1b7c9 astyle all files 2020-04-10 09:13:35 -05:00
Michael Black f1f0d7f129 Fix some of the documentation 2020-04-09 17:56:19 -05:00
Michael Black 46cb356f11 Fix numerous gcc v10 warnings 2020-04-04 22:49:27 -05:00
Michael Black 4f3ff0fc08 Fix compile error on last patch 2020-04-03 08:27:52 -05:00
Michael Black 67d09427d3 Add experimental network serial mode for network-based serial interfaces 2020-04-03 08:02:31 -05:00
Michael Black 8fd5e16363 astyle files 2020-03-26 11:11:46 -05:00
Michael Black 872d9b1f68 Add range_list2 to rig.c for setting available VFOs and modes 2020-03-23 16:22:54 -05:00
Michael Black c489f97624 More cppcheck changes 2020-03-20 07:51:32 -05:00
Michael Black 35fffc4f38 astyle files 2020-03-15 15:32:46 -05:00
Michael Black 8ef027c676 Fixes the default initialization of ranges by defaulting to range_list1.
Another step in migration of rigs to separate model numbers for variations in models
We default to using range_list1 now and eventually there will only be 1 range_list per model
We have enough room in the model numbers now to expand...so for example we will have
5 models for the IC-9700
IC-9700 USA
IC-9700 EUR
IC-9700 ITR
IC-9700 TPE
IC-9700 KOR
2020-03-06 08:49:21 -06:00
Michael Black d856248178 Add RIG_MODEL macro and change all rigs to support it 2020-03-05 08:44:18 -06:00
Michael Black 8b462a0242 Add set_twiddle and get_twiddle functions
Add -W switch to rigctld to set twiddle timeout..don't need switch for rigctl since it can set from there with \set_twiddle
2020-02-24 09:34:02 -06:00
Michael Black bceba85205 Temporarily disable twiddling detection in order to debug other stuff
Need to make this a switch
2020-02-24 00:03:42 -06:00