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
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
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
52ca1f5dfa
Change sprintf to SNPRINTF in dummy
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 23:16:45 -06:00
Mike Black W9MDB
30a06c4fc6
Fix static array reference in netrigctl.c
...
https://github.com/Hamlib/Hamlib/issues/932
2022-01-17 16:59:31 -06:00
Mike Black W9MDB
8829a8011d
Change sprintf to snprint in dummy directory
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-11 12:17:34 -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
Michael Black
b62d1da671
Merge pull request #897 from sq6emm/master
...
Allow \send_voice_mem to be used over network and tested in dummy rig
2021-12-20 17:01:39 -06:00
Dawid SQ6EMM
dfa6b730d9
Allow \send_voice_mem to be used over network and tested in dummy rig
2021-12-20 16:50:13 +01: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
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
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
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
42284ef70b
Fix G command in netrigctl.c
...
https://github.com/Hamlib/Hamlib/issues/874
2021-11-20 16:26:47 -06: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
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
a9c2792c23
Fix netrigctl.c power2mW buffer overflow
...
https://github.com/Hamlib/Hamlib/issues/855
2021-11-07 06:52:40 -06: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
746ba96eb1
Fix netrigctl_stop_morse
2021-10-30 16:42:18 -05:00
Christoph Berg
8cba9d7ee9
Implement netrigctl_stop_morse
...
This allows \stop_morse to work across rigctld.
Tested with IC-7610.
2021-10-28 22:21:04 +02:00
Mike Black W9MDB
a5064bc5d9
Fix shadow variable in flrig.c
2021-09-11 05:35:05 -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
28c8b5a502
Increase timeout in netrigctl.c to 10000 to allow for worst case rig
...
Most rigs will have their timeout set to the rig's timeout plus 500ms.
2021-07-12 11:22:26 -05:00
Mike Black W9MDB
466afd5d3f
Fix WSJTX rig split behavior with rigctld -- was setting VFOA to VFOB freq
...
https://github.com/Hamlib/Hamlib/issues/721
2021-06-28 22:27:26 -05:00
Mike Black W9MDB
42a9d4fbd6
Fix netrigctl vfo where non vfo mode VFOB was not working
...
https://github.com/Hamlib/Hamlib/issues/721
2021-06-13 22:53:18 -05:00
Mike Black W9MDB
503897c41c
Fix debug msg in netrigctl.c
2021-05-27 23:40:33 -05:00
Mike Black W9MDB
81e3e2e5d2
astyle files
2021-04-29 17:23:37 -05:00
Mike Black W9MDB
386b08dc4f
Add ctcss_list and dcs_list to rigctld so rigcctld caps reflects the connected rig
...
https://github.com/Hamlib/Hamlib/issues/659
2021-04-29 10:49:29 -05:00
Mike Black W9MDB
5473249e9a
Add power2mW and mW2power to netrigctl.c
2021-04-28 17:39:08 -05:00
Mike Black W9MDB
60f861bfd5
More changes to bring rigctld dump_caps into line with rigctl dump_caps
...
https://github.com/Hamlib/Hamlib/issues/659
2021-04-24 09:16:40 -05:00
Mike Black W9MDB
9231c2f7e5
Some more change to bring rigctld dump_caps into line with rigctl dump_caps
...
https://github.com/Hamlib/Hamlib/issues/659
2021-04-24 08:47:01 -05:00
Mike Black W9MDB
e0a3f8deac
Fix rigctld caps ptt_type to reflect the connected rig
...
https://github.com/Hamlib/Hamlib/issues/659
2021-04-23 23:40:40 -05:00
Mike Black W9MDB
b0e006ce6c
astyle files
2021-04-21 23:48:29 -05:00
Mike Black W9MDB
fe8677322e
Remove MAIN and SUB VFOs from ic7100.c -- rig doesn't have them
...
These have been in there for 8 years but just got exposed as a bug with new VFO handling
https://github.com/Hamlib/Hamlib/issues/660
Start changes to update rig->caps in netrigctl.c so "rigctl -m 2 u" matches "rigctl u"
https://github.com/Hamlib/Hamlib/issues/659
2021-04-14 07:11:28 -05:00
Mike Black W9MDB
c4e37ef277
Add timeout to dump_state so rigctld will use the rig's timeout value plus 200ms for additional network delays
2021-04-09 15:35:30 -05:00
Mike Black W9MDB
c02b079fb3
Update timeout values based on testing with Malchite SDR
...
https://github.com/Hamlib/Hamlib/issues/645
2021-04-06 10:45:18 -05:00
Mike Black W9MDB
bbc8e00074
astyle files
2021-04-04 12:50:07 -05:00
Michael Black W9MDB
36fbb26655
Fix parsing of targetable_vfo in netrigctl.c
2021-03-31 11:40:48 -05:00
Michael Black W9MDB
dd156f74e2
astyle files in preparation for 4.2 release
2021-03-26 14:26:56 -05:00
Michael Black W9MDB
2aec11f5fe
Fix Hamlib NET rigctl so it works from WSJT-X/JTDX when rigctld --vfo is used
...
https://github.com/Hamlib/Hamlib/issues/628
2021-03-26 14:25:32 -05:00
Michael Black W9MDB
3bc39aaec1
astyle files is preparation for 4.2 release
2021-03-15 17:51:22 -05:00
Michael Black W9MDB
1d23fb6358
Fix some errors with the HAMLIB_ macro changes
2021-03-11 06:42:21 -06:00
Michael Black W9MDB
3d613519d5
Rename macros to avoid collisions with other software
2021-03-06 12:37:53 -06:00
Michael Black W9MDB
ee60a68bec
astyle files
2021-02-28 09:46:01 -06:00
Michael Black W9MDB
02a0f1303c
Remove VFO from netrigctl.c get_vfo command
2021-02-07 23:28:16 -06:00
Michael Black W9MDB
9c3a12c6f0
Fix netrigctl.c parsing of CHKVFO response
2021-02-05 17:33:59 -06:00
Michael Black W9MDB
ca8ed30f8f
astyle files
2021-01-09 10:13:17 -06:00