Michael Black W9MDB
6cf93934a7
Fix buffer overflow in rigctld.c
...
https://github.com/Hamlib/Hamlib/security/code-scanning/3214
2024-12-21 14:40:46 -06:00
Mike Black W9MDB
5c269964c2
astyle files in preparation for release 4.6
2024-11-06 08:07:34 -06:00
Mike Black W9MDB
e096426ddc
rigctld show-conf now exits only if no -r argument is given
...
https://github.com/Hamlib/Hamlib/issues/1619
2024-10-09 08:53:37 -05:00
Mike Black W9MDB
5daf92d224
rigctld flush and exit for -L option
2024-07-04 12:23:57 -05:00
Mike Black W9MDB
150ac1608f
Fix segfault when running rigctld --ptt-file=/dev/pts/4 --ptt-type=RTS
...
https://github.com/Hamlib/Hamlib/issues/1560
2024-07-03 22:24:17 -05:00
George Baltz N3GB
2f97b4bf82
Still more state pointer conversions.
2024-06-02 13:26:01 -04:00
Mike Black W9MDB
c16ef02196
Change rigctl and rigctld to use RTS PTT by default when --ptt-file is specified and no PTT type is given.
...
Can still be overridden by --set-conf=ptt_type=DTR for example.
https://github.com/Hamlib/Hamlib/issues/1560
2024-06-01 15:10:00 -05:00
Mike Black W9MDB
97a693a87f
Use rig_set_conf to set pathname in rigctl and rigctld -- allows retention of default port for example
2024-05-24 07:24:24 -05:00
George Baltz N3GB
07f8023d17
Convert tests/* to pointers
2024-03-01 12:27:26 -05:00
George Baltz N3GB
b1d85e5aa1
Update dcdport usage in tests/*.c
...
Issue #1445
2024-02-05 11:28:30 -05: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
Mikael Nousiainen
1cc08d2f00
Merge upstream and fix conflicts
2023-12-19 18:03:12 +02:00
Mike Black W9MDB
48b6b4910c
Allow compilation for systems without pthreads
...
https://github.com/Hamlib/Hamlib/issues/1373
2023-12-18 11:56:41 -06:00
Mike Black W9MDB
e267c62764
astyle files
2023-12-16 11:37:58 -06:00
Mike Black W9MDB
18c88c9f38
Fix clang warnings
...
https://github.com/Hamlib/Hamlib/issues/1450
2023-12-12 22:49:25 -06:00
Mikael Nousiainen
7b341a2ad6
Merge branch 'master' into streamline-vfo-targeting-and-split-functionality
2023-11-20 10:16:15 +02:00
Mikael Nousiainen
7d5f540b9c
Fix bugs in dummy rig. Report errors (incl. timeouts) from icom_get_powerstat(), because the timeout reason is often something else than rig being powered off. Check for power status changes in rigctld/rigctl command loops.
2023-11-20 10:15:45 +02:00
Mike Black W9MDB
8478367223
Improve rigctld printout when TCP session is aborted
2023-11-14 10:23:14 -06:00
Mike Black W9MDB
02ffc6d6dc
More set_conf/get_conf work
...
https://github.com/Hamlib/Hamlib/issues/971
2023-11-05 17:03:21 -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
c8c8869a3c
Refactor multicast publisher and rig poll routine. Create skeleton for multicast command server.
2023-11-01 00:26:37 +02:00
Daniele Forsi IU5HKX
b17d2b869c
Fix warning message for twiddle_rit
...
It was referencing a different option.
2023-10-22 23:43:37 +02:00
Mike Black W9MDB
cdc9bc45f2
Add -b/bind_all option to rigctld
...
By default rigctld will not try all interfaces
Windows was not recognizing duplicate rigctld instances and failing with Log4OM
https://github.com/Hamlib/Hamlib/issues/1400
2023-10-14 16:55:43 -05:00
Mike Black W9MDB
d72127f29a
Fix cppcheck warnings
2023-10-11 23:22:42 -05:00
Mike Black W9MDB
5ac1e50b80
Fix always true conditions found by cppcheck
...
https://github.com/Hamlib/Hamlib/issues/1351
2023-10-02 23:10:58 -05:00
Mike Black W9MDB
d28ce6b798
Bump up some 1024 buffers to 2048 to avoid overflow error
2023-07-21 11:46:58 -05:00
Mike Black W9MDB
ebedbbbfb5
Clean up debug a bit
2023-06-09 22:51:54 -05:00
Mikael Nousiainen
fd68723da1
Fix issues with power status handling in rigctl+rigctld and the Yaesu backend
2023-05-26 18:03:20 +03:00
Mikael Nousiainen
cce66d3257
Fix power on/off bugs: rig_open() should succeed even if rig is powered off, auto power-on should not be automatically enabled (prevents turning rig off), fix Kenwood and Yaesu power on/off sequences for all rigs
2023-05-21 23:01:03 +03:00
Daniele Forsi IU5HKX
6eee376cbf
Fix name of command in the version text
2023-04-19 21:49:30 +02:00
Daniele Forsi IU5HKX
c3265dc905
Fix typos
...
Fixes:
rigctld.c:1233:5: warning: implicit declaration of function ‘mutext_rigctld’; did you mean ‘mutex_rigctld’? [-Wimplicit-function-declaration]
rigctltcp.c:1217:5: warning: implicit declaration of function ‘mutext_rigctld’; did you mean ‘mutex_rigctld’? [-Wimplicit-function-declaration]
2023-03-18 10:46:04 +01:00
Daniele Forsi IU5HKX
3f90086991
[tests] Fix includes
2023-02-16 19:08:24 +01:00
Mike Black W9MDB
31d2939acc
Fix auto_power_on check in rigctld.c
2023-01-05 10:02:46 -06:00
Mike Black W9MDB
902be172c1
Allow rigctld to start with autopower_on=0 and avoid timeouts at startup
2023-01-04 17:22:56 -06:00
Mike Black W9MDB
f224e71a58
-R option will keep rig open as long as 1 or more clients are connected
...
https://github.com/Hamlib/Hamlib/issues/1187
2022-12-12 23:46:53 -06:00
Mike Black W9MDB
5b704d24fb
Allow rigctld to close the rig with the -R option when client disconnects.
...
This makes it close when any one client disconnects.
Should only close when no clients are connected -- that will be the next patch
This is for the FT736R and gpredict
https://github.com/Hamlib/Hamlib/issues/1187
2022-12-12 23:28:22 -06:00
Mike Black W9MDB
5339b431e4
Fix rigctld segfault when using -P RTS
...
https://github.com/Hamlib/Hamlib/issues/1182
2022-12-10 11:49:45 -06:00
Mike Black W9MDB
6c5e0e6974
Update astyle formatting
2022-11-16 15:30:36 -06:00
Mike Black W9MDB
ba06546623
Fix segfault with ptt_type --- seems to be constant on LHS so can't set it
2022-11-13 09:53:19 -06:00
Mike Black W9MDB
5164c1c366
Fix dummy ptt_type when ptt_type is specified on command line for rigctl and rigctld
...
https://github.com/Hamlib/Hamlib/issues/888
2022-11-13 08:04:27 -06:00
Mike Black W9MDB
4dbce1a0aa
Add setvbuf to rigctl.c and rigctld.d to overcome non-buffering of stderr on mingw builds.
...
Should also speed up other OS's too since only 1 flush will be executed instead of 2
2022-10-02 08:06:50 -05:00
Mike Black W9MDB
67b933ddb5
Update astyle for 4.5 release
2022-09-20 08:46:28 -05:00
Mike Black W9MDB
b1d132dd27
Add -R option to rigctld to close the rig when no clients are connected
...
The FT-736 has to lock the rig for CAT control so this allows it to unlock when rigctld is idle
https://github.com/Hamlib/Hamlib/issues/1117
2022-09-16 08:33:51 -05:00
Mike Black W9MDB
57f486bcc2
Reduce verbosity in rigctld.c
2022-07-31 12:15:14 -05:00
Mike Black W9MDB
37830f7442
Add error codes and messages to rigctl and rigctld --help
2022-07-30 15:45:04 -05:00
Mike Black W9MDB
2da9e4903a
Revert accidental commit on rigctld.c
2022-07-28 14:20:00 -05:00
Mike Black W9MDB
57aa5e8399
Revert "Fix FT897 freq set/get for > 100MHz"
...
This reverts commit 44ad5c6363
.
2022-07-28 07:10:13 -05:00
Mike Black W9MDB
a83eb3bf42
astyle files for 4.5 release
2022-07-27 17:16:17 -05:00
Daniele Forsi IU5HKX
4dfe46edbb
Remove unused includes related to times and dates
...
Removes includes of time.h sys/time.h hamlibdatetime.h
2022-07-23 18:12:10 +02:00
Mike Black W9MDB
f4f7bc9081
Allow rigctl/rigctld to timeout faster on startup
...
https://github.com/Hamlib/Hamlib/issues/1087
2022-07-18 09:51:45 -05:00