Wykres commitów

3666 Commity (cef8c2d1576e5da2cbd2234b6b060a7323d3e86a)

Autor SHA1 Wiadomość Data
Hegedüs Ervin cef8c2d157 Leave off multiply 'typedef const char * const_char_string' definition (in rig.swg and rotator.swg) 2016-05-20 22:46:23 +02:00
Hegedüs Ervin c7476de364 Check SWIG string functions for some languages 2016-05-20 22:08:10 +02:00
Hegedüs Ervin 10fc2c295b Merge branch 'master' of http://git.code.sf.net/p/hamlib/code 2016-05-20 22:05:34 +02:00
Michael Black 1767cb5c43 Icom frame patch
I'm implementing several changes to support some functionality for the
IC7300.  In order to minimize the review process I'm submitting this
small one separately (still working on finish the IC7300 but it's some
fairly extensive changes since ICOM has changed the protocol for several
things).

For the IC7300 turning power on requires ~150 0xfe's be sent to wake up
the rig.  This causes a buffer overflow condition in icom/frame.c.  This
patch increases the buffer size and ensures no overflow.

73
Mike W9MDB
2016-05-16 16:45:23 -05:00
Ervin Hegedus cc8b4337f9 Merge branch 'master' of http://git.code.sf.net/p/hamlib/code 2016-05-15 10:16:58 +02:00
Michael Black f3ccfb855f tmd710 patch
Adds some functionality to the tmd710 and some notes on unknown
parameters.

73
Mike W9MDB
2016-05-08 21:38:19 -05:00
Ervin Hegedus 3b981f4b31 Merged from upstream 2016-05-08 22:00:35 +02:00
Michael Black 62a90596dc Add send_morse to icom rigs
Add send_morse to ic7300 -- now works with CQRLog CW mode

73
Mike W9MDB
2016-04-23 21:05:15 -05:00
Bill Somerville 7ddb7841f6 Do not crash if expected CTCSS tones not sepcified
Also added expected CTCSS tones to Icom IC-7300 capabilities.
2016-04-21 11:04:04 +01:00
Bill Somerville 5c947caf53 Fix a regression introduced in 222ad74 2016-04-20 15:03:05 +01:00
Nate Bargmann a18512ccaa Merge branch 'do-not-change-bandwidth' of git://git.code.sf.net/u/bsomervi/hamlib 2016-04-19 21:54:36 -05:00
Bill Somerville fcb93b98fa Switch to POSIXLY_CORRECT mode for getopt_long()
This  makes the  first non-option  argument end  getopt_long() parsing
stop rather  than shuffling non-option  arguments to the end.  This is
necessary  so that  rig/rotator command  language arguments  can start
with a  '-' character and  also it enables  the '-' pseudo  command to
switch to reading commands from stdin work correctly.

The change  also make checking for  the '-', switch to  stdin, command
stricter in that it must be where a command is expected and it must be
a word containing exactly a single '-' character.

Overall this allows the following styles of use:

$ rigctl R -

$ rigctl - <<EOF
>R -
>EOF

R -

$ echo "R -" | rigctl -

R -
$ rigctl -m 1 M CW -1

$ rigctl F 434000000 - <<EOF
>M FM 15000
>f m
>EOF

M FM 15000
f 145000000

m FM
15000

$

as well  as the command  line interpreter operation where  no commands
nor '-' are provided:

$ rigctl

Rig command: R -

Rig command: r
Rptr Shift: -

Rig command: f
Frequency: 145000000

Rig command: m
Mode: FM
Passband: 15000

Rig command: F 434000000

Rig command: f
Frequency: 434000000

Rig command: q

$
2016-04-19 21:52:02 -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
Nate Bargmann 22218fed79 Merge pull request #17 from mmcco/master
Fix erroneous boolean logic
2016-04-18 20:51:08 -05:00
Michael McConville 875d0fcdfb Fix erroneous boolean logic
It seems like || was used where && was intended here. Currently, the
conditions are always true, and there's no reason for them to be written
this way.

Found with Coccinelle.
2016-04-14 12:47:46 -04:00
Michael Black bd7510315e Initial support for the IC-7300
Attached is a patch + file for the ic7300.
Has not been tested...but it's very close to the ic7200 so I have high
hopes.

