Wykres commitów

1506 Commity (master)

Autor SHA1 Wiadomość Data
Mike Black W9MDB e35b87b11a Fix MacOS warning in rigctl_parse.c 2024-09-08 11:52:06 -05:00
Mike Black W9MDB 940814617b Update set_clock options again 2024-08-30 16:36:10 -05:00
Mike Black W9MDB 954fd00161 Fix set_clock information 2024-08-30 10:17:55 -05:00
Mike Black W9MDB 5ba43ba00e Fix mingw compiles
https://github.com/Hamlib/Hamlib/issues/1597
2024-08-18 08:15:11 -05:00
Mike Black W9MDB abd6d4f388 Avoid possible segfault 2024-07-19 22:39:12 -05:00
Mike Black W9MDB 8b9c768063 Update info in riglist.h
Make check for mfg_name or model_name of Misc, Other, or Dummy for GM3ZZA's application
Just to avoid ever using these accidentally
2024-07-14 22:57:40 -05:00
George Baltz N3GB 16707507c6 Yet another batch of state pointers 2024-07-14 01:17:28 -04:00
George Baltz N3GB 7bf63ecbf0 More amplifier and rotator state changes 2024-07-14 01:17:28 -04: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 37321a1df8 Play catch-up with recent code. 2024-07-02 13:17:26 -04:00
George Baltz N3GB 6996a1222c Fix func_chk to do useful things
Allow multiple input files
Do analysis on function-by-function basis
Add 'return' to processing
Fix some false positives in comments
2024-06-26 10:16:12 -04:00
George Baltz N3GB 06301679d3 Balance ENTERFUNC/RETURNFUNC usage
Still some unbalanced RETURNFUNC2 usage, but doesn't affect any rig data.
2024-06-26 10:16:12 -04:00
Mike Black W9MDB 108f52806e Fix segfault when run as rigctl --ptt-file=/dev/ttyUSB2 --ptt-type=RTS
https://github.com/Hamlib/Hamlib/issues/1560
2024-06-15 22:18:59 -05:00
George Baltz N3GB 341a205bd7 Revert "Fix rotorez set_conf in both rotctl and rotctld -- since it needs to be done after rot_open"
This reverts commit 1557ad70f7.
2024-06-14 16:23:36 -04:00
Mike Black W9MDB 1557ad70f7 Fix rotorez set_conf in both rotctl and rotctld -- since it needs to be done after rot_open 2024-06-07 16:07:57 -05:00
George Baltz N3GB 9eda0628f6 More state pointers - mostly sed i
Fix bad comment in tests/README
2024-06-05 16:50:40 -04:00
George Baltz N3GB 2f97b4bf82 Still more state pointer conversions. 2024-06-02 13:26:01 -04:00
George Baltz N3GB 2794d2dfe1 More state pointer changes
Done with search/replace
Less than 2300 left to do
2024-06-01 16:59:17 -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 745e72a6cf Add
ROT_MOVE_UP_LEFT, ROT_MOVE_UP_CCW
ROT_MOVE_UP_RIGHT, ROT_MOVE_UP_CW
ROT_MOVE_DOWN_LEFT, ROT_MOVE_DOWN_CCW
ROT_MOVE_DOWN_RIGHT, ROT_MOVE_DOWN_CW
Supported by SPID rotators
2024-05-30 17:34:02 -05:00
Mike Black W9MDB befb2ffcdf Add a bit more debug to rigctlcom.c 2024-05-30 10:03:01 -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
Mike Black W9MDB c73c728b5e Allow rigctl w command to quote arg1 for use by SmartSDR
e.g. w "C0|set slice 0 tx=1"
2024-05-22 11:44:54 -05:00
Mike Black W9MDB c31497918f Add VFO Ops to rigmatrix.c and colorize things a bit 2024-04-19 16:42:10 -05:00
Mike Black W9MDB 95b0af114f Fix rigmatrix.c with new non-const rig_caps 2024-04-15 14:49:49 -05:00
Mike Black W9MDB 878243aff3 Fix FLRig 'w' and 'W' command reply display 2024-04-04 07:53:06 -05:00
Eli Schwartz 279362f403
tests: fix compilation with modern compilers
GCC 14 and clang 16, after 20+ years, finally enforce c99 language
requirements. Previously, to keep old code compiling, the use of K&R C
constructs was simply allowed despite the standard, and so users could
accidentally use those constructs without realizing it or being warned.

