Wykres commitów

795 Commity (master)

Autor SHA1 Wiadomość Data
Mike Black W9MDB c3cf7a9874 Change IC-905 to ALPHA status 2023-05-31 07:18:59 -05:00
Mike Black W9MDB 5745457d7f Fix anytone thread deletion 2023-05-30 22:10:19 -05:00
Mike Black W9MDB 75699adbbb Add TARGETABLE_MODE for IC7700 since VFOB can have independent mode
https://github.com/Hamlib/Hamlib/issues/1304
2023-05-29 15:23:24 -05:00
Mikael Nousiainen 8730e6a0b1 IC-746 and IC-756ProII+III support AGC_TIME 2023-05-23 23:25:27 +03:00
Mike Black W9MDB 6eb0735c75 Update Icom rigs that cannot query power status 2023-05-20 22:22:02 -05:00
Mike Black W9MDB 8b9a8d6649 Merge branch 'master' of https://github.com/Hamlib/Hamlib 2023-05-20 22:11:37 -05:00
Mike Black W9MDB 125273f7a2 Change IC7610 so use 0x03 for get_powerstat 2023-05-20 22:10:38 -05:00
George Baltz N3GB 05f04730d7 Round 3 of level_gran updates. 2023-05-20 11:13:16 -04:00
Mike Black W9MDB 9528132f81 In icom.c show poweron with OK retval 2023-05-19 23:44:51 -05:00
Mike Black W9MDB 04ee4ec580 Fix IC7800 to use get_freq instead of 0x18 command since it cannot read power status 2023-05-18 11:40:43 -05:00
Mike Black W9MDB 673ef04b0f Add x25_always to ic7610.c ic785x.c 2023-05-17 23:56:33 -05:00
Mike Black W9MDB 0f5982272a Add icom_get_vfo for IC7610 and IC785X 2023-05-17 14:10:32 -05:00
Mike Black W9MDB 474428082d Add rig_get_vfo for IC9700 -- seems we can use x07 0Xd2 to determine main/sub vfo now 2023-05-17 14:03:08 -05:00
Mikael Nousiainen eea12aff0a Merge master 2023-05-14 12:08:15 +03:00
Mike Black W9MDB c7cfc78303 Add IC7700 to rigs that don't have 0x25 2023-05-12 14:36:40 -05:00
Mike Black W9MDB e9cc1881dc Fix x25cmdfails detection in icom.c
https://github.com/Hamlib/Hamlib/issues/1277#issuecomment-1542655090
2023-05-10 14:42:22 -05:00
Mikael Nousiainen c80d45378a More fixes to command 0x25 logic 2023-05-10 22:39:45 +03:00
Mikael Nousiainen 716637c4ab Fix x25cmdfails logic to allow failure detection only once. Subsequent failures after an initial successful use of command 0x25 will not prevent use of the command. 2023-05-10 22:35:44 +03:00
Mikael Nousiainen 4b8de5f96d Change float level granularity formatting to use %f to avoid E notation. Fix AGC_TIME level range for Icom rigs. Fix listing of AGC levels in \dump_caps. Add \stop_morse and \wait_morse in \dump_caps. Add simulation of responses in \send_cmd_rx and \send_raw for dummy rig (and if rig port type is NONE). Fix other minor issues. 2023-05-10 20:53:18 +03:00
Mike Black W9MDB 247f0f72cf Excludes IC9100 from updating x25cmdfails from satmode
The IC9100 never supports 0x25
https://github.com/Hamlib/Hamlib/issues/1284
2023-05-08 10:30:24 -05:00
Mike Black W9MDB dad55ef148 astyle files getting ready for WSJT-x-2.7.0rc1 2023-05-08 07:37:13 -05:00
Mike Black W9MDB 4a8a82ffc4 Fix icom.c 0x25 detection and add IC9100 to known rigs that doesn't have 0x25
https://github.com/Hamlib/Hamlib/issues/1284
2023-05-05 09:38:07 -05:00
Mike Black W9MDB 1ab828f8ef Reduce icom.c 0x25 warning to trace level -- the error is expected when rig does not support 0x25 2023-05-04 07:20:16 -05:00
Mike Black W9MDB d044ad998c Add retry to icom_get_ptt
https://github.com/Hamlib/Hamlib/issues/1283
2023-05-03 16:18:02 -05:00
Mike Black W9MDB e82f127965 Allow icom read_frame to return when bus collision occurs
https://github.com/Hamlib/Hamlib/issues/1280
2023-04-26 15:38:08 -05:00
Mike Black W9MDB 07ba41d551 Add a retry in icom frame.c in case of collision
https://github.com/Hamlib/Hamlib/issues/1280
2023-04-25 11:07:25 -05:00
Mike Black W9MDB 1c1b9e7511 Enable async_io for IC-746 and IC-746PRO
https://github.com/Hamlib/Hamlib/issues/1280
2023-04-25 08:13:03 -05:00
Mike Black W9MDB 6fadbfb112 Change Icom 0x25 logic to only allow one detection
https://github.com/Hamlib/Hamlib/issues/1277
2023-04-25 08:00:43 -05:00
Daniele Forsi IU5HKX 6f0efd59e6 Fix check for RIG_BUSBUSY
Fixes a cppcheck warning:
rigs/icom/frame.c:510:19: style: Redundant condition: The condition 'i != 14' is redundant since 'i < 0' is sufficient. [redundantCondition]
        if (i < 0 && i != RIG_BUSBUSY) /* die on errors */
