Wykres commitów

100 Commity (67aee821330f5374353b51cb1f7b0c02712a872f)

Autor SHA1 Wiadomość Data
George Baltz N3GB 7f67363687 Need more parens to work in expressions.
Clean up sticky note items.
2024-01-14 18:13:05 -05:00
George Baltz N3GB fddddf1f6f Port conf.c to use access macros
This will need to copy to all deprecated port structures, when the time comes.
2024-01-14 18:13:05 -05:00
Mike Black W9MDB e267c62764 astyle files 2023-12-16 11:37:58 -06:00
George Baltz N3GB f4d40e0d79 Restore shared library ABI compatibility with previous hamlibs
No need for post_ptt_delay to be in hamlib_port - move it to misc
  rig_state data.
Update references to post_ptt_delay
Fix a couple of typos
Add code to actually set post_ptt_delay

Fixes issue #1412
2023-12-04 10:47:52 -05:00
Mike Black W9MDB 9841e500b9 Fix ptt_share segmentation fault
https://github.com/Hamlib/Hamlib/issues/1433
Fix ID5100 0x25 and simplex VFO actions
https://github.com/Hamlib/Hamlib/issues/1429
2023-11-23 15:00:05 -06:00
Mike Black W9MDB 5d51e29d44 Fix conf.c to detect const structure 2023-11-22 07:28:05 -06:00
Mike Black W9MDB 15729dfafd Fix segfault in conf.c on TOK_PTT_TYPE 2023-11-22 07:18:55 -06:00
Mike Black W9MDB c348632b26 Add ptt_type to rig->caps when set so it can be queried correctly 2023-11-14 17:03:40 -06:00
Mikael Nousiainen 43d1fbb323 Add more detailed rig communication status to rig_state and multicast state data packets. Handle SIGINT and SIGTERM in a consistent way in both rigctl and rigctld. 2023-11-06 00:42:02 +02:00
Mikael Nousiainen f8814732a2 Merge master and fix conflicts 2023-11-05 13:23:35 +02:00
Mikael Nousiainen 41c891251f Fix multicast receiver shutdown by using non-blocking sockets and select(). Use the same port number 4532 for both state snapshots and commands -- it is enough to have different multicast groups for them. Publish multicast state snapshots more often (change detection interval now set to 50ms), but at least at interval defined by poll_interval. 2023-11-03 17:18:49 +02:00
Mikael Nousiainen 5b86d4efff Bind multicast receiver to INADDR_ANY on Windows, because binding to multicast group IPs doesn't seem to work. Use a different port number for (4351) multicast receiver commands to avoid multicast publisher packets ending up in the receiver (loopback issue). 2023-11-02 18:00:16 +02:00
Mike Black W9MDB 6cb17e49dc Add post_ptt_delay for situations where more time is needed for external relay operations
Detect Doppler frequency changes for Kenwood rigs and avoid querying frequency...just set it...to provide stable timing
https://github.com/Hamlib/Hamlib/issues/1412
2023-10-31 17:34:31 -05:00
Mikael Nousiainen c8c8869a3c Refactor multicast publisher and rig poll routine. Create skeleton for multicast command server. 2023-11-01 00:26:37 +02:00
Mike Black W9MDB 464fa3f478 Revert "Promote token_t to unsigned long long"
This broke several things -- have to do this inside kenwood.c instead
This reverts commit 01292b261f.
2023-10-21 12:39:47 -05:00
Mike Black W9MDB 01292b261f Promote token_t to unsigned long long
https://github.com/Hamlib/Hamlib/issues/1402
2023-10-19 23:35:20 -05:00
Mike Black W9MDB c17b5da379 Move serial_cfg_params to common inlude fill as it is applicate to all serial devices 2023-07-20 11:12:24 -05:00
Mike Black W9MDB 05cf554671 This seems to fix the DLL backwards compatiblity now -- more testing needed
Revert "Remove timeout_retry as it broke DLL compatibility"

