Wykres commitów

1332 Commity (master)

Autor SHA1 Wiadomość Data
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 67b933ddb5 Update astyle for 4.5 release 2022-09-20 08:46:28 -05:00
Mike Black W9MDB b1d132dd27 Add -R option to rigctld to close the rig when no clients are connected
The FT-736 has to lock the rig for CAT control so this allows it to unlock when rigctld is idle
https://github.com/Hamlib/Hamlib/issues/1117
2022-09-16 08:33:51 -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 c34f719337 Astyle files 2022-08-20 22:56:04 -05:00
Mike Black W9MDB 57f486bcc2 Reduce verbosity in rigctld.c 2022-07-31 12:15:14 -05:00
Mike Black W9MDB 37830f7442 Add error codes and messages to rigctl and rigctld --help 2022-07-30 15:45:04 -05:00
Mike Black W9MDB 36838e2f73 Fix AGC level patch to apply only to Icom rigs and check priv non null
https://github.com/Hamlib/Hamlib/issues/1096
2022-07-30 08:32:03 -05:00
Mike Black W9MDB 2b7c2ab5ce Fix all Icom rigs AGC values for correct printout with dumpcaps
https://github.com/Hamlib/Hamlib/issues/1096
2022-07-29 23:44:17 -05:00
Mike Black W9MDB 2da9e4903a Revert accidental commit on rigctld.c 2022-07-28 14:20:00 -05:00
Mike Black W9MDB 57aa5e8399 Revert "Fix FT897 freq set/get for > 100MHz"
This reverts commit 44ad5c6363.
2022-07-28 07:10:13 -05: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
Daniele Forsi IU5HKX 8af92926bb Revert unwanted changes 2022-07-24 23:19:47 +02:00
Michael Black 74b4d7beb6
Merge pull request #1091 from dforsi/fix/unused-includes
Fix/unused includes
2022-07-24 11:44:01 -05: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 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 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 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 668db3a0e2 Update rigctlcom information 2022-07-14 16:55:24 -05:00
Mike Black W9MDB 30884ae47e Add amp_set_level and amp_set_ext_level 2022-07-14 08:14:41 -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 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 0f25083d57 Clean up rigctl.c debug output 2022-06-04 08:12:08 -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 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 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 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 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 382282ba20 Fix rigctl option -B 2022-04-25 08:18:06 -05:00
Mike Black W9MDB b55668e2fa Update usage and no arg for -B option 2022-04-25 08:09:51 -05:00
Mike Black W9MDB 6497048f28 Allow rigctlcom to map set_freq on VFOA to VFOB instead
This will allow CW Skimmer to work with some rigs (e.g. IC7300) using FM
mode on VFOA and CW mode on VFOB and split mode transmit on VFOB.
Clicking on CW Skimmer will change VFOB instead of VFOA to allow working
dxpeditions where the fox is staying on frequency
2022-04-24 14:19:20 -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 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 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 ad2e3bb0ee Move md5.h to src 2022-04-15 17:49:00 -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
Mike Black W9MDB 8fbda12ce2 Fix warning in rigctl_parse.c 2022-03-05 16:49:56 -06:00
Mike Black W9MDB 0333cdfca5 astyle files 2022-03-01 11:40:14 -06:00
Mike Black W9MDB 499198bf50 Basic rigctld password working -- still need to add secure method -- plain text right now
https://github.com/Hamlib/Hamlib/issues/813
2022-03-01 11:39:11 -06:00
Mike Black W9MDB c5a5276b15 Adding func_chk.c to test balancing of ENTERFUNC and RETURNFUNC/RETURNFUNC2 statements 2022-02-28 16:35:16 -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 9e2ac43631 Move security/security_test to tests/testsecurity
https://github.com/Hamlib/Hamlib/issues/813
2022-02-28 12:54:04 -06:00
Mike Black W9MDB 2c43ee5f0c Fix compilation warning on rigctl_parse.c
https://github.com/Hamlib/Hamlib/issues/813
2022-02-24 17:50:57 -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 a360bd0a07 Add some deprecated copies to ampctl.c 2022-02-11 16:28:03 -06:00
Mike Black W9MDB 43f8a1d680 Remove some debug from rigctl.c 2022-02-09 23:54:51 -06:00
Mike Black W9MDB 3df4571ec4 Allow rigctl w command to time out faster 2022-02-06 08:24:37 -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 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 9aade8de3f Add config.h to include/hamlib so HAVE_PTHREAD is available if needed
https://github.com/Hamlib/Hamlib/issues/947
2022-02-03 22:31:42 -06:00
Mike Black W9MDB f08c7d7e36 Change ENTERFUNC RETURNFUNC calls in rigctl_parse.c
https://github.com/Hamlib/Hamlib/issues/946
2022-01-31 09:34:32 -06:00
Mike Black W9MDB 615f102ccc Fix mingw static build
https://github.com/Hamlib/Hamlib/issues/946
2022-01-31 09:12:18 -06:00
Mike Black W9MDB 456ab24f58 Fix mingw32 compilation errors 2022-01-31 08:19:50 -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 2028d4d1fa Add some more memcpy's to sync hamlib_port_t_deprecated
https://github.com/Hamlib/Hamlib/issues/894
2022-01-26 17:44:03 -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
Michael Black 51da62f3fb
Merge pull request #943 from mikaelnousiainen/async-rigctld-icom-bugfixes
Bugfixes for async I/O, rigctld and Icom backend
2022-01-23 11:49:14 -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
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
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
Mikael Nousiainen 5b9feffa78 Fix Icom dual watch set command. Make rotator macro name buffer larger, as the macro names are longer than the space allocated. 2022-01-18 19:02:01 +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
Mike Black W9MDB c3db2b07ae Add rot_get_conf2 function to eventually replace rot_get_conf
This is to avoid potential buffer overflows
https://github.com/Hamlib/Hamlib/issues/924
2022-01-09 11:16:41 -06:00
Mike Black W9MDB bf8bce2d5a Finish memsave.c changes to snprintf
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:20:47 -06:00
Mike Black W9MDB 3548ab8d81 Change sprintf to snprint in memsave.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:18:42 -06:00
Mike Black W9MDB ed1210e974 Change sprintf to snprint in rotctl_parse.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:10:40 -06:00
Mike Black W9MDB d96d616ce5 Change sprint to snprintf in rigctl_parse.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:08:24 -06:00
Mike Black W9MDB b358437cea Change all sprintf to snprintf in rigmatrix.c and check for buffer overflow
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:05:45 -06:00
Mike Black W9MDB e63fbf0812 Change sprintf to snprintf in rigmatrix.c and check for buffer overflow
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:03:05 -06:00
Mike Black W9MDB 01b7f81119 Add a data tag to the caps structure and a test in rig_init to ensure the data tag is where it is expected
Modify testrigcaps.c to test new data tag
This should detect any changes which corrupt rig_caps from additons/subtractions/changes to the structure
2021-12-31 23:49:29 -06:00
Mike Black W9MDB 0080044fb1 Remove redundnat testrigcaps in tests/Makefile check 2021-12-30 09:09:42 -06:00
Mike Black W9MDB 954d70c143 Fix testrigcaps for WIN32 build 2021-12-30 07:04:38 -06:00
Mike Black W9MDB a54b74f3c5 Update testcookie.c 2021-12-29 14:16:16 -06:00
Mike Black W9MDB 76b3ec72fd Update testrigcaps.c 2021-12-29 12:25:03 -06:00
Mike Black W9MDB 882471bf19 Disable test#1d in testcookie -- this may get deprecated 2021-12-28 14:34:02 -06:00
Mike Black W9MDB 664ca38715 Update testrigcaps for 32-bit build 2021-12-28 14:31:31 -06:00
Mike Black W9MDB d2d622a3e8 Add testrigcaps to make check
https://github.com/Hamlib/Hamlib/issues/905
2021-12-27 17:02:42 -06:00
Mike Black W9MDB 2f15661067 Update testrigcaps.c for Linux 64-bit build 2021-12-27 09:03:34 -06:00
Mike Black W9MDB 3da4a9ea74 Revert "Revert "Add testgrid and move grid lat/lon functions to rig.h""
This reverts commit 1601375f7a.
2021-12-26 10:07:24 -06:00
Mike Black W9MDB 1601375f7a Revert "Add testgrid and move grid lat/lon functions to rig.h"
This reverts commit d510893f7e.
This may have messed up DLL compatibility
2021-12-26 09:53:58 -06:00
Mike Black W9MDB 499ffcc1f8 Add testgrid.c 2021-12-24 13:21:13 -06:00
Mike Black W9MDB d510893f7e Add testgrid and move grid lat/lon functions to rig.h
This will support future gps integrations for autogrid during mobile operations
2021-12-24 13:13:56 -06:00
Mikael Nousiainen cd9a24b72e Merge upstream changes and fix conflicts 2021-12-18 23:53:42 +02:00
Mikael Nousiainen c764336e73 Fix build warnings caused by changes to I/O function signatures 2021-12-18 23:49:45 +02:00
Mike Black W9MDB 4c0af35163 Update testcache to not use PTT for dummy device 2021-12-13 09:15:51 -06:00
Mikael Nousiainen 1d067d6a43 Merge branch 'master' into async-reader 2021-12-12 23:05:48 +02:00
Mikael Nousiainen 56c95b1529 Merge upstream changes and fix conflicts 2021-12-12 23:05:26 +02:00
Mike Black W9MDB 4fa2d68477 Add rig_model and rigctld_version to dump_caps in rigctl_parse.c 2021-12-11 22:54:54 -06:00
Mike Black W9MDB 674a9868d9 Implement ISO8601 time standard in more places.
Debug time now shows localtime + utc offset
Rigs that can set the clock now can set either local or utc time on the rig
Icom rigs can only display clock#1 right now so users may want either local or utc
So here are IC7300 examples
rigctl -m 3073 -r com3 -s 115200 set_clock local
rigctl -m 3073 -r com3 -s 115200 set_clock utc
2021-12-06 10:23:18 -06:00
Mike Black W9MDB 4d1e7e63f1 Merge branch 'master' of https://github.com/Hamlib/Hamlib 2021-12-05 09:46:42 -06:00
Mike Black W9MDB 07cac7be76 Move ELAPSED macros to rig.h for global use
Add ELAPSED to get_vfo_info in rigctl_parse.c
2021-12-05 09:46:00 -06: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
Mike Black W9MDB d38a248fda set/get_clock routines for IC7100/7300/7600/7610/7700/7800/785x/9700
https://github.com/Hamlib/Hamlib/issues/851
2021-12-01 22:52:55 -06:00
Mike Black W9MDB a1c8493c62 First cut at clock setting for IC7300/7800/785x/9700
https://github.com/Hamlib/Hamlib/issues/851
2021-12-01 11:50:33 -06: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 d820ee9dbf Add expected_len to read_string function for potential serial I/O speedup
https://github.com/Hamlib/Hamlib/issues/850
2021-11-24 13:02:39 -06:00
Mike Black W9MDB 42284ef70b Fix G command in netrigctl.c
https://github.com/Hamlib/Hamlib/issues/874
2021-11-20 16:26:47 -06:00
Mikael Nousiainen 39cec4aa27 Merge branch 'master' into async-reader 2021-11-20 22:50:55 +02:00
Mikael Nousiainen 1f538ad7ec Started work on asynchronous reader thread to enable handling of rig tranceive and waterfall data (WIP) 2021-11-20 21:33:29 +02: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 8fe190d622 Reduce error messages about RIG_VFO_OTHER which only applies to some rigs like Icom rigs with the 0x25 command
Add a flush_flag to read_string so that the new serial_flush will not produce a timeout value when flushing
https://github.com/Hamlib/Hamlib/issues/835
2021-11-01 23:43:45 -05:00
Mike Black W9MDB 57bb2b15d6 Update rig_bench.c for my local testing -- other can customize if needed 2021-11-01 23:43:17 -05:00
Mike Black W9MDB a7a97776bb Revert "Remove VFO argument from stop_morse, wait_morse, send_voice_mem, and get_dcd"
This reverts commit c3d1e1559a.
2021-10-23 10:13:30 -05:00
Mike Black W9MDB 636acf2155 Add model name to dumpcaps output 2021-10-22 17:30:36 -05:00
Mike Black W9MDB c3d1e1559a Remove VFO argument from stop_morse, wait_morse, send_voice_mem, and get_dcd
None of these should require a vfo
2021-10-22 13:02:02 -05:00
Mike Black W9MDB a8a317f6ab Move parse_mode error message to the function itself 2021-10-16 09:45:24 -05:00
Mike Black W9MDB 4462fe423e Add USB-D and LSB-D to mode_map for Log4OM mode requests 2021-10-16 09:20:24 -05:00
AuroraRAS 7f27917dbc AndroidSensor codes improvement
append rotctl CLI tool to android.mk file
save target az/el to priv pointor, make them accessible more.
remove some c++ warnings.
bug fixes.
codes optimization.

