Wykres commitów

465 Commity (8e5ad418fddd070013e8464b636b969a7e5accd5)

Autor SHA1 Wiadomość Data
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