Mike Black W9MDB
fd1c48bfab
Fix printout of ext_level
2023-10-08 16:51:39 -05:00
Mike Black W9MDB
64d6cd4af2
Update some rigctl commands that do not need the VFO argument
2023-10-07 14:10:50 -05:00
Mike Black W9MDB
1a4a189dbc
Try to make rigctl(d)/rotctl(d) a little more robust in case of bad data
...
https://github.com/Hamlib/Hamlib/issues/1351
2023-10-02 10:48:26 -05:00
Mike Black W9MDB
404ceb8c4b
Change send_morse, stop_morse, send_voice_mem, and stop_voicemem to not require a VFO argument
...
https://github.com/Hamlib/Hamlib/issues/1365
2023-08-21 15:16:32 -05:00
Mike Black W9MDB
cca3891362
Change L METER to allow meter names in addition to numeric
...
Change l METER to return meter number=name instead of just number
Hopefully doesn't mess up anybody using this function via rigctl/rigctld uf they parsing the number correctly.
It's easier for users with to use/see text names for both set/get
https://github.com/Hamlib/Hamlib/issues/1369
2023-08-20 16:03:25 -05:00
Mike Black W9MDB
1ad43a44ba
Fix KEYERTYPE
...
https://github.com/Hamlib/Hamlib/issues/1363
2023-08-19 08:43:06 -05:00
Mike Black W9MDB
3814f2dadf
Add set_voice_mem and stop_voice_mem for K3/K3S/K4
...
https://github.com/Hamlib/Hamlib/issues/1367
2023-08-18 16:49:35 -05:00
Mike Black W9MDB
36dade6e6c
Strip CR/LF from 'b' command input
...
https://github.com/Hamlib/Hamlib/issues/1365
2023-08-18 12:20:41 -05:00
Mike Black W9MDB
0edd1df223
Add more KEYERTYPE implementaions to Icom rigs
2023-08-18 00:04:59 -05:00
Mike Black W9MDB
ccd6472f03
Fix KEYERTYPE in ic7300.c and add parsing of STRAIGHT, BUG, PADDLE for rigctl(d)
...
https://xiegu.eu/downloads/
2023-08-17 22:49:20 -05:00
Mike Black W9MDB
2bc28f2dea
Fix duplicate printout in get_parm
...
https://github.com/Hamlib/Hamlib/issues/1361
2023-08-14 12:35:28 -05:00
Mike Black W9MDB
003b50bc57
Standardize extended response in rigctld for level, func, and parm
...
,l VFOA AGC
get_level: VFOA,AGC,0,RPRT 0
,u VFOA RIT
get_func: VFOA,RIT,0,RPRT 0
,p ANN
get_parm: currVFO,ANN,0,RPRT 0
Error example
,p NB
get_parm: currVFO,NB,RPRT -1
https://github.com/Hamlib/Hamlib/issues/1361
2023-08-13 23:23:23 -05:00
Mike Black W9MDB
d7d450df49
Add parm BANDSELECT for Yaesu rigs
...
'p BANDSELECT' returns current band of VFOA
'P BANDSELECT BAND160M' example selects the 160M band
'P BANDSELECT ?' shows bands available for the rig
Kenwood rigs will be next
Icom rigs TBD when Icom explains the return from 0x1a 0x01 -- no bandselect possible so manual setting of rig values
https://github.com/Hamlib/Hamlib/issues/1353
2023-08-11 10:40:42 -05:00
Mike Black W9MDB
9ad070c33f
Add gpio command to rigctl(d) usable with pttport setting CM108
...
e.g. to set gpio2 on use 'gpio GPIO2 1" and off "gpio GPIO2 0"
Should work with GPIO1-4
New API funcions rig_cm108_get_bit rig_cm108_set_bit
https://github.com/Hamlib/Hamlib/issues/1121
2023-07-22 10:32:25 -05:00
Mike Black W9MDB
2da6c400f7
Add RTS/DTR capability to rotctl and ampctl
2023-07-20 11:58:26 -05:00
Mike Black W9MDB
4c8994d905
Add hamlib_version to dump_state
2023-07-20 10:01:30 -05:00
Mike Black W9MDB
5df0ae02f1
Allow W command to use any hex terminator
2023-07-17 09:33:18 -05:00
Mike Black W9MDB
52df1e4f0a
Allow fd terminator for W command. Any fd value, e.g. fd, 0xfd, \0xfd will work
2023-07-17 09:28:37 -05:00
Mike Black W9MDB
94cce72428
Add hamlib_version command to rigctl/rigctld and format version date as ISO8601
2023-07-11 11:13:04 -05:00
Mike Black W9MDB
24f17730f4
Add \test command to rigctl -- first test routine is "cw"
...
https://github.com/Hamlib/Hamlib/issues/1281
2023-07-04 17:31:07 -05:00
max
44fa32c8cd
Fix 'get_powerstat' command provided by rigctld by taking care of the given separator according to the extended response protocol
2023-06-29 16:20:00 +02:00
Mike Black W9MDB
5c3f26cc56
Cover more cases for detecting rig power
2023-06-20 17:32:16 -05:00
Mike Black W9MDB
f9d27d0e35
Add get_vfo_list to help in rigctl
2023-06-11 14:15:32 -05:00
Mike Black W9MDB
a6de41e206
rigctld can now see RIG_LEVEL values correctly
...
https://github.com/Hamlib/Hamlib/issues/1305
2023-06-03 16:50:30 -05:00
Mike Black W9MDB
c85cf58235
astyle rigctl_parse.c
2023-05-30 16:10:52 -05:00
Mike Black W9MDB
bdd16c8f20
Fix W command for rigctld
...
https://github.com/Hamlib/Hamlib/issues/1306
2023-05-30 15:57:33 -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
Mikael Nousiainen
eea12aff0a
Merge master
2023-05-14 12:08:15 +03:00
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
dad55ef148
astyle files getting ready for WSJT-x-2.7.0rc1
2023-05-08 07:37:13 -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
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
2db37fe7db
Fix typos
2023-03-26 11:01:51 +02:00
Daniele Forsi IU5HKX
3f90086991
[tests] Fix includes
2023-02-16 19:08:24 +01: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
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
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
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
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
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
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
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
6c5e0e6974
Update astyle formatting
2022-11-16 15:30:36 -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
67b933ddb5
Update astyle for 4.5 release
2022-09-20 08:46:28 -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
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
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
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
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
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
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
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
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
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
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
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
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