Wykres commitów

535 Commity (fd31b41d3b4d6420b4edda0aa1ac5781d9cdb0fa)

Autor SHA1 Wiadomość Data
Nate Bargmann 3e06fff221 Delete comment of unused parameter
Removed reference to cmd_len from comments of kenwood_transaction which
is no longer used.
2015-02-13 14:17:47 -06: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 8359bab813 Use local buffer in kenwood transaction funciton
Using the priv->info buffer causes security checks on Mac OS X >= 10.9
because the source  and destination of an internal strncpy  can end up
being the same. It is bad practice anyway as it's undefined behaviour.
2015-02-13 18:07:09 +00:00
Bill Somerville bfbb1adc44 Improve command verification for Kenwood & Elecraft
Allows for a single ';' for  verification with the Elecraft XG3 single
character commands.

Allow for rig specific instance data  (needed by the Elecraft XG3 that
is a bit different from the rest of the Kenwood/Elecraft group).

Do not send a startup command to  turn off AI mode to the Elecraft XG3
as it doesn't have that command or mode.

Restore the positive RTTY mode enabled  check to the Elecraft K2 as it
appears that the MD6; and MD9;  comamnds are valid even when RTTY mode
is disabled on the rig.
2015-01-24 14:59:59 +00:00
Bill Somerville d92bea9538 Switch Kenwood TS940 to generic kenwood CAT functions 2015-01-24 14:59:59 +00:00
Bill Somerville f672cc1bff Increase Elecraft K2 comms timeout and retries 2015-01-24 14:59:58 +00:00
Bill Somerville a970d8b035 Switch to "ID;" command for verification as no "AI;" on TS-840s 2015-01-24 14:59:57 +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 b1e41d2d2c Elecraft K3 has 1 stop bit 2015-01-24 14:59:56 +00:00
Bill Somerville 5ef9bde498 Allow for failed test command on the K2
The  K2 initialization  was checking  if  RTTY mode  was available  by
sending an  MD6; command  and they  querying the mode  to check  if it
worked. The latest kenwood routines now  fail if an invalid command is
sent to the K2 initialization need only try the MD6; command to see if
RTTY is available on the rig.
2015-01-24 14:59:56 +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 a2f24678ca Kenwood and Elecraft rigs sometimes ignore commands
These  rigs  can  opt  to  ignore set  type  commands  when  they  are
busy. This means  that sending a set command like  FAnnnnnnnnn; to set
the frequency can  fail. The rig should send "?;"  when busy but since
no reply is normally expected it is not convenient to read for a reply
after a  set command since it  will block until timeout.   This change
sends an "AI;" command after a  command that is not expected to reply,
this should guarantee a reply of  some sort allowing any busy reply to
be read  without blocking  and initiate  a retry  of the  original set
command. The  "AI;" command is chosen  because it is available  on all
rigs AFAIK and at least on Elecraft is guaranteed to be processed even
when the rig is busy.
2015-01-24 14:59:54 +00:00
Bill Somerville 3ffbb69638 Elecraft K2 RTTY modes are not FSK
The K2  RTTY and RTTY-R modes  should be modeled as  PKTLSB and PKTUSB
respectively since they are AFSK modes.

