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
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
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
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
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
Mikael Nousiainen
56c95b1529
Merge upstream changes and fix conflicts
2021-12-12 23:05:26 +02: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
48b53ffaac
Put null check in correct place in frame.c
2021-11-28 16:49:00 -06:00
Mike Black W9MDB
3affc1066c
Add check for possible NULL in frame.c
2021-11-28 16:46:50 -06:00
Mikael Nousiainen
d857f18163
Initial implementation of: reader thread for async handling of rig data, UDP multicast publisher routine and rig state poll thread routine. The reader thread can correctly handle asynchronous data, such as transceive or spectrum data. Work in progress: multi-platform code for I/O routines still missing and the poll routine is not yet in use. Tested briefly on an IC-7300 so far.
2021-11-28 20:52:29 +02:00
Mike Black W9MDB
02bd4f6e9e
Remove rig_lock/un_lock from icom.c -- not needed for eventualy implemenatioin of async read
2021-11-24 15:45:22 -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
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
d9d247cad3
Add rig_lock to icom.c -- testing multicast capability
...
https://github.com/Hamlib/Hamlib/issues/695
2021-11-15 07:23:18 -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
d5a1b125cd
Fix frame.c
2021-10-10 17:17:30 -05:00
Mike Black W9MDB
7e6f948bf7
Undo frame.c commit -- misunderstood use
2021-10-10 17:12:07 -05:00
Mike Black W9MDB
75408098a4
Change Icom frame.c to only look for 0xfd for end of frame. Was not seeing error frames]
...
https://github.com/Hamlib/Hamlib/issues/818
2021-10-10 16:27:58 -05:00
Mike Black W9MDB
2706cca649
Fix potential buffer underflow in icom frame.c
2021-09-11 05:41:03 -05:00
Mike Black W9MDB
283281c4cb
astyle all files preparing for 4.3 release
2021-08-26 06:49:24 -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
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
3bc39aaec1
astyle files is preparation for 4.2 release
2021-03-15 17:51:22 -05:00
Michael Black W9MDB
1ba72fa725
Improve caching
...
https://github.com/Hamlib/Hamlib/issues/280
https://github.com/Hamlib/Hamlib/issues/606
2021-03-15 11:16:11 -05:00
Michael Black W9MDB
dff7bdd7a7
For icom recognize bad command return packets e.g. fe fe e0 50 fa fd
...
https://github.com/Hamlib/Hamlib/issues/607
2021-03-13 08:03:53 -06:00
Michael Black W9MDB
ee6f682963
Remove unneed NAK check on wrong location -- NAK check already being done
...
https://www.dropbox.com/s/q0i90h7ee1w2tnf/bin.zip?dl=0
2021-03-12 12:26:10 -06:00
Michael Black W9MDB
6fcb7ccd37
Fixed icom ACK/NAK and frame responses
...
https://github.com/Hamlib/Hamlib/issues/600
2021-03-11 10:24:22 -06: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
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
662d56c384
Add RETURNFUNC to icom frame.c
...
https://github.com/Hamlib/Hamlib/issues/514
2021-03-04 12:39:02 -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
ee60a68bec
astyle files
2021-02-28 09:46:01 -06:00
Michael Black W9MDB
76f3099aef
Remove 500ms from icom/frame.c -- should not be needed
...
Reduce icom echo check to just 2 tries
Improves power up sequencing by about 7 seconds
https://github.com/Hamlib/Hamlib/issues/525
2021-02-03 11:45:57 -06:00
Michael Black W9MDB
6e8b90aeec
Fix cppcheck warnings
2021-01-09 15:19:19 -06:00
Michael Black W9MDB
ca8ed30f8f
astyle files
2021-01-09 10:13:17 -06:00
Michael Black W9MDB
cf858bfa3c
Change rig.c to return RIG_ENAVAIL instead of RIG_ENTARGET when set_vfo==NULL
...
Add IC706* to rigs that don't do dsp settings
Remove dynamic detection of transceive status in icom/frame.c
https://github.com/Hamlib/Hamlib/issues/490
2021-01-08 12:04:25 -06:00
Michael Black W9MDB
c426713a4b
Fix debug statement data types in icom/frame.c
2021-01-08 07:56:17 -06:00
Michael Black W9MDB
16d76eff4b
Add debug to icom/frame.c
...
https://github.com/Hamlib/Hamlib/issues/490
2021-01-07 15:50:50 -06:00
Mikael Nousiainen
9e62b2783f
Fix RIG_PASSBAND_NOCHANGE use with Icom data modes. Allow selecting FIL2 as normal passband when in data mode. Add new Icom rigs to list that determines whether Icom data mode command supports setting filter too.
2020-12-21 18:15:15 +02:00
Michael Black W9MDB
2b1bce89bf
Fix icom default filter settings
...
https://github.com/Hamlib/Hamlib/issues/471
2020-12-19 14:30:31 -06:00
Michael Black W9MDB
263f1cde72
astyle files
2020-12-17 15:07:04 -06:00
Michael Black W9MDB
5883897656
icom.c passband nochange seems to be working
...
https://github.com/Hamlib/Hamlib/issues/448
2020-12-12 23:05:59 -06:00
Michael Black W9MDB
9bc98c9a2e
Add filter memory to frame.c for no passband change
...
https://github.com/Hamlib/Hamlib/issues/448
2020-12-12 13:22:49 -06:00
Michael Black W9MDB
7cd09fdd84
Fix passband nochange in icom frame.c
...
https://github.com/Hamlib/Hamlib/issues/448
2020-12-12 13:00:26 -06:00
Michael Black W9MDB
5fc36df249
astyle files
2020-11-30 14:53:55 -06:00
Michael Black W9MDB
c70d841b83
Add NOCHANGE_PASSBAND to icom...cascading effect on adding vfo elsewhere...which is needed anyways
...
https://github.com/Hamlib/Hamlib/issues/448
2020-11-29 23:32:14 -06:00
Michael Black W9MDB
fade1681fa
Fix cppcheck errors and warnings
2020-09-02 16:56:11 -05:00
Daniele Forsi
d7b332c3f7
Fix spelling errors
...
Fixed using the following command:
codespell --write-changes --summary --skip=*.m4 --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor"
codespell --write-changes --summary --skip=aclocal.m4,lib --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor"
Codespell home page: https://github.com/codespell-project/codespell
2020-07-24 09:02:48 +02:00
Michael Black W9MDB
4bd024c238
Fix come valgrind errors
2020-07-03 08:05:13 -05:00
Michael Black W9MDB
b6a960d48e
All conversions to rig_flush now done
...
https://github.com/Hamlib/Hamlib/issues/307
2020-06-23 09:01:46 -05:00
Michael Black W9MDB
1a4e61b2dd
Fix several strerror that should be rigerror
2020-05-09 11:52:27 -05:00
Michael Black
8fd5e16363
astyle files
2020-03-26 11:11:46 -05:00
Michael Black
8eb09c2a38
More cppcheck fixes
2020-03-23 07:52:01 -05:00
Michael Black
c489f97624
More cppcheck changes
2020-03-20 07:51:32 -05:00
Michael Black
ff8ddf018c
astyle all C files
2020-02-23 11:26:09 -06:00
Michael Black
bf4108570b
Fix icom/frame.c to not give an unsupported mode error when pd==-1
2020-02-21 09:45:31 -06:00
Michael Black
347e351ea6
Add icom_rig_open/close to all icom rigs
2020-01-17 09:22:01 -06:00