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
Mike Black W9MDB
6d329131af
Fix rigctld
...
https://github.com/Hamlib/Hamlib/issues/1087
2022-07-17 23:39:14 -05:00
Mike Black W9MDB
cbef79b873
Make rigctld powerstat query only when able and ETIMEOUT occurs
...
https://github.com/Hamlib/Hamlib/issues/1085
2022-07-17 08:31:15 -05:00
Mike Black W9MDB
d9c7fda5c9
Add global rig_powerstat so other rigctld clients can see powerstat
...
https://github.com/Hamlib/Hamlib/issues/1085
2022-07-16 07:54:27 -05:00
Mike Black W9MDB
ea9257db45
Add get_powerstat when rigctld gets an error in case rig gets powered off
2022-07-15 23:59:18 -05:00
Mike Black W9MDB
d0c615ae43
Added EPOWER error return when rig is powered off
...
Only set_powerstat will be accepted and rig will be polled for powerstat
https://github.com/Hamlib/Hamlib/issues/1085
2022-07-15 15:41:23 -05: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
7a73423200
In rigctld.c avoid closing already closed fsockin
2022-06-27 12:25:31 -05:00
Mike Black W9MDB
f7fe9dc239
Improved debug output to show multicast output and rigctl port info
2022-06-08 10:11:59 -05:00
Mike Black W9MDB
ad2f5047e0
Fix rig_set_lock_mode and rig_get_lock_mode
...
https://github.com/Hamlib/Hamlib/issues/1044
2022-06-06 22:54:10 -05:00