Wykres commitów

59 Commity (ecadeda486d163be72800b6cf6fda4f4c734790d)

Autor SHA1 Wiadomość Data
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
Michael Black 093e40aa24
Fix RX/TX VFO for kenwoods 2019-10-29 17:04:15 -05: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
Michael Black W9MDB 0b1a58d308 Fixed indentation warnings detected by newer gcc
Fixed one error discovered by these warnings in easycomm.c
2017-06-28 18:00:20 +01:00
c vw e156ef65fb fixes for kenwood backends 2017-05-22 19:09:47 +02:00
Nate Bargmann 27cc91292b Fix issue with TS-570S|D open in rig_caps
If the ts570 backend was called without the radio being turned on or the
wrong IO port specified, the library would generate a number of timeouts
and then fall through to behaving as though the communications channel
were opened.  Discovered that the backend did not specify a function for
rig_open in the rig_caps structure.

Thanks to Volker Schroer, DL1KSV, for reporting this issue.
2016-08-27 07:05:35 -05:00
Bill Somerville 222ad74de7 Add RIG_PASSBAND_NOCHANGE as possible set_{split_,split_freq_,}mode argument
This change  allows the set_mode  functions to leave the  rig passband
unchanged  if required.  For the  few rigs  that do  not have  explcit
passband width control either current state is read and rewritten or a
"normal" width  is chosen e.g. select  a normal width when  there is a
choice like CW and CW-NARROW.
2016-04-19 21:27:52 +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 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 42af7ab657 Kenwood TS-570 series IF returns current frequency
For Kenwood transceivers  the FA/FB/FC command smust be used  to get a
VFO  frequency,  the   IF  command  returns  the   Tx  frequency  when
transmitting. The function kenwood_get_freq_if() doesn't adjust for Tx
status or assign the frequency to a specific VFO.
2015-01-24 14:59:57 +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
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
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 9281935c5e Make set_ptt behave as before, fix set_ant for ts570.c
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2606 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-02 07:30:35 +00:00
Alessandro Zummo, IZ1PRB c82451afc6 Call kenwood_init in each and every driver
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2601 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-28 23:31:42 +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 1672951e2e fix warning
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2292 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-02-13 21:28:52 +00:00
Thomas Beierlein, DL1JBE 1fb93b6864 - incremented backend sub-version and
- declared backend as stable


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2275 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-01-05 17:24:19 +00:00
Thomas Beierlein, DL1JBE 779df91d0f added DSP Slope tuning.
Tnx Rob  KL7NA.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2209 7ae35d74-ebe9-4afe-98af-79ac388436b8
2007-08-19 08:47:37 +00:00
Thomas Beierlein, DL1JBE 5266e718eb * get_xit/rit now honours the state of the RIT/XIT switches (returns 0 if off)
* set_xit/rit switches RIT/XIT on or off if needed
* get/set_split_vfo implemented or corrected


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2195 7ae35d74-ebe9-4afe-98af-79ac388436b8
2007-03-17 17:27:53 +00:00
Thomas Beierlein, DL1JBE cced6e9142 Transferred all improvements for the TS570D/DG made since 1.24 to the TS570S/SG variant. Both models are in sync now.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2165 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-11-29 19:38:00 +00:00
Thomas Beierlein, DL1JBE 9d19bc7965 corrected set/get func for RIG_FUNC_NR.
Now you can set/get NR-modes 0..2


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2157 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-11-06 19:35:15 +00:00
Thomas Beierlein, DL1JBE 7b9931f99f implemented get/set level for PREAMP
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2156 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-11-06 13:43:38 +00:00
Thomas Beierlein, DL1JBE 27d434f9b8 implemented TS570 specific get/set_memory_channel function
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2113 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-08-20 13:39:47 +00:00
Thomas Beierlein, DL1JBE d7aff7e63b fixed tansition from 'unsigned char' -> 'char'
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2099 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-03-18 10:45:16 +00:00
Thomas Beierlein, DL1JBE ac686dde46 fixed get/set level for RFPOWER and MICGAIN.
(based on range 0..100)


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2098 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-03-18 10:42:19 +00:00
Joop Stakenborg, PG4I 000aa3fcc8 extend rig capabilities, patch by Tom, DL1JBE
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2095 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-03-14 20:35:53 +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 4927f1ef79 Patch by Rob, KL7NA (+fixes): enable tuner, antenna setting, VFO scan, and send_morse support
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1928 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-02-24 22:39:11 +00:00
Stéphane Fillod, F8CFE fe10198f27 remove deprecated RIG_LEVEL_SQLSTAT and fix get_dcd, fix str_cal in icom backend
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1853 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-09-26 08:35:05 +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
Stéphane Fillod, F8CFE 52d15c1aaa warning silencing
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1542 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-09-28 15:30:48 +00:00
Joop Stakenborg, PG4I 0ab09c0b01 some comments
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1326 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-12-21 12:08:06 +00:00
Joop Stakenborg, PG4I 150fa99755 filters
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1325 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-12-21 00:30:25 +00:00
Joop Stakenborg, PG4I 8b1eecb801 get_mode and set_mode for this rig
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1324 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-12-21 00:23:12 +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
Stéphane Fillod, F8CFE 9ed142c8bb fix missing initialization, thx goes to Dave WB5NHL
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1182 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-09-21 13:52:09 +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 42e295cdd2 bring rig in sync with other kenwood rigs
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1156 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-09-04 17:56:32 +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