Michael Black
6bf3b00c4f
astyle all files
2019-11-30 10:19:08 -06:00
Michael Black
2f4d62709e
Added a dummy snprintf to rig_debug to allow gcc to check format strings
...
This found tons of errors in rig_debug statements
So this patch cleans up all the files that were producing warnings or errors
This should fix a few segfaults when running with debug turned on
2019-11-30 10:04:31 -06:00
c vw
555197a9a5
Getting rid of compiler warnings, especially
...
- using "abs" function for long or double arguments
- passing data which is not initialized
2017-07-10 09:55:45 +02:00
Nate Bargmann
50ff9f91a0
Correct open error for ts850 backend
...
Like the ts570 backend, the ts850 backend did not define a function for
rig_open in its rig_caps. This is now fixed. Confirmed by Ervin,
HA2OS.
2016-08-28 05:27:43 -05:00
Bill Somerville
6fb4f72b2a
Use a sensible port timeout value for the Kenwood TS-850
...
This back end used a 480 second timeout which effectively blocks
retries. The long timeout claimed to be for something to do with
tuning which I assume is related to an auto ATU blocking rig CAT
responses. The standard retry mechanism should cope with this without
resorting to an artificially extended timeout.
2016-03-29 22:00:53 +01:00
Bill Somerville
d4edc35827
Increase the number or retries for most Kenwood rigs
...
It appears that these rigs can go busy for a significant time when
switching between Tx and Rx.
2015-10-21 21:56:13 +01:00
Bill Somerville
143f305b49
Further clarification in the implementation of kenwood_transaction()
...
Buffer size is now an input parameter only as the return data length
is implicit since a null terminated C string is returned. Better
precondition checks are impelmented.
2015-02-16 12:46:35 +00:00
Bill Somerville
4a74db654a
Clarify the handling of Kenwood CAT message terminators
...
There was an inconsistency in whether the CAT terminator character is
included in returned messages. It now follows the comment in
kenwood_transaction() i.e. strips of the terminator and returns a
message length that reflects that.
2015-02-13 18:07:10 +00:00
Nate Bargmann
be2fefcf18
Update version of modified backends
...
Per Stephane's request, updated the version string of backends modified
since 1.2.14 release. Newly added backends were left alone.
2012-02-02 20:10:37 -06:00
Nate Bargmann
250efe9605
Remove set but unused variable errors in kenwood.
2011-08-25 10:43:02 -05:00
Nate Bargmann
8d16bebf40
Update LGPL header in Kenwood source files.
...
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:35 -05:00
Stéphane Fillod, F8CFE
c601e32503
TS-850 has skip flag in mem caps
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2644 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-20 12:22:19 +00:00
Alessandro Zummo, IZ1PRB
4c46fb604b
check ptt status before set_ptt. enabled on ts850.
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2627 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-09 20:59:31 +00:00
Alessandro Zummo, IZ1PRB
bb6cf68ad2
implemented set/get_ext_param (voice, fine, xit, rit). enabled on ts450 and
...
ts850
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2620 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-06 14:15:12 +00:00
Alessandro Zummo, IZ1PRB
885c4109a8
generic, ts850: implemented CTCSS TN command (reported not working for ts850,
...
should now be fixed)
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2618 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-03 23:42:53 +00:00
Alessandro Zummo, IZ1PRB
e1c03296a4
Replace __FUNCTION__, which is gcc specific and was deprecated
...
a long time ago, with __func__, which is at least defined in C99.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2617 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-03 23:22:58 +00:00
Alessandro Zummo, IZ1PRB
b510ceb1cb
ts570,ts850,ts870s,ts140,ts480,ts680: use kenwood_simple_cmd where possible
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2616 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-03 22:56:07 +00:00
Alessandro Zummo, IZ1PRB
392249c921
ts140,ts2000,ts480,ts570,ts680,ts850,ts870s: remove usage of fixed ; and EOM
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2611 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-03 22:13:55 +00:00
Alessandro Zummo, IZ1PRB
bad22ce8df
ts450,ts690,ts850: use FL command to get/set filters in get/set_mode. (code from ts850.c)
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2608 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-02 20:30:36 +00:00
Alessandro Zummo, IZ1PRB
c6cdfe91a8
Remove const from priv_caps to allow kenwood_init to initialize default values if they're missing
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2600 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-28 23:30:59 +00:00
Nate Bargmann, N0NB
30f66de479
Several Kenwood patches from Alessandro Zummo, azummo-lists@towertech.it
...
Among the changes:
I finally had the time to build the CAT interface for my TS450 and
discovered a couple of new commands.
MX; MX0; MX1; is used to activate the AIP function
FL; FLXXXYYY; is used to set the filters.
I made a perl script to try every possible two-letters command. If
amyone is interested, at their own risk, just ask.
I've then modified and optimized the kenwood driver:
- moved MD_ defined to .h
- added init/cleanup
- ts450_get_mode -> kenwood_get_mode_if
- support reading memory channel freq within kenwood_get_freq
- added kenwood_safe_transaction as an helper with result len check
- added kenwood_get_if
- added get_level for RIG_LEVEL_CWPITCH
- set/get for RIG_FUNC_AIP
- replaced ts140/680 get_mode and get_freq
- removed the delay on the ts450. it works just fine without it.
=============================
the attached patch requires the first one I sent and
addresses a few remaining issues
- converted 8 spaces to tabs
- added kenwood_mode_table
- added kenwood_simple_transaction helper func
- use kenwood2rmode and rmode2kenwood where possible
- some code cleanup
- use kenwood_safe/simple_transaction where possible
- added kenwood_get_mem_if (ts140,ts450,ts680,ts690,ts850)
- added kenwood_get_channel (ts450,ts850)
- added FUNC_FINE_STEP (commented out, we have no more func slots)
- added LEVEL_CWPITCH (set)
- no reason to have ts850_set_func, ts850_set_level
- ... ts480_get/set_ant, ts480_set_func
- ... ts570_set/get_ant, ts570_get_channel, ts570_get_rit
- ... ts680_set_func
- ... ts790_get_mode, ts790_get_vfo
this patch is a bit more extensive and tested only on the TS450.
feedback will be appreciated.
where I removed code I took care to verify that the generic
code in kenwood.c worked in the same way.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2591 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-23 03:24:42 +00:00
Thomas Beierlein, DL1JBE
c9a3e8237c
Deleted duplicate code (see kenwood_set/get_level in kenwood.c)
...
Tnx Rob KL7NA,
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2211 7ae35d74-ebe9-4afe-98af-79ac388436b8
2007-08-30 17:12:52 +00:00
Martin Ewing, AA6E
bd653b4c43
correct CHANNEL_CAPS sytax
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2207 7ae35d74-ebe9-4afe-98af-79ac388436b8
2007-08-18 20:04:56 +00:00
Nate Bargmann, N0NB
e904578f5a
Bug fixes and slope tuning support for the TS-850.
...
Thanks to Rob Frohne, KL7NA
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2205 7ae35d74-ebe9-4afe-98af-79ac388436b8
2007-08-18 12:55:46 +00:00
Joop Stakenborg, PG4I
dc93f54061
re-establish post-write delay
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2101 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-03-26 08:01:20 +00:00
Joop Stakenborg, PG4I
3ab445332e
add RIG_LEVEL_STRENGTH to caps, set post write delay to 0 and do some cleanups
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2096 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-03-16 19:36:39 +00:00
Joop Stakenborg, PG4I
199f72d3cc
more unsigned char->char and int->size_t transitions
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2094 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-03-14 20:29:41 +00:00
Stéphane Fillod, F8CFE
cb589fcd25
account for improvements
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1975 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-04-03 20:23:19 +00:00
Stéphane Fillod, F8CFE
6f20700a64
* set the serial handshake to use CTS/RTS
...
* mode some functions static
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1841 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-09-08 20:51:12 +00:00
Stéphane Fillod, F8CFE
e8c987a754
safer this way, keep in mind value_t is a union
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1758 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-06-14 20:57:34 +00:00
Thierry Leconte, F4DWV
4c5eb6b32f
fix SWR reading +
...
increase post_write timeout : seems necessary for SWR reading to work without retry
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1755 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-06-14 19:32:26 +00:00
Thierry Leconte, F4DWV
12b49f7a55
ncrease read timeout because of strange CAT protocol
...
behaviour when spinning dial.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1713 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-03-29 20:55:34 +00:00
Thierry Leconte, F4DWV
2e2721147f
add kenwood_set_split_vfo
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1687 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-02-14 16:50:54 +00:00
Thierry Leconte, F4DWV
806776b1bd
add forgotten vfo_ops
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1686 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-02-14 15:12:41 +00:00
Stéphane Fillod, F8CFE
ffd85fa8b1
misc compile fixes
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1663 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-02-08 17:04:50 +00:00
Thierry Leconte, F4DWV
d00088da3c
add lots of ts850_ functions, upgrade to BETA status
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1654 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-01-21 19:52:40 +00:00
Stéphane Fillod, F8CFE
84ad9b827b
include fixup, stdio.h is not included by rig.h anymore
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1551 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-10-01 19:32:04 +00:00
Joop Stakenborg, PG4I
0d7fe97b29
correct baudrate for some rigs and add ts-950 to the id_list
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1494 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-06-23 18:11:43 +00:00
Stéphane Fillod, F8CFE
d2bede454c
fix to account for struct chan_list change
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1251 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-11-04 22:40:55 +00:00
Joop Stakenborg, PG4I
9957a8b4f0
bump version numbers
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1175 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-09-13 19:00:36 +00:00
Joop Stakenborg, PG4I
90de55a61e
add xit capabilities
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1154 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-09-04 17:32:42 +00:00
Joop Stakenborg, PG4I
dd82c7ebe5
add rit capabilities
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1147 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-09-03 18:55:05 +00:00
Stéphane Fillod, F8CFE
41f5748be2
converted to C99 intialization style
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1132 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-08-16 17:43:02 +00:00
Joop Stakenborg, PG4I
954617c1bd
add RIG_LEVEL_RFPOWER
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1035 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-03-25 00:22:41 +00:00
Stéphane Fillod, F8CFE
9ed48795a2
factorized th_transaction with kenwood_transaction, killed thd7_* functions and share with th breed rigs
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1026 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-03-13 23:42:43 +00:00
Stéphane Fillod, F8CFE
42dc6b21b5
Initial release
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@995 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-03-05 20:23:34 +00:00