Wykres commitów

173 Commity (0a5b00c58da7542c15e2f06298f58df491e934b1)

Autor SHA1 Wiadomość Data
Bill Somerville 4d6dacb92f Allow for PowerSDR ID in Kenwood TS2000 emulation mode
PowerSDR  accepts  a  ZZID;  command   which  changes  the  result  of
subsequent ID; commands to ID900;. Since there seems no way of telling
PowerSDR to revert to  the true TS2000 ID of ID019;  we have to accept
ID900; as a TS2000.

Allow for  SmartSDR Kenwood  compatible IDs  of 904  - 907  as TS-2000
synonyms.
2015-03-13 19:48:19 +00:00
Bill Somerville 3d99e9dbb6 Allow one extra byte in read_string() length to accomodate terminator
The kenwood_transaction()  function expects a buffer  large enough for
the  null  terminated  command   response  less  the  Kenwood  command
terminator (';') but  the read_string() call must allow  an extra byte
for that same terminator.
2015-03-06 19:48:47 +00:00
Bill Somerville 72f1e92be3 Allow for bad ID from DDUtil in TS-2000 mode 2015-03-01 21:59:50 +00:00
Nate Bargmann f0e17f7c8d Merge branch 'kenwood_strncpy_error' of git://git.code.sf.net/u/bsomervi/hamlib 2015-02-17 13:32:59 -06:00
Bill Somerville aa9ad54b94 Remove kenwood_simple_cmd as kenwood_transaction has that functionality 2015-02-16 18:16:10 +00:00
Bill Somerville 51b30a8ff2 Removed redundant precondition test 2015-02-16 14:18:27 +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
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 a970d8b035 Switch to "ID;" command for verification as no "AI;" on TS-840s 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
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
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 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
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 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
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 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
Stephane Fillod fccb7769b2 add TM-D710 and TM-V71 in kenwood ID list 2011-12-23 00:32:25 +01:00
Charles Suprin 6afd1a6940 Register D710 interface. 2011-12-11 11:58:28 -05:00
Stephane Fillod 65f54ef8cd implement kenwood set_ctcss_sql()/get_ctcss_sql() 2011-09-10 18:24:22 +02: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
Stephane Fillod 421909bad2 Let set_ptt() select source, either TX mic or TX data 2011-07-20 00:09:50 +02:00
Stephane Fillod a94f6cfee2 Add skeleton for TH-D72A 2011-05-26 23:21:15 +02:00
Stephane Fillod 544fc515bc Add SifFox Transfox SDR 2011-03-26 15:45:51 +01: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 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
Nate Bargmann, N0NB b57d9e1a37 Support for Elecraft extensions to base Kenwood functions (particularly
for the K3).
Added debugging print functions to all Kenwood backend functions for
easier debugging.



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3002 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-10-29 21:20:51 +00:00
Stéphane Fillod, F8CFE ee55f04dd1 add TS-590S
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3000 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-10-28 07:28:12 +00:00
Nate Bargmann, N0NB 5f41562b3d New Kenwood THF-6A backend from Scott Martin, KC9QEN.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2990 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-10-04 02:49:27 +00:00