Also ensured that  Kenwood mode sets do not try  and set RIG_MODE_NONE
as it makes no sense.
2015-01-24 14:59:54 +00:00
Michael Black 716fc0fcab New XG3 backend
Backend for the Elecraft XG3 signal generator.
2015-01-08 17:45:29 -06:00
Bill Somerville 6b2069af28 Kenwood AIn; command has no reply 2014-12-09 01:41:45 +00:00
Bill Somerville b26d862d56 Merge branch 'master' into kenwood-ai-off-at-start 2014-11-24 01:47:58 +00:00
Bill Somerville 2049533381 Disable AI mode on open for Kenwood/Elecraft rigs 2014-11-23 22:18:53 +00:00
Bill Somerville 5d572b01f8 Kenwood TS-590SG
Fixed typo that disabled the whole back end.
2014-11-14 17:55:51 +00:00
Bill Somerville 6165bf9eda Add support for the Kenwood TS-590SG
This rig is largely similar to the TS-590S but for some reason Kenwood
have changed most the EX command  ids. Even though hamlib makes little
use  of  the  EX  command,  it   probably  will  need  to  for  future
functionality implemenattion. Hence the new rig id.
2014-11-04 16:23:39 +00:00
Bill Somerville 12e88dc33d Fix response length expected error in K3 back end 2014-10-20 13:43:34 +01:00
Nate Bargmann c230cad17b kenwood/k3.c: Avoid possible buffer overrun
Running cppcheck found that the string length given to strncpy was one
too large for the buffer.
2014-03-06 14:55:10 -06:00
Bill Somerville 266139aa7c Fix Elecraft K3 Data Sub-Mode Setting.
The data sub-mode has to be set after setting the bandwidth on the
"back" VFO since the BW$ command seems to reset the data sub-mode.
2014-02-14 21:12:50 +00:00
Bill Somerville f42ff9bd6d Fix Elecraft Data Mode Translation.
Ensure a valid mode is set for all possible mode set values.
2014-02-14 21:12:50 +00:00
Bill Somerville 09373ede8f Fix data sub-modes on Elecraft K3.
The K3 supports AFSK & FSK sub-modes and for the D versions it also
has an internal RTTY and PSK31 decoder. The decoder sub-modes are
reported as FSK (RTTY) and the AFSK sub-modes are reported as PKT(USB
& LSB). LSB modes are assumed to be RTTY and USB modes are assumed to
be PKT(PSK, WS modes etc.).

For mode set the data sub-modes are set as follows:

RTTY -> FSK D normal (LSB) VFO shows MARK QRG
RTTYR -> FSK D reversed (USB) VFO shows MARK QRG
PKTUSB -> DATA A normal (USB) VFO shows suppressed carrier QRG
PKTLSB -> AFSK A normal (LSB) optimised for RTTY VFO shows MARK QRG

Not all data sub-mode combinations are possible but the above mapping
seems most likely to cover the user requirements.
2014-02-14 21:11:24 +00:00
Bill Somerville 6e57454b06 Add spilt mode get and set for Elecraft K3. 2014-02-14 21:11:24 +00:00
Steve Conklin a92017df38 Support for Flex 6K SDR radios, plus some fixes for easycomm
Two patches:

The first adds support for the Flex 6K series of SDR radios. These
radios have a CAT application that runs on a windows machine, and
exposes a network socket that can be opened for CAT commands. This back
end connects to that network socket and provides an interface.  I've
tested pretty thoroughly using a Flex 6700 but I don't have the other
models available (6500 and 6700R). CAT support on these models is
evolving with frequent updates from Flex, and this  back end does not
reflect the latest features to be added. I hope to get to them soon.

The second patch makes the easycomm interface more robust by flushing
the serial port and clearing the buffer.

Steve, AI4QR

Merge branch 'for-upstream' of https://github.com/sconklin/hamlib into sconklin-for-upstream
2014-02-09 07:17:24 -06:00
Ervin Hegedus f0acfa78eb RIG_PASSBAND_NORMAL wasn't handled correctly when rig_set_mode() was called - fixed 2014-02-03 21:32:59 +01:00
Bill Somerville 03fc1e0cb0 Extend TS590s firmware defect fixup to both VFOs.
It turns out that either VFO can be incorrectly set in split mode when
the VFO is the TX VFO. The logic has been changed to send an IF; query
and read and set the other VFO if the VFO just set in set_freq is the
TX VFO and the rig is in split.
2014-01-30 13:54:02 +00:00
Bill Somerville 1f3fe7b5d1 Make Kenwood TS590s firmware defect fixup revision specific.
As Kenwood have finally released TS590s firmware revision 1.08 and it
fixes the split TX defects; the fixup has been made revision specific.
2014-01-30 13:54:02 +00:00
Bill Somerville 64863c80ff Fix Kenwood get_vfo function returning wrong VFO in split TX.
The Kenwood IF command, which is used to get the current VFO, returns
the TX VFO in transmit mode. The get_vfo function needs to return the
RX VFO to be consistent and useful elsewhere. The implementation now
swaps the returned VFO if the rig is in split mode and transmitting at
the time of the query.
2014-01-30 13:54:02 +00:00
Bill Somerville c4d89f2797 Fix TS590s firmware defect.
The TS590s with firmware revision 1.07 or earlier fails to set VFO B
frequency properly when the rig is in split mode and the TX VFO is VFO
B. The symptom is, subsequent TX is on the wrong frequency (the
previous frequency) or there is no output at all. The fix is to read
VFO A and then immediately set VFO A to the read frequency. This
effectively null sequence has the side effect of setting VFO B
properly.
2014-01-30 13:53:32 +00:00
Bill Somerville e2b2f884c8 Get firmware revision for TS590s in rig_open.
Defects in the TS590s f/w can be addressed selectively according to
revision.