Signed-off-by: AuroraRAS <chplee@gmail.com>
2021-10-06 13:51:19 +08:00
AuroraRAS 1c3250f6f4 add androidsensor rotator
The androidsensor rotator is not a real rotator, it uses the accelerometer sensor and magnetic field sensor of the cell phone or tablet to perform attitude determination for your antenna and the phone tied to it.
Now you can wave your antenna to find radio signals.

Signed-off-by: AuroraRAS <chplee@gmail.com>
2021-09-25 09:51:11 +08:00
Mike Black W9MDB e51e645d2a Fix rigtestlibusb.c to include config.h 2021-09-22 22:38:04 -05:00
Mike Black W9MDB 875104c395 Update comments in tests/Makefile.am 2021-09-22 13:25:07 -05:00
Mike Black W9MDB 0806896e3b Fix compilation when OS does not have libusb installed
https://github.com/Hamlib/Hamlib/issues/803
2021-09-21 23:32:12 -05: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
Wouter van Gulik a3ab4a4312 Fix rig_cookie: use lock for reads and write.
Ensure we never print more then HAMLIB_COOKIE_SIZE otherwise we read
out-of-bounds.
Drop stray printf.
Add tests for invalid input and overly large input.
Fix test2 to release the cookie.
2021-09-20 22:10:55 +02:00
Mike Black W9MDB 63240f1671 Fix rigtestlibusb test_wrapped_device for libusb-1.0.22 or less 2021-09-18 06:08:16 -05:00
Mike Black W9MDB be3d79ce19 Change libusb warning in rigtestlibusb.c to Android-only
Doesn't appear wrapped usb devices are needed elsewhere
2021-09-17 10:09:39 -05:00
Mike Black W9MDB 12e184a0e8 Rename testlibusb to rigtestlibusb to avoid name collisions with other testlibusb.exe files 2021-09-15 23:45:16 -05:00
Mike Black W9MDB 8cc59cca3b Rigs have been at BETA status forever so promoting all to STABLE 2021-09-15 13:44:42 -05:00
Mike Black W9MDB 5db5c47ce2 Fix rigctl send_morse command when in vfo mode 2021-09-10 05:46:13 -05:00
Mike Black W9MDB f064241c64 Update testlibusb.c warning to "may be" instead of "will be" 2021-09-07 22:37:35 -05:00
Mike Black W9MDB 4679d0f2ef Make testlibusb.c compatible with libusb < 1.0.23 2021-09-07 07:03:53 -05:00
Mike Black W9MDB d1c824be5c Add simple.c example of rig_get_rig_info call 2021-09-03 10:17:51 -05:00
Mike Black W9MDB eaa39df66b Update tests/Makefile.am to not remove build scripts 2021-08-30 10:41:05 -05:00
Mike Black W9MDB 53b67d24ec Fix Startup information in rigctl and rigctld 2021-08-29 23:32:29 -05:00
Mike Black W9MDB a0672e4f7e Fix rigctl/rigctld interaction regression from issue 773
https://github.com/Hamlib/Hamlib/issues/778
https://github.com/Hamlib/Hamlib/issues/773
2021-08-29 09:59:47 -05:00
Mike Black W9MDB 36387c8af7 Put rigctl flow debug in if statement
https://github.com/Hamlib/Hamlib/issues/773
2021-08-29 00:03:27 -05:00
Mike Black W9MDB d16fa490d7 Fix display of arguments for rigctl non-readline version
https://github.com/Hamlib/Hamlib/issues/773
2021-08-28 23:44:35 -05:00
Mike Black W9MDB 9efa3c7259 Fix testcache.c 2021-08-28 10:31:00 -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 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
Mike Black W9MDB ff61c407f0 Put simulators in their own directory...this is an ongoing project to make these more robust.
Simulators are currently used to debug things and need to improved to allow model selection and all the complexities of simulating multiple models
2021-08-26 06:47:14 -05:00
Mike Black W9MDB 547bd0fb55 Fix ANT get/set for IC756Pro series
https://github.com/Hamlib/Hamlib/issues/774
2021-08-22 16:40:48 -05:00
Mike Black W9MDB 1f515458fe Allow testlibusb to compile on < libusb-1.0.23
Generate warning for libusb-1.0.23 future requirement
https://github.com/Hamlib/Hamlib/issues/763
2021-08-20 10:21:10 -05:00
Mike Black W9MDB 6d829ec43f Fix without-libusb build to not build testlibusb 2021-08-17 17:53:14 -05:00
Mike Black W9MDB 87122795e7 Change tests/Makefile.am testlibusb to use LIBUSB_CFLAGS and LIBUSB_LIBS 2021-08-17 08:12:16 -05:00
Mike Black W9MDB a7cc7da17f Hopefully portable detection of libusb.h in testlibusb.c
https://github.com/Hamlib/Hamlib/issues/763
2021-08-16 22:24:51 -05:00
Mike Black W9MDB 0818062372 Add testlibusb to Makefile.am in tests
https://github.com/Hamlib/Hamlib/issues/763
2021-08-15 23:46:27 -05:00
Mike Black W9MDB 45935336cb Adding testlibusb.c 2021-08-14 10:39:00 -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 a44c3d08cf Update simelecraft 2021-08-04 09:48:07 -05:00
Mike Black W9MDB f5f4fdeca6 Add simicom 2021-08-04 09:47:30 -05:00
Mike Black W9MDB 38a258d52a Add simkenwood 2021-08-04 09:36:30 -05:00
Mike Black W9MDB 02577d43c0 Add simelecraft 2021-08-04 08:18:31 -05:00
Mike Black W9MDB 4bfd71f91f Fix Icom split and implement reverse split
These should work now from rigctl and via the API
S VFOB 1 VFOA
S Sub 1 Main
https://github.com/Hamlib/Hamlib/issues/754
2021-08-02 23:37:31 -05:00
Mike Black W9MDB 4b777bc14e Adding beginning of simyaesu 2021-08-01 12:19:44 -05:00
Mike Black W9MDB 9a2cc9ff62 Merge branch 'master' of https://github.com/Hamlib/Hamlib 2021-07-25 22:18:25 -05:00
Lorenzo Santina e48e16beb0
Fixed rigctl ignore error command line 2021-07-26 01:40:34 +02:00
Mike Black W9MDB fa10d10e38 Add -R --rot_file2 option to rotctl and rotctld for 2nd rotator controller for RT21
https://github.com/Hamlib/Hamlib/issues/747
2021-07-23 23:28:02 -05:00
root dbdf86fa9a Fix testcache.c to avoid modifying constant 2021-07-14 23:22:46 -04:00
Mike Black W9MDB 75687ea273 Show startup arguments for rigctl and rigctld 2021-06-28 10:11:29 -05:00
Mike Black W9MDB 1f91bdb7a6 Fix compile warnings in testrig.c 2021-06-25 07:31:15 -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
Mike Black W9MDB 72da9f645c Fix ptt settings using rigctld -P
https://github.com/Hamlib/Hamlib/issues/727
2021-06-21 16:48:06 -05:00
Mike Black W9MDB a63d009035 Remove some more debug 2021-06-01 07:17:11 -05:00
Mike Black W9MDB c5378b9f70 Remove some more debug 2021-06-01 07:10:44 -05:00
Mike Black W9MDB aa161f1598 Comment out some debug from rigctl_parse.c 2021-06-01 07:03:24 -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
Mikael Nousiainen de4bbd6a24 Add comment about implementing spectrum data multicast 2021-05-27 10:14:23 +03:00
Mikael Nousiainen 12527581b0 Add SPECTRUM_ATT level (also supported by Kenwood rigs). Get VFO frequency for Icom spectrum edge ranges (if not cached). Fix preamp levels based on docs. Add supported AGC levels to recent Icom rigs. 2021-05-27 10:12:01 +03:00
Mikael Nousiainen a7de662937 Merge branch 'master' into initial-spectrum-scope-support 2021-05-26 23:41:38 +03:00
Mikael Nousiainen b4ba22d369 Implemented initial abstraction for spectrum scope data and support for Icom spectrum data output. The abstraction is based on common features of both Icom and Kenwood rigs. Added TRANSCEIVE func and enumeration of supported AGC levels. Work in progress. 2021-05-26 23:40:53 +03:00
Mike Black W9MDB 556304d455 Merge branch 'master' of https://github.com/Hamlib/Hamlib 2021-05-25 09:19:33 -05:00
Mike Black W9MDB ffeb98a0da Add cookie_use param to rigctl
https://github.com/Hamlib/Hamlib/issues/695
2021-05-25 09:18:20 -05:00
Mike Black W9MDB 39951dc288 Fix segfault when using rig_get_info stacked calls
rigctl get_vfo_info VFOA get_vfo_info VFOB
2021-05-25 08:09:01 -05:00
Mike Black W9MDB 2acbd22173 Fix multi-command rigctl capability for readline capable build
https://github.com/Hamlib/Hamlib/issues/711
2021-05-24 10:51:08 -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 3d780676b5 Finish rig_cookie
Not implemented anywhere yet but functional
2021-05-21 15:39:41 -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 47cf245826 Fix +\get_vfo_list to put RPRT on a separate line 2021-05-12 22:44:33 -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 3da8bb344a New format for freq in memcsv.c 2021-05-09 13:46:33 -05:00
Mike Black W9MDB 7f60e1fcb0 Fix dummy rig to recognize Main/Sub VFOS -- this fixes "M CW 500"
Fix rig.c set_mode to recognize curr_vfo correctly
https://github.com/Hamlib/Hamlib/issues/689
2021-05-04 14:35:34 -05:00
Mike Black W9MDB 78a697e582 Add rig_get_mode_bandwidths -- see NEWS
Return token set of bandwidths for given mode
2021-05-03 15:35:56 -05:00
Mike Black W9MDB 5bafde9ae6 Add bandwidths to get_modes 2021-05-03 11:26:41 -05:00
Mike Black W9MDB 231f9faad8 Add get_modes call to return list of rig modes 2021-05-03 09:24:02 -05:00
Mike Black W9MDB 16f5502af0 Fix get_vfo_info args
It still incorrectly gives a Freq prompt for the VFO.
2021-05-01 15:52:11 -05:00
Mike Black W9MDB 92d01adaa1 Fix MinGW compile warning in dumpcaps.c 2021-05-01 13:06:32 -05:00
Mike Black W9MDB a27595d71e Fix segfault in rigctl_parse.c when rig does not have ctcss_list or dcs_list 2021-04-30 15:42:03 -05:00
Mike Black W9MDB e3255e7a8d Comment out work in progress in rigctl_parse.c 2021-04-29 17:25:54 -05:00
Mike Black W9MDB 81e3e2e5d2 astyle files 2021-04-29 17:23:37 -05:00
Mike Black W9MDB 604516ed8f Clean up mingw compiler warning for tones.h
https://github.com/Hamlib/Hamlib/issues/659
2021-04-29 17:16:51 -05:00
Mike Black W9MDB 386b08dc4f Add ctcss_list and dcs_list to rigctld so rigcctld caps reflects the connected rig
https://github.com/Hamlib/Hamlib/issues/659
2021-04-29 10:49:29 -05:00
Mike Black W9MDB 5473249e9a Add power2mW and mW2power to netrigctl.c 2021-04-28 17:39:08 -05:00
Mike Black W9MDB af499a979e Fix freqB on rig_get_rig_info
https://github.com/Hamlib/Hamlib/milestone/7
2021-04-27 12:13:15 -05:00
Mike Black W9MDB 6b13c6c3a3 New rig_get_rig_info function
Also get_rig_info in rigctld too
Example output with rig in split mode
This is a string return to allow for easy future expansion without changing the API
New tokens may be introduced and can be skipped if not used by clients
VFOA Freq=10133000 Mode=LSB Width=0 RX=1 TX=0
VFOB Freq=10134000 Mode=LSB Width=0 RX=0 TX=1
Split=1 SatMode=0
https://github.com/Hamlib/Hamlib/issues/682
2021-04-27 11:51:43 -05:00
Mike Black W9MDB 6c13951da8 Add satmode to rig_get_vfo_info
Add prototype for rig_get_rig_info
https://github.com/Hamlib/Hamlib/issues/682
2021-04-27 10:32:12 -05:00
Mike Black W9MDB 1cfa4c205c Remove SQLSTAT deprecated level 2021-04-24 09:17:53 -05:00
Mike Black W9MDB 9231c2f7e5 Some more change to bring rigctld dump_caps into line with rigctl dump_caps
https://github.com/Hamlib/Hamlib/issues/659
2021-04-24 08:47:01 -05:00
Mike Black W9MDB e0a3f8deac Fix rigctld caps ptt_type to reflect the connected rig
https://github.com/Hamlib/Hamlib/issues/659
2021-04-23 23:40:40 -05:00
Mike Black W9MDB b6a29f1e16 Update simicom.c to recognize VFOA/B and Main/Sub selections
Need to get simicom.c to have optional capabilities for the different CI-V capabilities of Icom rigs
2021-04-23 11:01:53 -05:00
Mike Black W9MDB b0e006ce6c astyle files 2021-04-21 23:48:29 -05:00
Mike Black W9MDB e42571de9c Change default device in testrig.c to show pts usage 2021-04-21 23:47:42 -05:00
Mike Black W9MDB 994bfe4ffe Add 0x04 command to simicom.c 2021-04-21 17:48:44 -05:00
Mike Black W9MDB 7e7e2cb1ac Add hamlib version so simicom.c 2021-04-18 11:42:08 -05:00
Mike Black W9MDB cfa42f2365 Beginning of Icom simulator -- does not work on Windows yet 2021-04-17 22:48:14 -05:00
Mike Black W9MDB cec6216388 Fix vfo_fixup
https://github.com/Hamlib/Hamlib/issues/663
2021-04-14 16:56:38 -05:00
Mike Black W9MDB 4501c1c97b Remove generated files 2021-04-14 15:41:01 -05:00
Mike Black W9MDB 9d310062eb More files for git clone configure to work 2021-04-14 09:19:27 -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 758e9bc3a7 Use different method to detect rigctld port being offline 2021-04-10 11:07:10 -05:00
Mike Black W9MDB 601f0ab1f1 Allow rigctl to reopen port if it has been closed 2021-04-10 10:43:49 -05:00
Mike Black W9MDB c4e37ef277 Add timeout to dump_state so rigctld will use the rig's timeout value plus 200ms for additional network delays 2021-04-09 15:35:30 -05:00
Mike Black W9MDB 6901bb1cda Remove vfo_mode printout 2021-04-09 15:16:41 -05:00