Mike Black W9MDB
33d13f7849
Remove HAMLIB_TRACE from iofunc.c
2023-06-10 00:01:24 -05:00
Mike Black W9MDB
4ae3519c4e
Revert "Allow generic_read_string to terminate on expected_len"
...
This reverts commit 00b6e0ecd7
.
2023-05-27 15:13:22 -05:00
Mike Black W9MDB
08abfbe19a
Revert "Fix read_string_generic to only use expected_len when expected_len == 0"
...
This reverts commit 9b748bdb2e
.
2023-05-27 15:11:40 -05:00
Mike Black W9MDB
9b748bdb2e
Fix read_string_generic to only use expected_len when expected_len == 0
...
00b6e0ecd7 (commitcomment-115297173)
2023-05-27 14:58:07 -05:00
Mike Black W9MDB
00b6e0ecd7
Allow generic_read_string to terminate on expected_len
...
https://github.com/Hamlib/Hamlib/issues/1303
2023-05-27 10:07:32 -05:00
Mike Black W9MDB
efc90d30de
Remove another temporary debug from iofunc.c
2023-05-17 11:45:50 -05:00
Mike Black W9MDB
84187e976d
Remove temporary DEBUG from iofunc.c
2023-05-17 11:36:09 -05:00
Mike Black W9MDB
c14d6f0fa2
Add timeout value to debug in iofunc.c
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-16 07:54:17 -05:00
Mike Black W9MDB
1ad664be4c
Add line# to a couple of debug statements in iofunc.c to distinguish them
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-16 07:52:00 -05:00
Mikael Nousiainen
93e8a2879d
Fix read timeout retry logic
2023-05-14 11:57:09 +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
Mikael Nousiainen
e89687668d
Add flushing of rig port, including async data pipes, after \send_raw and \send_cmd to drain any extra rig responses
2023-05-13 00:04:37 +03:00
Mike Black W9MDB
dad55ef148
astyle files getting ready for WSJT-x-2.7.0rc1
2023-05-08 07:37:13 -05:00
Mike Black W9MDB
41113de9a2
Reduce debug level in iofunc.c
2023-05-05 09:10:43 -05:00
Mike Black W9MDB
fd4b3eb103
Reduce read_string_generic timeout debug to TRACE level
2023-05-05 08:11:51 -05:00
Mike Black W9MDB
4ada211713
Do 1 retry when timing out in read_string_generic
2023-04-30 17:02:09 -05:00
Mike Black W9MDB
0591aee8e6
Remove dead code
2023-03-06 11:32:58 -06:00
Mike Black W9MDB
edc18103f0
Move semicolon removal after complete string is read.
...
xg3 was expecting single ; response and old way was causing timeouts
2023-03-06 11:27:41 -06:00
Mike Black W9MDB
fb12668f06
Allow single semicolon characaters to be skipped
2023-02-20 22:49:27 -06:00
Mike Black W9MDB
bc6c14e430
Add Apex Shared Loop rotator
...
https://github.com/Hamlib/Hamlib/issues/1159
2022-12-25 17:07:26 -06:00
Daniele Forsi IU5HKX
3f077a5cf5
Remove unused includes of gpio.h
2022-12-09 17:31:23 +01:00
Mike Black W9MDB
ca4814c472
astyle files
2022-11-23 23:31:08 -06:00
Mike Black W9MDB
edcbd17612
Fix rig_send_raw to return bytes read, fill buffer, and also work with fixed length response/null terminator
...
https://github.com/Hamlib/Hamlib/issues/1157
2022-11-22 15:51:26 -06:00
Mike Black W9MDB
6c5e0e6974
Update astyle formatting
2022-11-16 15:30:36 -06:00
Mike Black W9MDB
5a6b0b4719
Reduce debug verbosity
2022-10-28 16:30:39 -05:00
Mike Black W9MDB
b63460f05f
Future code information in iofunc.c
2022-10-25 23:23:13 -05:00
Mike Black W9MDB
e6d0403cd2
Add future change notes to iofunc.c as part of serial I/O speedup to be done
2022-10-12 22:40:49 -05:00
Mike Black W9MDB
6c746c310b
Improve debug distinction in iofunc.c
2022-09-04 11:38:41 -05:00
Mike Black W9MDB
86245cffa6
Remove some debug from iofunc.c
2022-09-04 10:48:53 -05:00
Mike Black W9MDB
0ff94e1a7e
Reduce verbosity in iofunc.c
2022-07-31 12:12:30 -05: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
5e6c1eaef8
Rename TRACE to HAMLIB_TRACE to avoid conflict with MSVC
2022-07-04 07:26:30 -05:00
Mike Black W9MDB
6f9d057162
astyle files getting ready for release
2022-05-13 16:50:13 -05:00
Mike Black W9MDB
a5fb30d5b6
Improve windows iofunc a bit
2022-03-29 16:16:07 -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
2e218c56b6
Fix some more mingw errors on iofunc.c
2022-01-31 07:42:04 -06:00
Mike Black W9MDB
6e6d22ae36
Fix iofunc.c compilation error on mingw
2022-01-31 07:40:53 -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
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
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
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
Mikael Nousiainen
26e5692119
Remove comments added during debugging
2022-01-23 19:35:15 +02: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
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
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