Enable kenwood_open function for TS590s.

For some reason the TS590s did not use the kenwood_open function, as
fetching the firmware revision may be required for this rig and it is
done in that function; it has been enabled.
2014-01-30 13:42:30 +00:00
Bill Somerville ff44c229dd Correct order of MD and DA commands for TS590s.
The selection of data mode with DAn; is only possible after a valid
mode for data has been set (USB, LSB and, FM).
2014-01-30 13:32:04 +00:00
Bill Somerville 8ece70169b Add data sub-mode support for TS590s.
The TS590s has a DA command to set USB, LSB or, FM data
submodes. Support for get and set of these sub-modes has been
added. Mapped from RIG_MODE_PKTUSB, RIG_MODE_PKTLSB and,
RIG_MODE_PKTFM respectively.
2014-01-30 13:30:10 +00:00
Bill Somerville 5e60ae88f7 Fix Kenwood get split VFO function.
kenwood_get_split_vfo was not returning its txvfo parameter. I have
added code to calculate the TX VFO.
2014-01-30 13:28:00 +00:00
Bill Somerville 18842a5cdc Fix Kenwood CAT transaction busy retry mechanism.
Retries would always fail due to the expected response length being
modified prematurely to the response length of the error/busy
response.
2014-01-30 13:25:08 +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
Bill Somerville 54c297b4c4 Fix Kenwood Split Operation for TS50 & TS480.
The TS50S has the old FN and SP commands rather than the newer FR/FT
commands, added code to support these commands allowing split
operation to be commanded on the TS50S.

The TS480 had no split VFO functions enabled, added normal modern
Kenwood split VFO and mode handing functions.
2014-01-30 13:09:30 +00:00
Bill Somerville 02915a5712 Fix Kenwood TS-2000 split operation.
The API calls to set split frequency and split mode were missing, I
have set them to the preexisting Kenwood functions and they seem to
work as expected. I'm not sure why they were not already enabled.
2014-01-30 13:02:19 +00:00
Steve Conklin e17ab36bc8 Add support for Flex6K radios
Signed-off-by: Steve Conklin <steve@conklinhouse.com>
2014-01-15 14:03:50 -06:00
Nate Bargmann 1bac099494 Remove remaining references to rpc
As rpc backends were removed some time ago, remove all remaining
documentation and other references to rpc.
2013-09-19 15:24:52 -05:00
Ladislav Vaiz f632695131 Android build updates for monolithic build
Android is now built as a static library.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-09-19 07:25:08 -05:00
Nate Bargmann 332a04b7cd Clean up backend Makefile.am files
Moved all backend *.h files into the SOURCES primary as Automake
documentation states all source file types should be listed.  This
causes Automake to include *.h files in rebuild rules for the targets.

Removed the '-DIN_HAMLIB' assignment from the CFLAGS primary in each
backend and assigned it to AM_CPPFLAGS in configure.ac.  The effect is
the same and it simplifies the backend Makefile.am files.

Removed all commented lines.
2013-09-16 21:51:39 -05:00
Remi Chateauneu 60019c9444 Monolitic libraries. 2013-09-08 14:56:28 +01:00
Nate Bargmann 977e92315e elecraft.c: Quell compiler warning of buffer size
GCC 4.8.x revealed an error in the way the destination buffer size was
calculated for storing the K3 firmware revision.  Now, instead of
declaring the array in the kenwood_priv_data structure, it is declared
as static in elecraft.c and a pointer is now assigned in the
kenwood_priv_data structure.  This allows for proper calculation of the
array size for strncpy().
2013-07-24 22:48:07 -05:00
Nate Bargmann 245ab86441 Quell compiler warnings on Cygwin
Quell mostly harmless warnings from the older GCC installed in Cygwin.
Produces a quiet compilation.
2013-05-09 22:06:39 -05:00
Ladislav Vaiz 6d4295af2c Add Android build support
Android makefile fragments are distributed as extra distribution files
by the GNU build system but are otherwise ignored.  The Android build
support is independent and does not rely on the GNU build system.

