Wykres commitów

1557 Commity (e55f43a0273f679cbf0ea5c63adf66c01ff4f4b9)

Autor SHA1 Wiadomość Data
Mike Black W9MDB 1eb474f2e6 Allow read_string_generic to timeout even when some chars have been received 2022-01-20 17:04:20 -06:00
Mike Black W9MDB 970d253866 In rig_set_vfo query vfo first to see if it needs to be changed.
Doing VS0 on an FTDX-3000 was causing VFOA to mute
https://github.com/Hamlib/Hamlib/issues/903
2022-01-19 15:40:08 -06:00
Mike Black W9MDB b6c5ecd584 Move write_block debug statement before post_write_delay so the debug timing makes more sense 2022-01-19 12:54:31 -06:00
Mike Black W9MDB 09c9b01552 Change snprintf to SNPRINTF in src
https://github.com/Hamlib/Hamlib/issues/857
2022-01-19 09:11:04 -06:00
Mike Black W9MDB 82dd8da9cd Change sprintf to SNPRINTF in debug.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 15:09:54 -06:00
Mike Black W9MDB e2bb11aa4c Change sprintf to SNPRINTF in misc.c, network.c, and rig.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 15:07:49 -06:00
Mike Black W9MDB f801244fb6 Change sprintf to SNPRINTF in misc.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 15:03:11 -06:00
Mike Black W9MDB 0e5962a816 Change sprintf to SNPRINTF in conf.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 14:48:47 -06:00
Mike Black W9MDB aa3daf4eda Change sprintf to SNPRINTF in serial.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 14:46:29 -06:00
Mike Black W9MDB 29ff10f455 Change sprintf to SNPRINTF in network.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 14:41:09 -06:00
Mike Black W9MDB 165b5b2921 Change sprint to SNPRINTF in rig.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 14:39:34 -06:00
Mike Black W9MDB e69ad3786d Fix rot_conf.c get_conf calls
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 12:46:29 -06:00
Mike Black W9MDB dfc3725de3 Improve buffer overflow detection in sprintflst.c 2022-01-10 17:14:05 -06:00
Mike Black W9MDB 4fd1acedfc Merge branch 'master' of https://github.com/Hamlib/Hamlib 2022-01-10 16:50:29 -06:00
Mike Black W9MDB 58b9e16099 Add debug for serial_handshake 2022-01-10 16:50:12 -06:00
Mike Black W9MDB 21ac4aaf05 Add method debug to write_block to show port_write logic used 2022-01-10 11:32:29 -06:00
Mike Black W9MDB fd935597a9 Finish implementing rig_get_conf2
https://github.com/Hamlib/Hamlib/issues/924
2022-01-10 08:48:08 -06:00
Mike Black W9MDB 18ca415b41 Change sprintf to snprint in amp_conf.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-09 17:46:07 -06:00
Mike Black W9MDB c3db2b07ae Add rot_get_conf2 function to eventually replace rot_get_conf
This is to avoid potential buffer overflows
https://github.com/Hamlib/Hamlib/issues/924
2022-01-09 11:16:41 -06:00
Mike Black W9MDB 13e50f1a03 Fix compile warning in iofunc.c 2022-01-08 17:09:05 -06:00
Mikael Nousiainen e486f10c52 Fix typo in conf parameters documentation 2022-01-06 10:38:39 +02:00
Mike Black W9MDB 2f0b12fbb3 Fix WIN32 build 2022-01-05 13:13:12 -06:00
Mike Black W9MDB 0b6d423633 Revert "Fix win32 build"
This reverts commit 3f431314d8.
2022-01-05 13:11:34 -06:00
Mike Black W9MDB 3f431314d8 Fix win32 build 2022-01-05 13:08:38 -06:00
Mikael Nousiainen 2857a54ea6 Allow enabling of async data mode via conf option. Ignore multicast data publishing if the publisher routine is not enabled. 2022-01-05 19:12:43 +02:00
Mikael Nousiainen 8ee0383464 Merge branch 'master' into async-io-on-windows 2022-01-03 14:40:09 +02:00
Mikael Nousiainen a00d78c860 Implement pipes using asynchronous/overlapped I/O on Windows 2022-01-03 14:18:49 +02:00
Mike Black W9MDB 60c1be9d0d Improve debug in rig_token_lookup to show parameter 2022-01-02 08:27:28 -06:00
Mike Black W9MDB fb04893918 Improve debug in rig_confparam to show parameter 2022-01-02 08:27:02 -06:00
Mike Black W9MDB 18548ef298 Reduce debug in register.c -- not needed 2022-01-01 17:05:51 -06:00
Mike Black W9MDB 01b7f81119 Add a data tag to the caps structure and a test in rig_init to ensure the data tag is where it is expected
Modify testrigcaps.c to test new data tag
This should detect any changes which corrupt rig_caps from additons/subtractions/changes to the structure
2021-12-31 23:49:29 -06:00
Mike Black W9MDB 8a78069975 Make write_block fail when device is not open
https://github.com/Hamlib/Hamlib/issues/912
2021-12-30 06:59:26 -06:00
Mike Black W9MDB 80188965a1 Comment out more async code 2021-12-29 22:28:32 -06:00
Mike Black W9MDB 05bed8f52e Add vfo_fixup to rig_get_mode 2021-12-28 23:50:32 -06:00
Mike Black W9MDB 99f964ed72 Add vfo_fixup to rig_set_mode 2021-12-28 23:20:57 -06:00
Mike Black W9MDB e223cf8ac9 Remove debug statements from iofunc.c 2021-12-28 23:02:03 -06:00
Mike Black W9MDB cab6ae80b5 Update vfo_fixup to fix VFO_SUB too 2021-12-28 22:30:53 -06:00
Mike Black W9MDB c8cf296711 https://github.com/Hamlib/Hamlib/issues/907 2021-12-28 18:14:35 -06:00
Mike Black W9MDB 6d16f24157 CODAN promoted to stable
Re-enable serial flush
2021-12-28 12:55:50 -06:00
Mike Black W9MDB f5b229f9dc Re-enable serial_flush 2021-12-28 11:26:02 -06:00
Mike Black W9MDB 36859c33dc Fix rig_open 2021-12-28 07:49:45 -06:00
Mike Black W9MDB a77f18b79a Add error message to rig_debug output 2021-12-28 07:33:32 -06:00
Mike Black W9MDB 045ab048f1 Remove more async code to clean up compiler warning for 4.5 2021-12-27 17:09:50 -06:00
Mike Black W9MDB 1518b8033c If -RIG_ENTARGET returns from set_freq it will be ignored
This will covers rigs that cannot set freq while transmitting like the FTDX3000 and FTDX5000
https://github.com/Hamlib/Hamlib/issues/906
2021-12-27 14:46:56 -06:00
Mike Black W9MDB 16406bba09 Merge branch 'master' of https://github.com/Hamlib/Hamlib 2021-12-27 11:48:22 -06:00
Mike Black W9MDB 0ccf0b480c Add CODAN Envoy and NGS rigs 2021-12-27 11:48:05 -06:00
Mike Black W9MDB 0974680022 Fix compiler error from async code 2021-12-27 08:33:53 -06:00
Mike Black W9MDB 2fe9117639 Disable async processing and move async definitions out of hamlib_port_t
This broke backwards compatibility with DLL/shared libraries
2021-12-26 22:24:09 -06:00
Mike Black W9MDB 196be77da4 Revert "Add error message to debug statements with error codes -- a little more user friendly"
This reverts commit 016bcfcf39.
This might have affected DLL compatiblity
2021-12-26 09:10:21 -06:00
Mike Black W9MDB 016bcfcf39 Add error message to debug statements with error codes -- a little more user friendly 2021-12-26 08:02:22 -06:00
Mike Black W9MDB ef77f1c71f Fix pipe NONBLOCK flags in iofunc.c -- was not being applied to both file descriptors
https://github.com/Hamlib/Hamlib/issues/902
2021-12-26 07:27:38 -06:00
Mike Black W9MDB 72dac9a573 Disable async startup code on Windows
Need a custom pipe function for Windows to work
https://github.com/Hamlib/Hamlib/issues/902
2021-12-25 12:33:32 -06:00
Mike Black W9MDB 296b3b6e03 Change pipe flags to GETFL/SETFL for async NONBLOCK operations 2021-12-21 07:34:39 -06:00
Mike Black W9MDB 2c7394f638 Fix msys compilation with new pipe calls
Windows pipe will likely not work and needs to be replaced with overlapped I/O
2021-12-20 12:42:31 -06:00
Mike Black W9MDB 4f4b14f771 Fix compiler warning in iofunc.c 2021-12-20 09:17:27 -06:00
Mikael Nousiainen baea7e8c9a Merge upstream changes and fix conflicts. Update NEWS. 2021-12-20 10:06:42 +02:00
Mikael Nousiainen 2cd18ffa3c Improve multicast UDP snapshot data documentation 2021-12-20 09:53:21 +02:00
Dawid SQ6EMM 0d8e1355bd Let SEND_MORSE and SEND_VOICE_MEM be announced as capabilities. 2021-12-20 00:30:24 +01:00
Mikael Nousiainen cd9a24b72e Merge upstream changes and fix conflicts 2021-12-18 23:53:42 +02:00
Mikael Nousiainen c764336e73 Fix build warnings caused by changes to I/O function signatures 2021-12-18 23:49:45 +02:00
Mike Black W9MDB 41eb23bb26 Update jst145
Add and fix agclevel calls
2021-12-13 16:15:26 -06:00
Mikael Nousiainen 1d067d6a43 Merge branch 'master' into async-reader 2021-12-12 23:05:48 +02:00
Mikael Nousiainen 56c95b1529 Merge upstream changes and fix conflicts 2021-12-12 23:05:26 +02:00
Mike Black W9MDB 5e15159c79 Move debug in set_ptt to see logic for serial port sharing 2021-12-12 08:17:30 -06:00
Michael Black W9MDB b90c745239 Add levelagcvalue and levelagcstr functions
https://github.com/Hamlib/Hamlib/issues/883
2021-12-10 08:39:16 -06:00
Mike Black W9MDB 759918aac6 Fix date_strget DLL export
https://github.com/Hamlib/Hamlib/issues/882
2021-12-07 12:17:02 -06:00
Mike Black W9MDB c67f21bf96 Fix timezone to zero for UTC time values
https://github.com/Hamlib/Hamlib/issues/851
2021-12-06 11:57:45 -06:00
Mike Black W9MDB cb80f2b18d Fix date_strget to use the "T" seperator for ISO8601 standard
https://github.com/Hamlib/Hamlib/issues/851
2021-12-06 11:50:30 -06:00
Mike Black W9MDB 67e18b865e https://github.com/Hamlib/Hamlib/issues/851
Fix msys ISO8601 date time string -- hopefully portable everywhere
2021-12-06 11:43:22 -06:00
Mike Black W9MDB 674a9868d9 Implement ISO8601 time standard in more places.
Debug time now shows localtime + utc offset
Rigs that can set the clock now can set either local or utc time on the rig
Icom rigs can only display clock#1 right now so users may want either local or utc
So here are IC7300 examples
rigctl -m 3073 -r com3 -s 115200 set_clock local
rigctl -m 3073 -r com3 -s 115200 set_clock utc
2021-12-06 10:23:18 -06:00
Mike Black W9MDB 07cac7be76 Move ELAPSED macros to rig.h for global use
Add ELAPSED to get_vfo_info in rigctl_parse.c
2021-12-05 09:46:00 -06:00
Mike Black W9MDB a1da584bc1 Add HAMLIB_CACHE_ALWAYS to rig_get_mode
https://github.com/Hamlib/Hamlib/issues/880
2021-12-02 16:53:22 -06:00
Mike Black W9MDB b5a4e99a3e Add HAMLIB_CACHE_ALWAYS
Enable for rig_get_freq
https://github.com/Hamlib/Hamlib/issues/880
2021-12-02 16:44:39 -06:00
Mike Black W9MDB a1c8493c62 First cut at clock setting for IC7300/7800/785x/9700
https://github.com/Hamlib/Hamlib/issues/851
2021-12-01 11:50:33 -06:00
Mikael Nousiainen c20f397c24 Refactor WIN32 I/O port routines to be hopefully compatible with async data reader (not tested). Fix some incomplete data fields in UDP snapshot packets. 2021-11-30 09:25:51 +02:00
Mike Black W9MDB a36b74deca https://github.com/Hamlib/Hamlib/issues/514 2021-11-29 16:08:24 -06:00
Mike Black W9MDB 618cf90145 Ensure map_arg is zeroized in mem.c 2021-11-28 16:44:16 -06:00
Mikael Nousiainen d857f18163 Initial implementation of: reader thread for async handling of rig data, UDP multicast publisher routine and rig state poll thread routine. The reader thread can correctly handle asynchronous data, such as transceive or spectrum data. Work in progress: multi-platform code for I/O routines still missing and the poll routine is not yet in use. Tested briefly on an IC-7300 so far. 2021-11-28 20:52:29 +02:00
Mike Black W9MDB 63a51c36a1 astyle files preparing for 4.4 release 2021-11-28 12:41:10 -06:00
Mike Black W9MDB 5cf68f3647 Get the correct rx_vfo when split is off
https://github.com/Hamlib/Hamlib/issues/872
2021-11-25 12:17:39 -06:00
Mike Black W9MDB d22e7d2f77 Update minlen debug to be accurate
https://github.com/Hamlib/Hamlib/issues/850
2021-11-25 10:31:44 -06:00
Mike Black W9MDB 643e18dc28 Ensure rx_vfo is set correctly based on tx_vfo requested
https://github.com/Hamlib/Hamlib
2021-11-25 09:34:23 -06:00
Mike Black W9MDB 921bd9812f Add some debug to misc.c
https://github.com/Hamlib/Hamlib/issues/872
2021-11-24 17:01:15 -06:00
Mike Black W9MDB 71662c79f8 Remove rig_lock/unlock as not needed for eventual async i/o implementation 2021-11-24 15:52:37 -06:00
Mike Black W9MDB ada6543b09 Update read_string to use a minimum-size read based on experience
https://github.com/Hamlib/Hamlib/issues/850
2021-11-24 15:48:11 -06:00
Mike Black W9MDB d1a7964ac4 Allow for set_split with VFOA/VFOA to put RX VFO on VFOB 2021-11-24 13:33:16 -06:00
Mike Black W9MDB d820ee9dbf Add expected_len to read_string function for potential serial I/O speedup
https://github.com/Hamlib/Hamlib/issues/850
2021-11-24 13:02:39 -06:00
Mike Black W9MDB 8928672e2c Rigs with non-targetable set_mode will now use cached values to determine if mode needs to be changed
Hamlib 5.0 plans are to start using transceive mode and AI2 mode to detect rig changes so eventually
users on these types of rigs will be able to twiddle knobs and hamlib will follow.
But for now we are avoiding the VFO flashing and relay chattering on non-targetable rigs
https://github.com/Hamlib/Hamlib/issues/872
2021-11-24 09:03:26 -06:00
Mike Black W9MDB 238e17b736 rig_set_mode for non-targetable rigs will only set mode on VFOB once per run unless mode is changed
This allows subsequent rig_set_mode to execute quickly without any VFO juggling
If user twiddles with VFOB mode they are on their own
https://github.com/Hamlib/Hamlib/issues/872
2021-11-22 16:54:22 -06:00
Mike Black W9MDB 42284ef70b Fix G command in netrigctl.c
https://github.com/Hamlib/Hamlib/issues/874
2021-11-20 16:26:47 -06:00
Mikael Nousiainen 39cec4aa27 Merge branch 'master' into async-reader 2021-11-20 22:50:55 +02:00
Mikael Nousiainen 1f538ad7ec Started work on asynchronous reader thread to enable handling of rig tranceive and waterfall data (WIP) 2021-11-20 21:33:29 +02:00
Mike Black W9MDB 4b3bbabc5d Fix rig_set_split problem on Kenwood rigs
https://github.com/Hamlib/Hamlib/issues/872
2021-11-19 16:19:18 -06:00
Mike Black W9MDB 8c3e8fed28 Improved debug in rig_get_cache
https://github.com/Hamlib/Hamlib/issues/872
2021-11-18 10:42:58 -06:00
Mike Black W9MDB 3de368f6a2 Add rig_lock and rig_unlock to support serial I/O locking for a transaction
https://github.com/Hamlib/Hamlib/issues/695
2021-11-15 07:16:31 -06:00
Mike Black W9MDB f044c2bfdd If VFO_RX requested use rx_vfo
https://github.com/Hamlib/Hamlib/issues/866
2021-11-14 22:52:10 -06:00
Mike Black W9MDB 8b5685425a For non-targetable VFOs we will set VFO on every set_freq
https://github.com/Hamlib/Hamlib/issues/865
2021-11-11 17:10:57 -06:00
Mike Black W9MDB 782e39eb33 More fixes to k4_set_ptt
https://github.com/Hamlib/Hamlib/issues/864
2021-11-10 17:39:08 -06:00
Mike Black W9MDB e64a128f3a In rig_set_split_mode and rig mode is not targetable we disable split, set mode, and re-enable to avoid vfo flashing.
This disable is moved behind the targetable mode now as it should not be required in that case
https://github.com/Hamlib/Hamlib/issues/863
2021-11-09 23:52:21 -06:00
Mike Black W9MDB 61141126c1 Add more ELAPSED timings 2021-11-09 23:20:02 -06:00
Mike Black W9MDB 68edfe3357 Add more ELAPSED timings 2021-11-09 23:14:44 -06:00
Mike Black W9MDB 9eccaec6af Improve debug in rig_get_split_vfo 2021-11-09 23:07:02 -06:00
Mike Black W9MDB eed9637675 Do not change split freq if change not needed
https://github.com/Hamlib/Hamlib/issues/863
2021-11-09 17:06:48 -06:00
Mike Black W9MDB b17d681fc2 More portable debug method -- should work on any compiler 2021-11-08 10:28:28 -06:00
Mike Black W9MDB 5eb169edc1 Add new method for debugging calling functions -- need to test with multiple compilers to see if it compiles OK 2021-11-08 10:19:12 -06:00
Mike Black W9MDB 41ebbb02b5 Reduce network_open debug to TRACE instead of ERROR 2021-11-07 08:21:54 -06:00
Mike Black W9MDB 663b149a48 Fix ELAPSED macros in rig.c to provide more accurate timing 2021-11-07 07:36:46 -06:00
Mike Black W9MDB 6ca9844196 In rig.c do not override curr_vfo if it gets set by the backend
https://github.com/Hamlib/Hamlib/issues/853
2021-11-05 17:23:10 -05:00
Mike Black W9MDB ffe3c9d012 Revert "Change rig_set_split_mode to use TOGGLE first, then set_vfo"
This reverts commit c1c549cbf3.
2021-11-05 06:37:45 -05:00
Mike Black W9MDB e7530643a0 In rig.c set rxvfo and txvfo to current if currvfo is requested
https://github.com/Hamlib/Hamlib/issues/838
2021-11-03 15:00:38 -05:00
Mike Black W9MDB c1c549cbf3 Change rig_set_split_mode to use TOGGLE first, then set_vfo
https://github.com/Hamlib/Hamlib/issues/838
2021-11-03 13:11:11 -05:00
Mike Black W9MDB b4f4228650 Revert "Change rig_set_split_mode to disable/enable ptt by rig model as needed"
This reverts commit c1c1f1f053.
2021-11-03 12:37:38 -05:00
Mike Black W9MDB c1c1f1f053 Change rig_set_split_mode to disable/enable ptt by rig model as needed
https://github.com/Hamlib/Hamlib/issues/838
2021-11-03 08:16:39 -05:00
Mike Black W9MDB 9842cdb1f3 Some minor changes to serial.c as we progress to a faster method
https://github.com/Hamlib/Hamlib/issues/850
2021-11-02 11:17:19 -05:00
Mike Black W9MDB 8fe190d622 Reduce error messages about RIG_VFO_OTHER which only applies to some rigs like Icom rigs with the 0x25 command
Add a flush_flag to read_string so that the new serial_flush will not produce a timeout value when flushing
https://github.com/Hamlib/Hamlib/issues/835
2021-11-01 23:43:45 -05:00
Mike Black W9MDB 603223d493 During rig_set_split_mode and non-targetable mode we will turn off split, set mode, and turn split back on. This should prevent some ugly flashing on Yaesu rigs
https://github.com/Hamlib/Hamlib/issues/838
2021-11-01 22:15:50 -05:00
Mike Black W9MDB dc585776fc Add rig pointer to hamlib_port_t 2021-10-30 08:53:45 -05:00
Mike Black W9MDB 84fb123202 Pass empty stopset to read_string so it can determine appropriate stopset for async data 2021-10-30 08:22:55 -05:00
Mike Black W9MDB 44871f7e9b Change serial_flush to read any buffered data instead of flushing.
Perhaps to support transceive mode
2021-10-29 17:48:43 -05:00
Mike Black W9MDB 1ed398466d Revert "Change serial_flush to read data instead of TCFLUSH"
Was causing timing problems
This reverts commit d28f440968.
2021-10-29 14:38:40 -05:00
Mike Black W9MDB f071adac8f Revert "Revert "Revert "Fix hex print in serial_flush"""
Straighening out these reverts
This reverts commit b2646f54a4.
2021-10-29 14:38:14 -05:00
Mike Black W9MDB b2646f54a4 Revert "Revert "Fix hex print in serial_flush""
Was causing timing problems
This reverts commit bf2867021e.
2021-10-29 14:33:31 -05:00
Mike Black W9MDB bf2867021e Revert "Fix hex print in serial_flush"
Was causing timing problems
This reverts commit 4a18fa2282.
2021-10-29 14:33:08 -05:00
Mike Black W9MDB 4a18fa2282 Fix hex print in serial_flush 2021-10-29 11:43:41 -05:00
Mike Black W9MDB d28f440968 Change serial_flush to read data instead of TCFLUSH
This is for the future to enable transceive mode on rigs
2021-10-29 11:24:16 -05:00
Mike Black W9MDB 9d2aaa00c0 Disallow set_split_vfo when PTT is active
https://github.com/Hamlib/Hamlib/issues/844
2021-10-28 09:49:18 -05:00
Mike Black W9MDB 6f82645ee8 Revert "Disallow set_split_vfo when ptt is active"
Had other temporary code in it

