Bill Somerville
aa9ad54b94
Remove kenwood_simple_cmd as kenwood_transaction has that functionality
2015-02-16 18:16:10 +00: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
Bill Somerville
64d080af2e
Removed kenwood_cmd function and replaced uses of it
...
The function kenwood_cmd doesn't add value and it uses a reply buffer
that is not required. Also the use of a reply buffer disables the
verification of commands that have no reply feature. Substituted
kenwood_simple_cmd calls that do the job correctly without a reply
buffer.
Added delay to busy retry loop when sending commands to rig.
Implemented retries on wrong length repies from rig also with a delay.
2015-01-24 14:59:55 +00:00
Bill Somerville
c6abaa1111
Correct receive buffer length for IS; comamnd.
2014-01-30 13:23:11 +00:00
Bill Somerville
f3695ab8dc
Fix Kenwood TS-870s split and bandwidth set/get.
...
The TS-870s has no width set for SSB and AM, instead the bandwidth is
set via a high and low pass fiter setting. The backend now sets these
to try and achieve the requested bandwidth. The HPF setting is assumed
to be the default.
The bandwidth query reads both the HPF and the LPF and returns the
difference.
The value of RIG_BANDWIDTH_NORMAL skips bandwidth adjustements.
The get and set_split operations have been enabled.
2014-01-30 13:19:15 +00: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
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
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
Stéphane Fillod, F8CFE
f7923566b1
set_ant/get_ant support for ts870s and ts2000
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2304 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-03-01 11:20:30 +00:00
Joop Stakenborg, PG4I
bc1e6f3959
try better s-meter readings
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2252 7ae35d74-ebe9-4afe-98af-79ac388436b8
2007-11-23 18:49:06 +00:00
Joop Stakenborg, PG4I
5d0e7ec51d
correct set/get power
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2251 7ae35d74-ebe9-4afe-98af-79ac388436b8
2007-11-23 16:08:32 +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
3bfe70ab67
don't export local functions, make them static
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1927 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-02-24 22:35:24 +00:00
Joop Stakenborg, PG4I
ddb196d3d9
split has_get_level and has_set_level
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1921 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-02-03 20:51:19 +00:00
Joop Stakenborg, PG4I
c2fdf92935
really add ALC read this time, only change meter if needed, cleanups
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1920 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-02-03 20:22:21 +00:00
Joop Stakenborg, PG4I
385c761f07
bump version, no preamp
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1919 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-02-02 20:23:10 +00:00
Joop Stakenborg, PG4I
c37c8bd53f
add RIG_LEVEL_COMP, RIG_LEVEL_AGC, copied from ts850
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1918 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-02-02 20:14:12 +00:00
Joop Stakenborg, PG4I
33f0ad7207
add RIG_LEVEL_SWR, copied from ts850
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1917 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-02-02 20:06:19 +00:00
Stéphane Fillod, F8CFE
264bea522e
debug message changes
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1874 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-11-15 16:23:49 +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
75ec62484f
correct baudrate for the ts-950, use the information field IF for get_vfo by default (supported by most kenwood rigs), ts870s will use the much shorter FR command for get_vfo
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1493 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-06-23 17:48:27 +00:00
Stéphane Fillod, F8CFE
53cad0c032
added missing header
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1340 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-01-06 22:12:01 +00:00
Joop Stakenborg, PG4I
fe0f10d323
more modes
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1330 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-12-21 13:48:19 +00:00
Joop Stakenborg, PG4I
f8c7b7cba6
more filters
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1323 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-12-20 23:44:16 +00:00
Joop Stakenborg, PG4I
0495ee5427
cw filters for normal, narrow and wide
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1322 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-12-20 16:13:38 +00:00
Joop Stakenborg, PG4I
206a34b162
use FW command to set bandpass
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1321 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-12-20 15:43:31 +00:00
Joop Stakenborg, PG4I
f17605209f
retrieve passband with FW command
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1316 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-12-20 10:35:13 +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
36ee899725
send_morse added
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1150 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-09-04 14:31:12 +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
Joop Stakenborg, PG4I
56ca9308ba
enable get_ptt for this rig
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@963 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-02-18 18:27:03 +00:00
Stéphane Fillod, F8CFE
d3112c876c
patch from Joop PA4TU: implemented set_func and fixed FAGC
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@860 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-01-09 23:14:48 +00:00
Stéphane Fillod, F8CFE
8b3e968e4f
misc caps fix
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@856 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-01-08 07:28:18 +00:00
Stéphane Fillod, F8CFE
ebe57b7e93
rig specs fixes
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@839 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-01-03 21:45:03 +00:00
Stéphane Fillod, F8CFE
3d6b1e5131
finer grained targetable vfo cap
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@746 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-16 11:17:42 +00:00
Stéphane Fillod, F8CFE
1f01081335
converted to LGPL
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@582 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-07-13 19:08:15 +00:00
Stéphane Fillod, F8CFE
c9dc785aaa
renamed xet_ctcss to xet_ctcss_tone and xet_dcs to xet_dcs_code to make it less ambiguous in regards to the squelch functions
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@576 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-07-01 11:46:17 +00:00
Stéphane Fillod, F8CFE
5fd766993f
mispelling fixes
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@490 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-05-22 21:59:26 +00:00
Stéphane Fillod, F8CFE
ae4d375ef8
* further work on the kenwood backend, still untested\!
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@487 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-05-15 22:05:26 +00:00
Stéphane Fillod, F8CFE
3a9ad961a5
* cleanup and made it more readable
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@473 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-05-04 22:37:35 +00:00