Wykres commitów

328 Commity (2db37fe7dbca630a95c2437cd4de8500cd80b838)

Autor SHA1 Wiadomość Data
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 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 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 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 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 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 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 3df4571ec4 Allow rigctl w command to time out faster 2022-02-06 08:24:37 -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 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
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 d96d616ce5 Change sprint to snprintf in rigctl_parse.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:08:24 -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 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
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 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 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 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 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
Mike Black W9MDB 5db5c47ce2 Fix rigctl send_morse command when in vfo mode 2021-09-10 05:46:13 -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 283281c4cb astyle all files preparing for 4.3 release 2021-08-26 06:49:24 -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
Mikael Nousiainen de4bbd6a24 Add comment about implementing spectrum data multicast 2021-05-27 10:14:23 +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 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 47cf245826 Fix +\get_vfo_list to put RPRT on a separate line 2021-05-12 22:44:33 -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 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 b0e006ce6c astyle files 2021-04-21 23:48:29 -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 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
Michael Black W9MDB dd156f74e2 astyle files in preparation for 4.2 release 2021-03-26 14:26:56 -05:00
Michael Black W9MDB 0ba0b55b87 Remove debug from rigctl_parse.c 2021-03-20 23:19:01 -05:00
Michael Black W9MDB 8c11f888a3 Fix rigctld return blank mode for rig_get_vfo_info 2021-03-20 16:58:38 -05:00
Michael Black W9MDB bb43078b25 More work on SATMODE for rigctlcom.c
https://github.com/Hamlib/Hamlib/issues/620
2021-03-20 11:21:11 -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 3bc39aaec1 astyle files is preparation for 4.2 release 2021-03-15 17:51:22 -05:00
Michael Black W9MDB be3748d383 https://github.com/Hamlib/Hamlib/issues/514 2021-03-08 09:54:24 -06:00
Michael Black W9MDB 1fcb9404b9 More changes to support macro renaming 2021-03-06 14:59:57 -06:00
Michael Black W9MDB 635372ae84 Remove debug from rigctl_parse.c 2021-03-04 15:29:57 -06:00
Michael Black W9MDB 247c90d4b0 Should fix icom power on
A little more cleanup to come
https://github.com/Hamlib/Hamlib/issues/583
2021-03-04 12:18:00 -06:00
Michael Black W9MDB 82126a4f09 Phase 1 of changing sprintflst functions to use buffer length
https://github.com/Hamlib/Hamlib/issues/580
2021-03-03 08:03:18 -06:00
Michael Black W9MDB 10fbe9bd4a Change get_vfo_info to also return split
Since this is still a new call in 4.2 not considering this an API breakage
since it shouldn't be in common use yet
2021-03-01 14:56:21 -06:00
Michael Black W9MDB ee60a68bec astyle files 2021-02-28 09:46:01 -06:00
Michael Black W9MDB 636d64d114 Fix compile warning try#2 in rigctl_parse.c 2021-02-18 07:11:03 -06:00
Michael Black W9MDB bd2384e55e Fix compile warning in rigctl_parse.c 2021-02-18 07:04:21 -06:00
Michael Black W9MDB 64b0b37d49 Move comma correct to outer level to apply in both usage cases 2021-02-11 15:52:29 -06:00
Michael Black W9MDB 4f73d24666 Correct for commas in set_level values done by Java in international mode 2021-02-11 15:25:44 -06:00
Michael Black W9MDB 6ffbf168d0 Add get_vfo_list command so rigctl can see available vfos
Should allow Log4OM to query VFOB/Sub freq now
Another fix to argumenet prompting with rigctl/rigctld
Add 2nd line of return for rigerror -- we well gradually be improving error info
https://github.com/Hamlib/Hamlib/issues/530
2021-02-10 17:32:59 -06:00
Michael Black W9MDB 9251dfa909 FIx rigctl/rigctl parsing of extended commands and arg prompting
https://github.com/Hamlib/Hamlib/issues/530
2021-02-10 12:35:50 -06:00
Michael Black W9MDB 306345442c Fix 2nd argument parsing in rigctl_parse.c 2021-02-08 16:59:07 -06:00
Michael Black W9MDB b3c23f82ef Fix extra VFO: print out when rigctl --vfo is used and VFO argument is given
https://github.com/Hamlib/Hamlib/issues/535
2021-02-08 10:42:24 -06:00