Mike Black W9MDB
12384c7796
Change rigctl_parse to use ENTERFUNC2 instead of ENTERFUNC
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-13 16:11:46 -05: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
Mikael Nousiainen
92215dfd2a
Fix bugs in \send_raw command and add possibility to specify any command terminator character. Add \stop_morse to Dummy rig.
2023-05-12 10:01:32 +03:00
Mikael Nousiainen
1596e125b6
Fix use of uninitialized variable
2023-05-10 20:57:33 +03:00
Mikael Nousiainen
4b8de5f96d
Change float level granularity formatting to use %f to avoid E notation. Fix AGC_TIME level range for Icom rigs. Fix listing of AGC levels in \dump_caps. Add \stop_morse and \wait_morse in \dump_caps. Add simulation of responses in \send_cmd_rx and \send_raw for dummy rig (and if rig port type is NONE). Fix other minor issues.
2023-05-10 20:53:18 +03:00
Mike Black W9MDB
f97736649f
Remove #pragma from rigtestmcastrx.c
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-09 08:24:41 -05:00
Mike Black W9MDB
ca763d4ff1
Clean up JSON
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-08 17:15:26 -05: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
f55e7b8348
Rename multicast test routines and clean up things a bit
...
Now works on mingw32 and Linux
https://github.com/Hamlib/Hamlib/issues/695
2023-05-07 23:23:01 -05:00
Mike Black W9MDB
62b9a12e89
Add multicastserver test
...
Fix compile warnings on mingw
2023-05-07 17:17:50 -05:00
Mike Black W9MDB
b0357025e6
Add multicast.c to hamlib build
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-07 15:32:43 -05:00
Mike Black W9MDB
65a3305fa8
Add multicastclient to tests/Makefile.am
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-07 13:22:38 -05:00
Mike Black W9MDB
b6f1cc4bc8
Attempt to get multicastclient working on mingw
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-07 10:59:43 -05:00
Mike Black W9MDB
e3c2a8d6ca
Add first implementation of multicast functions and multicastclient.c test program.
...
Next step will be to implement this when rig is opened.
This will turn Hamlib into a polling system in addition to polling -- caching will handle repeated requests
This should mean basic functions of freq, mode, split, ptt (and others when implemented) will have almost
immediate responses as only the cached values should be used.
https://github.com/Hamlib/Hamlib/issues/695
2023-05-07 06:50:35 -05:00
Mike Black W9MDB
1e9ecb079a
Fix RT21 2nd device for elevation
...
https://github.com/Hamlib/Hamlib/issues/1257
https://github.com/Hamlib/Hamlib/issues/1258
2023-04-30 17:04:34 -05:00
Mike Black W9MDB
addee81f43
Fix rigctld sending an extra space in front of send_morse string
...
Single space still works
https://github.com/Hamlib/Hamlib/issues/1281
2023-04-25 22:27:38 -05:00
Daniele Forsi IU5HKX
6eee376cbf
Fix name of command in the version text
2023-04-19 21:49:30 +02:00
Daniele Forsi IU5HKX
f390aa499d
Fix name of command in the usage and version texts
2023-04-19 21:41:07 +02:00
Daniele Forsi IU5HKX
1c72440c51
Fix segfaults with malformed input and wrong command line arguments
...
Fixes:
NULL dereference.
Steps to reproduce:
echo L x | tests/ampctl
echo L x | tests/rigctl
echo L x | tests/rotctl
2023-04-10 19:44:49 +02:00
Daniele Forsi IU5HKX
e11b4bd01c
Fix segfaults with malformed input and wrong command line arguments
...
Fixes:
NULL dereference.
Steps to reproduce:
echo L | tests/ampctl
echo L | tests/rigctl
echo L | tests/rotctl
2023-04-10 19:44:40 +02:00
Daniele Forsi IU5HKX
96bb604b12
Fix typos
2023-04-09 23:06:32 +02:00
Mike Black W9MDB
22970f16de
Fix Serial speed information in dumpcaps
2023-04-05 10:30:20 -05:00
Daniele Forsi IU5HKX
2db37fe7db
Fix typos
2023-03-26 11:01:51 +02:00
Michael Black
18c4eb4631
Merge pull request #1251 from dforsi/fix/cppcheck
...
Fix/cppcheck
2023-03-18 08:41:35 -05:00
Daniele Forsi IU5HKX
01a2dd23ed
Fix cppcheck "missingInclude" informational message
...
Fixes:
tests/rigtestlibusb.c:30:0: information: Include file: "libusb.h" not found. [missingInclude]
2023-03-18 11:17:18 +01: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
52d41236a7
Enable --show-conf for ampctl and ampctld
2023-03-18 10:25:36 +01:00
Mike Black W9MDB
57b7cd1860
Fix spelling error in rotctl.c help and add offset settings to rotctl.1
2023-03-16 16:41:35 -05:00
Daniele Forsi IU5HKX
3f90086991
[tests] Fix includes
2023-02-16 19:08:24 +01:00
Daniele Forsi IU5HKX
b6fe95ae80
[tests] Remove unused include of config.h
2023-02-14 19:57:27 +01:00
Mike Black W9MDB
2cec9e6d57
Update rigctlsync
2023-01-27 23:49:47 -06:00
Mike Black W9MDB
9bc5c4a883
Add rigctlsync utility to allow synchornizing a rig to SDR#
2023-01-27 23:35:31 -06:00
Mike Black W9MDB
a47eba7ce4
Revert "Update NEWS"
...
This reverts commit 76a3ab19eb
.
2023-01-24 11:25:49 -06:00
Mike Black W9MDB
76a3ab19eb
Update NEWS
2023-01-24 11:23:47 -06:00
Mike Black W9MDB
52bed765ef
Clean up rig power on/off sequencing for Kenwood/Elecraft rigs
...
Note that the K3/K3S cannot power on via CAT control
https://github.com/Hamlib/Hamlib/issues/1225
2023-01-22 23:41:21 -06:00
Mike Black W9MDB
cdbd517228
Remove double execution of get_powerstat -- was causing rigctld to give an error
...
https://github.com/Hamlib/Hamlib/issues/1220
2023-01-21 12:55:44 -06:00
Mike Black W9MDB
c78371353c
Allow get_powerstat when rig is powered off
...
https://github.com/Hamlib/Hamlib/issues/1220
2023-01-19 17:15:59 -06:00
Mike Black W9MDB
6f6379e547
Add hamlibmodels to Makefile.am
2023-01-18 08:38:43 -06:00
Mike Black W9MDB
b38739bcab
Show AGC Level None when there are no AGC settings for rig
...
https://github.com/Hamlib/Hamlib/issues/1155
2023-01-18 07:09:28 -06:00
Mike Black W9MDB
c0866e0bad
Add hamlibmodels.c example
2023-01-17 16:23:45 -06:00
Mike Black W9MDB
d180883f3e
Allow rigctl/rigctld to continue when a bad set_conf is called -- just shows a warning now
2023-01-17 09:22:55 -06:00
Mike Black W9MDB
29a80fb496
Fix get_powerstat call when get_powerstat is not defined
...
https://github.com/Hamlib/Hamlib/issues/1217
2023-01-13 17:30:55 -06:00
Mike Black W9MDB
4a487ffdcc
Fix rigctld agc level readings -- allow for rig backedn to specify "RIG_AGC_NONE" now for clarity if desired
...
https://github.com/Hamlib/Hamlib/issues/1155
2023-01-06 16:21:58 -06: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
87cc9a8c3d
Update ID5100 and ID4100
...
Promote ID5100 to stable
https://github.com/Hamlib/Hamlib/issues/1204
https://github.com/Hamlib/Hamlib/issues/1202
https://github.com/Hamlib/Hamlib/issues/1202
2023-01-04 15:40:36 -06:00
Mike Black W9MDB
9f0bd7b310
Add rigctltcp.c -- not working yet
2023-01-02 11:38:27 -06:00
Mike Black W9MDB
c7b33ef0b3
Fix ID5100 ID4100 ID31 ID51 get/set freq
...
Remove get_powerstat from ID4100 ID31 ID51 as it they are not capable
Add new rig_is_model function to help with Icom rig identification checks
https://github.com/Hamlib/Hamlib/issues/1202
https://github.com/Hamlib/Hamlib/issues/1200
2023-01-02 11:30:52 -06:00
Mike Black W9MDB
712564a2ae
Revert "TS-890S query rig to find out which meter type the operator has selected"
...
Committed a bit too much
This reverts commit 2fc1d157ba
.
2023-01-01 16:39:25 -06:00
Mike Black W9MDB
2fc1d157ba
TS-890S query rig to find out which meter type the operator has selected
...
Thanks to N3GB George Baltz
2023-01-01 16:33:46 -06:00
Mike Black W9MDB
4689a2ff11
Add client_version for rigctld clients to report their version to rigctld
...
This should allow for rigctld to report deprecation, compatibility, or alternatives
https://github.com/Hamlib/Hamlib/issues/1153
2022-12-23 23:39:20 -06:00
Mike Black W9MDB
f468fa3c1d
Allow POWERSDR to do commands when powered off
2022-12-19 16:58:44 -06:00
Mike Black W9MDB
287fb9091b
Update info in hamlib_tuner_control
...
https://github.com/Hamlib/Hamlib/issues/1192
2022-12-19 14:38:58 -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
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
Daniele Forsi IU5HKX
6008979708
Remove unused include of getopt.h
2022-12-09 17:31:20 +01:00
Daniele Forsi IU5HKX
f7fe2912ec
Remove unused includes of errno.h
2022-12-09 12:32:54 +01:00
Mike Black W9MDB
1e1ed4c9e6
Force the FT-991 to 100ms along with FT-DX2000, Ft-891, FT950, FTDX3000/D
...
10ms was seeing timeouts on some rigs using rigctl
https://github.com/Hamlib/Hamlib/issues/1163
2022-12-03 15:18:02 -06:00
Mike Black W9MDB
560afb9de2
Add SM and KS commands to rigctlcom to work better with DXCommander
...
https://github.com/Hamlib/Hamlib/issues/1170
2022-12-02 10:34:29 -06:00
Mike Black W9MDB
2b145fe717
Add netrigctl_send_raw to allow send_raw to work with rigctld
...
https://github.com/Hamlib/Hamlib/issues/1157
2022-12-01 16:20:23 -06:00
Mike Black W9MDB
c5a83b1652
Fix compiler warnings
2022-11-28 11:39:03 -06:00
Mike Black W9MDB
f81c20eb37
Astyle files
2022-11-28 10:48:17 -06:00
Mike Black W9MDB
66d0dc9a5d
Fix mingw64 warnings
2022-11-28 09:01:28 -06:00
Mike Black W9MDB
09e73b2ec9
Remove misc.h dependency from testrig.h
2022-11-26 22:10:19 -06:00
Mike Black W9MDB
6995986880
Change rigctl_powerstat message to only show when powerstat shows off and promote to error
2022-11-26 16:13:41 -06:00
Mike Black W9MDB
58f2549a99
Change rigctl send_raw to also require terminator
...
https://github.com/Hamlib/Hamlib/issues/1157
2022-11-26 15:19:23 -06:00
Mike Black W9MDB
a0711bfa71
Fix send_raw and add some debug to it
...
https://github.com/Hamlib/Hamlib/issues/1157
2022-11-25 17:40:05 -06:00
Mike Black W9MDB
af6d4d03e3
Add send_raw to rigctl
2022-11-24 23:27:07 -06:00
Mike Black W9MDB
ca4814c472
astyle files
2022-11-23 23:31:08 -06:00
Mike Black W9MDB
1ef3549e94
Fix rigctld showing the real rig agc_levels instead of all levels
...
Fix display of RIG_AGC_OFF
Add RIG_AGC_LONG
Fix PowerSDR AGC values
https://github.com/Hamlib/Hamlib/issues/1155
2022-11-23 23:29:18 -06:00
Mike Black W9MDB
93d3a9e213
Add sendraw.c to test directory
...
https://github.com/Hamlib/Hamlib/issues/1157
2022-11-22 15:56:35 -06:00
Mike Black W9MDB
25ac6d77d6
Fix dumpcaps filter printout to only show valid filters
...
https://github.com/Hamlib/Hamlib/issues/1151
2022-11-16 16:48:37 -06:00
Mike Black W9MDB
6c5e0e6974
Update astyle formatting
2022-11-16 15:30:36 -06:00
Mike Black W9MDB
d7edd89a12
Fix memcsv.c
...
https://github.com/Hamlib/Hamlib/issues/1149
2022-11-14 17:55:25 -06:00
Mike Black W9MDB
1aebee2da9
Fix clang warning on callback functions
...
https://github.com/Hamlib/Hamlib/issues/1149
2022-11-14 16:37:20 -06:00
Mike Black W9MDB
4f5bf9aadd
Fix some dumpcaps warnings in many rigs
2022-11-14 16:02:28 -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
d7ab039573
Fix backwards compatibility of rotctl with rotctld
...
https://github.com/Hamlib/Hamlib/issues/1035
2022-11-10 22:28:28 -06:00
Mike Black W9MDB
782e54e4f2
Fix new protocol in rotctl functions to duplicate logic in rigctl new protocol
...
https://github.com/Hamlib/Hamlib/issues/1035
2022-11-10 21:54:00 -06:00
Mike Black W9MDB
853806b978
Fix rotctld dumpcaps to expose client rot_type instead of Other
...
https://github.com/Hamlib/Hamlib/issues/1035
2022-11-10 17:53:21 -06:00
Mike Black W9MDB
cd1dc4c05d
Add ability to enter terminator char for W send_cmd_rx so one can do 'W FA; ;' without a timeout needed
2022-10-29 23:09:53 -05:00
Mike Black W9MDB
9c02b2ebc2
Fix Yaesu DT command and add 2 or 4 digit timezone option
...
https://github.com/Hamlib/Hamlib/issues/1132
2022-10-25 23:26:16 -05: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
Mikael Nousiainen
2c5013662d
Fix warning message for allowed commands when rig is powered off
2022-08-23 00:14:12 +03:00
Mikael Nousiainen
dc02c566f5
Fix handling of the new EPOWER error code: do not re-open rig and fix/extend allowed commands when rig is powered off. Fix Yaesu newcat backend to not try to call rig ID command during command validation.
2022-08-23 00:10:25 +03:00
Mike Black W9MDB
c34f719337
Astyle files
2022-08-20 22:56:04 -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
36838e2f73
Fix AGC level patch to apply only to Icom rigs and check priv non null
...
https://github.com/Hamlib/Hamlib/issues/1096
2022-07-30 08:32:03 -05:00
Mike Black W9MDB
2b7c2ab5ce
Fix all Icom rigs AGC values for correct printout with dumpcaps
...
https://github.com/Hamlib/Hamlib/issues/1096
2022-07-29 23:44:17 -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
Mike Black W9MDB
627ec83652
Change malloc to calloc
2022-07-27 10:26:08 -05:00
Daniele Forsi IU5HKX
8af92926bb
Revert unwanted changes
2022-07-24 23:19:47 +02:00
Michael Black
74b4d7beb6
Merge pull request #1091 from dforsi/fix/unused-includes
...
Fix/unused includes
2022-07-24 11:44:01 -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
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
72c6bbf2c3
Allo chk_vfo and dump_caps while rig power is off
...
https://github.com/Hamlib/Hamlib/issues/1085
2022-07-20 22:26:18 -05: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
93ca57a555
Only check power on if backend has rig_get_powerstat
...
https://github.com/Hamlib/Hamlib/issues/1085
2022-07-15 16:16:11 -05:00
Mike Black W9MDB
0e2ec27646
Default to powerstat=RIG_POWER_ON
...
https://github.com/Hamlib/Hamlib/issues/1085
2022-07-15 16:06:06 -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
668db3a0e2
Update rigctlcom information
2022-07-14 16:55:24 -05:00
Mike Black W9MDB
30884ae47e
Add amp_set_level and amp_set_ext_level
2022-07-14 08:14:41 -05:00
Mike Black W9MDB
0ec9622433
Interactive rigctld clients will now flush the line when a VFO error is encountered
...
https://github.com/Hamlib/Hamlib/issues/1041
2022-07-08 16:21:34 -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
Mike Black W9MDB
0f25083d57
Clean up rigctl.c debug output
2022-06-04 08:12:08 -05:00
Mike Black W9MDB
f555eceff9
Got set_lock_mode and get_lock_mode working now
...
https://github.com/Hamlib/Hamlib/issues/1044
2022-06-02 15:55:56 -05:00
Mike Black W9MDB
f19d354ede
Astyle files
2022-05-29 12:06:44 -05:00
Mike Black W9MDB
fc26aa545f
Fix get_separator rigctl output
2022-05-29 12:06:03 -05:00
Mike Black W9MDB
ae67384daf
https://github.com/Hamlib/Hamlib/issues/1044
2022-05-29 12:00:03 -05:00
Mike Black W9MDB
0d46e5b92e
Fix check_buffer_overlow for rig_set_ant
2022-05-25 11:55:14 -05:00
Mike Black W9MDB
19f00558e4
More cleanup of rigctl_parse.c output
2022-05-22 23:01:14 -05:00
Mike Black W9MDB
1c379e793a
Clean up rig_get_level output in rigctl_parse.c
2022-05-22 22:45:25 -05:00
Mike Black W9MDB
febeb40722
Add resp_sep to a couple more places in rigctl_parse.c
2022-05-22 22:35:21 -05:00
Mike Black W9MDB
f44fe0ed31
Fix output format of rigctl_parse.c for non-interactive clients
...
Add ARG_NOVFO to get_vfo_info
2022-05-22 09:00:38 -05:00
Mike Black W9MDB
b1a4bb06ce
Astyle files
2022-05-21 13:23:51 -05:00
Mike Black W9MDB
11bcf03229
Add get_separator and set_separator to rigctld
...
This allows rigctld clients to change the reponse format
Multi-line response will use the new separator for fields and a newline at the end of message.
The allows node-red tcprequest to wait for newline and then parse the fields in one message.
https://github.com/Hamlib/Hamlib/issues/1015
2022-05-21 12:42:34 -05:00
Mike Black W9MDB
c9d31337b9
Fix MICDATA ptt with rigctld and the few rigs which needs this -- e.g. TS-590, TS-480, TS-890, TS-990. VX-1700. ICF-8101
...
https://github.com/Hamlib/Hamlib/issues/1033
2022-05-20 09:06:17 -05:00
Mike Black W9MDB
921d4d43ef
Add -S/--separator option to rigctld to allow something other then \n as a field separator
...
Should work better for node-red parsing
https://github.com/Hamlib/Hamlib/issues/1030
2022-05-19 12:28:49 -05:00
Mike Black W9MDB
4d8e64acfe
Stop mapping MICDATA ptt to PTT -- there should be no reason to do this and it was interfering with rigctld and MICDATA rigs TS480/590/890/990
...
https://github.com/Hamlib/Hamlib/issues/998
2022-05-15 11:53:38 -05:00
Mike Black W9MDB
3892bc41dc
Remove form feed form rigctl_parse. Did not do what we need for node-red
2022-05-14 22:13:17 -05:00
Mike Black W9MDB
f16988d363
Fix get_vfo_info prompt
2022-05-14 17:36:28 -05:00
Mike Black W9MDB
6f9d057162
astyle files getting ready for release
2022-05-13 16:50:13 -05:00
Mike Black W9MDB
81d0c3c768
Remove sys/time.h include from rig.h -- not needed
...
Remove redundant semicolon from rig_debug macro and fix rig_debug's without a semicolon
Some more work on settings and password control -- still in work
https://github.com/Hamlib/Hamlib/issues/813
https://github.com/Hamlib/Hamlib/issues/985
2022-05-13 16:41:59 -05:00
Mike Black W9MDB
49cbc18e19
Fix missing semicolon in rig.c and rigctl_parse.c
2022-05-13 11:09:30 -05:00
Mike Black W9MDB
45208df8c6
Fix misspelling in rigctl_parse.c
2022-05-11 22:58:46 -05:00
Mike Black W9MDB
71407bbf1d
Add debug to show file handle in rigctl_parse
...
https://github.com/Hamlib/Hamlib/issues/1026
2022-05-11 11:53:20 -05:00
Mike Black W9MDB
a22787393f
Add debug to rigctl_parse.c to chase down fscanf problem with node-red on some commands
2022-05-10 12:20:54 -05:00
Mike Black W9MDB
22d4009327
Add flush to set_powerstat to avoid any queued data during power operations
2022-05-09 07:11:01 -05:00
Mike Black W9MDB
0b62193d92
Add new error code for security
...
https://github.com/Hamlib/Hamlib/issues/813
2022-04-29 17:17:43 -05:00
Mike Black W9MDB
5c0e98fe56
First phase of .hamlib_settings -- currently saves sharekey in current directory when rigctld -A is run
...
https://github.com/Hamlib/Hamlib/issues/813
https://github.com/Hamlib/Hamlib/issues/985
2022-04-29 16:30:00 -05:00
Mike Black W9MDB
5400d8ed01
Fix send_command to detect FLRig correctly
2022-04-25 12:54:06 -05:00
Mike Black W9MDB
fbd7893192
Add cat_string to the raw send command in rigctl for FLRig
2022-04-25 12:42:27 -05:00
Mike Black W9MDB
382282ba20
Fix rigctl option -B
2022-04-25 08:18:06 -05:00
Mike Black W9MDB
b55668e2fa
Update usage and no arg for -B option
2022-04-25 08:09:51 -05:00
Mike Black W9MDB
6497048f28
Allow rigctlcom to map set_freq on VFOA to VFOB instead
...
This will allow CW Skimmer to work with some rigs (e.g. IC7300) using FM
mode on VFOA and CW mode on VFOB and split mode transmit on VFOB.
Clicking on CW Skimmer will change VFOB instead of VFOA to allow working
dxpeditions where the fox is staying on frequency
2022-04-24 14:19:20 -05:00
Mike Black W9MDB
863f50f2fb
Really move rig_make_md5 to rig.h
...
https://github.com/Hamlib/Hamlib/issues/813
2022-04-16 06:48:41 -05:00
Mike Black W9MDB
4055810dc8
Remove md5.h from rigctl_parse.c
...
https://github.com/Hamlib/Hamlib/issues/813
2022-04-16 06:40:01 -05:00
Mike Black W9MDB
d54b541c0d
Merge branch 'master' of https://github.com/Hamlib/Hamlib
2022-04-16 00:03:41 -05:00
Mike Black W9MDB
eb6ce19600
Move rig_make_md5 to rig.h
...
extern HAMLIB_EXPORT(char*) rig_make_md5(char *pass);
2022-04-16 00:00:44 -05:00
Mike Black W9MDB
5c6e92a089
Change make_md5 to rig_make_md5 and export for the DLL build
...
https://github.com/Hamlib/Hamlib/issues/813
2022-04-15 22:44:53 -05:00
Mike Black W9MDB
ad2e3bb0ee
Move md5.h to src
2022-04-15 17:49:00 -05:00
Mike Black W9MDB
cd5f69fb96
Remove make_md5 declaraion from rigctl_parse.c
...
https://github.com/Hamlib/Hamlib/issues/813
2022-04-15 17:41:49 -05:00
Mike Black W9MDB
770aa4e98a
Stage 1 rigctld password working using MD5 hash
...
Need to add Stage 2 which will be encryption using the MD5 hash as the key so the secret key nevers gets trasmitted
Then need to add a "by connection" capability as password is permanent across connections right now.
2022-04-15 13:21:35 -05:00
Mike Black W9MDB
8fbda12ce2
Fix warning in rigctl_parse.c
2022-03-05 16:49:56 -06:00
Mike Black W9MDB
0333cdfca5
astyle files
2022-03-01 11:40:14 -06:00
Mike Black W9MDB
499198bf50
Basic rigctld password working -- still need to add secure method -- plain text right now
...
https://github.com/Hamlib/Hamlib/issues/813
2022-03-01 11:39:11 -06:00
Mike Black W9MDB
c5a5276b15
Adding func_chk.c to test balancing of ENTERFUNC and RETURNFUNC/RETURNFUNC2 statements
2022-02-28 16:35:16 -06:00
Mike Black W9MDB
b3d93cc231
Remove testsecurity from tests/Makefile.am
...
Will implement later
https://github.com/Hamlib/Hamlib/issues/813
2022-02-28 13:08:41 -06:00
Mike Black W9MDB
9e2ac43631
Move security/security_test to tests/testsecurity
...
https://github.com/Hamlib/Hamlib/issues/813
2022-02-28 12:54:04 -06:00
Mike Black W9MDB
2c43ee5f0c
Fix compilation warning on rigctl_parse.c
...
https://github.com/Hamlib/Hamlib/issues/813
2022-02-24 17:50:57 -06:00
Mike Black W9MDB
9ae519fc41
Working on password access for rigctld -- not fully implmented yet
...
Need to check on security audit and cross-platform compilation first
https://github.com/Hamlib/Hamlib/issues/813
2022-02-24 17:28:25 -06:00
Mike Black W9MDB
c8d5f8ca07
Fix twiddle_rit in rigctld.c
2022-02-11 16:37:24 -06:00
Mike Black W9MDB
a360bd0a07
Add some deprecated copies to ampctl.c
2022-02-11 16:28:03 -06:00
Mike Black W9MDB
43f8a1d680
Remove some debug from rigctl.c
2022-02-09 23:54:51 -06:00
Mike Black W9MDB
3df4571ec4
Allow rigctl w command to time out faster
2022-02-06 08:24:37 -06:00
Mike Black W9MDB
6934536e09
Add some more deprecated port copies
2022-02-06 08:22:53 -06:00
Mike Black W9MDB
6f486e69d6
Add some more copies to port_deprecated structures for rigctl and rigctld
2022-02-05 23:25:02 -06: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
9aade8de3f
Add config.h to include/hamlib so HAVE_PTHREAD is available if needed
...
https://github.com/Hamlib/Hamlib/issues/947
2022-02-03 22:31:42 -06:00
Mike Black W9MDB
f08c7d7e36
Change ENTERFUNC RETURNFUNC calls in rigctl_parse.c
...
https://github.com/Hamlib/Hamlib/issues/946
2022-01-31 09:34:32 -06:00
Mike Black W9MDB
615f102ccc
Fix mingw static build
...
https://github.com/Hamlib/Hamlib/issues/946
2022-01-31 09:12:18 -06:00
Mike Black W9MDB
456ab24f58
Fix mingw32 compilation errors
2022-01-31 08:19:50 -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
2028d4d1fa
Add some more memcpy's to sync hamlib_port_t_deprecated
...
https://github.com/Hamlib/Hamlib/issues/894
2022-01-26 17:44:03 -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
Michael Black
51da62f3fb
Merge pull request #943 from mikaelnousiainen/async-rigctld-icom-bugfixes
...
Bugfixes for async I/O, rigctld and Icom backend
2022-01-23 11:49:14 -06:00
Mikael Nousiainen
664604f7b6
Make icom_rig_open() fail in case rig_set_powerstat() failure is auto_power_on is requested. Exit rigctld client loop if process is interrupted.
2022-01-23 11:49:16 +02:00
Mike Black W9MDB
fba46c7850
Change snprintf to SNPRINTF in rigctl.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-22 22:33:28 -06: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
Mikael Nousiainen
5b9feffa78
Fix Icom dual watch set command. Make rotator macro name buffer larger, as the macro names are longer than the space allocated.
2022-01-18 19:02:01 +02:00
Mike Black W9MDB
c2cb94e412
Change sprintf to snprint in tests
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-11 00:00:44 -06:00
Mike Black W9MDB
c3db2b07ae
Add rot_get_conf2 function to eventually replace rot_get_conf
...
This is to avoid potential buffer overflows
https://github.com/Hamlib/Hamlib/issues/924
2022-01-09 11:16:41 -06:00
Mike Black W9MDB
bf8bce2d5a
Finish memsave.c changes to snprintf
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:20:47 -06:00
Mike Black W9MDB
3548ab8d81
Change sprintf to snprint in memsave.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:18:42 -06:00
Mike Black W9MDB
ed1210e974
Change sprintf to snprint in rotctl_parse.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:10:40 -06:00
Mike Black W9MDB
d96d616ce5
Change sprint to snprintf in rigctl_parse.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:08:24 -06:00
Mike Black W9MDB
b358437cea
Change all sprintf to snprintf in rigmatrix.c and check for buffer overflow
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:05:45 -06:00
Mike Black W9MDB
e63fbf0812
Change sprintf to snprintf in rigmatrix.c and check for buffer overflow
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:03:05 -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
Mike Black W9MDB
0080044fb1
Remove redundnat testrigcaps in tests/Makefile check
2021-12-30 09:09:42 -06:00
Mike Black W9MDB
954d70c143
Fix testrigcaps for WIN32 build
2021-12-30 07:04:38 -06:00
Mike Black W9MDB
a54b74f3c5
Update testcookie.c
2021-12-29 14:16:16 -06:00
Mike Black W9MDB
76b3ec72fd
Update testrigcaps.c
2021-12-29 12:25:03 -06:00