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
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
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
0333cdfca5
astyle files
2022-03-01 11:40:14 -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
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
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
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
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
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
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
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
Mikael Nousiainen
c764336e73
Fix build warnings caused by changes to I/O function signatures
2021-12-18 23:49:45 +02:00
Mikael Nousiainen
56c95b1529
Merge upstream changes and fix conflicts
2021-12-12 23:05:26 +02:00
Daniele Forsi IU5HKX
c6fbc8e682
The -M option needs an argument like its long version "multicast-addr"
2021-12-04 10:57:41 +01:00
Mikael Nousiainen
d857f18163
Initial implementation of: reader thread for async handling of rig data, UDP multicast publisher routine and rig state poll thread routine. The reader thread can correctly handle asynchronous data, such as transceive or spectrum data. Work in progress: multi-platform code for I/O routines still missing and the poll routine is not yet in use. Tested briefly on an IC-7300 so far.
2021-11-28 20:52:29 +02:00
Mike Black W9MDB
63a51c36a1
astyle files preparing for 4.4 release
2021-11-28 12:41:10 -06:00
Mike Black W9MDB
12f7bb4d8f
Change getnameinfo to return numeric IP instead of hostname to avoid Windows long delay on reverse lookups
...
https://github.com/Hamlib/Hamlib/issues/873
2021-11-20 11:52:39 -06:00
Mike Black W9MDB
9671a26858
Add mutex back to rigctld. Migrating to mutext locks on all rig functions
...
https://github.com/Hamlib/Hamlib/issues/695
2021-09-21 23:30:45 -05:00
Mike Black W9MDB
53b67d24ec
Fix Startup information in rigctl and rigctld
2021-08-29 23:32:29 -05:00
Mike Black W9MDB
9f0d5951cb
Move Startup message after debug_set_level in rigctld.c
2021-08-28 09:53:19 -05:00
Mike Black W9MDB
283281c4cb
astyle all files preparing for 4.3 release
2021-08-26 06:49:24 -05:00
Mike Black W9MDB
5cab1acc0d
In rigctld do not try to close fsockin/fsockout when null -- happens during error on fsockin or fsockout
...
https://github.com/Hamlib/Hamlib/issues/757
2021-08-05 07:50:15 -05:00
Mike Black W9MDB
75687ea273
Show startup arguments for rigctl and rigctld
2021-06-28 10:11:29 -05:00
Mike Black W9MDB
dd2ed945fd
Change default multicast to 0.0.0.0 for now until implemented and tested
...
https://github.com/Hamlib/Hamlib/issues/695
2021-06-21 16:52:27 -05:00
Michael Black
c4e6ed39e6
Merge pull request #715 from mikaelnousiainen/fix-icom-transceive-and-spectrum-data-conflicts
...
Attempt to handle asynchronous rig output data in Icom backend
2021-05-31 08:31:42 -05:00
Mikael Nousiainen
3a67356bc1
Add some comments and improved debugging on SIGIO async data handling
2021-05-31 16:22:22 +03:00
Mike Black W9MDB
fabec4a94c
Improve rig_open error msg in rigctl.c and rigctld.c
2021-05-30 06:48:12 -05:00
Mike Black W9MDB
3e4ff69b96
Add multicast_item_e and change multicast_server API
...
https://github.com/Hamlib/Hamlib/issues/695
2021-05-23 07:40:08 -05:00
Mike Black W9MDB
cc1f277e5f
Beginning of multicast capability
...
https://github.com/Hamlib/Hamlib/issues/695
2021-05-19 13:17:46 -05:00
Mike Black W9MDB
fdf1f7f6f0
Fix newline in help in rigctld.c
2021-05-17 00:05:16 -05:00
Mike Black W9MDB
9902ec796c
Reduce rigctld verbosity when using direct commands from rigctl client
...
https://github.com/Hamlib/Hamlib/issues/690
2021-05-09 15:16:23 -05:00
Mike Black W9MDB
974d978eaa
Eliminate debug msg from rigctld.c
2021-04-12 08:33:58 -05:00
Mike Black W9MDB
778758200e
A more robust rigctld that can survive the rig disappearing and coming back again.
...
This means when a rigctld client sees RIG_EIO it can keep polling and will reconnect when the rig reappears.
2021-04-10 14:22:53 -05:00
Mike Black W9MDB
6901bb1cda
Remove vfo_mode printout
2021-04-09 15:16:41 -05:00
Michael Black W9MDB
6eee309b56
Improve rig_get_version and hamlib_version2 information to include commit information
...
https://github.com/Hamlib/Hamlib/issues/617
2021-03-19 22:56:18 -05:00
Mikael Nousiainen
90112b5769
First attempt at fixing rigctl_parse return values and unnecessary rig re-open cycles
2021-03-16 23:39:35 +02:00
Michael Black W9MDB
94e51bfa24
rigctld.c add retry of rig_open with an IO error
...
https://github.com/Hamlib/Hamlib/issues/560
2021-03-07 09:03:37 -06:00
Michael Black W9MDB
1fcb9404b9
More changes to support macro renaming
2021-03-06 14:59:57 -06:00
Michael Black W9MDB
f88c3f4a4c
Fix mingw compilation errors on new rig_debug macro
2021-03-05 12:03:40 -06:00
Michael Black W9MDB
ee60a68bec
astyle files
2021-02-28 09:46:01 -06:00
Michael Black W9MDB
529685ab69
Disable rigctld error check with rig_close/rig_open -- more investigation needed
...
https://github.com/Hamlib/Hamlib/issues/556
2021-02-20 10:24:08 -06:00
Michael Black W9MDB
185a938a76
Add twiddle_timeout and twiddle_rit --set-conf options
...
rigctld --set-conf=twiddle_timeout=5,twiddle_rit=1
This will set the twiddle timeout to 5 seconds and turn on twiddle_rit
For twiddle timeout VFOB will not be poller for 5 seconds after VFO twiddling is detected. For RIT VFOB get_freq is suppressed and returns the cached value only (set_freq on VFOB still works).
rigctld --twiddle is deprecated and will be removed in 5.0
https://github.com/Hamlib/Hamlib/issues/444
2021-02-18 11:15:02 -06:00
Michael Black W9MDB
06723c959b
Limit the error retry in rigctld.c to 4 times
...
https://github.com/Hamlib/Hamlib/issues/551
2021-02-18 06:48:06 -06:00