2023-04-11 23:28:46 +02:00
Daniele Forsi IU5HKX 2db37fe7db Fix typos 2023-03-26 11:01:51 +02:00
Mike Black W9MDB ac197389a2 Fix IC-7160 get_powerstat to disable it...cannot read power status from 7610 2023-03-25 11:20:52 -05:00
Mike Black W9MDB cf956daf17 Clean up id5100.c 2023-03-20 23:20:40 -05:00
Daniele Forsi IU5HKX 8e24746a3e Fix typos 2023-03-19 22:20:28 +01:00
Mikael Nousiainen f17f6f0f42 Disable rig port flushing when async I/O is enabled. Improve validation of Icom frames. 2023-03-08 23:35:08 +02:00
Daniele Forsi IU5HKX 52be0797d8 [rigs/*] Fix includes 2023-02-16 19:08:24 +01:00
Daniele Forsi IU5HKX 7211730866 [icom] Fix includes 2023-02-16 19:08:24 +01:00
Daniele Forsi IU5HKX d09c048161 [rigs/*] Remove unused include of config.h 2023-02-14 19:57:48 +01:00
Daniele Forsi IU5HKX 2e894dd9cc [icom] Remove unused include of config.h
Found wih "Include What You Use".
2023-02-14 19:21:18 +01:00
Mike Black W9MDB 4078fa9248 Fix ID5100 S Main 1 Sub
https://github.com/Hamlib/Hamlib.git
2023-02-10 16:49:37 -06:00
Mike Black W9MDB 111627533f Changes to support ID-5100 in gpredict.
Can now set set freq/mode on VFOA/B or Main/Sub correctly automatically switching dual watch mode as needed
2023-02-10 08:02:48 -06:00
Mike Black W9MDB 1efff461e3 Have icom rigs show debug when civ addr has been changed and timeout occurs
https://github.com/Hamlib/Hamlib/issues/1229
2023-02-04 14:22:57 -06:00
Mike Black W9MDB d16b52e414 Fix IC7300 5 second sleep during poweron
Reverse ID-5100 logic for dual watch mode
https://github.com/Hamlib/Hamlib/issues/1220
2023-01-22 10:49:15 -06:00
Mike Black W9MDB 0c2426c800 Add 5 second sleep during power on for IC7300
https://github.com/Hamlib/Hamlib/issues/1220
2023-01-21 17:21:04 -06:00
Mike Black W9MDB 268f44eb7d Remove one sleep from set_powerstat loop
https://github.com/Hamlib/Hamlib/issues/1212
2023-01-18 23:32:18 -06:00
Mike Black W9MDB 3daed948a8 Make auto_power_on a bit more robust for RigPI which seems slow to get going
https://github.com/Hamlib/Hamlib/issues/1212
2023-01-18 23:27:27 -06:00
Mike Black W9MDB 9d096c4ac9 Improve powerstat on/off behavior for Icom rigs
https://github.com/Hamlib/Hamlib/issues/1212
2023-01-18 15:00:18 -06:00
Mike Black W9MDB ac220815c4 Fix rig_close entry in id5100.c 2023-01-18 12:37:15 -06:00
Mike Black W9MDB 9861d1f87b Add dual watch capability for ID-5100
https://github.com/Hamlib/Hamlib/issues/1218
2023-01-18 08:49:11 -06:00
Mike Black W9MDB dc131cba7f Fix set_powerstat on/off/on for Icom rigs using rigctld power_on=0
https://github.com/Hamlib/Hamlib/issues/1212
2023-01-10 08:46:10 -06:00
Mike Black W9MDB aa1cf567f6 Fix Icom poweron behavior
https://github.com/Hamlib/Hamlib/issues/1212
2023-01-09 12:34:22 -06:00
Mike Black W9MDB 89fadca3bd For Icom rigs close and reopen rig after set_powerstat=1 -- Linux resets the usb device
https://github.com/Hamlib/Hamlib/issues/1212
2023-01-09 09:50:25 -06:00
Mike Black W9MDB 87cc9a8c3d Update ID5100 and ID4100
Promote ID5100 to stable
https://github.com/Hamlib/Hamlib/issues/1204
https://github.com/Hamlib/Hamlib/issues/1202
https://github.com/Hamlib/Hamlib/issues/1202
2023-01-04 15:40:36 -06:00
Mike Black W9MDB af9a7a6938 Make 3-byte Icom ID rigs show error message 2023-01-04 10:48:30 -06:00
Mike Black W9MDB cceffce4a5 Remove XONXOFF flow control from ID5100 and ID4100 -- Firmware E8 is not working correclty that flow control
https://github.com/Hamlib/Hamlib/issues/1202
2023-01-04 10:45:06 -06:00
Mike Black W9MDB 138795668f Fix ID5100 get/set_mode
Remove ID rigs freq_len check as civ_731 setting should cover it
https://github.com/Hamlib/Hamlib/issues/1204
2023-01-04 06:57:12 -06:00
Mike Black W9MDB 9c5809ffba Fix units for get freq for ID5100 ID4100 ID31 ID51
https://github.com/Hamlib/Hamlib/issues/1200
2023-01-03 17:54:04 -06:00
Mike Black W9MDB 1b6b78f54a Another attempt to fix get/set freq for ID5100 ID4100 ID31 ID51
https://github.com/Hamlib/Hamlib/issues/1202
https://github.com/Hamlib/Hamlib/issues/1200
2023-01-03 12:17:16 -06:00
Mike Black W9MDB 4c09344f32 Convert Icom 3-byte frequency to Hz from KHz
https://github.com/Hamlib/Hamlib/issues/1200
2023-01-02 23:04:54 -06:00
Mike Black W9MDB c7b33ef0b3 Fix ID5100 ID4100 ID31 ID51 get/set freq
Remove get_powerstat from ID4100 ID31 ID51 as it they are not capable
Add new rig_is_model function to help with Icom rig identification checks
https://github.com/Hamlib/Hamlib/issues/1202
https://github.com/Hamlib/Hamlib/issues/1200
2023-01-02 11:30:52 -06:00
Mike Black W9MDB fa7289995c Remove get_powerstat from Icom ID-5100 -- does not have the ability to get power status
https://github.com/Hamlib/Hamlib/issues/1201
2023-01-02 08:48:59 -06:00
Mike Black W9MDB 97ef9e5bea Add RIG_LEVEL_AGC_TIME to more Icom rigs
https://github.com/Hamlib/Hamlib/issues/1136
2022-12-24 14:37:32 -06:00
Daniele Forsi IU5HKX a5773f6f4e Remove unused includes of cal.h 2022-12-09 17:39:43 +01:00
Daniele Forsi IU5HKX 84fc3169df Remove unused includes of frame.h 2022-12-09 14:51:22 +01:00
Mike Black W9MDB c5a83b1652 Fix compiler warnings 2022-11-28 11:39:03 -06:00
Mike Black W9MDB 39a78a4af7 Fix duplicate targetable_vfo in xiegu.c 2022-11-28 11:31:04 -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 508eef31f9 Add set_mode_with_data and get_mode_with_data to Xiegu G90 2022-11-21 11:21:58 -06:00
Mike Black W9MDB e3a1d8c96c Update icom.h data
https://github.com/Hamlib/Hamlib/issues/1154
2022-11-20 11:42:45 -06:00
Mike Black W9MDB 7068378a91 Add data mode and targetable freq/mode to Xiegu X6100
https://github.com/Hamlib/Hamlib/issues/1154
2022-11-20 11:41:15 -06:00
Mike Black W9MDB 3c273c001a Fix Xiegu X6100 rig split
https://github.com/Hamlib/Hamlib/issues/1152
2022-11-17 14:20:49 -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 c168a99c83 Fix all Icom level_gran values 2022-11-11 23:14:14 -06:00
Mike Black W9MDB 2993ca9e62 Fix segfault in icom_get_powerstat 2022-11-08 15:09:09 -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 eff048d729 Add AGC_OFF to IC7300 agc levels 2022-11-01 14:57:37 -05:00
Mike Black W9MDB b2cf596b54 IC7300 cannot get powerstat so use get_freq instead. There are likely more Icom rigs like this 2022-11-01 14:51:47 -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 6bd5ab89b6 Remove incorrect debug line in icom.c 2022-09-22 15:39:42 -05:00
Mike Black W9MDB 67b933ddb5 Update astyle for 4.5 release 2022-09-20 08:46:28 -05:00
Mike Black W9MDB 224ccc7839 Fix filter set for IC375 and promote to stable
https://github.com/Hamlib/Hamlib/issues/1113
2022-09-09 14:01:43 -05:00
Mike Black W9MDB 9cb511af00 Add some debug for Icom use_cached variables
https://github.com/Hamlib/Hamlib/issues/1108
2022-09-05 12:21:45 -05:00
Mike Black W9MDB 4007581363 Add async capability to IC-706 series while we're debugging issue 1108
https://github.com/Hamlib/Hamlib/issues/1108
2022-09-05 09:54:17 -05:00
Mike Black W9MDB 5701e73e1e Fix valgrind warning
https://github.com/Hamlib/Hamlib/issues/1108
2022-08-31 08:57:00 -05:00
Mike Black W9MDB 7e51932a9e Remove some debug from icom.c 2022-08-29 10:11:40 -05:00
Mike Black W9MDB c34f719337 Astyle files 2022-08-20 22:56:04 -05:00
Mike Black W9MDB 6965927fb4 Add IC275 to icom rigs that can't do 0x25 2022-08-19 07:55:20 -05:00
Mike Black W9MDB 32f9353c03 Increase write_delay for Xiegu 6100 to 3ms -- was locking up rig < 3ms 2022-08-04 08:23:26 -05:00
Mike Black W9MDB f32af7496d Remove powerstat commands from Xiegu rigs 2022-08-03 12:36:35 -05:00
Mike Black W9MDB 8c172af224 Remove split function from Xiegu G90 -- does not support them 2022-08-03 12:06:19 -05:00
Mike Black W9MDB e8c36b2b4b Add some more rigs to icom.c that do not use 0x25/0x26 commands 2022-08-01 17:25:10 -05:00
Mike Black W9MDB 0e85260d0f One more X5105 change 2022-08-01 15:32:11 -05:00
Mike Black W9MDB 5ee3c15c3b Remove set/get_powerstat from Xeigu X5105 2022-08-01 15:26:28 -05:00
Mike Black W9MDB 3762823255 Trying to make x5105 x108g_set-ptt happy 2022-08-01 15:17:15 -05:00
Mike Black W9MDB 65a2101aff Another attempt to fix x108g_set_ptt 2022-08-01 15:02:22 -05:00
Mike Black W9MDB 998715f3f4 Allow 0xfb for x108g_set_ptt 2022-08-01 14:40:00 -05:00
Mike Black W9MDB 0b059cdb93 Fix icom.c debug statement 2022-08-01 13:24:10 -05:00
Mike Black W9MDB e76bbf0e51 Remove split functions from Xiegu X5105 -- it does not do split apparently 2022-08-01 13:22:48 -05:00
Mike Black W9MDB 6bd647f4ed Fix X5105 detection 2022-08-01 13:06:21 -05:00
Mike Black W9MDB 51650e9425 Remove get_dsp_flt for Xeigu X5105 2022-08-01 12:53:34 -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 2703aa7dab Fix IC746 AGC values 2022-07-29 23:02:28 -05:00
Mike Black W9MDB 64e226045a Add powerstat calls to xeigu rigs 2022-07-29 10:23:49 -05:00
Mike Black W9MDB 4385b50b1f Add Xiegu X5105 from G90 config 2022-07-28 10:33:07 -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 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
Mike Black W9MDB b1369f9458 Fix ic9700 segfault
https://github.com/Hamlib/Hamlib/issues/1078
2022-07-07 22:10:49 -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 5e6c1eaef8 Rename TRACE to HAMLIB_TRACE to avoid conflict with MSVC 2022-07-04 07:26:30 -05:00
Mike Black W9MDB 04b9353d88 Change fix for IC9700 satmode to be more generic
https://github.com/Hamlib/Hamlib/issues/1059
2022-06-30 08:15:49 -05:00
Mike Black W9MDB aa616b3707 For Icom rigs return bandwidth of 12000 for FM mode
https://github.com/Hamlib/Hamlib/issues/1066
2022-06-29 15:43:49 -05:00
Mike Black W9MDB cd2b734150 Prevent IC9700 from using 0x25 0x26 commands when in satmode
https://github.com/Hamlib/Hamlib/issues/1059
2022-06-29 15:40:41 -05:00
Mike Black W9MDB f4d0e3e402 Add IC375 2022-06-29 15:35:27 -05:00
Mike Black W9MDB e0d39b3dcb Change IC7800 mode definitions to allow for PKTUSB and PKTLSB
https://github.com/Hamlib/Hamlib/issues/1057
2022-06-07 17:40:38 -05:00
Mike Black W9MDB 4360188643 Chanage ID-5100 to XONXOFF flow control
https://github.com/Hamlib/Hamlib/issues/1053
2022-06-03 22:13:00 -05:00
Mike Black W9MDB 763836881f Reverse selected vfo logic for 0x25 command when in split and ptt is on for Icom rigs
https://github.com/Hamlib/Hamlib/issues/1048
2022-06-01 12:29:12 -05:00
Mike Black W9MDB 901cea8944 Add wait_morse to rigs that had send_morse but missing wait_morse
wait_morse only works on full break-in
https://github.com/Hamlib/Hamlib/issues/1043
2022-05-29 22:53:30 -05:00
Mike Black W9MDB 8cc4d59cbb Change rig->caps-retry to rig->state.rigport.retry
https://github.com/Hamlib/Hamlib/issues/1037
2022-05-25 10:48:16 -05:00
Mike Black W9MDB a518bdcaf1 Speed up icom compilation a bit when using -j switch in make by moving icom.c up the list 2022-05-15 09:15:27 -05:00
Mike Black W9MDB 6f9d057162 astyle files getting ready for release 2022-05-13 16:50:13 -05:00
Mike Black W9MDB ed1f0a22dc Fix missing semicolon in icom.c 2022-05-13 11:06:53 -05:00
Mike Black W9MDB d7da44a3b5 Add PKTUSB and PKTLSB to IC9100 2022-04-29 11:36:01 -05:00
Mike Black W9MDB 5c61f55947 Add RIG_PARM_AFIF to allow rigs like IC-7300/9700/705 to select the AF/IF audio output 2022-04-25 10:15:54 -05:00
Mike Black W9MDB 5427b4cf86 Promote UNTESTED to ALPHA -- assuming no news is good news 2022-04-16 22:47:51 -05:00
Mike Black W9MDB 9df30be05f Promote all Icom ALPHA rigs to BETA -- assuming no news is good news 2022-04-16 17:27:05 -05:00
Mike Black W9MDB f5ee5c86fd Fix IC-F8101 set/get ptt to allow for ptt on ACC port
https://github.com/Hamlib/Hamlib/issues/1010
2022-04-16 16:59:26 -05:00
Mike Black W9MDB 3aa8f31dcd Start excluding some Icom rigs from checking x25 command
Rigs like IC-751 don't even reject it and have to time out
2022-03-26 09:18:52 -05:00
Mike Black W9MDB 56fc193323 Add IC-756 to list of Icom rigs that don't support dsp
https://github.com/Hamlib/Hamlib/issues/997
2022-03-24 17:55:59 -05:00
Mike Black W9MDB d6cfef6963 In icom.c rig_open limit 0x25 to one try
Start eliminating rigs that will never have 0x25 too like the IC-751 for starters
2022-03-23 23:02:49 -05:00
Mike Black W9MDB 92161c989a Balance RETURNFUNC 2022-02-19 16:50:35 -06:00
Mike Black W9MDB 453e831d63 Balance RETURNFUNC 2022-02-19 16:33:16 -06:00
Mike Black W9MDB 3c9b1203bb Balance RETURNFUNC 2022-02-19 16:24:55 -06:00
Mike Black W9MDB 81202d3477 Update hamlib_check_rig_caps 2022-02-11 13:16:26 -06:00
Mike Black W9MDB 599761f196 Improve 0x25 0x26 debug msg a bit 2022-02-06 23:27:39 -06:00
Mike Black W9MDB 524dd1f8c2 Balance ENTER/RETURN FUNC in icom.c 2022-02-06 23:24:33 -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
Mikael Nousiainen d5cd99b7f5 Allow async I/O for Icom SDR rigs, mainly for waterfall spectrum data support. Async I/O is still turned off by default and needs to be enabled via a conf option. 2022-02-02 13:15:05 +02: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 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 551594f48d Remove duplicate IC7300_RF_POWER_METER_CAL entry 2022-01-26 11:15: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 987af84908 Update version in icom.h 2022-01-23 11:50:04 -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 38d7697d03 Change snprintf to SNPRINTF in rigs
https://github.com/Hamlib/Hamlib/issues/857
2022-01-22 22:37:09 -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 965d2dc52b Add IC-705 power meter scale
https://github.com/Hamlib/Hamlib/issues/939
2022-01-19 17:19:04 -06: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 2422de0951 Add IC-910 to the Icom rigs that don't use the filter byte
https://github.com/Hamlib/Hamlib/issues/929
2022-01-16 15:51:01 -06:00
Mike Black W9MDB a291def17f Revert "Add MAIN A/B and SUB A/B VFOs to ic7610.c"
7610 does not have A/B VFOs
This reverts commit a7f6d693ac.
2022-01-15 12:23:26 -06:00
Mike Black W9MDB a7f6d693ac Add MAIN A/B and SUB A/B VFOs to ic7610.c 2022-01-15 12:14:05 -06:00
Mike Black W9MDB ea76b9e495 Replace sprintf with snprintf in icom.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-10 23:22:38 -06:00
Mike Black W9MDB b84086d7f6 Add SNPRINTF macro to autodetect buffer limit exceeded
Change sprintf in icmarine and icom to SNPRINTF
https://github.com/Hamlib/Hamlib/issues/857
2022-01-09 23:47:46 -06:00
Mike Black W9MDB 5735441205 Fix set_mode_with_data for IC-7200
https://github.com/Hamlib/Hamlib/issues/921
2022-01-05 22:58:30 -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
Mike Black W9MDB 4eb0719f1d Fix IC-7610 send_voice_mem looping
https://github.com/Hamlib/Hamlib/issues/917
2022-01-04 07:11:44 -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 e9038f7c41 Add Xeigu G90 and fix spelling 2021-12-29 09:36:54 -06:00
Mike Black W9MDB 320eb0975d Remove rts/dtr setting from x108g_open 2021-12-28 22:50:51 -06:00
Mike Black W9MDB 32a9903466 Remove split functions from XG6100 -- rig was rejecting the 0x0f 0x01 split on command so apparently it is not supported
https://github.com/Hamlib/Hamlib/issues/908
2021-12-28 22:44:39 -06:00
Mike Black W9MDB 86a6ffb19e Add Xeigu X6100 2021-12-27 23:23:26 -06:00
Mike Black W9MDB 1048cbb568 Add RIG_FUNC_DUAL_WATCH for IC-9700 and IC-9100 2021-12-26 22:39:57 -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 665e0de488 Fix split mode functions for IC-F8101 2021-12-26 09:29:58 -06:00
Mike Black W9MDB a9fd2020f6 Fix IC-F8101 split command 2021-12-26 07:50:17 -06:00
Mike Black W9MDB 90400c0d9f Add split funcions to IC-F8101 2021-12-25 16:03:20 -06:00
Mike Black W9MDB 5a18808933 Turn on VFO mode for ICF8101 during rig_open 2021-12-25 11:38:10 -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
Mike Black W9MDB 52e856dbbe Add IC-F8101 rig 2021-12-24 13:04:47 -06:00
Mike Black W9MDB 55b8f03c74 Temporarily adding a bit of debug to help figure out 0xfe logic for icom/frame.c 2021-12-22 17:45:15 -06:00
Mike Black W9MDB 8c5816c53c During icom power on 0xfe may get echoed after power on so ensure we look for it and remove it
https://github.com/Hamlib/Hamlib/issues/900
2021-12-22 09:16:17 -06:00
Mike Black W9MDB cee10db2cd Ensure power on 0xfe's are flushed for Icom rigs
https://github.com/Hamlib/Hamlib/issues/900
2021-12-22 08:22:24 -06:00
Mike Black W9MDB f12b4187e4 Fix another icom.c compile warning 2021-12-20 09:37:41 -06:00
Mike Black W9MDB 367023db31 Fix icom.c compile warning for Windows as %z format not supported in MinGW 2021-12-20 09:30:27 -06:00
Mike Black W9MDB 783ae504a7 Fix comipile warning in icom.c 2021-12-20 09:23:01 -06:00
Mikael Nousiainen baea7e8c9a Merge upstream changes and fix conflicts. Update NEWS. 2021-12-20 10:06:42 +02:00
Dawid SQ6EMM 0d8e1355bd Let SEND_MORSE and SEND_VOICE_MEM be announced as capabilities. 2021-12-20 00:30:24 +01:00
Mikael Nousiainen 0fe723d6fa Add some info about disabling cache timeouts 2021-12-19 22:56:24 +02:00
Mikael Nousiainen cd9a24b72e Merge upstream changes and fix conflicts 2021-12-18 23:53:42 +02:00
Mike Black W9MDB c6c18c0903 Reduced timeout on Icom startup
Reduce time to start up when powering up Icom
2021-12-15 16:36:34 -06:00
Mike Black W9MDB 09aae91d37 Add some debug to icom.c chasing down bug
https://github.com/Hamlib/Hamlib/issues/885
2021-12-13 12:52:03 -06:00
Mike Black W9MDB 32ce1bae50 Fix no-autopower and echo off for Icom
https://github.com/Hamlib/Hamlib/issues/885
2021-12-12 23:42:00 -06:00
Mikael Nousiainen 56c95b1529 Merge upstream changes and fix conflicts 2021-12-12 23:05:26 +02:00
Mike Black W9MDB add666f891 Fix Icom echo off not working
https://github.com/Hamlib/Hamlib/issues/885
2021-12-12 13:18:24 -06:00
Mike Black W9MDB 9ed36ffe54 Clean up compilation warning on ic7100.c 2021-12-01 23:30:19 -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 41990372da Progress on get_clock 2021-12-01 12:53:10 -06:00
Mike Black W9MDB 8e28c68d3e Merge branch 'master' of https://github.com/Hamlib/Hamlib 2021-12-01 12:46:17 -06:00
Mike Black W9MDB 23d291de3c Progress on get_clock
https://github.com/Hamlib/Hamlib/issues/851
2021-12-01 12:45:07 -06:00
Mike Black W9MDB 26d1b57d8f Add ic7300.h to Makefile.am 2021-12-01 12:30:14 -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