Mike Black W9MDB
25ac6d77d6
Fix dumpcaps filter printout to only show valid filters
...
https://github.com/Hamlib/Hamlib/issues/1151
2022-11-16 16:48:37 -06:00
Mike Black W9MDB
6c5e0e6974
Update astyle formatting
2022-11-16 15:30:36 -06:00
Mike Black W9MDB
2b487fe718
Move ser_set_rts/dtr to beggining of serial_setup
...
https://github.com/Hamlib/Hamlib/issues/1131
2022-11-16 15:29:36 -06:00
Mike Black W9MDB
31e40d2751
ser_open now sets rts and dtr low on startup
...
https://github.com/Hamlib/Hamlib/issues/1131
2022-11-16 13:26:48 -06:00
Mike Black W9MDB
1e68b06b53
Add MDS 4710 rig
2022-11-14 23:57:22 -06:00
Mike Black W9MDB
1aebee2da9
Fix clang warning on callback functions
...
https://github.com/Hamlib/Hamlib/issues/1149
2022-11-14 16:37:20 -06:00
Mike Black W9MDB
eeac97c725
Fix FT-991 level_gran
...
https://github.com/Hamlib/Hamlib/issues/1144
2022-11-10 16:00:00 -06:00
Mike Black W9MDB
fde9ad706c
Fix IC-7300 rig power on hopefully
...
https://github.com/Hamlib/Hamlib/issues/1142
2022-11-08 10:47:57 -06:00
Mike Black W9MDB
c218996e2f
Add RIG_FUNC_OVF_STATUS for IC-7300, IC-9700, IC-705, IC-R8600
2022-11-04 23:31:51 -05:00
Mike Black W9MDB
d311153f63
Add AGC_TIME to IC-7300, IC-9700, and IC-705
...
https://github.com/Hamlib/Hamlib/issues/1136
2022-11-04 10:49:14 -05:00
Mike Black W9MDB
790bf7704c
Remove debug from misc.c
2022-11-01 12:27:33 -05:00
Mike Black W9MDB
0d73bb22a0
Fix LEVEL_USB_AF
...
https://github.com/Hamlib/Hamlib/issues/1135
2022-11-01 12:25:42 -05:00
Mike Black W9MDB
2a30396d70
Add RIG_LEVEL_USB_AF for IC-705, IC-7300, IC-9700, IC-785x, and IC-R8600
...
In combination with RIG_LEVEL_RF we should be able to create an AGC control
for WSJTX and JTDX for example to keep audio levels within a good A/D range automagically
https://github.com/Hamlib/Hamlib/issues/1135
2022-11-01 09:14:19 -05:00
Mike Black W9MDB
5a6b0b4719
Reduce debug verbosity
2022-10-28 16:30:39 -05:00
Mike Black W9MDB
b63460f05f
Future code information in iofunc.c
2022-10-25 23:23:13 -05:00
Mike Black W9MDB
e616f28281
set_mode will no longer set mode unless necessary
...
this will preven display flashing on some rigs now that WSJTX sets VFOB mode
2022-10-15 17:06:53 -05:00
Mike Black W9MDB
e6d0403cd2
Add future change notes to iofunc.c as part of serial I/O speedup to be done
2022-10-12 22:40:49 -05:00
Mike Black W9MDB
a033b66f9c
Fix an uninitialized value warning from valgrind
2022-09-21 09:31:59 -05:00
Mike Black W9MDB
67b933ddb5
Update astyle for 4.5 release
2022-09-20 08:46:28 -05:00
Mike Black W9MDB
66a823bb6b
Show use_cached_freq in rig.c
...
https://github.com/Hamlib/Hamlib/issues/1108
2022-09-05 15:53:56 -05:00
Mike Black W9MDB
7da1a1f6a1
Allow cached freq and mode to be used when rig is in transceive mode
...
https://github.com/Hamlib/Hamlib/issues/1108
2022-09-05 15:29:53 -05:00
Mike Black W9MDB
f5f97b35db
Update debug in rig.c
...
https://github.com/Hamlib/Hamlib/issues/1108
2022-09-05 09:56:07 -05:00
Mike Black W9MDB
6c746c310b
Improve debug distinction in iofunc.c
2022-09-04 11:38:41 -05:00
Mike Black W9MDB
86245cffa6
Remove some debug from iofunc.c
2022-09-04 10:48:53 -05:00
Mike Black W9MDB
0cd6f1f761
Fix cache clear on rigs without get_vfo to only clear cache when vfo is changing
2022-09-03 16:56:48 -05:00
Mike Black W9MDB
d3824aa7ab
Reset all cache when changing VFOs on a rig without get_vfo
...
https://github.com/Hamlib/Hamlib/issues/1108
2022-09-02 08:05:52 -05:00
Mike Black W9MDB
927b2d858a
Update debug in cache.c
...
https://github.com/Hamlib/Hamlib/issues/1108
2022-09-02 08:03:35 -05:00
Mike Black W9MDB
e2616b991a
Add RIG_VFO_ALL for rig_strvfo()
2022-09-02 07:59:07 -05:00
Mike Black W9MDB
5e9b853d07
Reduce debug in rig_set_vfo
2022-08-29 12:49:55 -05:00
Mike Black W9MDB
1aed27c71a
Remove #defines for rig_set_split and return to standard call
2022-08-27 07:36:14 -05:00
Mike Black W9MDB
825e3eefa8
Fix call to rig_get_vfo in rig.c -- compiler did not catch flipping tx_vfo and split pointers
...
https://github.com/Hamlib/Hamlib/issues/1100
2022-08-26 17:57:45 -05:00
Mike Black W9MDB
6f967a68d5
Make pthread.h a default include and remove config.h from being included in rig.h
...
https://github.com/Hamlib/Hamlib/milestone/14
2022-08-23 17:20:03 -05:00
Georges Auberger
ce5c90a6c7
Add product id for CM119B chip. Used in KURI adapter designed by W7NX.
2022-08-20 15:26:17 -10:00
Mike Black W9MDB
810da5f54c
Fix EK89X set_freq and upgrade to BETA status
...
Add ISBUSB and ISBLSB modes
2022-08-13 08:52:42 -05:00
Mike Black W9MDB
0ff94e1a7e
Reduce verbosity in iofunc.c
2022-07-31 12:12:30 -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
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
9715babfaf
Balance RETURNFUNC in rig.c
2022-07-26 23:13:21 -05:00
Mike Black W9MDB
21e6e9bf2a
Fix X command turning of split mode
...
https://github.com/Hamlib/Hamlib/issues/1083
2022-07-26 10:00:36 -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
Mike Black W9MDB
5f7b56801b
Prevent Flex F6K from asking for VFOB at startup
2022-07-23 11:32:11 -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
b7cbd39d1d
Make HAMLIB_SETTINGS_FILE global
2022-07-23 10:39:14 -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
bceac4b401
Remove debug statements
...
https://github.com/Hamlib/Hamlib/issues/1087
2022-07-18 08:01:51 -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
cc7c5961a0
Fix rig_cache to fix up RIG_VFO_OTHER when requested.
...
https://github.com/Hamlib/Hamlib/issues/1086
2022-07-16 10:53:03 -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
4d41dd140f
Add some #ifdefs for future Apple support if needed
...
https://github.com/Hamlib/Hamlib/issues/985
2022-07-15 17:43:23 -05:00
Mike Black W9MDB
8be68aacff
Default rig->state.powerstat to RIG_POWER_ON in rig_init
...
https://github.com/Hamlib/Hamlib/issues/1085
2022-07-15 16:41:18 -05:00
Mike Black W9MDB
74aba61978
Default rig_get_powerstat to RIG_POWER_ON when function is not available
...
https://github.com/Hamlib/Hamlib/issues/1085# Please enter the commit message for your changes. Lines starting
2022-07-15 16:09:49 -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
30884ae47e
Add amp_set_level and amp_set_ext_level
2022-07-14 08:14:41 -05:00
Mike Black W9MDB
363219e60a
Add Gemini DX-1200 HF-1K amplifier
2022-07-10 17:05:44 -05:00
Mike Black W9MDB
a331b59f5f
Fix failure of 2nd rig_init call
...
Issue #735 is still fixed
https://github.com/Hamlib/Hamlib/issues/735
https://github.com/Hamlib/Hamlib/issues/1081
2022-07-09 23:46:39 -05:00
Mike Black W9MDB
9f3314085a
Reduce hamlib_settings to VERBOSE instead of ERR
2022-07-08 11:43:54 -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
0e79b25655
Fix .hamlib_settings path when home==null
...
https://github.com/Hamlib/Hamlib/issues/985
2022-07-07 07:42:21 -05:00
Mike Black W9MDB
fc6e432143
Fix kenwood split status
...
https://github.com/Hamlib/Hamlib/issues/1072
2022-07-05 17:03:21 -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
5097d024eb
Revert "Fix tx_vfo in rig_set_split_vfo"
...
This reverts commit e34c70cfb2
.
2022-07-03 17:24:09 -05:00
Mike Black W9MDB
e34c70cfb2
Fix tx_vfo in rig_set_split_vfo
...
https://github.com/Hamlib/Hamlib/issues/1072
2022-07-03 17:00:28 -05:00
Mike Black W9MDB
b5f9f06cb0
Get rid of compile warning in settings.c for vformat
2022-06-27 12:27:13 -05:00
Mike Black W9MDB
d1640bd896
Add MEM VFO to rig_set_cache_mode
...
eccdfa564f (commitcomment-76919339)
2022-06-24 12:25:05 -05:00
Mike Black W9MDB
eccdfa564f
Improve debug output when rig is in memory mode
2022-06-23 17:04:44 -05:00
Mike Black W9MDB
021dbcd26e
Add config path to settings including XDG_CONFIG_HOME usage
...
https://github.com/Hamlib/Hamlib/issues/985
2022-06-21 07:55:08 -05:00
Mike Black W9MDB
534299d9fb
Reduce debug in misc.c
2022-06-09 08:29:02 -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
24c18938c2
Only call rig_get_vfo in icom_set_vfo if get_vfo is enabled
2022-06-07 22:50:59 -05:00
Mike Black W9MDB
479c43afa1
Update cache for yaesu rigs when bypassing rig_* functions
...
Update cache for FT991
Add polling for freq and mode in rig_open to prime those values
https://github.com/Hamlib/Hamlib/issues/1056
https://github.com/Hamlib/Hamlib/issues/1050
2022-06-07 11:50:25 -05:00
Mike Black W9MDB
ce99f4c75d
Allow rig_set_split_mode to skip setting if mode already set
...
https://github.com/Hamlib/Hamlib/issues/1056
2022-06-07 08:33:18 -05:00
Mike Black W9MDB
3b8f52d03d
Forgot to export lock_mode
2022-06-06 22:58:55 -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
fda25c3bc3
Fix one strerror misplacement in network.c
...
https://github.com/Hamlib/Hamlib/issues/652
2022-06-06 09:22:17 -05:00
Mike Black W9MDB
5d8f2e80f3
Update deprecation status of debugmsgsave2/3
2022-06-06 08:50:29 -05:00
Mike Black W9MDB
43765cd111
Reduce debug a bit
2022-06-06 08:16:45 -05:00
Mike Black W9MDB
e84502b443
Add rig_error2 for single-line debug message output
2022-06-04 08:53:44 -05:00
Mike Black W9MDB
fb86c8cf55
Have rig_open return intelligent error message when USB device is requested
2022-06-04 08:13:19 -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
860e280f85
In rig_set_split_mode force vfo to vfo_a when tx_vfo==vfo_b
...
https://github.com/Hamlib/Hamlib/issues/1046
2022-06-01 16:47:39 -05:00
Mike Black W9MDB
d40d55f50c
Add rig_send_raw function. term char must be provided. e.g. 0xfd for Icom or ';' for many others
...
Function will not return values on rigs that have binary protocols but inconsistent end-of-reponse terminators
https://github.com/Hamlib/Hamlib/issues/968
2022-06-01 11:42:54 -05:00
Mike Black W9MDB
f19d354ede
Astyle files
2022-05-29 12:06:44 -05:00
Mike Black W9MDB
b50fe3b7b2
Improved debug msg in sprintflst.c
2022-05-28 15:21:10 -05:00
Mike Black W9MDB
d42e75bac6
Avoid deadlock in add2debugmsgsave
2022-05-26 08:25:39 -05:00
Mike Black W9MDB
6b76701efc
Put mutex in add2debugmsgsave
2022-05-23 11:44:19 -05:00
Mike Black W9MDB
c8b2322018
Try to fix random seg fault in add2debugmsgsave
2022-05-23 10:41:16 -05:00
Mike Black W9MDB
2127633678
Let add2debugmsgsave use 20 lines of memory
2022-05-22 22:15:55 -05: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
Michael Black
d89bc3df4f
Merge pull request #1032 from wuxx/master
...
add new rotator grbltrk
2022-05-17 08:14:48 -05:00
Mike Black W9MDB
59211b6a58
Fix mode=NONE in rig_set_mode
2022-05-17 07:49:44 -05:00
Mike Black W9MDB
a0321ba25f
Add ability to set mode only with rig_set_mode by using Mode=NONE
2022-05-17 07:42:07 -05:00
wuxx
e9fb733dae
add new rotator grbltrk
...
Changes to be committed:
modified: Android.mk
modified: configure.ac
modified: include/hamlib/rotlist.h
new file: rotators/grbltrk/Android.mk
new file: rotators/grbltrk/Makefile.am
new file: rotators/grbltrk/grbltrk.c
modified: src/rot_reg.c
2022-05-17 13:23:44 +08:00
Mike Black W9MDB
0849172dc5
Add elapsed time to rig_vfo_op
2022-05-15 22:29:43 -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
cb8b7c185c
Correct compile warning in settings.c
...
https://github.com/Hamlib/Hamlib/issues/985
2022-05-13 16:53:22 -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
3096ad8b68
Add rig_settings_load_all to misc.h
2022-05-13 16:31:22 -05:00
Mike Black W9MDB
d0fa5d7776
Small change to rig_vfo_op in rig.c
2022-05-13 16:30:05 -05:00
Mike Black W9MDB
2aa8d4b675
Add some debug to rig.c
2022-05-12 11:09:46 -05:00
Mike Black W9MDB
af8b0d57e9
Change debug in set_powerstat
2022-05-09 09:13:26 -05:00
Mike Black W9MDB
c107fd4af3
Fix rig_flush in rig.c
2022-05-09 07:30:21 -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
b30db5bc59
Fix minor spelling
2022-05-04 13:08:17 -05:00
Mike Black W9MDB
e4bd3c8ede
Improved rigerror
2022-05-04 07:31:18 -05:00
Mike Black W9MDB
3a4d99dd77
Fix rig_set_split_mode detection of existing split status
2022-05-03 12:59:35 -05:00
Mike Black W9MDB
9d73fa737d
More debug in rig.c
2022-05-03 12:51:58 -05:00
Mike Black W9MDB
4ecf274353
Add some more debug to rig.c
2022-05-03 12:48:48 -05:00
Mike Black W9MDB
9d952e6d09
Add some debug to track down cache problem
2022-05-03 12:40:23 -05:00
Mike Black W9MDB
428ca4a196
Update debugmsgsave to save more lines and use less space too
2022-05-03 12:13:02 -05:00
Mike Black W9MDB
1b64214032
Reduce debug in serial.c
2022-05-03 12:12:25 -05:00
Mike Black W9MDB
56efa155dc
Fix mkstemp permission error on Windows
...
https://github.com/Hamlib/Hamlib/issues/985
2022-04-29 17:55:19 -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
3dd9277e79
Reduce debug in misc.c
2022-04-19 23:08:46 -05:00
Mike Black W9MDB
2f29f326ab
Ensure cache is update for split
...
https://github.com/Hamlib/Hamlib/issues/1012
2022-04-19 23:06:03 -05:00
Mike Black W9MDB
e409efbaef
Fix TCP connection to Xiegu X6100 to not be overridden by UDP implementation
...
https://github.com/Hamlib/Hamlib/issues/1009
2022-04-16 08:18:16 -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
3ac385ed05
Add some debug for rig_caps
2022-04-15 13:18:38 -05:00
Mike Black W9MDB
a5fb30d5b6
Improve windows iofunc a bit
2022-03-29 16:16:07 -05:00
Mike Black W9MDB
827bc13193
Add RIGMICDATA to ptt_type in dumpcaps
2022-03-06 08:39:54 -06:00
Mike Black W9MDB
606609f62e
Improved set_mode error reporting
2022-03-02 07:47:17 -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
Michael Black
b3ff4b0167
Merge pull request #974 from OK1CTR/gomspace
...
Gomspace GS100 transceiver frequency control
2022-02-25 14:37:44 -06:00
Mike Black W9MDB
1444448aeb
Allow rig_get_vfo_list to work if rig is not open
2022-02-25 07:41:10 -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
OK1CTR
83e5b14cf6
Manually applied diff from older HamLib version.
2022-02-23 22:36:57 +01:00
challinan
d6f05e1974
Correct compiler warning - s.b. bitwise or
2022-02-19 21:39:17 -05:00
Michael Black
c0630312a3
Merge pull request #965 from challinan/master
...
Removed redundant RETURNFUNC() call
2022-02-16 12:03:16 -06:00
challinan
779c2d344e
Removed redundant RETURNFUNC() call
2022-02-16 12:55:44 -05:00
Michael Black
44c4e45eec
Merge pull request #964 from challinan/master
...
Add support for extlevels in rig_token_foreach()
2022-02-15 16:44:01 -06:00
challinan
4b60373d66
Add support for extlevels in rig_token_foreach()
2022-02-15 17:30:41 -05:00
Mike Black W9MDB
799b588a7c
Add some RETURNFUNC2 to rig.c for errors
2022-02-14 17:44:40 -06:00
Mike Black W9MDB
86af300d4e
Balance RETURNFUNC2 in snapshot_data.c
2022-02-13 16:17:41 -06:00
Mike Black W9MDB
98887b32da
Balance RETURNFUNC2 in network.c
2022-02-13 16:16:02 -06:00
Mike Black W9MDB
7a5bcf0f4a
Balance RETURNFUNC2 in network.c
2022-02-13 16:15:14 -06:00
Mike Black W9MDB
eac7d76a07
Change ENTERFUNC to ENTERFUNC2 in cache.c
2022-02-13 16:13:50 -06:00
Mike Black W9MDB
d44ca477ae
Make the RETURNFUNC message more distinctive for debugging purposes
2022-02-13 15:23:14 -06:00
Mike Black W9MDB
a770d5c0b3
Allow .\com3\\ as a valid COM port address
2022-02-12 17:06:24 -06:00
Mike Black W9MDB
9e8c68ccdf
Add some debug to amplifier.c
2022-02-10 15:24:41 -06:00
Mike Black W9MDB
abca36a6f8
Add some more debug to amplifier.c
2022-02-10 14:39:48 -06:00
Mike Black W9MDB
5c1b328b22
Add some more memcpy's to amplifier.c rotator.c for deprecated structure
2022-02-10 11:31:01 -06:00
Mike Black W9MDB
2f38a32b0a
Move memcpy of deprecated structure in rotator.c and add memcpy to amplifier.c
...
https://github.com/Hamlib/Hamlib/issues/960
2022-02-10 09:54:54 -06:00
Mike Black W9MDB
a0fc3eaffa
Add a check to a bogus warning in rig.c to make it correct
2022-02-07 07:17:51 -06:00
Mike Black W9MDB
7876f17551
Add A_B_ONLY when VFO_TX is requested in vfo_fixup
...
https://github.com/Hamlib/Hamlib/issues/957
2022-02-06 13:05:40 -06:00
Mike Black W9MDB
776c68e3b1
Allow backwards compatibility for rigctl and rigctld by copying deprecated values to new port_t structures
2022-02-05 23:55:46 -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
81d61c09cc
Remove temp debug from rig.c
...
https://github.com/Hamlib/Hamlib/issues/947
2022-02-03 23:10:04 -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
bbd20c45dd
Fix valgrind-discovered unitialized curr_vfo in rig.c
2022-02-03 10:41:54 -06:00
Mike Black W9MDB
5a1e73396c
Remove FUNC calls from rig_cleanup as rig is closed
2022-02-03 08:38:17 -06:00
Mike Black W9MDB
9852288992
Baland RETURNFUNC statements in rig.c
2022-02-02 23:48:42 -06:00
Mike Black W9MDB
c4e01ddadb
Change debug level from BUG to VERBOSE for debugging.
...
Causes abort in JTDX when BUG is used
https://github.com/Hamlib/Hamlib/issues/947
2022-02-02 08:45:46 -06:00
Mike Black W9MDB
9ede1174a3
Add temporary debug for rig->state.pttport.type.ptt diagnosis
...
https://github.com/Hamlib/Hamlib/issues/947
2022-02-02 07:45:00 -06:00
Mike Black W9MDB
324e663d81
Also update rig->state.pttport.type.ptt -- used by JTDX and WSJXT right now so have to copy it
...
https://github.com/Hamlib/Hamlib/issues/947
2022-02-02 07:06:59 -06:00
Mike Black W9MDB
4c6f9bf9f2
Another copy of deprecated info
2022-02-01 14:12:16 -06:00
Mike Black W9MDB
4ae7d6d158
Change behavior in misc.c for RIG_VFO_TX
...
https://github.com/Hamlib/Hamlib/issues/949
2022-02-01 14:10:29 -06:00
Mike Black W9MDB
9dd5f70b01
Add some more copy for hamlib_deprected structures
...
https://github.com/Hamlib/Hamlib/issues/947
2022-02-01 11:29:26 -06:00
Mike Black W9MDB
011f9789e2
Add another copy to deprecated hamlib_port to fix PTT method in JTDX/WSJTX
...
https://github.com/Hamlib/Hamlib/issues/947
2022-02-01 07:57:59 -06:00
Mike Black W9MDB
f6941437ba
Add deprecated port references to amp and rot conf
2022-01-31 22:12:29 -06:00
Mike Black W9MDB
64af7ca65a
Fix depreated references in conf.c
...
https://github.com/Hamlib/Hamlib/issues/947
2022-01-31 17:01:05 -06:00
Mike Black W9MDB
931037450e
Add deprectead hamlib_port references in conf.c
...
https://github.com/Hamlib/Hamlib/issues/947
2022-01-31 15:18:34 -06:00
Mike Black W9MDB
4ef62a8436
Export spaces() functions
...
https://github.com/Hamlib/Hamlib/issues/946
2022-01-31 09:28:52 -06:00
Mike Black W9MDB
024e7b7555
Recommit misc.c -- somehow did not get committed
...
https://github.com/Hamlib/Hamlib/issues/946
2022-01-31 08:50:47 -06:00
Mike Black W9MDB
a33f1b7920
Add ENTERFUNC2 and RETURNFUN2 for functions that don't have rig structure
2022-01-31 08:34:06 -06:00
Mike Black W9MDB
918ca72202
Fix some more mingw compilation errors on network.c
2022-01-31 07:49:37 -06:00
Mike Black W9MDB
9102358fee
Fix more mingw compilation errors on network.c
2022-01-31 07:46:44 -06:00
Mike Black W9MDB
46cd85fb60
Fix mingw compilation errors on network.c
2022-01-31 07:45:56 -06:00
Mike Black W9MDB
2e218c56b6
Fix some more mingw errors on iofunc.c
2022-01-31 07:42:04 -06:00
Mike Black W9MDB
6e6d22ae36
Fix iofunc.c compilation error on mingw
2022-01-31 07:40:53 -06:00
Mike Black W9MDB
171f581243
Fix rig_set_ptt to copy new hamlib_port_t structure to deprecated
2022-01-31 06:58:49 -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
63b31eac4e
Add tx_freq to debug statement
2022-01-30 10:51:49 -06:00
Mike Black W9MDB
3c60636b80
In rig_set_split rx_vfo set to vfo value passed in
2022-01-30 07:28:52 -06:00
Mike Black W9MDB
991e314820
Add RIG_LEVEL_BAND_SELECT for Yaesur rigs
...
https://github.com/Hamlib/Hamlib/issues/919
2022-01-29 16:25:18 -06:00
Mike Black W9MDB
afd595d2da
Allow asyncio rigs to use cached-only values for rig_get_freq and rig_get_mode
...
https://github.com/Hamlib/Hamlib/issues/894
2022-01-29 08:39:27 -06:00
Mike Black W9MDB
86c62d5dbb
Remove ASYNC_BUG #ifdef blocks as it is all working now
2022-01-28 09:55:48 -06:00
Mike Black W9MDB
fab7f4d54c
Revert "Revert "Deprecate hamlib_port_t to hamlib_port_t_deprecated""
...
Fixing hamlib_port_t deprecation
This reverts commit f696123a3b
.
https://github.com/Hamlib/Hamlib/issues/894
2022-01-27 06:37:55 -06:00
Mike Black W9MDB
b5bcae4af3
Fix compilation after revert
2022-01-26 18:04:29 -06:00
Mike Black W9MDB
f696123a3b
Revert "Deprecate hamlib_port_t to hamlib_port_t_deprecated"
...
This reverts commit 401e718d60
.
2022-01-26 17:56:58 -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
81bb70bb84
Deprecate hamlib_port_t to hamlib_port_t_deprecated
...
New hamlib_port_t at end of structure -- eventually need to change this to a pointer'
Enable ASYNC_BUG now works with new hamlib_port_t
Backwards compatible with already-compiled clients and newly-compiled clients
https://github.com/Hamlib/Hamlib/issues/894
2022-01-26 12:39:13 -06:00
Mike Black W9MDB
9407ef3860
Fix VFO for cache
...
https://github.com/Hamlib/Hamlib/issues/920
2022-01-25 23:20:48 -06:00
Mike Black W9MDB
f3a38b73fc
Add VFO to allowable VFO for cache and vfo_fixup
...
https://github.com/Hamlib/Hamlib/issues/920
2022-01-25 23:14:39 -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
cb36210ddb
Revert "Fix rig.c memcpy to deprecated hamlib_port_t"
...
This reverts commit 27adcc2e75
.
2022-01-25 15:02:51 -06:00
Mike Black W9MDB
27adcc2e75
Fix rig.c memcpy to deprecated hamlib_port_t
2022-01-25 14:52:07 -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
4dfaa03838
Enable ASYNC and rename async to asynio to avoid python name collision
...
https://github.com/Hamlib/Hamlib/issues/894
2022-01-24 10:37:07 -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
26e5692119
Remove comments added during debugging
2022-01-23 19:35:15 +02:00
Mike Black W9MDB
1beebfc835
Make set_transaction functions use intra process mutex -- Phase 1
...
Phase 2 will be inter-process named mutexes
https://github.com/Hamlib/Hamlib/issues/942
2022-01-23 09:01:06 -06:00
Mike Black W9MDB
3bf3ed8aa6
Remove static mutex in misc.c
2022-01-23 08:28:16 -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
Mike Black W9MDB
1eb474f2e6
Allow read_string_generic to timeout even when some chars have been received
2022-01-20 17:04:20 -06:00
Mike Black W9MDB
970d253866
In rig_set_vfo query vfo first to see if it needs to be changed.
...
Doing VS0 on an FTDX-3000 was causing VFOA to mute
https://github.com/Hamlib/Hamlib/issues/903
2022-01-19 15:40:08 -06:00
Mike Black W9MDB
b6c5ecd584
Move write_block debug statement before post_write_delay so the debug timing makes more sense
2022-01-19 12:54:31 -06:00
Mike Black W9MDB
09c9b01552
Change snprintf to SNPRINTF in src
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-19 09:11:04 -06:00
Mike Black W9MDB
82dd8da9cd
Change sprintf to SNPRINTF in debug.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 15:09:54 -06:00
Mike Black W9MDB
e2bb11aa4c
Change sprintf to SNPRINTF in misc.c, network.c, and rig.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 15:07:49 -06:00
Mike Black W9MDB
f801244fb6
Change sprintf to SNPRINTF in misc.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 15:03:11 -06:00
Mike Black W9MDB
0e5962a816
Change sprintf to SNPRINTF in conf.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 14:48:47 -06:00
Mike Black W9MDB
aa3daf4eda
Change sprintf to SNPRINTF in serial.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 14:46:29 -06:00
Mike Black W9MDB
29ff10f455
Change sprintf to SNPRINTF in network.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 14:41:09 -06:00
Mike Black W9MDB
165b5b2921
Change sprint to SNPRINTF in rig.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 14:39:34 -06:00
Mike Black W9MDB
e69ad3786d
Fix rot_conf.c get_conf calls
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 12:46:29 -06:00
Mike Black W9MDB
dfc3725de3
Improve buffer overflow detection in sprintflst.c
2022-01-10 17:14:05 -06:00
Mike Black W9MDB
4fd1acedfc
Merge branch 'master' of https://github.com/Hamlib/Hamlib
2022-01-10 16:50:29 -06:00
Mike Black W9MDB
58b9e16099
Add debug for serial_handshake
2022-01-10 16:50:12 -06:00
Mike Black W9MDB
21ac4aaf05
Add method debug to write_block to show port_write logic used
2022-01-10 11:32:29 -06:00
Mike Black W9MDB
fd935597a9
Finish implementing rig_get_conf2
...
https://github.com/Hamlib/Hamlib/issues/924
2022-01-10 08:48:08 -06:00
Mike Black W9MDB
18ca415b41
Change sprintf to snprint in amp_conf.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-09 17:46:07 -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
13e50f1a03
Fix compile warning in iofunc.c
2022-01-08 17:09:05 -06:00
Mikael Nousiainen
e486f10c52
Fix typo in conf parameters documentation
2022-01-06 10:38:39 +02:00
Mike Black W9MDB
2f0b12fbb3
Fix WIN32 build
2022-01-05 13:13:12 -06:00
Mike Black W9MDB
0b6d423633
Revert "Fix win32 build"
...
This reverts commit 3f431314d8
.
2022-01-05 13:11:34 -06:00
Mike Black W9MDB
3f431314d8
Fix win32 build
2022-01-05 13:08:38 -06:00
Mikael Nousiainen
2857a54ea6
Allow enabling of async data mode via conf option. Ignore multicast data publishing if the publisher routine is not enabled.
2022-01-05 19:12:43 +02:00
Mikael Nousiainen
8ee0383464
Merge branch 'master' into async-io-on-windows
2022-01-03 14:40:09 +02:00
Mikael Nousiainen
a00d78c860
Implement pipes using asynchronous/overlapped I/O on Windows
2022-01-03 14:18:49 +02:00
Mike Black W9MDB
60c1be9d0d
Improve debug in rig_token_lookup to show parameter
2022-01-02 08:27:28 -06:00
Mike Black W9MDB
fb04893918
Improve debug in rig_confparam to show parameter
2022-01-02 08:27:02 -06:00
Mike Black W9MDB
18548ef298
Reduce debug in register.c -- not needed
2022-01-01 17:05:51 -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
8a78069975
Make write_block fail when device is not open
...
https://github.com/Hamlib/Hamlib/issues/912
2021-12-30 06:59:26 -06:00
Mike Black W9MDB
80188965a1
Comment out more async code
2021-12-29 22:28:32 -06:00
Mike Black W9MDB
05bed8f52e
Add vfo_fixup to rig_get_mode
2021-12-28 23:50:32 -06:00
Mike Black W9MDB
99f964ed72
Add vfo_fixup to rig_set_mode
2021-12-28 23:20:57 -06:00
Mike Black W9MDB
e223cf8ac9
Remove debug statements from iofunc.c
2021-12-28 23:02:03 -06:00
Mike Black W9MDB
cab6ae80b5
Update vfo_fixup to fix VFO_SUB too
2021-12-28 22:30:53 -06:00
Mike Black W9MDB
c8cf296711
https://github.com/Hamlib/Hamlib/issues/907
2021-12-28 18:14:35 -06:00
Mike Black W9MDB
6d16f24157
CODAN promoted to stable
...
Re-enable serial flush
2021-12-28 12:55:50 -06:00
Mike Black W9MDB
f5b229f9dc
Re-enable serial_flush
2021-12-28 11:26:02 -06:00
Mike Black W9MDB
36859c33dc
Fix rig_open
2021-12-28 07:49:45 -06:00
Mike Black W9MDB
a77f18b79a
Add error message to rig_debug output
2021-12-28 07:33:32 -06:00
Mike Black W9MDB
045ab048f1
Remove more async code to clean up compiler warning for 4.5
2021-12-27 17:09:50 -06:00
Mike Black W9MDB
1518b8033c
If -RIG_ENTARGET returns from set_freq it will be ignored
...
This will covers rigs that cannot set freq while transmitting like the FTDX3000 and FTDX5000
https://github.com/Hamlib/Hamlib/issues/906
2021-12-27 14:46:56 -06:00
Mike Black W9MDB
16406bba09
Merge branch 'master' of https://github.com/Hamlib/Hamlib
2021-12-27 11:48:22 -06:00
Mike Black W9MDB
0ccf0b480c
Add CODAN Envoy and NGS rigs
2021-12-27 11:48:05 -06:00
Mike Black W9MDB
0974680022
Fix compiler error from async code
2021-12-27 08:33:53 -06:00
Mike Black W9MDB
2fe9117639
Disable async processing and move async definitions out of hamlib_port_t
...
This broke backwards compatibility with DLL/shared libraries
2021-12-26 22:24:09 -06:00
Mike Black W9MDB
196be77da4
Revert "Add error message to debug statements with error codes -- a little more user friendly"
...
This reverts commit 016bcfcf39
.
This might have affected DLL compatiblity
2021-12-26 09:10:21 -06:00
Mike Black W9MDB
016bcfcf39
Add error message to debug statements with error codes -- a little more user friendly
2021-12-26 08:02:22 -06:00