This reverts commit 1c08cd7a64.
2023-06-07 07:26:39 -05:00
Mike Black W9MDB 1c08cd7a64 Remove timeout_retry as it broke DLL compatibility 2023-05-19 23:50:57 -05:00
Mikael Nousiainen a43cd80799 Set default timeout_retry value to 1 and allow per-rig override of the setting. Disable timeout_retry during serial flush to avoid slowing down flushes. 2023-05-14 21:13:39 +03:00
Mikael Nousiainen c75fdeb3e4 Make retries in case of read timeout optional and configurable via set-conf option. When not absolutely necessary, they will significantly slow down flushing and normal serial communications with a rig 2023-05-14 11:52:48 +03:00
Mike Black W9MDB dad55ef148 astyle files getting ready for WSJT-x-2.7.0rc1 2023-05-08 07:37:13 -05:00
Daniele Forsi IU5HKX 2db37fe7db Fix typos 2023-03-26 11:01:51 +02:00
Mike Black W9MDB 3d38f8b214 Add offset_vfoa and offset_vfob configuraiton parameters for adding freq offsets to VFOA/Main and VFOB/Sub 2023-02-17 12:33:14 -06:00
Mike Black W9MDB c02370d279 Allow rigctld to continue when an invalid set_conf parameter is used 2023-01-17 09:19:39 -06:00
Mike Black W9MDB 3f8da23bb6 Improved set_conf error when serial_handshake is invalid 2023-01-17 08:50:47 -06:00
Mike Black W9MDB 56c87cfa9a Fix CM108 ptt setting
https://github.com/Hamlib/Hamlib/issues/1203
2023-01-09 11:03:50 -06:00
Mike Black W9MDB 04b18c9d5b Add --set-conf=tuner_control_pathname=hamlib_tuner_control
Program will be passed 0 or 1 (Off or On)
Example script in tests/hamlib_tuner_control
https://github.com/Hamlib/Hamlib/issues/1192
2022-12-19 12:55:18 -06:00
Daniele Forsi IU5HKX 7a132e2703 Remove unused includes
Removes includes of stdio.h stdlib.h string.h unistd.h
2022-07-24 17:08:57 +02:00
Mike Black W9MDB 827bc13193 Add RIGMICDATA to ptt_type in dumpcaps 2022-03-06 08:39:54 -06:00
Mike Black W9MDB 0333cdfca5 astyle files 2022-03-01 11:40:14 -06:00
Michael Black 44c4e45eec
Merge pull request #964 from challinan/master
Add support for extlevels in rig_token_foreach()
2022-02-15 16:44:01 -06:00
challinan 4b60373d66 Add support for extlevels in rig_token_foreach() 2022-02-15 17:30:41 -05:00
Mike Black W9MDB 8c34ce1a2d astyle source code 2022-02-05 15:27:43 -06:00
Mike Black W9MDB 68e121d82c Change all to remove HAVE_CONFIG dependency and include <hamlib/config.h> by default
This is necessary to keep alignment between the client view of rig->state and the shared libarary view
Including PTHREAD functions in rig->state necessitated this as HAVE_PTHREAD only defined during hamlib compilation.
Clients including hamlib/rig.h did not pick up all the HAVE* config variable that control what gets included
https://github.com/Hamlib/Hamlib/issues/947
2022-02-04 07:41:36 -06:00
Mike Black W9MDB 324e663d81 Also update rig->state.pttport.type.ptt -- used by JTDX and WSJXT right now so have to copy it
https://github.com/Hamlib/Hamlib/issues/947
2022-02-02 07:06:59 -06:00
Mike Black W9MDB 4c6f9bf9f2 Another copy of deprecated info 2022-02-01 14:12:16 -06:00
Mike Black W9MDB 64af7ca65a Fix depreated references in conf.c
https://github.com/Hamlib/Hamlib/issues/947
2022-01-31 17:01:05 -06:00
Mike Black W9MDB 931037450e Add deprectead hamlib_port references in conf.c
https://github.com/Hamlib/Hamlib/issues/947
2022-01-31 15:18:34 -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 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 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 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 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 fd935597a9 Finish implementing rig_get_conf2
https://github.com/Hamlib/Hamlib/issues/924
2022-01-10 08:48:08 -06:00
Mikael Nousiainen e486f10c52 Fix typo in conf parameters documentation 2022-01-06 10:38:39 +02: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
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