Wykres commitów

161 Commity (a83eb3bf42bcbfacb7f23f1ef551af5fcdc3e387)

Autor SHA1 Wiadomość Data
Mike Black W9MDB a83eb3bf42 astyle files for 4.5 release 2022-07-27 17:16:17 -05: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 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 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 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 b1a4bb06ce Astyle files 2022-05-21 13:23:51 -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 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 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 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