See android/README.android for more info.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-04-26 22:31:56 -05:00
Nate Bargmann 2b5f02d442 k3: Implement new RIT/XIT function
For the K3 RIT/XIT are now explicitly turned On/Off by calling
rig_get/set_func() and passing RIG_FUNC_R/XIT and the status of 1 or 0.

When setting the RIT/XIT offset by calling rig_set_r/xit, an offset of 0
will clear the RIT/XIT offset but will no longer turn the RIT/XIT
function Off.  Likewise, an offset can be set but not active until the
RIT/XIT function is explicitly turned On.
2013-01-18 05:50:01 -06:00
Nate Bargmann 334e845d4f Test for PB width < 0, normal PB, or +- limits
Use the absolute value of any negative value that may be passed in via
the width parameter to set_mode.

If RIG_PASSBAND_NORMAL is passed in, call rig_passband_normal() to
determine the normal width for the mode before setting the bandwidth.

The width parameter is tested against wide and narrow filter values and
set to the returned values as upper and lower limits if width falls out
of those bounds.
(cherry picked from commit bb6c6493e1)
2012-06-28 18:11:33 -05:00
Nate Bargmann cd1f0cbb5f Test for passband width < 0 or normal passband
Use the absolute value of any negative value that may be passed in via
the width parameter to set_mode.

If RIG_PASSBAND_NORMAL is passed in, call rig_passband_normal() to
determine the normal width for the mode before selecting the correct
filter (needs testing).
(cherry picked from commit 94ea3ced4c)
2012-06-28 18:11:10 -05:00
Nate Bargmann 1d6a7249fb TS950 now uses kenwood_get_mode_if()
Like other Kenwood rigs of its vintage, the TS-950 series provides the
mode information in the IF command response.  Filter bandwidth is
set/read using the FL command.
2012-06-02 07:18:40 -05:00
Martin Ewing 6bdd1a6aa9 Trim TS950 commands that are not provided by CAT 2012-03-20 22:07:55 -04:00
Nate Bargmann 01ab10bf10 Include backend specific notes with 'make dist'
(cherry picked from commit 20814924b2)
2012-03-01 21:23:16 -06: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 ea7bf7a0d3 Quell compiler warning of unitialized variable. 2012-01-21 13:06:04 -06:00
Stephane Fillod b9c2294d89 transfox: fix set/get_freq by setting current vfo 2011-12-23 00:58:08 +01:00
Stephane Fillod c891b3c234 transfox: do not call kenwood_open() since rig has no "ID" command 2011-12-23 00:33:42 +01:00
Stephane Fillod fccb7769b2 add TM-D710 and TM-V71 in kenwood ID list 2011-12-23 00:32:25 +01:00
Charles Suprin 7148fb20ed Register D710 interface. 2011-12-11 11:59:35 -05:00
Charles Suprin 52c2cf5615 Initial D710 Implementation. 2011-12-11 11:58:59 -05:00
Charles Suprin 6afd1a6940 Register D710 interface. 2011-12-11 11:58:28 -05:00
Charles Suprin e0cd38bed1 Add D710 code to kenwood library. 2011-12-11 11:57:51 -05:00
Charles Suprin 12366b2096 Add file for TM-D710 support. 2011-12-06 15:29:51 -05:00
Nate Bargmann 1bb3697c87 Support high resolution S-meter on K3
Recent firmware versions since 4.37 now offer support for higher
resolution for the S-meter output via the SMH command.  The K3 backend
performs the STRENGTH level routine and passes other levels to the
Kenwood backend.

