George Baltz N3GB
37321a1df8
Play catch-up with recent code.
2024-07-02 13:17:26 -04:00
George Baltz N3GB
02102f60e4
Convert all rig->state. references in src/rig.c to pointers.
...
Remove obsolete comment
Fix possible cppcheck squawks/errors after conversion from substructures
to real pointers.
2024-07-01 16:27:53 -04:00
George Baltz N3GB
5b8cc94b01
More pointer conversions for rig->state.
2024-07-01 05:52:45 -04:00
Mike Black W9MDB
ce84fc68a5
Remove debug from conf.c
2024-06-14 09:57:05 -05:00
Mike Black W9MDB
18568986f8
Fix port override
2024-05-25 11:38:16 -05:00
Mike Black W9MDB
d27a8e9df5
SmartSDR Slice improvements
2024-05-24 10:25:02 -05:00
Mike Black W9MDB
b7adb19c7e
Override port selection for SmartSDR since 4992 is always the port
2024-05-22 11:32:26 -05:00
Mike Black W9MDB
f51e7ef760
Add SDRConsole rig entry since TS-2000 is now hardware flow control by default
2024-03-23 08:46:56 -05:00
Mike Black W9MDB
5ab1122139
Add freq_skip for use with rigs that do not have targetable VFO
...
Hopefully this allows them to work with gpredict.
However...setting frequency on TX/RX transition could take up to 1 second depending on gpredict polling rate.
https://github.com/Hamlib/Hamlib/issues/1493
2024-03-08 17:09:47 -06:00
Mike Black W9MDB
05033171c3
Change token_t to hamlib_token_t to avoid collsions with libbsm and others
...
https://github.com/Hamlib/Hamlib/issues/1469
2024-01-21 23:11:55 -06:00
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