73
Mike W9MDB
2016-04-09 06:56:11 -05:00
Bill Somerville 47a808dcf8 Further attempts to simplify and improve Icom CAT for split operating 2016-04-02 19:07:02 +01:00
Nate Bargmann badeb6542d Merge branch 'config-retry' of git://git.code.sf.net/u/bsomervi/hamlib 2016-04-02 07:24:19 -05:00
Nate Bargmann 8d7a108fbc Merge pull request #16 from robinolejnik/master
Added support for Icom IC-2730
2016-04-02 07:10:50 -05:00
Nate Bargmann af0f094310 Bump ABI revision due to recent API additions
Tells the runtime linker that a slight ABI change has occured.
2016-04-02 07:06:32 -05:00
Bill Somerville 6fb4f72b2a Use a sensible port timeout value for the Kenwood TS-850
This  back end  used a  480  second timeout  which effectively  blocks
retries.  The  long timeout  claimed to  be for  something to  do with
tuning  which I  assume is  related to  an auto  ATU blocking  rig CAT
responses.  The standard retry mechanism should cope with this without
resorting to an artificially extended timeout.
2016-03-29 22:00:53 +01:00
Bill Somerville 50a739fa81 Use rig state rig port retry option rather than from capabilities
The   rig->state.rigport  retry   option  can   be  overridden   by  a
configuration  option and  therefore should  be used  rather than  the
initial capabilities default value.

Thanks to Ervin HA2OS for finding this defect.
2016-03-29 21:59:49 +01:00
Robin Olejnik 351e4f33b9 Added support for Icom IC-2730 2016-03-29 00:20:59 +02:00
Ervin Hegedus d5d90ce89b Fixed Kenwood filter cmd when passband is set to 500Hz 2016-03-28 22:51:21 +02:00
Michael Black cd9b0ed58d Remove input redirects in autogen.sh
JTSDK allow building hamlib from JTSDK-QT or JT-MSYS.

However, on Windows 7 64-bit the i/o redirects are causing the command
console to crash when building from JTSDK-QT.

This patch simply removes the input redirect which shouldn't be
necessary.

73
Mike W9MDB
2016-03-26 08:36:40 -05:00
Bill Somerville 86a24c5a18 Make sure right band is used when setting frequency on IC-910(H) 2016-03-23 17:09:31 +00:00
Bill Somerville ad6e1e5bf7 VFO targetable get frequency operation for the Icom IC-910(h) 2016-03-23 17:09:30 +00:00
Bill Somerville 398bd3ccaa Better set frequency semantics for the IC-910(h)
Allows for the optional 23cms module.

No longer tries to preserve the pre-amp/attn/bandwidth settings as the
does this (correctly) already.
2016-03-23 17:09:30 +00:00
Bill Somerville 48102caeaa Do not swap VFO unnecessarily
Do the minimum swapping and other manipulation to determine the Tx and
VFO status when setting the split frequency and mode.

TODO - other funcitons.

The strategy  to determine the  current VFO at the  start of a  set or
query sequence of the split transmit VFO should not switch back to the
Rx VFO unless  it is certain that  it was current at the  start of the
sequence.
2016-03-23 17:09:29 +00:00
Bill Somerville 21cc26b477 Elide unnecessary CAT commands when setting split frequency and mode 2016-03-23 17:09:28 +00:00
Bill Somerville 931cf15041 Add {get,set}_splitfrequency_mode for the IC-910(H) 2016-03-23 17:09:28 +00:00
Bill Somerville e593afef95 Implement rig_{set,get}_split_freq_mode() for IC-756 series.
This implementation reduces  the number of VFO excahnges or  sets to a
minimum when setting the TX VFO frequency and mode together.

This also  includes a  much smarter implementation  of the  logic used
when the  new config option 'no_xchg'  is enabled.  Now it  is able to
accurately  determine  the  original   VFO  selected  and  leaves  the
sequences with the  same VFO selected.  There is one  corner case when
both VFOs are identical (frequency, mode and width) at the start where
it has  to take a  guess as to the  selected originally VFO  (Icom CAT
protocol has no  command to elicit this information). In  that case it
guesses as the last VFO  selected using Hamlib.  Applications can gain
absolute certainty  by setting the  VFO themselves prior to  using the
rig_{set,get}_{split,}_{freq,mode,freq_mode}() function  series.  This
now gives seamless  TX VFO configuration without  any relay clattering
or TX/RX audio glitches.
2016-03-23 17:09:27 +00:00
Bill Somerville e5aa3639ed Initial implementation of rig_{set,get}_split_freq_mode() for FT-857.
This  optimized implementation  takes  advantage of  the CAT  protocol
command to set both frequency and mode  at the same time. It also only
needs to switch VFOs once either side of the command.
2016-03-23 17:09:26 +00:00
Bill Somerville 21c346453a Implement combined split VFO frequency and mode setting.
CAT protocols that don't allow  direct addressing of VFOs require that
the  "other" VFO  be queried  or set  via a  select then  get/set then
select back  to original or  swap then  get/set then swap  again. When
both frequncy and  mode need to be set the  sequences can be optimized
if a single funciton is avaiable.