This reverts commit db9cd44bcf.
2021-10-28 09:46:52 -05:00
Mike Black W9MDB db9cd44bcf Disallow set_split_vfo when ptt is active
https://github.com/Hamlib/Hamlib/issues/844
2021-10-28 09:44:57 -05:00
Mike Black W9MDB d18c3a8111 Fix cppcheck warning in network.c 2021-10-24 00:03:48 -05:00
Mike Black W9MDB 5cdbdd04c6 Add rig backends in 0 range (maingly FlRig and rigctld) to targetable_ptt -- should avoid some vfo swapping going on
https://github.com/Hamlib/Hamlib/issues/836
2021-10-22 17:15:35 -05:00
Mike Black W9MDB 1ca3d34010 Change Yaeus send_voice_mem to built-in function rather than FUNC implementaion
https://github.com/Hamlib/Hamlib/issues/830
2021-10-22 07:29:27 -05:00
Mike Black W9MDB 014219c4ad Add RIG_OTHER_VFO handling to rig_get_cache
https://github.com/Hamlib/Hamlib/issues/835
2021-10-21 22:31:38 -05:00
Mike Black W9MDB c9d7a924c7 Add RIG_FUNC_SEND_VOICE_MEM with FT991 as the 1st implementation
https://github.com/Hamlib/Hamlib/issues/830
2021-10-21 17:36:54 -05:00
Mike Black W9MDB 024f7f061c Add RIG_MODE_IQ for FunCube Pro Plus and RS-HFIQ
https://github.com/Hamlib/Hamlib/issues/829
2021-10-18 23:01:38 -05:00
Mike Black W9MDB 7f1faf24c0 Add a few more modes to the mode_map 2021-10-16 10:14:03 -05:00
Mike Black W9MDB a8a317f6ab Move parse_mode error message to the function itself 2021-10-16 09:45:24 -05:00
Mike Black W9MDB dc70e2a41f Fix LSB/USB in rigctl_parse_mode 2021-10-16 09:27:04 -05:00
Mike Black W9MDB 4462fe423e Add USB-D and LSB-D to mode_map for Log4OM mode requests 2021-10-16 09:20:24 -05:00
Mike Black W9MDB 8a983cae80 Clean up MUTEX declarations in rig.c 2021-10-14 23:06:57 -05:00
Mike Black W9MDB da34930ab9 Fix rig_get_mode cache time printout 2021-10-14 11:36:34 -05:00
Mike Black W9MDB ac43daa998 Add some more elapsed time monitoring 2021-10-14 11:32:30 -05:00
Mike Black W9MDB d90d3eb0d0 Use EAGAIN error to retry when serial port is unavailable
https://github.com/Hamlib/Hamlib/issues/818
2021-10-10 08:33:31 -05:00
Mike Black W9MDB 4b77fc1eb3 Allow for EBUSY return during port read and retry 10x5ms for 50ms total before returning an error
https://github.com/Hamlib/Hamlib/issues/818
2021-10-08 23:58:07 -05:00
Mike Black W9MDB 2319d17389 Fix rigs so that VFOB/A split works as well as VFOA/B
https://github.com/Hamlib/Hamlib/issues/745
2021-10-08 23:55:48 -05:00
Mike Black W9MDB dd1376becf Fix debug statement
https://github.com/Hamlib/Hamlib/issues/812
2021-09-28 23:13:37 -05:00
Mike Black W9MDB da87903e3c Fix set_vfo for non TARGETABLE_FREQ rigs like the FT100
Was not setting VFOB when requested
https://github.com/Hamlib/Hamlib/issues/812
2021-09-28 23:03:56 -05:00
Mike Black W9MDB 7c42d6ddb0 Fix LOCK macros 2021-09-28 23:03:06 -05:00
Mike Black W9MDB 43251254c5 New mutex macros to be resued across all rig functions to support async multicast actions 2021-09-28 22:57:35 -05:00
Mike Black W9MDB 7bd407beda Add some more elapsed time entries and reduce ELAPSED2 macro 2021-09-25 23:26:49 -05:00
Mike Black W9MDB 2e2543a0fc Fix ELAPSED2 time 2021-09-25 23:16:08 -05:00
Mike Black W9MDB cc5010d0e3 Add otherVFO to misc.c 2021-09-25 11:45:42 -05:00
Mike Black W9MDB 0b9b719997 Add elapsed time macros and put in vfo and freq calls 2021-09-25 08:59:57 -05:00
AuroraRAS 1c3250f6f4 add androidsensor rotator
The androidsensor rotator is not a real rotator, it uses the accelerometer sensor and magnetic field sensor of the cell phone or tablet to perform attitude determination for your antenna and the phone tied to it.
Now you can wave your antenna to find radio signals.

