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
470d3b7c4f
All icom_open to do 1 retry
...
https://github.com/Hamlib/Hamlib/issues/868
2021-11-14 11:51:14 -06:00
Mike Black W9MDB
3b927a81eb
Fix icom filter number for 0x26 command -- filter should not change now at all from what the user sets.
...
https://github.com/Hamlib/Hamlib/issues/854
2021-11-07 12:39:54 -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
c83949ae6d
For Icom rigs like IC910H and IC9700 Main/Sub are only used for split and satmode
...
Otherwise VFOA/B can be used on either Main or Sub VFOs
So if Main is requested and not in split/satmode then VFOA is assumed -- this case was fixed
And if Sub is requested and not in split/satmode then VFOB is assumed -- this was already true
https://github.com/Hamlib/Hamlib/issues/832
2021-10-20 15:56:11 -05:00
Mike Black W9MDB
569f21c7fe
Revert "Start to normalize Icom cmd detection"
...
This reverts commit 1ade49f3d5
.
2021-10-17 16:02:30 -05:00
Mike Black W9MDB
80f7378bf5
Arrgghhh..fix spelling of PKTLSB
2021-10-17 13:14:57 -05:00
Mike Black W9MDB
3dde8030a0
Add PKTUSB PKTLSB to allowed rig modes for Icom in set_dsp_flt
2021-10-17 13:11:11 -05:00
Mike Black W9MDB
1ade49f3d5
Start to normalize Icom cmd detection
2021-10-17 13:10:15 -05:00
Mike Black W9MDB
6c43e5c6ac
Fix bogus "not supported" message when icom_set_mode_x26 is called
2021-10-16 23:29:05 -05:00
Mike Black W9MDB
83b7243946
Change icom_set_mode_with_data to reuse existing filter# if RIG_PASSBAND_NOCHANGE is requested
...
https://github.com/Hamlib/Hamlib/issues/827
2021-10-15 12:56:17 -05:00
Mike Black W9MDB
16a879bc72
Fix icom_set_mode_x26
...
https://github.com/Hamlib/Hamlib/issues/811
2021-10-13 16:02:40 -05:00
Mike Black W9MDB
c7acbc19de
Improve Icom rigs with 1A 03 command and add some debug
...
https://github.com/Hamlib/Hamlib/issues/811
2021-10-13 11:53:45 -05:00
Mike Black W9MDB
fecc7d42aa
Hopefully fixed auto_power_on for IC-7610 and IC-9700
...
But it takes ~4 seconds on IC-7300 to power on 14 seconds to time out when the rig does not respond at all
https://github.com/Hamlib/Hamlib/issues/815
2021-10-05 11:40:54 -05:00
Mike Black W9MDB
ca9a45c93e
Reduce icom auto_power_on timeout from 15 seconds to just over 5 seconds
...
https://github.com/Hamlib/Hamlib/issues/815
2021-10-04 17:34:09 -05:00
Mike Black W9MDB
068544eccb
Fix icom_set_mode_with_data to also set filter width
...
https://github.com/Hamlib/Hamlib/issues/811
2021-10-02 23:17:36 -05:00
Mike Black W9MDB
0018422d46
Add another check for icom_set_mode to skip if both mode and width are not changing
2021-10-02 22:59:19 -05:00
Mike Black W9MDB
eadd1da009
Fix IC7300 (and other Icoms) set/get_dsp_filter
...
All Icoms will now try the 1A 03 command once and if it is rejected won't try again.
https://github.com/Hamlib/Hamlib/issues/811
2021-10-02 17:33:21 -05:00
Mike Black W9MDB
a2b3a8d67e
Disable icom_get_vfo as user twiddling VFO knob does not work while polling
...
current_vfo is still determined at startup
https://github.com/Hamlib/Hamlib/issues/806
2021-09-29 05:46:53 -05:00
Mike Black W9MDB
8399b4b4dc
For Icom get_vfo make the same change as last commit for other Icom rigs
...
https://github.com/Hamlib/Hamlib/issues/806
2021-09-28 14:06:50 -05:00
Mike Black W9MDB
3a76cb1b40
For Icom get_vfo when freqs are equal will only check vfo 1 time
...
This means get_vfo will not follow rig button pushes when freqs are equal
https://github.com/Hamlib/Hamlib/issues/806
2021-09-28 12:01:50 -05:00
Mike Black W9MDB
aae3ec4996
Allow IC-7300 and many other Icom rigs to find current vfo on startup
...
Icom rigs that do not have 0x25 or XCHG cannot do this yet which are older Icom rigs
XCHG rigs cannot get_vfo while transmitting but 0x25 rigs can
https://github.com/Hamlib/Hamlib/issues/806
2021-09-26 17:03:47 -05:00
Mike Black W9MDB
421c6e7c4e
Fix icom.c get_mode to not ask for unselected VFO when VFO_CURR is requested
...
https://github.com/Hamlib/Hamlib/issues/806
2021-09-22 10:40:56 -05:00
Mike Black W9MDB
a94dcddcf4
Fix ICOM request for VFOB info when VFOB is active vfo
...
https://github.com/Hamlib/Hamlib/issues/806
2021-09-21 12:17:17 -05:00
Mike Black W9MDB
ecea9da847
Remove unused value set in icom.c
2021-09-11 09:54:19 -05:00
Mike Black W9MDB
ec2d5387a7
Remove shadowed declaration from icom.c
2021-09-11 09:53:17 -05:00
Mike Black W9MDB
02f0ae986f
Remove always true clause from icom.c
2021-09-11 09:48:36 -05:00
Mike Black W9MDB
a85d6891c7
Fix return path in icom.c
2021-09-11 05:43:19 -05:00
Mike Black W9MDB
6e5bc09b27
Fix potential buffer underflow in icom.c
2021-09-11 05:41:25 -05:00
Mike Black W9MDB
f2c60aa33a
Since Icom rigs default to filter 2 if a filter is not selected we will do the same when turning on data mode
...
https://github.com/Hamlib/Hamlib/issues/791
2021-09-07 17:52:44 -05:00
Mike Black W9MDB
e900b4f9dc
Change set_icom_set_mode_with_data to not change mode unless necessary
...
Should allow filters to stay where they are set if USB-D is the starting mode
https://github.com/Hamlib/Hamlib/issues/791
2021-09-07 17:44:57 -05:00
Mike Black W9MDB
acac64c116
Really fix icom_set_func so that it can also turn off DUAL_WATCH
2021-09-01 09:08:13 -05:00
Mike Black W9MDB
004efafda7
Remove unnecessary set_mode command from TARGETABLE_MODE Icom rigs
...
https://github.com/Hamlib/Hamlib/issues/762
https://github.com/Hamlib/Hamlib/issues/430
2021-08-28 17:09:27 -05:00
Mike Black W9MDB
996dbbfa1a
Remove override of PKTUSB mode for Icom rigs -- don't think we need this
...
Was causing mode toggling on IC7300 during PTT transitions in JTDX
2021-08-28 10:21:16 -05:00
Mike Black W9MDB
06513a6869
Remove another unneeded vfo swap from icom rigs
...
https://github.com/Hamlib/Hamlib/issues/762
https://github.com/Hamlib/Hamlib/issues/430
2021-08-27 17:24:31 -05:00
Mike Black W9MDB
283281c4cb
astyle all files preparing for 4.3 release
2021-08-26 06:49:24 -05:00
Wouter van Gulik
9aec383329
Simplify get_ant by having setting to unknown by default.
...
Drop setting to default in rigs.
Add some more documentation on get_ant.
2021-08-25 22:13:21 +02: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
Wouter van Gulik
83a8b98a86
icom.c: Drop width check. Other code assumes != NULL.
...
I am not sure if the intention was to check for width == default.
But that never worked, so for now do not change behaviour.
2021-08-21 20:36:10 +02:00
Mike Black W9MDB
014bc04ddf
Fix Icom rigs to use 0x25 command if capable
...
Fixes #1 and and #2 in the issue
https://github.com/Hamlib/Hamlib/issues/762
2021-08-13 07:42:39 -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
a092f1f630
Fix spelling error in icom.c
2021-07-19 22:58:19 -05:00
Mike Black W9MDB
756f8052fc
Minimize 0x25cmdfails resets to only when satmode changes
...
https://github.com/Hamlib/Hamlib/issues/741
2021-07-15 10:19:33 -05:00
Mike Black W9MDB
6bdb82bc54
Fix some vfo swapping issues for Icom rigs
...
https://github.com/Hamlib/Hamlib/issues/734
2021-07-08 13:14:42 -05:00
Mike Black W9MDB
65c77953f8
Add MainA/B SubA/B to icom.c
...
https://github.com/Hamlib/Hamlib/issues/730
2021-07-05 17:04:24 -05:00
Mike Black W9MDB
dd0187ede6
Fix Icom rig 0x25 command for set mode with data and no width change
...
Fix Icom rigs not working with rigtctld and 0x25 command
https://github.com/Hamlib/Hamlib/issues/733
2021-07-03 22:16:33 -05:00
Mike Black W9MDB
763e18fa42
Fix get_mode_with_data for IC7800 as it can set but not read mode with 0x26 command
...
https://github.com/Hamlib/Hamlib/issues/725
2021-06-14 07:52:29 -05:00
Mike Black W9MDB
f41bcaa71a
Add IC-575 rig
2021-06-03 16:13:58 -05:00
Mike Black W9MDB
d9d562874d
Fix compilation warning in icom.c
2021-05-31 08:36:45 -05:00
Mikael Nousiainen
3a67356bc1
Add some comments and improved debugging on SIGIO async data handling
2021-05-31 16:22:22 +03:00
Mikael Nousiainen
263c16984a
Attempt to handle asynchronously pushed Icom CI-V frames (transceive and spectrum data) as these frame will get interleaved with command responses
2021-05-30 01:36:49 +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
26ea916ca7
Implement Icom rig levels: SPECTRUM_EDGE_LOW and SPECTRUM_EDGE_HIGH
2021-05-27 01:09:01 +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
e84b8a3c99
Add special check for IC821H in icom_set_vfo
...
Seems the IC821H reverses Main/Sub logic when in satmode
Remove IC821 from riglist.h and icom.c -- not used
https://github.com/Hamlib/Hamlib/issues/693
2021-05-07 08:25:54 -05:00
Mike Black W9MDB
2dd87806cf
Remove 3 second sleep from icom.c powerup
2021-04-30 15:59:43 -05:00
Mike Black W9MDB
81e3e2e5d2
astyle files
2021-04-29 17:23:37 -05:00
Mike Black W9MDB
9a82ebf652
Make icom.c 0x25 cmd check only try once
...
https://github.com/Hamlib/Hamlib/issues/685
2021-04-27 10:00:10 -05:00
Mike Black W9MDB
1d79b9e01c
Fix icom \get_mode in non-vfo mode to stay on VFOB/Sub
...
https://github.com/Hamlib/Hamlib/issues/676
2021-04-23 17:43:54 -05:00
Mike Black W9MDB
b0e006ce6c
astyle files
2021-04-21 23:48:29 -05:00
Mike Black W9MDB
870b9ca748
In icom.c add check for current vfo to avoid vfo swapping
...
https://github.com/Hamlib/Hamlib/issues/665
https://github.com/Hamlib/Hamlib/issues/654
2021-04-19 09:51:58 -05:00
Mike Black W9MDB
cd82a2c008
In icom.c fix reading VFOB width when 0 and set to VFOA width
...
https://github.com/Hamlib/Hamlib/issues/665
https://github.com/Hamlib/Hamlib/issues/654
2021-04-18 22:46:50 -05:00
Mike Black W9MDB
aefe8c44b7
In rig.c if rig does not set get_split_vfo then return cached values
...
https://github.com/Hamlib/Hamlib/issues/654
https://github.com/Hamlib/Hamlib/issues/665
2021-04-18 11:35:35 -05:00
Mike Black W9MDB
73464a6c2e
Fix IC910 behavior with gpredict -- also should fix some Main/Sub behavior elsewhere too
...
https://github.com/Hamlib/Hamlib/issues/657
2021-04-11 11:49:37 -05:00
Mike Black W9MDB
7ea4fd17aa
Fix icom.c default vfo to usa VFOA/Main as appropriate
...
https://github.com/Hamlib/Hamlib/issues/654
2021-04-08 22:37:36 -05:00
Michael Black W9MDB
b696391a66
Try another method of setting Icom default vfo
2021-03-30 15:40:17 -05:00
Michael Black W9MDB
b16eb6ac42
Force Icom rigs to MAIN_A on open
2021-03-30 14:48:41 -05:00
Michael Black W9MDB
ea269b224c
Fix vfo selection for Icom rigs when in split mode
...
https://github.com/Hamlib/Hamlib/issues/637
2021-03-30 14:43:57 -05:00
Michael Black W9MDB
fffaf27f87
Change icom.c to use Main instead of Main_A and Sub instead of Main_B
...
https://github.com/Hamlib/Hamlib/issues/637
2021-03-30 11:48:25 -05:00
Michael Black W9MDB
c831e32db1
Fix icom.c frequency offset when the 0x25 is attempted and fails
...
https://github.com/Hamlib/Hamlib/issues/629
2021-03-26 23:09:36 -05:00
Michael Black W9MDB
4135a65503
Add TARGETABLE_FREQ and TARGETABLE mode to IC7300 IC7610 IC7800 IC785X IC9700
...
This reduces VFO swapping during get_freq and get_mode operations
Log4OMV2 2.0.12 supports vfo mode using new get_vfo_info call
New debug level RIG_DEBUG_CACHE as it can get very verbose
https://github.com/Hamlib/Hamlib/issues/626
2021-03-26 10:54:11 -05:00
Michael Black W9MDB
eb952ad75f
In icom.c have set_vfo return RIG_OK immediately when VFO_CURR is requested
...
https://github.com/Hamlib/Hamlib/issues/625
2021-03-23 12:08:58 -05:00
Michael Black W9MDB
09474b17fb
Reset x25cmdfails when satmode is changed
2021-03-22 16:04:55 -05:00
Michael Black W9MDB
f0a82fa2bf
Fix icom.c vfo detection
...
https://github.com/Hamlib/Hamlib/issues/624
2021-03-22 07:54:46 -05:00
Michael Black W9MDB
80e199b302
Add satmode detection for Icom rigs like IC9700
...
In satmode VFOB/Sub now maps to SubA (2nd VFO)
https://github.com/Hamlib/Hamlib/issues/621
2021-03-20 08:07:16 -05:00
Michael Black W9MDB
950163f1a4
Rigs like IC9700 with MainA/B will have VFOA/Main mapped to MainA and VFOB/Sub mapped to MainB
...
No known use for SubA/SubB yet
https://github.com/Hamlib/Hamlib/issues/621
2021-03-19 23:36:33 -05:00
Michael Black W9MDB
c1277b170e
Fix Icom icom_get_usb_echo_off to read the freq response when echo is on
...
This takes into account whatever the response time of the rig is
https://github.com/Hamlib/Hamlib/issues/615
2021-03-18 22:46:45 -05:00
Michael Black W9MDB
ab59951e97
astyle files
2021-03-17 07:56:27 -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
27192d0c81
Fix potential seg faults in icom.c
...
https://github.com/Hamlib/Hamlib/issues/612
2021-03-16 12:45:30 -05:00
Michael Black W9MDB
0942553687
Fix icom_get_raw_buf
...
https://github.com/Hamlib/Hamlib/issues/612#issuecomment-800404923
2021-03-16 12:29:01 -05:00
Michael Black W9MDB
3bc39aaec1
astyle files is preparation for 4.2 release
2021-03-15 17:51:22 -05:00
Michael Black W9MDB
803a8d9e5e
Fix icom.c logic to not reject good answers
...
https://github.com/Hamlib/Hamlib/issues/596
2021-03-10 11:49:47 -06:00
Michael Black W9MDB
4d116d2f6c
Add 50ms pause in icom.c after set_freq and set_mode for possible transceive message which will then get flushed
2021-03-06 17:24:21 -06:00
Michael Black W9MDB
3d613519d5
Rename macros to avoid collisions with other software
2021-03-06 12:37:53 -06:00
Michael Black W9MDB
9a44b27775
astyle icom.c
2021-03-06 09:24:00 -06:00
Michael Black W9MDB
ef2e8a4d94
Change all icom calls to explicitly check for ACK/NAK
...
If neither is received a timeout error occurs so a retry will be done
Serial corruption was causing NAK rejects which was the wrong way to handle it
https://github.com/Hamlib/Hamlib/issues/587
2021-03-06 09:22:21 -06:00
Michael Black W9MDB
678f01d79d
Update debug in icom.c
2021-03-06 08:48:11 -06:00
Michael Black W9MDB
c3a1b489b7
Add return code to debug statements
...
Remove some RETURNFUNC that don't work with this change
2021-03-05 11:51:56 -06:00
Michael Black W9MDB
2c20b0afdb
After echo check to a get_freq in icom.c
...
Should fix poweron for Icom rigs that still echo in standby mode
https://github.com/Hamlib/Hamlib/issues/583
2021-03-05 07:32:01 -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
1473793f14
Change icom echo detection to a more robust solution.
...
https://github.com/Hamlib/Hamlib/issues/583
2021-03-04 11:01:23 -06:00
Michael Black W9MDB
3ca0313fb4
Implement RETURNFUNC in icom.c
...
https://github.com/Hamlib/Hamlib/issues/514
2021-03-03 16:57:03 -06:00
Michael Black W9MDB
221d87c2e4
Add auto_power_off option from JTDX team
...
Change rig_get_vfo_info to do real calls intstead of cache
2021-03-02 13:03:30 -06:00
Michael Black W9MDB
ee60a68bec
astyle files
2021-02-28 09:46:01 -06:00
Michael Black W9MDB
e5964fe670
Fix IC706 for 5 byte channels
...
https://github.com/Hamlib/Hamlib/issues/295
2021-02-23 23:16:00 -06:00
Michael Black W9MDB
0f9a7fac07
Add -RIG_EINVAL when set_level > 1.0
2021-02-19 08:44:02 -06:00
Michael Black W9MDB
1e9a991a25
Add set_dsp_flt for IC7000 -- any other Icom rigs can use this?
...
https://github.com/Hamlib/Hamlib/issues/521
2021-02-17 22:52:48 -06:00
Michael Black W9MDB
660fd94962
Change all icom rigs to watts for RIG_LEVEL_RFPOWER_METER_WATTS
...
Divide by 100 for old power call
2021-02-12 16:37:17 -06:00
Michael Black W9MDB
e589e078a1
Add 3 second sleep in icom powerstat to allow the rig to wake up
...
https://github.com/Hamlib/Hamlib/issues/525
2021-02-03 12:54:30 -06:00