This patch has not been tested with a firmware version older than 4.39
to assure that operation with the SM command still works as expected.
2011-11-22 16:49:18 -06:00
Stephane Fillod e81b2c181c Patch SF#3406922 from Dariusz, SQ9KEJ, plus edit
Minor edit: RIG_FUNC_REV instead of CHFLAG_REVERSE
Plus some TS2000 improvements:
* add more FUNC's, VFO_OP's, SCAN_OP's.
* declare ANT's.
* fix set_ctcss_tone: use TN command
* add set/get_ctcss_sql
2011-09-10 18:35:34 +02:00
Stephane Fillod 65f54ef8cd implement kenwood set_ctcss_sql()/get_ctcss_sql() 2011-09-10 18:24:22 +02:00
Stephane Fillod e652819a52 Protocol documentation URL 2011-09-10 16:31:11 +02:00
Stephane Fillod e6b3ed86b6 has PTT_RIG_MICDATA, update status 2011-09-10 16:30:41 +02:00
Nate Bargmann 250efe9605 Remove set but unused variable errors in kenwood. 2011-08-25 10:43:02 -05:00
Stephane Fillod b9b270a1fb License boiler plate merge 2011-08-24 10:05:30 +02:00
Stephane Fillod 3e22b7dc7c Disable retries when looking for the tone unit
Disable retries when looking for tone unit in ts450_open() since
it may confuse rigs lacking it.
2011-08-24 09:57:21 +02:00
Nate Bargmann c3e9dfd93f Remove "$Id:" CVS tag as it is no longer used. 2011-08-22 21:38:38 -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
Nate Bargmann 938f33058d K3/KX3 S-meter calibration.
K3 returns S-meter values of 0-15.  Tested with grig 0.8.0~rc1.
2011-08-20 16:04:57 -05:00
Stephane Fillod bd811c2f45 advertise for VFO_MEM in range_lists
(cherry picked from commit 33aa4ed31e)

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2011-07-21 04:22:41 -05:00
Stephane Fillod cb3795f624 WIP
(cherry picked from commit 37387ded0c)

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2011-07-21 04:22:22 -05:00
Stephane Fillod 3c5db5456f Let set_ptt() select source, either TX mic or TX data
(cherry picked from commit 421909bad2)

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2011-07-21 04:21:38 -05:00
Nate Bargmann 7fbcc9d9e1 Implement K3 RIT/XIT clear via rig_set_ext_level()
Create new confparams token of 'ritclr' for clearing RIT/XIT offset
without turning off RIT/XIT function.  Thanks to Tor, N4OGW, for the
request.  May be replaced in the future by a dedicated RIT/XIT clear
function in the Hamlib API.
2011-06-07 18:04:58 -05:00
Nate Bargmann 2808713233 Sanitize rig_debug() output levels per docs.
Set most rig_debug() calls to leve RIG_DEBUG_VERBOSE and only use other
levels when it makes sense.
2011-06-03 16:09:25 -05:00
Alexander Sack 65d201455d Get firmware revision level from K3/KX3.
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2011-06-03 06:12:44 -05:00
Nate Bargmann e6adeb2be4 Merge branch 'master' of ssh://hamlib.git.sourceforge.net/gitroot/hamlib/hamlib 2011-05-27 21:05:12 -05:00
Nate Bargmann 3757b9af27 Correct K3 set_ant
As the K3 does not return a response to the AN? set command, direct the
backend to use kenwood_set_ant_no_ack() instead.  Thanks to Alexander
Sack, KC2ZSX for catching this.
2011-05-27 21:01:45 -05:00
Stephane Fillod a94f6cfee2 Add skeleton for TH-D72A 2011-05-26 23:21:15 +02:00
Nate Bargmann 85f3db121a Add KX3 to K3 rig_caps.model_name
Wayne Burdick, N6KR, advises that the forthcoming KX3 (prototype
shown at Dayton Hamvention 2011) will have an identical command
set to the K3.