Signed-off-by: AuroraRAS <chplee@gmail.com>
2021-09-25 09:51:11 +08:00
Wouter van Gulik a3ab4a4312 Fix rig_cookie: use lock for reads and write.
Ensure we never print more then HAMLIB_COOKIE_SIZE otherwise we read
out-of-bounds.
Drop stray printf.
Add tests for invalid input and overly large input.
Fix test2 to release the cookie.
2021-09-20 22:10:55 +02:00
Wouter van Gulik d9e1f5aac4 Fix and document rig_cookie;
Example in doxygen was wrong.
Description of parameters was wrong; we return an int so we cannot return
a NULL.
NULL check for cookies is needed for all 3 commands so move it up, fixing the
missing one.
Length check was wrong; cookie needs to be at least as large as
HAMLIB_COOKIE_SIZE otherwise subsequent checks will always faila
Document the 3 cookie commands a bit.
2021-09-19 22:52:41 +02:00
Wouter van Gulik 82785f81dc Replace RIG_EIO with RIG_EINVAL when checking arguments. RIG == NULL is
an argument error. A rig not properly inited (caps == NULL) is also an
invalid argument.
2021-09-19 22:18:03 +02:00
Wouter van Gulik f029769fb7 Add arguments check for rig_get_cache, rig_stop_morse, rig_wait_morse,
rig_get_range, rig_set_vfo_opt, rig_get_infget_info.
2021-09-19 22:12:21 +02:00
Mike Black W9MDB 388294c3d6 Fix RIG_STATUS_STABLE misspelling 2021-09-15 13:50:31 -05:00
Mike Black W9MDB 8cc59cca3b Rigs have been at BETA status forever so promoting all to STABLE 2021-09-15 13:44:42 -05:00
Mike Black W9MDB 61785075d3 Reduce scope of some vars in sprintflst.c 2021-09-15 10:24:42 -05:00
Mike Black W9MDB d60e82c222 Reduce scope of vars in rig.c 2021-09-13 17:41:53 -05:00
Mike Black W9MDB c008f2aa59 Make remove_opened_rig arg in rotator.c const 2021-09-13 17:39:20 -05:00
Mike Black W9MDB 16263e8338 Remove shadow var from rig.c 2021-09-13 17:38:37 -05:00
Mike Black W9MDB 5f8be97e26 Fix rot_strstatus to use ulong instead of int in sprintflst.c 2021-09-11 11:38:44 -05:00
Mike Black W9MDB 846e12ce61 Fix debug statement in register.c 2021-09-11 11:29:00 -05:00
Mike Black W9MDB 6a13d40b9a Reduce scope of var in network.c 2021-09-11 11:24:12 -05:00
Mike Black W9MDB cc886b46f5 Make parse_hoststr delcaration match implementation 2021-09-11 11:13:23 -05:00
Mike Black W9MDB 6216d8a2b8 Add some const declarations to microham.c 2021-09-11 11:10:30 -05:00
Mike Black W9MDB e88ef72003 Reduce scope of var in misc.c 2021-09-11 11:04:13 -05:00
Mike Black W9MDB b02ea818de Add const declaration to amplifier.c 2021-09-11 10:44:28 -05:00
Michael Black 196884e3b1
Merge pull request #790 from AuroraRAS/keepgoingndk
Fix compile-time errors in Android NDK environment
2021-09-10 23:31:51 -05:00
Wouter van Gulik fe2f24cba3 Make make_crc_table and gen_crc static. 2021-09-09 22:47:57 +02:00
Wouter van Gulik 720f8fa86e Fix documentation for get_info. Memory is not allocated!
Prevent users from trying to free it.
2021-09-09 22:42:55 +02:00
Wouter van Gulik 3edc59dbd2 Add documentation for rig_get_cache.
Note that it misses all sanity check on the input, but at least that is
now documented.
Made rig_check_rig_caps and twiddling static, they are not exported
but Doxygen includes all globally visible function.
2021-09-09 22:36:43 +02:00
Wouter van Gulik d6c1c4ec78 rig.c/rig_reset Make defines a link in the documentation 2021-09-09 22:15:16 +02:00
Wouter van Gulik 9134fa55c9 rig.c: Fix Doxygen for rigerror 2021-09-08 22:57:04 +02:00
Wouter van Gulik 998e19bdd4 Fix Doxygen in rig.c. Commit c5c60f0 also touched Doxygen comments which
was not intended. It replaced \return with \RETURNFUNC. Breaking
Doxygen.
2021-09-08 22:45:36 +02:00
AuroraRAS b5bd1f4036 Append the missing information to build hamlib v4.3 for Android NDK
The following errors were fixed in this commit:
error: undefined symbol: rig_sprintf_vfo
error: undefined symbol: initrots2_radant
error: undefined symbol: ts890s_caps
2021-09-07 21:30:09 +08:00
Mike Black W9MDB c53a288cd8 Add debug to show vfofixup being skipped due to satmode rig 2021-09-06 07:41:33 -05:00
Mike Black W9MDB 820e4d4310 Fix compilation of misc.c with gmtime_r replacement function for mingw
https://github.com/Hamlib/Hamlib/issues/784
2021-09-02 17:08:10 -05:00
Mike Black W9MDB 6de4588335 Do not do vfo_fixup on satmode rigs
https://github.com/Hamlib/Hamlib/issues/782
2021-09-01 12:45:29 -05:00
Mike Black W9MDB 9032e3e58b Improve ser_open error message 2021-08-30 10:01:36 -05:00
Mike Black W9MDB f65022b4ca If set_split_freq_mode is called when split=off we'll turn on split based on current vfo selection
https://github.com/Hamlib/Hamlib/issues/764
2021-08-30 08:45:56 -05:00
Mike Black W9MDB f552e3f0e8 Fix set_split_vfo to use correct RX vfo instead of TX vfo
https://github.com/Hamlib/Hamlib/issues/762
https://github.com/Hamlib/Hamlib/issues/430
2021-08-28 09:54:37 -05:00
Mike Black W9MDB 4653aa2f6e astyle files 2021-08-27 22:25:53 -05:00
kacomet 574f22b096 Corrected modes for FT-736R. The FT-736 supports SSB, CW, FM, FM-N (narrowband FM,) CW-N (narrowband CW.) Now, the FM-N and CW-N modes can be set from rigctl. Passbands have also been corrected to the values in the manual. 2021-08-27 19:41:38 -05:00
Mike Black W9MDB b41f706eda Fix uninitialized warning in rig.c
https://github.com/Hamlib/Hamlib/issues/762
    https://github.com/Hamlib/Hamlib/issues/430
