Wykres commitów

1043 Commity (9aade8de3f525ee2ea7199e624ff7e57e3e02508)

Autor SHA1 Wiadomość Data
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 f08c7d7e36 Change ENTERFUNC RETURNFUNC calls in rigctl_parse.c
https://github.com/Hamlib/Hamlib/issues/946
2022-01-31 09:34:32 -06:00
Mike Black W9MDB 615f102ccc Fix mingw static build
https://github.com/Hamlib/Hamlib/issues/946
2022-01-31 09:12:18 -06:00
Mike Black W9MDB 456ab24f58 Fix mingw32 compilation errors 2022-01-31 08:19:50 -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 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 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
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
Mikael Nousiainen 664604f7b6 Make icom_rig_open() fail in case rig_set_powerstat() failure is auto_power_on is requested. Exit rigctld client loop if process is interrupted. 2022-01-23 11:49:16 +02:00
Mike Black W9MDB fba46c7850 Change snprintf to SNPRINTF in rigctl.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-22 22:33:28 -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
Mikael Nousiainen 5b9feffa78 Fix Icom dual watch set command. Make rotator macro name buffer larger, as the macro names are longer than the space allocated. 2022-01-18 19:02:01 +02:00
Mike Black W9MDB c2cb94e412 Change sprintf to snprint in tests
https://github.com/Hamlib/Hamlib/issues/857
2022-01-11 00:00:44 -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 bf8bce2d5a Finish memsave.c changes to snprintf
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:20:47 -06:00
Mike Black W9MDB 3548ab8d81 Change sprintf to snprint in memsave.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:18:42 -06:00
Mike Black W9MDB ed1210e974 Change sprintf to snprint in rotctl_parse.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:10:40 -06:00
Mike Black W9MDB d96d616ce5 Change sprint to snprintf in rigctl_parse.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:08:24 -06:00
Mike Black W9MDB b358437cea Change all sprintf to snprintf in rigmatrix.c and check for buffer overflow
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:05:45 -06:00
Mike Black W9MDB e63fbf0812 Change sprintf to snprintf in rigmatrix.c and check for buffer overflow
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:03:05 -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 0080044fb1 Remove redundnat testrigcaps in tests/Makefile check 2021-12-30 09:09:42 -06:00
Mike Black W9MDB 954d70c143 Fix testrigcaps for WIN32 build 2021-12-30 07:04:38 -06:00
Mike Black W9MDB a54b74f3c5 Update testcookie.c 2021-12-29 14:16:16 -06:00
Mike Black W9MDB 76b3ec72fd Update testrigcaps.c 2021-12-29 12:25:03 -06:00
Mike Black W9MDB 882471bf19 Disable test#1d in testcookie -- this may get deprecated 2021-12-28 14:34:02 -06:00
Mike Black W9MDB 664ca38715 Update testrigcaps for 32-bit build 2021-12-28 14:31:31 -06:00
Mike Black W9MDB d2d622a3e8 Add testrigcaps to make check
https://github.com/Hamlib/Hamlib/issues/905
2021-12-27 17:02:42 -06:00
Mike Black W9MDB 2f15661067 Update testrigcaps.c for Linux 64-bit build 2021-12-27 09:03:34 -06:00
Mike Black W9MDB 3da4a9ea74 Revert "Revert "Add testgrid and move grid lat/lon functions to rig.h""
This reverts commit 1601375f7a.
2021-12-26 10:07:24 -06:00
Mike Black W9MDB 1601375f7a Revert "Add testgrid and move grid lat/lon functions to rig.h"
This reverts commit d510893f7e.
This may have messed up DLL compatibility
2021-12-26 09:53:58 -06:00
Mike Black W9MDB 499ffcc1f8 Add testgrid.c 2021-12-24 13:21:13 -06:00
Mike Black W9MDB d510893f7e Add testgrid and move grid lat/lon functions to rig.h
This will support future gps integrations for autogrid during mobile operations
2021-12-24 13:13:56 -06: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 4c0af35163 Update testcache to not use PTT for dummy device 2021-12-13 09:15:51 -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 4fa2d68477 Add rig_model and rigctld_version to dump_caps in rigctl_parse.c 2021-12-11 22:54:54 -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 4d1e7e63f1 Merge branch 'master' of https://github.com/Hamlib/Hamlib 2021-12-05 09:46:42 -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
Daniele Forsi IU5HKX c6fbc8e682 The -M option needs an argument like its long version "multicast-addr" 2021-12-04 10:57:41 +01:00
Mike Black W9MDB d38a248fda set/get_clock routines for IC7100/7300/7600/7610/7700/7800/785x/9700
https://github.com/Hamlib/Hamlib/issues/851
2021-12-01 22:52:55 -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 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 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 42284ef70b Fix G command in netrigctl.c
https://github.com/Hamlib/Hamlib/issues/874
2021-11-20 16:26:47 -06:00