Wykres commitów

292 Commity (d7d450df493dd47c913bfc3c5272be4ba32eaf4b)

Autor SHA1 Wiadomość Data
Daniele Forsi IU5HKX f7fe2912ec Remove unused includes of errno.h 2022-12-09 12:32:54 +01:00
Mike Black W9MDB 2b145fe717 Add netrigctl_send_raw to allow send_raw to work with rigctld
https://github.com/Hamlib/Hamlib/issues/1157
2022-12-01 16:20:23 -06:00
Mike Black W9MDB 72e86bf18b Fix logic in dummy.c 2022-11-28 11:27:40 -06:00
Mike Black W9MDB ca4814c472 astyle files 2022-11-23 23:31:08 -06:00
Mike Black W9MDB 1ef3549e94 Fix rigctld showing the real rig agc_levels instead of all levels
Fix display of RIG_AGC_OFF
Add RIG_AGC_LONG
Fix PowerSDR AGC values
https://github.com/Hamlib/Hamlib/issues/1155
2022-11-23 23:29:18 -06:00
Mike Black W9MDB 6c5e0e6974 Update astyle formatting 2022-11-16 15:30:36 -06:00
Mike Black W9MDB 4f5bf9aadd Fix some dumpcaps warnings in many rigs 2022-11-14 16:02:28 -06:00
Mike Black W9MDB d7ab039573 Fix backwards compatibility of rotctl with rotctld
https://github.com/Hamlib/Hamlib/issues/1035
2022-11-10 22:28:28 -06:00
Mike Black W9MDB 42f65cc5fb Move rotctl south_zero to new dump protocol section for backwards compatibility
https://github.com/Hamlib/Hamlib/issues/1035
2022-11-10 21:58:32 -06:00
Mike Black W9MDB 782e54e4f2 Fix new protocol in rotctl functions to duplicate logic in rigctl new protocol
https://github.com/Hamlib/Hamlib/issues/1035
2022-11-10 21:54:00 -06:00
Mike Black W9MDB 853806b978 Fix rotctld dumpcaps to expose client rot_type instead of Other
https://github.com/Hamlib/Hamlib/issues/1035
2022-11-10 17:53:21 -06:00
Mike Black W9MDB 27f424dfe2 Add RIG_FUNC_TUNER to flrig.c 2022-11-10 12:17:17 -06:00
Mike Black W9MDB 454f640237 Fix dummy_set_split_freq 2022-11-06 15:58:30 -06:00
Mike Black W9MDB bf22bc4b02 Fix flrig get_ptt
https://github.com/Hamlib/Hamlib/issues/1138
2022-11-04 13:26:52 -05:00
PianetaRadio aedf39adc2
Update netrotctl.c
Add south_zero from dump_state in open function
2022-11-04 11:32:39 +01:00
Mike Black W9MDB 1cb999af01 Fix space in string compare in flrig.c
https://github.com/Hamlib/Hamlib/issues/1134
2022-10-30 22:25:28 -05:00
Mike Black W9MDB 098d1d8dbb Fix uninitialized value in flrig.c found by valgrind 2022-09-10 13:00:34 -05:00
Mike Black W9MDB c34f719337 Astyle files 2022-08-20 22:56:04 -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 dd3208ad34 Change malloc to calloc 2022-07-27 10:08:29 -05:00
Mike Black W9MDB 027b3ee0a5 Fix valgrind warning uninitialized value in dummy.c for priv->split 2022-07-27 10:03:20 -05:00
Mike Black W9MDB 0c89bcd89f Fix possible uninitialized access in dummy.c 2022-07-27 07:24:19 -05: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 34018600ee Remove unused includes of math.h 2022-07-23 18:39:55 +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 1c0655a9f5 Reduce a couple of debug statements from ERROR to VERBOSE 2022-07-22 12:43:22 -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
Daniele Forsi IU5HKX 08c06aea14 Fix spelling errors
Fixed with:
codespell --summary --skip=.git,extra,,lib,macros,security --ignore-words-list="ans,ba,cant,develope,fo,get's,nin,numer,parm,parms,setts,som,statics,ths,ue,vektor,objext" --write-changes --interactive=2
and manual editing.
2022-07-07 23:56:22 +02:00
Mike Black W9MDB 994d7a2ca6 Fix RTS PTT working with rigctld
https://github.com/Hamlib/Hamlib/issues/1074
Was fixed by this patch
fc6e432143
2022-07-06 08:33:14 -05:00
Mike Black W9MDB 5f26083fac Add ENTER/RETURNFUNC to netrigctl_open to identify lines when EPROTO errors occur 2022-06-12 07:46:35 -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 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
PianetaRadio a9eeb70f21
Dummy rotator max_az = 450 2022-05-31 12:38:30 +02:00
Mike Black W9MDB b1a4bb06ce Astyle files 2022-05-21 13:23:51 -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 85dfb1bed8 Make rotctld caps reflect underlying rotator -- removes const declaration from rot_caps
This needs to be expanded to cover the other functions too
2022-05-19 11:22:39 -05:00
Mike Black W9MDB 6f9d057162 astyle files getting ready for release 2022-05-13 16:50:13 -05:00
Mike Black W9MDB e76cd71454 Add RIG_PASSBAND_NOCHANGE to dummy device 2022-05-10 12:20:18 -05:00
Mike Black W9MDB 5259102cf1 Add detection of set_bwA to flrig.c 2022-05-04 17:46:40 -05:00
Mike Black W9MDB cc7d9cd78d Remove redundant code in flrig.c 2022-05-04 15:43:01 -05:00
Mike Black W9MDB 8cfa1f2f7d Fix flrig setting bandwidth on VFOB 2022-05-04 12:49:08 -05:00
Mike Black W9MDB 19c17eb5ba Add get_split to flrig_open 2022-05-03 12:02:57 -05:00
Mike Black W9MDB a006636ee3 Fix flrig_cat_string 2022-04-25 15:27:13 -05:00
Mike Black W9MDB 7cc2550ee3 Export flrig_cat_string for DLL 2022-04-25 12:47:27 -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 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 7671229529 Fix compilation warning in netrigctl.c
https://github.com/Hamlib/Hamlib/issues/1000
2022-04-02 16:21:10 -05:00
Mike Black W9MDB 20019efe6d Fix netrigctl.c 2022-03-05 16:41:53 -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 23280e812c Fix compilation warning on netrigctl.c
https://github.com/Hamlib/Hamlib/issues/813
2022-02-24 17:42:37 -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 7cc2ca30b0 Balance RETURNFUNC 2022-02-19 16:47:58 -06:00
Mike Black W9MDB 7cf8ea393a Balance RETURNFUNC 2022-02-19 16:35:48 -06:00
Mike Black W9MDB dabf1f2c61 Revert "Balance RETURNFUNC"
This reverts commit 8b40735752.
2022-02-19 16:29:59 -06:00
Mike Black W9MDB 8b40735752 Balance RETURNFUNC 2022-02-19 16:29:31 -06:00
Mike Black W9MDB 1b2e3154b7 Update hamlib_check_rig_caps 2022-02-11 14:53:16 -06:00
Mike Black W9MDB 09e5d4089c Update hamlib_check_rig_caps 2022-02-11 11:21:49 -06:00
Mike Black W9MDB 5976e6a65f Fix spelling error in flrig.c 2022-02-05 17:13:47 -06:00
Mike Black W9MDB 278693ea36 Fix flrig_get_split_vfo to return tx_vfo=RIG_VFO_A when split=4 2022-02-05 17:13: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 3498fb1cf6 Balancing RETURNFUNC2 statements 2022-02-02 23:33:28 -06:00
Mike Black W9MDB a20a91e381 astyle flrig.c 2022-02-02 23:25:17 -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 0588d3be3a Add int and string to allowable xml tokens in flrig.c 2022-01-29 22:45:42 -06:00
Mike Black W9MDB 9646895258 Disable tci rig as it is not functional at all yet
https://github.com/Hamlib/Hamlib/issues/736
2022-01-26 08:25:46 -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 f04aa34876 Add set_transaction functions to flrig.c
https://github.com/Hamlib/Hamlib/issues/942
2022-01-23 09:02:03 -06:00
Mike Black W9MDB 52ca1f5dfa Change sprintf to SNPRINTF in dummy
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 23:16:45 -06:00
Mike Black W9MDB fa67809b32 Change strcpy to SPRINTF in rot_dummy.c
Make new snprintf function to check buffer len after and print error message.
2022-01-18 12:44:41 -06:00
Mike Black W9MDB 30a06c4fc6 Fix static array reference in netrigctl.c
https://github.com/Hamlib/Hamlib/issues/932
2022-01-17 16:59:31 -06:00
Mike Black W9MDB 8829a8011d Change sprintf to snprint in dummy directory
https://github.com/Hamlib/Hamlib/issues/857
2022-01-11 12:17:34 -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
Michael Black b62d1da671
Merge pull request #897 from sq6emm/master
Allow \send_voice_mem to be used over network and tested in dummy rig
2021-12-20 17:01:39 -06:00
Dawid SQ6EMM dfa6b730d9 Allow \send_voice_mem to be used over network and tested in dummy rig 2021-12-20 16:50:13 +01: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 465d14ff30 Change dummy ptt_type to None
https://github.com/Hamlib/Hamlib/issues/888
2021-12-13 09:07:40 -06: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 b11f2e4bbf Reduce # of retries in FLRig -- don't need as many and was causing timeouts in remote rigctld control 2021-12-06 10:22:37 -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
Mike Black W9MDB e16035ef8e Chance #if 0 in tci1x.c to make cppcheck happy 2021-11-28 16:56:25 -06:00
Mike Black W9MDB fc7beda918 Another attempt to get tci1x.c to compile without warning 2021-11-28 16:50:22 -06:00
Mike Black W9MDB 1fe7a9a780 Remove dead code in tci1x.c
Note that tci1x is not functional at all yet
2021-11-28 16:39:18 -06:00
Mike Black W9MDB 361dc2c2e2 Hopefully suppress compile warning on tci1x.c 2021-11-28 15:37:46 -06:00
Mike Black W9MDB 63a51c36a1 astyle files preparing for 4.4 release 2021-11-28 12:41:10 -06:00
Mike Black W9MDB 7349a0de73 Update tci1x.c 2021-11-25 16:02:50 -06:00
Mike Black W9MDB 8a443a8667 First draft of TCI backend
https://github.com/Hamlib/Hamlib/issues/736
2021-11-25 15:47:45 -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 8928672e2c Rigs with non-targetable set_mode will now use cached values to determine if mode needs to be changed
Hamlib 5.0 plans are to start using transceive mode and AI2 mode to detect rig changes so eventually
users on these types of rigs will be able to twiddle knobs and hamlib will follow.
But for now we are avoiding the VFO flashing and relay chattering on non-targetable rigs
https://github.com/Hamlib/Hamlib/issues/872
2021-11-24 09:03:26 -06:00
Mike Black W9MDB 6f308b9407 Fix timing simulation for dummy rotator
https://github.com/Hamlib/Hamlib/issues/861
2021-11-20 16:45:13 -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
Mike Black W9MDB 4b3bbabc5d Fix rig_set_split problem on Kenwood rigs
https://github.com/Hamlib/Hamlib/issues/872
2021-11-19 16:19:18 -06:00
Mike Black W9MDB 3de368f6a2 Add rig_lock and rig_unlock to support serial I/O locking for a transaction
https://github.com/Hamlib/Hamlib/issues/695
2021-11-15 07:16:31 -06:00
Mike Black W9MDB a9c2792c23 Fix netrigctl.c power2mW buffer overflow
https://github.com/Hamlib/Hamlib/issues/855
2021-11-07 06:52:40 -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