2021-08-27 15:51:02 -05:00
Mike Black W9MDB f6b54df7c7 Fix some more unnecessary vfo swapping
https://github.com/Hamlib/Hamlib/issues/762
https://github.com/Hamlib/Hamlib/issues/430
2021-08-27 15:46:23 -05:00
Mike Black W9MDB 5a0590d421 Finish up targetable_ptt logic
Was causing unnecessary vfo swapping
https://github.com/Hamlib/Hamlib/issues/762
https://github.com/Hamlib/Hamlib/issues/430
2021-08-27 12:50:53 -05:00
Mike Black W9MDB 0016d5a933 Move TARGETABLE_PTT logic to the set_ptt routine
https://github.com/Hamlib/Hamlib/issues/762
https://github.com/Hamlib/Hamlib/issues/430
2021-08-27 12:32:37 -05:00
Mike Black W9MDB 0d9bcbf9bf Fix possilbe segfault last patch
https://github.com/Hamlib/Hamlib/issues/762
https://github.com/Hamlib/Hamlib/issues/430
2021-08-27 12:16:35 -05:00
Mike Black W9MDB 03fe6f6500 Allow all Icom, Kenwood, Yaesu to avoid VFO swapping
https://github.com/Hamlib/Hamlib/issues/762
https://github.com/Hamlib/Hamlib/issues/430
2021-08-27 12:04:16 -05:00
Mike Black W9MDB 283281c4cb astyle all files preparing for 4.3 release 2021-08-26 06:49:24 -05:00
Wouter van Gulik 9aec383329 Simplify get_ant by having setting to unknown by default.
Drop setting to default in rigs.
Add some more documentation on get_ant.
2021-08-25 22:13:21 +02:00
Mike Black W9MDB 851c499376 Fix lack of error for some bad rig numbers. e.g. rigctl -m 228 produced hash collision error instead of unknown rig
https://github.com/Hamlib/Hamlib/issues/735
2021-08-23 23:19:12 -05:00
Mike Black W9MDB b2acf0b6f5 Improve debug in ser_open 2021-08-21 22:38:44 -05:00
Mike Black W9MDB 0be978abcd Add more retries to PTT serial port open
https://github.com/Hamlib/Hamlib/issues/768
2021-08-21 22:31:15 -05:00
Michael Black a396dc8825
Merge pull request #772 from wutje/constify
rig.c: Constify rigerror_table
2021-08-21 16:00:15 -05:00
Wouter van Gulik 95a10624c1 src/misc.c: Constify some tables 2021-08-21 22:48:02 +02:00
Wouter van Gulik b24e629e16 rig.c: Constify rigerror_table 2021-08-21 22:26:59 +02:00
Wouter van Gulik 84108f9613 src/rig.c: Add comments to clarify both mode and width must be supplied 2021-08-21 21:59:02 +02:00
Mike Black W9MDB ad53f2f1e3 Fix typo in serial.c
https://github.com/Hamlib/Hamlib/issues/768
2021-08-21 07:41:48 -05:00
Mike Black W9MDB c6151c7110 Fix error in serial.c
https://github.com/Hamlib/Hamlib/issues/768
2021-08-20 22:31:11 -05:00
Mike Black W9MDB df40151d65 Add additional attempts to open serial port
K4 was failing on 1st open for some unknown reason but succeeds on 2nd try
https://github.com/Hamlib/Hamlib/issues/768
2021-08-20 22:29:12 -05:00
Mike Black W9MDB d52cce510d Add fallback serial open logic to hopefully cure serial port open error with K4
https://github.com/Hamlib/Hamlib/issues/768
2021-08-16 22:49:36 -05:00
Mike Black W9MDB 0a0873252e Fix CodeQL warnings 2021-08-13 12:28:58 -05:00
Mike Black W9MDB 014bc04ddf Fix Icom rigs to use 0x25 command if capable
Fixes #1 and and #2 in the issue
https://github.com/Hamlib/Hamlib/issues/762
2021-08-13 07:42:39 -05:00
Mike Black W9MDB ad43cd793a Fix MULTICAST boolean logic 2021-08-11 23:10:44 -05:00
Mike Black W9MDB 45d1162362 Improve debug message in iofunc.c on serial port error 2021-08-09 08:46:05 -05:00
Mike Black W9MDB 1a64f26ea0 Add RETURNFUNC in register to see timing 2021-08-08 16:43:05 -05:00
Mike Black W9MDB f8974c1e86 Implment FTDX101D/MP FTDX9000 METER_TEMP
https://github.com/Hamlib/Hamlib/issues/755
2021-08-02 23:55:24 -05:00
Mike Black W9MDB 4bfd71f91f Fix Icom split and implement reverse split
These should work now from rigctl and via the API
S VFOB 1 VFOA
S Sub 1 Main
https://github.com/Hamlib/Hamlib/issues/754
2021-08-02 23:37:31 -05:00
Mike Black W9MDB 592ca86fc6 Allow Main/Sub to be returned from vfo_fixup 2021-08-01 12:11:46 -05:00
Mike Black W9MDB 68336fedfa Add 2nd rotator port to rotator_open for RT21 elevation controller
https://github.com/Hamlib/Hamlib/issues/747
2021-07-23 23:07:18 -05:00
Mike Black W9MDB 7d5fa7dc88 Add new xml tag to flrig for identifying the client...will help debugging. 2021-07-21 22:59:53 -05:00
Mike Black W9MDB cb892602b4 Do not change TX_VFO when VFO_B is passed to vfo_fixup and split is off
https://github.com/Hamlib/Hamlib/issues/741
2021-07-15 15:59:28 -05:00
Mike Black W9MDB 26dffeef4d Fix misc.c vfo_fixup to not change VFOB when VFOB requested
https://github.com/Hamlib/Hamlib/issues/741
2021-07-15 15:50:22 -05:00
Mike Black W9MDB a6d91eb8a8 Change vfo_fixup to default to VFO_A when not in split mode
Was staying on VFO_B when VFO_B was requested
https://github.com/Hamlib/Hamlib/issues/741
2021-07-15 15:32:32 -05:00
Mike Black W9MDB 2c57bc51d5 Reduce unnecessary warning messages in rig.c 2021-07-13 15:49:15 -05:00
Mike Black W9MDB 91b3d26837 For all rigs avoid setting mode while PTT is on
https://github.com/Hamlib/Hamlib/issues/737
2021-07-12 08:57:02 -05:00
Mike Black W9MDB 4f500ae8e8 Back out change to register.c 2021-07-09 06:46:38 -05:00
Mike Black W9MDB b83b8aba60 register.c now correctly burps when bad model# is used
https://github.com/Hamlib/Hamlib/issues/735
2021-07-08 12:50:28 -05:00
Mike Black W9MDB 53adea283c Fix regsiter.c so c++ make check works
Another solution to this needed
https://github.com/Hamlib/Hamlib/issues/735
2021-07-08 11:56:10 -05:00
Mike Black W9MDB cc089335b0 Adjust RIG_BACKEND_NUM in register.c so it can detect bad rig numbers
https://github.com/Hamlib/Hamlib/issues/735
2021-07-08 11:26:11 -05:00
Mike Black W9MDB 21ade6493a Add MainA/B and SubA/B to dummy rig for testing
Add debug cache display for same when applicable
https://github.com/Hamlib/Hamlib/issues/730
2021-07-05 11:24:07 -05:00
Mike Black W9MDB 217a978ab9 Fix split control for K3 and probably other rigs too
https://github.com/Hamlib/Hamlib/issues/728
2021-06-24 23:41:50 -05:00
Mike Black W9MDB b340d594f0 Re-enable rig_flush due to command stacking occurring on K3 (and probably others)
https://github.com/Hamlib/Hamlib/issues/728
2021-06-22 10:53:28 -05:00
Mike Black W9MDB beede15b7b Change debug a bit in rig.c 2021-06-16 10:35:38 -05:00
Mike Black W9MDB c72517eafa Move loop declaration outside the for statement in rig.c
Also got rigctld working with WSJTX -- but not JTDX yet
https://github.com/Hamlib/Hamlib/issues/721
2021-06-16 10:13:45 -05:00
Mike Black W9MDB 7b1ad09aed Fix retcode compilation warning 2021-06-13 16:18:46 -05:00
Mike Black W9MDB 6dacfa53c0 Avoid nested calls in rigctld
https://github.com/Hamlib/Hamlib/issues/721
2021-06-12 11:04:10 -05:00
Mike Black W9MDB ff9a745c7a Wrap pthread calls in #ifdef HAVE_PTHREAD in rig.c 2021-06-04 10:03:40 -05:00
Mike Black W9MDB b65fdb61f8 Fix get_rig_conf_type export 2021-06-04 09:59:31 -05:00
Mike Black W9MDB a73046b04e Clean up clang-static-analyzer warnings 2021-06-03 17:21:52 -05:00
Mike Black W9MDB 7d8e99ca2d Fix ICOM UDP network setup 2021-06-02 23:06:22 -05:00
Mike Black W9MDB 53476dd14d Remove some more debug 2021-06-01 07:19:00 -05:00
Mike Black W9MDB a63d009035 Remove some more debug 2021-06-01 07:17:11 -05:00
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
Mikael Nousiainen 3a67356bc1 Add some comments and improved debugging on SIGIO async data handling 2021-05-31 16:22:22 +03:00
Mikael Nousiainen 263c16984a Attempt to handle asynchronously pushed Icom CI-V frames (transceive and spectrum data) as these frame will get interleaved with command responses 2021-05-30 01:36:49 +03:00
Mike Black W9MDB 903df5cb95 Fix RIG_FLUSH_REMOVE #ifdef -- duh....
https://github.com/Hamlib/Hamlib/pull/712
2021-05-27 09:01:48 -05:00
Mike Black W9MDB 3c50d53273 Merge branch 'master' of https://github.com/Hamlib/Hamlib 2021-05-27 07:55:59 -05:00
Mike Black W9MDB 7913de79e1 Allow testing removal of rig_flush()
https://github.com/Hamlib/Hamlib/pull/712
2021-05-27 07:35:46 -05:00
Mikael Nousiainen 12527581b0 Add SPECTRUM_ATT level (also supported by Kenwood rigs). Get VFO frequency for Icom spectrum edge ranges (if not cached). Fix preamp levels based on docs. Add supported AGC levels to recent Icom rigs. 2021-05-27 10:12:01 +03:00
Mikael Nousiainen a7de662937 Merge branch 'master' into initial-spectrum-scope-support 2021-05-26 23:41:38 +03:00
Mikael Nousiainen b4ba22d369 Implemented initial abstraction for spectrum scope data and support for Icom spectrum data output. The abstraction is based on common features of both Icom and Kenwood rigs. Added TRANSCEIVE func and enumeration of supported AGC levels. Work in progress. 2021-05-26 23:40:53 +03: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