Michael Black W9MDB
57c145d5d1
Remove skip_init default
...
Was causing segfault on rigctl -m 2041 -r /dev/pts/4 M CW 250 b 73
2024-12-25 22:43:20 -06:00
Michael Black W9MDB
8edf99fc18
Change skipinit so skip-init for consistency
...
And now ignores the skip-init on the non-interactive rigctl
2024-12-25 16:36:37 -06:00
Michael Black W9MDB
9ac7f92d1e
Update some documentation
2024-12-25 15:59:40 -06:00
Michael Black W9MDB
e0a805ebc3
Make skip_init automatic when rigctl has commands on the line
2024-12-24 23:19:02 -06:00
Michael Black W9MDB
72424ac144
Fix buffer overflow in rigctl.c
...
https://github.com/Hamlib/Hamlib/security/code-scanning/3212
2024-12-21 14:41:58 -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
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
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
eb7634abfb
Merge upstream changes and fix conflicts
2024-01-15 09:24:17 +02: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
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
e267c62764
astyle files
2023-12-16 11:37:58 -06: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
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
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
a6de41e206
rigctld can now see RIG_LEVEL values correctly
...
https://github.com/Hamlib/Hamlib/issues/1305
2023-06-03 16:50:30 -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
Daniele Forsi IU5HKX
3f90086991
[tests] Fix includes
2023-02-16 19:08:24 +01: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
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
c34f719337
Astyle files
2022-08-20 22:56:04 -05:00
Mike Black W9MDB
37830f7442
Add error codes and messages to rigctl and rigctld --help
2022-07-30 15:45:04 -05:00
Daniele Forsi IU5HKX
8af92926bb
Revert unwanted changes
2022-07-24 23:19:47 +02: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
0f25083d57
Clean up rigctl.c debug output
2022-06-04 08:12:08 -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
49cbc18e19
Fix missing semicolon in rig.c and rigctl_parse.c
2022-05-13 11:09:30 -05: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
43f8a1d680
Remove some debug from rigctl.c
2022-02-09 23:54:51 -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
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
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
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
Mike Black W9MDB
53b67d24ec
Fix Startup information in rigctl and rigctld
2021-08-29 23:32:29 -05:00
Mike Black W9MDB
1b52a009ef
Move Startup debug line after set_debug_level
2021-08-28 09:10:35 -05:00
Mike Black W9MDB
283281c4cb
astyle all files preparing for 4.3 release
2021-08-26 06:49:24 -05:00
Lorenzo Santina
e48e16beb0
Fixed rigctl ignore error command line
2021-07-26 01:40:34 +02:00