Wykres commitów

572 Commity (91652dbaee4cb52c2436cdbe856962c99ae32297)

Autor SHA1 Wiadomość Data
Mike Black W9MDB a0fc3eaffa Add a check to a bogus warning in rig.c to make it correct 2022-02-07 07:17:51 -06:00
Mike Black W9MDB 776c68e3b1 Allow backwards compatibility for rigctl and rigctld by copying deprecated values to new port_t structures 2022-02-05 23:55:46 -06:00
Mike Black W9MDB 8c34ce1a2d astyle source code 2022-02-05 15:27:43 -06:00
Mike Black W9MDB 81d61c09cc Remove temp debug from rig.c
https://github.com/Hamlib/Hamlib/issues/947
2022-02-03 23:10:04 -06:00
Mike Black W9MDB 9aade8de3f Add config.h to include/hamlib so HAVE_PTHREAD is available if needed
https://github.com/Hamlib/Hamlib/issues/947
2022-02-03 22:31:42 -06:00
Mike Black W9MDB bbd20c45dd Fix valgrind-discovered unitialized curr_vfo in rig.c 2022-02-03 10:41:54 -06:00
Mike Black W9MDB 5a1e73396c Remove FUNC calls from rig_cleanup as rig is closed 2022-02-03 08:38:17 -06:00
Mike Black W9MDB 9852288992 Baland RETURNFUNC statements in rig.c 2022-02-02 23:48:42 -06:00
Mike Black W9MDB c4e01ddadb Change debug level from BUG to VERBOSE for debugging.
Causes abort in JTDX when BUG is used
https://github.com/Hamlib/Hamlib/issues/947
2022-02-02 08:45:46 -06:00
Mike Black W9MDB 9ede1174a3 Add temporary debug for rig->state.pttport.type.ptt diagnosis
https://github.com/Hamlib/Hamlib/issues/947
2022-02-02 07:45:00 -06:00
Mike Black W9MDB 9dd5f70b01 Add some more copy for hamlib_deprected structures
https://github.com/Hamlib/Hamlib/issues/947
2022-02-01 11:29:26 -06:00
Mike Black W9MDB 011f9789e2 Add another copy to deprecated hamlib_port to fix PTT method in JTDX/WSJTX
https://github.com/Hamlib/Hamlib/issues/947
2022-02-01 07:57:59 -06:00
Mike Black W9MDB 171f581243 Fix rig_set_ptt to copy new hamlib_port_t structure to deprecated 2022-01-31 06:58:49 -06:00
Mike Black W9MDB 7b4b7ee630 Add a depth count to debug statements to help understand calling sequences
First call into rig functions is level 1
Top level like rigctl, rigctld is level 0
Non-depth calls are internal debug statements -- which can be modified to also show levels but that's a whole lot of statements not really necessary
Normal calls from other clients will be level 1
2022-01-30 23:37:01 -06:00
Mike Black W9MDB 63b31eac4e Add tx_freq to debug statement 2022-01-30 10:51:49 -06:00
Mike Black W9MDB 3c60636b80 In rig_set_split rx_vfo set to vfo value passed in 2022-01-30 07:28:52 -06:00
Mike Black W9MDB afd595d2da Allow asyncio rigs to use cached-only values for rig_get_freq and rig_get_mode
https://github.com/Hamlib/Hamlib/issues/894
2022-01-29 08:39:27 -06:00
Mike Black W9MDB 86c62d5dbb Remove ASYNC_BUG #ifdef blocks as it is all working now 2022-01-28 09:55:48 -06:00
Mike Black W9MDB fab7f4d54c Revert "Revert "Deprecate hamlib_port_t to hamlib_port_t_deprecated""
Fixing hamlib_port_t deprecation
This reverts commit f696123a3b.
https://github.com/Hamlib/Hamlib/issues/894
2022-01-27 06:37:55 -06:00
Mike Black W9MDB b5bcae4af3 Fix compilation after revert 2022-01-26 18:04:29 -06:00
Mike Black W9MDB f696123a3b Revert "Deprecate hamlib_port_t to hamlib_port_t_deprecated"
This reverts commit 401e718d60.
2022-01-26 17:56:58 -06:00
Mike Black W9MDB 2028d4d1fa Add some more memcpy's to sync hamlib_port_t_deprecated
https://github.com/Hamlib/Hamlib/issues/894
2022-01-26 17:44:03 -06:00
Mike Black W9MDB 81bb70bb84 Deprecate hamlib_port_t to hamlib_port_t_deprecated
New hamlib_port_t at end of structure -- eventually need to change this to a pointer'
Enable ASYNC_BUG now works with new hamlib_port_t
Backwards compatible with already-compiled clients and newly-compiled clients
https://github.com/Hamlib/Hamlib/issues/894
2022-01-26 12:39:13 -06:00
Mike Black W9MDB a277d7ab9b Changes changing hamlib_port_t to pointer are not backwards compatible 2022-01-25 17:41:26 -06:00
Mike Black W9MDB cb36210ddb Revert "Fix rig.c memcpy to deprecated hamlib_port_t"
This reverts commit 27adcc2e75.
2022-01-25 15:02:51 -06:00
Mike Black W9MDB 27adcc2e75 Fix rig.c memcpy to deprecated hamlib_port_t 2022-01-25 14:52:07 -06:00
Mike Black W9MDB 9e86e62238 Enable async I/O by default
Change hamlib_port_t to a pointer in rig.state
Deprecate static hamlib_port_t structure
New hamlib_port_t structure at end of rig.state
Clients built with older hamlib will use old structure in DLL
Clients built with newer hamlib will use new structure in DLL
So we maintain backwards compatibility until Hamlib 5.0
https://github.com/Hamlib/Hamlib/issues/894
2022-01-25 07:59:47 -06:00
Mike Black W9MDB 4dfaa03838 Enable ASYNC and rename async to asynio to avoid python name collision
https://github.com/Hamlib/Hamlib/issues/894
2022-01-24 10:37:07 -06:00
Michael Black 51da62f3fb
Merge pull request #943 from mikaelnousiainen/async-rigctld-icom-bugfixes
Bugfixes for async I/O, rigctld and Icom backend
2022-01-23 11:49:14 -06:00
Mike Black W9MDB 1beebfc835 Make set_transaction functions use intra process mutex -- Phase 1
Phase 2 will be inter-process named mutexes
https://github.com/Hamlib/Hamlib/issues/942
2022-01-23 09:01:06 -06:00
Mikael Nousiainen 1f428c8d95 Allow icom_rig_open() to succeed even if the rig is powered off. Fix issues with async I/O error code propagation. Allow rigctld daemon to start even if rig is powered off. Add mutex locks around rig_open()/rig_close() calls as multiple client connections could end up calling them concurrently, which could lead to all kinds of issues as the functions are not meant to be thread-safe. This also blocks execution of rigctl commands during rig open/close. 2022-01-22 23:19:07 +02: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 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 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 165b5b2921 Change sprint to SNPRINTF in rig.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 14:39:34 -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 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 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 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 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 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 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
Mikael Nousiainen c764336e73 Fix build warnings caused by changes to I/O function signatures 2021-12-18 23:49:45 +02:00
Mikael Nousiainen 1d067d6a43 Merge branch 'master' into async-reader 2021-12-12 23:05:48 +02:00