Wykres commitów

70 Commity (dad55ef1481cb82a93bac73d7d5793b7bfe4cdf5)

Autor SHA1 Wiadomość Data
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 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
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
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 7211730866 [icom] Fix includes 2023-02-16 19:08:24 +01: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 a83eb3bf42 astyle files for 4.5 release 2022-07-27 17:16:17 -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 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