This enhancement adds those single functions rig_set_split_freq_mode()
and  rig_get_split_freq_mode()  with  a default  impelementation  that
calls the individual rig_{get,set}_split_{freq,mode}() functions. Back
ends  can choose  to  implement  an optimized  version  which is  used
instead of the default if present.

Using these  functions when  an optimized implementation  is available
allows the TX VFO's frequency and mode to be set in a single operation
with  only  one   VFO  exchange  or  selection  either   side  of  the
operation.  Many CAT  protocols  are very  efficient  when getting  or
setting both  frequency and mode  and some even  combine the two  in a
single command.

The letters 'K' and 'k' are used for the rigctl short command name for
these functions.
2016-03-23 17:09:26 +00:00
Nate Bargmann 2a849904af Update README.developer for libusb-1.0 2016-03-22 21:47:27 -05:00
Nate Bargmann d8ebe0b862 Merge branch 'master' into libusb-1-0
FT-757GXII update from Torsten, DG3XT.
2016-02-24 05:53:42 -06:00
Nate Bargmann ec46fa915b Merge pull request #14 from t0r5tn3/master
fixed get_vfo for FT-757GX(II)
2016-02-24 05:48:26 -06:00
Torsten Eberhardt 4f2b090b8a fixed get_vfo for FT-757GX(II) 2016-02-24 10:20:00 +01:00
Nate Bargmann f441166d72 Merge branch 'master' into libusb-1-0 2016-02-23 18:45:55 -06:00
Nate Bargmann 49e2233f9f Apply Linux C Style to ft757gx.c 2016-02-23 18:42:29 -06:00
Michael Black 99cbb5b1ad Allow the ft757gx to work with WSJT-X.
Adds a new config param "-C fakefreq=1"

The ft757gx only has one-way comm so this simply returns the last freq
set.

WSJT-X can operate in fake it split mode with this too.

RRR
Mike W9MDB
2016-02-23 18:24:07 -06:00
Nate Bargmann 30fa612a2b Merge branch 'master' into libusb-1-0 2016-02-22 06:13:16 -06:00
Nate Bargmann 97594e1c96 Apply Linux C Style to ic910.c 2016-02-22 06:10:48 -06:00
Bill Somerville ed3c48e71e Add 23cms to IC-910(H) backend 2016-02-22 01:53:36 +00:00
Nate Bargmann 0db862e560 Apply Linux C Style to parallel.c 2016-02-21 15:06:16 -06:00
Nate Bargmann 6a3214fd43 Apply Linux C style
Update files modified to support libusb-1.0.
2016-02-21 14:56:44 -06:00
Nate Bargmann 07353e1f80 Fix compiler warnings with x86_64-w64-mingw32-gcc
Compiling for Windows 64 resulted in several warnings.  Correct them by
using proper Windows function calls rather than casts.
2016-02-20 11:44:19 -06:00
Nate Bargmann b3e6c460fe Merge branch 'master' into libusb-1-0
Catch up this branch to changes made in master.
2016-02-15 08:16:48 -06:00
Nate Bargmann 9ec98e0fe3 Check for libusb-1.0/libusb.h
Some distributions--Debian and Alpine tested--put libusb.h under the
libusb-1.0 directory.  Test for its presence and if found define
HAVE_LIBUSB_1_0_LIBUSB_H.  Also test for HAVE_LIBUSB or
HAVE_LIBUSB_1_0_LIBUSB_H and conditionally include the correct header
file in the sources.
2016-02-15 08:10:07 -06:00
Nate Bargmann 785e926db9 Reformat optoscan.c to Linux Style
Use astyle to format to Linux Style.
2016-02-14 18:08:54 -06:00