Fix K2 and K3 backend versions.
2011-05-22 07:59:09 -05:00
Stephane Fillod 544fc515bc Add SifFox Transfox SDR 2011-03-26 15:45:51 +01:00
Nate Bargmann, N0NB e6176ab20f Correct ts440 for an iflen of 38 chars
Bill reports his TS-440 returns 38 chars instead of the default 29.
This patch defines iflen of 38 for the ts440 backend and implements
necssary support in the ic10 backend.

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3067 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-03-07 23:36:41 +00:00
Nate Bargmann, N0NB 6de8bb5089 k3_set/get_split_mode dummy functions
The K3 will swap VFOs with the frontend's implementation of
get_split_mode when the backend's definition in rig_caps is NULL.  These
functions simply return -RIG_ENAVAIL when called to preserve the K3's
operating state.

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3057 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-02-19 02:58:11 +00:00
Nate Bargmann, N0NB 1a4d075490 K3 specific set_rit, set_xit
Added support for the K3's ability to set RIT/XIT offset frequency
directly.
Coding style changes.

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3056 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-02-18 02:04:05 +00:00
Nate Bargmann, N0NB 55736a7427 Coding style edits
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3055 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-02-18 02:03:49 +00:00
Nate Bargmann, N0NB fe147f28df THF7E fixes from Ron Hinds, KF7NNZ
Implement the RIG_OP_DOWN command, from Ron Hinds <kf7nnz@rmhi.net>

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3043 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-02-08 13:00:19 +00:00
Nate Bargmann, N0NB ad45b00fe3 THF6A fixes from Ron Hinds, KF7NNZ
Implement the RIG_OP_DOWN command, from Ron Hinds <kf7nnz@rmhi.net>

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3042 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-02-08 13:00:03 +00:00
Nate Bargmann, N0NB 7ae64ff79c Add missing .extparms assignment
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3033 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-02-01 03:32:16 +00:00
Nate Bargmann, N0NB 58842fb417 Add support for TX Query on K2 and K3
The K2 and K3 support a TQ command to query the transmit status.  As
only four bytes are returned it is much faster than the longer IF
command response.  Access is via rig_get_ext_level--rigctl 'l' command
with a Level mnemonic of 'txst'.  Returns '0' on RX and '1' on TX.

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3032 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-02-01 03:18:36 +00:00
Nate Bargmann, N0NB 15615ec467 Add extension parameter handling for K2/K3 RIT/XIT
Implemented kenwood_cfg_params structure to allow RIT/XIT tokens to be
available to all Kenwood backend rigs (Fine Step and Voice announce are
also defined).  K2/K3 rigs can only set/get RIT/XIT.

Updated README.k2/k3 for RIT/XIT functions and prior updates.

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3031 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-02-01 00:48:45 +00:00
Nate Bargmann, N0NB 992b0842e4 Frequency range corrections from Ron Hinds KF7NNZ
THF6A and THF7 frequency range corrections for Region 1 and Region 2.
Patch info from Ron Hinds <kf7nnz@rmhi.net>.

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3030 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-01-31 12:30:08 +00:00
Nate Bargmann, N0NB a8ac278878 K3 get extra level for IF center frequency
Implemented rig_get_ext_level() for the K3 FI command which returns the
last four digits of the IF center frequency.  This value changes as the
operator adjusts the shift control, changes mode, or adjusts the bandwidth
control.  The function returns the actual frequency of 8210000 Hz plus
the value returned by the FI command.

To get this frequency value the token IFCTR must be passed to
rig_get_ext_level().  This token is specific to the K3 backend.

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3029 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-01-31 04:03:58 +00:00
Nate Bargmann, N0NB 15cc6999cc Test k2_md_rtty flag
Test k2_md_rtty flag when k2_set_mode() is passed RIG_MODE_RTTY or
RIG_MODE_RTTYR to avoid erroneously attempting to set RTTY when
k2_md_rtty is unset.

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3024 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-01-21 18:38:39 +00:00
Nate Bargmann, N0NB 749ababe13 Add missing command to set K2 to K22 in set_mode
An oversight had omitted the necessary call to set the K2 to K22
extended mode before setting the filter.  The function now sets K22
properly, sets the filter width, and then K20 before returning.

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3023 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-01-21 12:22:13 +00:00
Nate Bargmann, N0NB 7ba0620356 Implement filter scanning and get/set mode on K2
K2 backend will now scan for installed RTTY mode and filters per
mode upon rig_open().  Implemented get/set mode in K2.  The get_mode()
function checks the filter bandwith and returns that for the width
value and the set_() function will select and set an appropriate
filter based on the width passed in.

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3021 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-01-19 02:39:51 +00:00