Now, the compiler fatally errors out when encountering the problematic
code. This can also be observed in older versions of the compiler by
using the following flags:

```
-Werror=implicit-function-declaration -Werror=implicit-int -Werror=int-conversion -Werror=incompatible-pointer-types
```

In hamlib's case, the use of a function without declaring it is illegal.
It's also a very simple fix though -- the standard header which declared
the stdlib exit() function was forgotten and never included. Simply add
the missing include, and make the source code automatically compliant.

Bug: https://bugs.gentoo.org/923108
2024-04-03 17:25:31 -04:00
Mike Black W9MDB 9a7dda25c8 w command now recognizes ; and 0xfd as valid endings for faster response instead of timeout
Stacking commands with w and W works e.g. FA;FB;
Still need to allow for hex values with simple form "xfe xfe...." instead of "\0xfe \0xfe..." -- more in-line with FLRig format
https://github.com/Hamlib/Hamlib/issues/1536
2024-04-02 16:26:27 -05:00
Mike Black W9MDB 41de3425d2 Fix hamlib_version in netrigctl_open and blank agc_levels from FLRig 2024-03-31 12:22:02 -05:00
Mike Black W9MDB 59fca440a5 Fix rigctld CPU usage when client impolitely disconnects 2024-03-30 17:21:29 -05:00
Mike Black W9MDB 00dbd6a6df Fix rigctlcom.s IF command for CW Skimmer use and others that might use IF command 2024-03-29 17:09:38 -05:00
Mike Black W9MDB 8ebffd20b6 Fix get_vfo_info compatibility with Log4OM
https://github.com/Hamlib/Hamlib/issues/1531
2024-03-25 17:50:39 -05:00
Mike Black W9MDB 84d5f367f6 Fix compile warning on testrig.c 2024-03-15 22:51:19 -05:00
Mike Black W9MDB 6d257841a6 Fix some memory leaks in rigctl_parse.c 2024-03-15 16:46:14 -05:00
Mike Black W9MDB b9e59f205e Fix compile error
https://github.com/Hamlib/Hamlib/issues/1524
2024-03-14 22:43:10 -05:00
George Baltz N3GB c7665cb7d1 All struct rig_cache referenced converted to pointers. 2024-03-09 21:23:01 -05:00
George Baltz N3GB 728db84c0c Finish tests/* 2024-03-01 12:27:26 -05:00
George Baltz N3GB 07f8023d17 Convert tests/* to pointers 2024-03-01 12:27:26 -05:00
Mike Black W9MDB 25ee5d65d5 Fix rigctld vfo_ops
https://github.com/Hamlib/Hamlib/issues/1518
2024-02-28 17:30:41 -06:00
Mike Black W9MDB 911692c715 Remove some debug from rigctlcom.c 2024-02-20 12:05:51 -06:00
Mike Black W9MDB 8cc6ce1319 Fix rigctlcom.c for Icom rigs and those that don't have get_vfo 2024-02-19 11:46:16 -06:00
Mike Black W9MDB 91ec3afcda Fix get_vfo for Icom rigs in rigctlcom.c 2024-02-19 10:42:25 -06:00
Mike Black W9MDB 1657a0e673 Fix rigctlcom.c 2024-02-19 10:34:15 -06:00
George Baltz N3GB b1d85e5aa1 Update dcdport usage in tests/*.c
Issue #1445
2024-02-05 11:28:30 -05:00
Mike Black W9MDB 9ed13add01 Update test2038.c
https://github.com/Hamlib/Hamlib/issues/1478
2024-01-24 16:13:54 -06:00
Mike Black W9MDB d8a9968fac Add test2038.sh to clean 2024-01-24 12:19:38 -06:00
Mike Black W9MDB 1b5fbc1d8b Add 2038 test during build -- make check will fail is there is a 2038 problem
https://github.com/Hamlib/Hamlib/issues/1478
2024-01-24 10:45:32 -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
Mike Black W9MDB e4e12f3ce7 Fix testcache.c for new behavior 2024-01-21 14:41:25 -06:00
Mikael Nousiainen eb7634abfb Merge upstream changes and fix conflicts 2024-01-15 09:24:17 +02:00
George Baltz N3GB f15679f575 Update example.c
Avoid using raw rigport, in two different ways.
Fix variable name.
2024-01-14 18:13:05 -05:00
Mike Black W9MDB 9b817f325d Add --skipinit to rigctl.c -- can speed up single command-line invocations by quite a bit 2024-01-13 08:26:44 -06:00
Mikael Nousiainen 051e671bfa Merge upstream changes and fix conflicts. Use snprintf() in most sprintflst.c functions to avoid buffer overflows. 2024-01-04 10:43:15 +02:00
Mike Black W9MDB bd746387f9 Fix set_ant and get_ant for rigctl -m 2 dump_caps
https://github.com/Hamlib/Hamlib/issues/1466
2023-12-29 15:59:34 -06:00
Mike Black W9MDB 576ed8266a Ignore scanfc Invalid argument for rotctld
https://github.com/Hamlib/Hamlib/issues/1391
2023-12-19 16:23:03 -06:00
Mikael Nousiainen 1cc08d2f00 Merge upstream and fix conflicts 2023-12-19 18:03:12 +02:00
Mike Black W9MDB af5ea58350 Add -# --skip_init option to rigctl 2023-12-18 15:26:46 -06: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
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
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 58fdb4423f Add callback.c test 2023-11-16 16:37:03 -06:00
Mike Black W9MDB c1780b19f4 Add wireless detection for multicast address -- possible fix for UDP error messages by using 127.0.0.1 instead of IN_ADDR_ANY
https://github.com/Hamlib/Hamlib/issues/1409
2023-11-16 09:05:29 -06:00
Mike Black W9MDB 8478367223 Improve rigctld printout when TCP session is aborted 2023-11-14 10:23:14 -06:00
Mike Black W9MDB f57b7cba71 Revert commit 1c379e793a
Removing LF from here caused "l ?" to not have CR where "L ?" does.
I don't see the problem with a CR to end the printout.
Not sure why this was removed before...bad documentation on my part.
2023-11-14 07:42:38 -06:00
Mikael Nousiainen 82f2b10275 Merge branch 'hamlib-multicast-4' into streamline-vfo-targeting-and-split-functionality 2023-11-09 09:59:48 +02:00
Mike Black W9MDB 5d7db6b516 Fix FLRig SWR value
Change float level print to %g format for better appearance
https://github.com/Hamlib/Hamlib/issues/1417
2023-11-08 17:14:10 -06:00
Mikael Nousiainen 89abbfeb3a Merge master and fix conflicts 2023-11-07 09:41:29 +02:00
Mike Black W9MDB 45dca3be59 Add dumpcap include files to test/Makefile.am 2023-11-05 17:34:49 -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 f8814732a2 Merge master and fix conflicts 2023-11-05 13:23:35 +02:00
Mike Black W9MDB 40a8cedc9d get_conf/set_conf now shows parameters for rigctl and rotctl. Using it with rigctld and rotctld sends output to console instead of remote client
https://github.com/Hamlib/Hamlib/issues/971
2023-11-02 17:06:39 -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 6b558c5d2a Revert "Add nonblocking mode to multicast for recv_from use"
This reverts commit f9bd07bbf5.
2023-10-30 10:21:58 -05:00
Mike Black W9MDB f9bd07bbf5 Add nonblocking mode to multicast for recv_from use
https://github.com/Hamlib/Hamlib/issues/695
2023-10-30 10:20:52 -05:00
Mikael Nousiainen 8ab8aafe48 Streamline VFO targeting and split functionality. Rewrite Icom backend routines to always avoid VFO swapping is the rig supports the 'targetable' commands 0x25 and 0x26. Work in progress. 2023-10-29 10:28:36 +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 914c4f4d2a Add clearerr in rotctl_parse.c 2023-10-18 16:45:42 -05:00
Mike Black W9MDB 680ce55ba2 Revert "Fix get_vfo_info VFO argument"
This reverts commit 1bf2111c7a.
2023-10-15 22:53:27 -05:00
Mike Black W9MDB 1bf2111c7a Fix get_vfo_info VFO argument 2023-10-15 22:47:23 -05: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 8d15c04727 Fix more cppcheck items 2023-10-14 12:01:41 -05:00
Mike Black W9MDB 534fe449a2 Fix more cppcheck items 2023-10-13 17:36:29 -05:00
Mike Black W9MDB d72127f29a Fix cppcheck warnings 2023-10-11 23:22:42 -05:00
Mike Black W9MDB 501c4b62c9 cppcheck fixes 2023-10-11 09:01:15 -05:00
Mike Black W9MDB 744eb5fc5d Revert to VFO argument for set_ant and get_ant
https://github.com/Hamlib/Hamlib/issues/1399
2023-10-10 10:44:39 -05:00
Mike Black W9MDB e68b6f98b5 Add RIG_CONF_INT
Fix AGC_LAST value thanks to cppcheck
2023-10-08 17:18:16 -05:00
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 d5f7660781 Fix some more cppcheck items
https://github.com/Hamlib/Hamlib/issues/1351
2023-10-06 15:14:10 -05:00
Mike Black W9MDB adc339039d Fix compile warning in testmW2power.c 2023-10-05 08:46:14 -05:00
Mike Black W9MDB 3b5f7a6dcf Add and fix some cppcheck suppress items
https://github.com/Hamlib/Hamlib/issues/1351
2023-10-03 17:11:09 -05:00
Mike Black W9MDB c93440706f Fix rigctlsync.c compilation 2023-10-02 23:27:57 -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 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 1fbb03fa92 Remove multicast.c from build
https://github.com/Hamlib/Hamlib/issues/695
2023-09-20 12:17:10 -05:00
Mike Black W9MDB c07e40e18b Fix memory channgle in FTDX101 and FTDX101MP
Add tag  data to memsave.c
Fix  RVF error for Elecraft K3
2023-09-08 17:05:34 -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 24e407c82c Fix github build 2023-08-20 16:34:35 -05:00
Mike Black W9MDB 7011b48554 Add rigfreqwalk 2023-08-20 16:16:08 -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 d28ce6b798 Bump up some 1024 buffers to 2048 to avoid overflow error 2023-07-21 11:46:58 -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 1688f25ed5 Add hamlib_version2 do dump_caps and dump_state 2023-07-20 10:17:55 -05:00
Mike Black W9MDB 4c8994d905 Add hamlib_version to dump_state 2023-07-20 10:01:30 -05:00
Mike Black W9MDB df9d9dfbd1 Change testrig.c back to original port 2023-07-19 22:11:26 -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 778889e06a Fix rigctlcom.c and rigctlsync. version 2023-07-11 11:19:07 -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 3bda269494 Add elapsd to rig_test_cw 2023-07-04 22:20:34 -05:00
Mike Black W9MDB 90585cbb6e Add testmW2power.c 2023-07-04 17:36:42 -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 8e94bc63d0 Fix millisecond abbreviations and capitalization errors 2023-06-11 08:49:57 -05:00
Mike Black W9MDB ebedbbbfb5 Clean up debug a bit 2023-06-09 22:51:54 -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 fd86001ead Revert "Remove multicast from rig_state structure as it breaks backwards compability on DLL with WSJT-X"
This didn't fix the DLL compatibility problem
This reverts commit 77d9d11f92.
2023-05-31 07:27:34 -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
Mike Black W9MDB 77d9d11f92 Remove multicast from rig_state structure as it breaks backwards compability on DLL with WSJT-X
This is due to the callbacks structure being realigned as the state structure expanded
https://github.com/Hamlib/Hamlib/issues/1299
2023-05-26 17:11:43 -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 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