Wykres commitów

3467 Commity (bc1fcfac641de9a5c47c517960e53d10f2bf0fd8)

Autor SHA1 Wiadomość Data
Bill Somerville bc1fcfac64 Data mode support for the Icom IC-7200 2014-11-01 11:47:29 +00:00
Bill Somerville 6416c7316b Data mode support for the Icom IC-9100
Also enabled CAT PTT.

Also the rig supports querying split status so enabled that too.
2014-10-22 13:00:29 +01:00
Bill Somerville 69fd5d2596 Data mode support for the Icom IC-7700 2014-10-21 19:29:42 +01:00
Bill Somerville 12e88dc33d Fix response length expected error in K3 back end 2014-10-20 13:43:34 +01:00
Bill Somerville 7d01e0fc4d RIG_OK is zero and need not be negated and this will not change 2014-10-18 20:31:47 +01:00
Bill Somerville 8f44be97a2 Merge branch 'yaesu-retries' of ssh://git.code.sf.net/u/bsomervi/hamlib into yaesu-retries 2014-10-18 20:25:06 +01:00
Bill Somerville 013d9b4e4f Disable auto information mode on open
The current version  of hamlib cannot cope  with unsolicited responses
from rigs  therefore AI  mode should  be turned off  on any  rigs that
support it in case a previous program left it on.
2014-10-18 20:23:47 +01:00
Bill Somerville 3f0ca34760 Implement retries for Yaesu "newcat" rigs 2014-10-18 20:23:47 +01:00
Bill Somerville 3ad5f0c653 Add retry mechanism for Yaesu "newcat" backend
After some  testing with an  FT-450 it is  apparent that Yaesu  use at
least some of the busy/invalid  CAT responses that Kenwood document in
their current CAT protocol. The  response received from the FT-450 was
a "?;" from occasional "IF;" commands. In the Kenwood World this means
that  the  command  cannot  be   processed,  this  could  mean  it  is
unrecognized  or it  could  be  a transient  condition  while the  rig
processor is busy. The Kenwood backend  has the ability to retry after
this and some other error responses.

Since the  Kenwood error  response codes are  unambigous in  the Yaesu
language this change implements a  similar protocol for Yaesu "newcat"
backends.  Each  backend may  choose how many  reties by  defining the
'retry' parameter in the rig capabilities structure.

Also cleaned up a lot of code duplication.
2014-10-18 20:23:46 +01:00
Nate Bargmann bff3a044eb Merge branch 'ic-7410-vfos'
of git://git.code.sf.net/u/bsomervi/hamlib
2014-10-18 07:44:28 -05:00
Nate Bargmann 0a9c7a1ddf Merge branch 'fix-tt-orion-get-split'
of git://git.code.sf.net/u/bsomervi/hamlib
2014-10-18 07:42:09 -05:00
Nate Bargmann 870da0a422 Merge branch 'serial-contro-line-error-fix'
of git://git.code.sf.net/u/bsomervi/hamlib
2014-10-18 07:37:20 -05:00
Bill Somerville dfa2d69b45 Disable auto information mode on open
The current version  of hamlib cannot cope  with unsolicited responses
from rigs  therefore AI  mode should  be turned off  on any  rigs that
support it in case a previous program left it on.
2014-10-17 23:08:10 +01:00
Bill Somerville b6a372874d Implement retries for Yaesu "newcat" rigs 2014-10-17 23:08:01 +01:00
Bill Somerville 3c18dde3be Add retry mechanism for Yaesu "newcat" backend
After some  testing with an  FT-450 it is  apparent that Yaesu  use at
least some of the busy/invalid  CAT responses that Kenwood document in
their current CAT protocol. The  response received from the FT-450 was
a "?;" from occasional "IF;" commands. In the Kenwood World this means
that  the  command  cannot  be   processed,  this  could  mean  it  is
unrecognized  or it  could  be  a transient  condition  while the  rig
processor is busy. The Kenwood backend  has the ability to retry after
this and some other error responses.

Since the  Kenwood error  response codes are  unambigous in  the Yaesu
language this change implements a  similar protocol for Yaesu "newcat"
backends.  Each  backend may  choose how many  reties by  defining the
'retry' parameter in the rig capabilities structure.

Also cleaned up a lot of code duplication.
2014-10-17 23:07:02 +01:00
Bill Somerville ad8b1983af Added IC-7410 data modes 2014-10-16 21:33:19 +01:00
Bill Somerville 694028cea2 Icom IC-7410 has VFO A/B not MAIN/SUB 2014-10-16 21:33:16 +01:00
Bill Somerville 5ede844baf Fix Ten-Tec Orion get/set split functions
The get_split_vfo function was returning inverted results.

The set_split_vfo function was ignoring the split argument!
2014-10-14 14:19:40 +01:00
Bill Somerville cd44a8d926 Only check for serial control line conflicts if PTT shares CAT port 2014-10-14 12:51:23 +01:00
Nate Bargmann c38dfb97aa Quell compiler warning--missing parens
Got too quick on the trigger on the previous commit.  Added compiler
requested parentheses around AND test for previous commit.
2014-10-12 09:17:31 -05:00
Veijo Arponen 89ebe6bc84 Add support for DMK Engineering URI
I have a problem with the CM119A GPIO. The PTT line of the DMK
Engineering URI was not activated by the hamlib  when using fldigi or
rigctl.

I fiddled with the source code and managed to edit the code in cm108.c
to get the PTT-line activate on my URI-box.
A successful rigctl command is:

rigctl -p /dev/hidraw0 -C ptt_pathname=/dev/hidraw0,ptt_type=CM108,ptt_bitnum=2
Attached is the modified source code file and a patch in 'git diff'
format.

The version of origin is 1.2.15.3.

73 de Veijo OH3NFC

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2014-10-12 09:05:25 -05:00
Bill Somerville 19f131b1b8 Remove redundant RIG_PTT_SERIAL_CAT enum from ptt_t
The Icom IC-7100 back end added this enum instead of using the extant
RIG_PTT_RIG enum.  Also the rig_get_ptt() implementation didn't handle
it and errored out.

Note: RIG_PTT_SERIAL_CAT was added in commit
e9ee671149  - N0NB
2014-10-09 10:25:38 -05:00
Nate Bargmann c0b510d804 Implement precision set_position for RT-21
The RT-21 will accept the command 'AP1XXX.Y<CR>;' which allows settings
to 1/10 of a degree.  XXX must be zero padded.  '<CR>' causes the RT-21
to rotate to the position immediately with out the need for a following
'AM1;' command.

Tested by Will, WC2L.
2014-09-15 05:45:45 -05:00
Nate Bargmann 8a6ab377e8 Refactor get_pos code for RT-21
The RT-21 returns a variable length string that is terminated by a
semicolon (';') and shorter strings have a leading space character as a
pad.  As a result the read_string() function is used to read the string
from the port and strtof() is used to obtain the numeric value returned
by the RT-21.  Tested by Will, WC2L.
2014-09-13 21:03:03 -05:00
Nate Bargmann 741fd46947 Initial crack at RT-21 rotor backend
Even though the Green Heron RT-21 rotor controller is billed as being
RotorEZ compatible, it returns its value as 'XXX;' instead of ';XXX'.
As a new backend model is being written anyway, the backend query's the
controller to return the real value which is 'XXX.Y;'.
2014-09-08 21:18:47 -05:00
Richard Shaw c2337d9597 Fix location of custom Python bindings.
I have a small patch to correct the install location of the python
bindings.

Since it's not a pure python extension is belongs in pyexecdir instead
of pythondir, which for multilib systems like Fedora will get installed
into /usr/lib64/python{ver}/site-packages on 64bit systems.

This is consistent with the automake documentation:

http://www.gnu.org/software/automake/manual/html_node/Python.html

(Patch adjusted by n0nb for Hamlib 3.0 bindings/Makefile.am)

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2014-09-08 20:48:38 -05:00
Ricky Elrod 0f600af80a Add a tag name to hamlib_port_t.
I am making a Haskell binding to hamlib and this anonymous struct was
creating some issues for me. I am not a C-coder by day, but I think this
is harmless to add here.

Signed-off-by: Ricky Elrod <ricky@elrod.me>
2014-08-14 11:22:39 -04:00
Bill Somerville 182a014597 Fix manpage errors. 2014-05-02 20:06:35 +01:00
Bill Somerville b5e63fed0c Merge branch 'rigctl-stdin' of ssh://git.code.sf.net/u/bsomervi/hamlib into rigctl-stdin 2014-05-02 19:47:53 +01:00
Bill Somerville e939279c4c Add read commands from stdin and pause command features to rotctl.
The capability to read commands from  standard input and the new pause
command allow regression tests to be written for rotctl as well as for
rigctl.
2014-05-02 19:44:29 +01:00
Bill Somerville 68ec5b272f Corrected typos in rigctl.1 manpage. 2014-05-02 19:43:35 +01:00
Bill Somerville 6e17923dd4 Prefix action function names so as not to clash with system names.
The prefix rigctl_ is added to all parser action routine names so that
they do not clash with system names.
2014-05-02 19:16:28 +01:00
Bill Somerville 8e5ad418fd Prefix action function names so as not to clash with system names.
The prefix rigctl_ is added to all parser action routine names so that
they do not clash with system names.
2014-05-02 19:09:35 +01:00
Bill Somerville 2fe2587ee5 Add a pause command to the rigctl command set.
This allows repeatable regression testing where a command has a finite
"settling" time.  This will  probably be  of most  use in  the related
rotctl command set.
2014-05-02 18:41:50 +01:00
Bill Somerville f9ad2c21d9 Facility for rigctl to read commands from standard input.
In order to write regression tests before making disruptive changes to
back ends I have added a new command to the rigctl parser which is '-'
that causes it  to read commands from stdin until  they are exhausted.
The commands  must be white  space separated and can  include comments
from a '#' character until the end of the current line.
2014-04-30 03:05:34 +01:00
Ladislav Vaiz df114a64bc Initial support for FUNcube Dongle Pro
I wrote first support for new version of FUNcube Dongle. Differences
against original FCD are changed USB PID and wider frequency range.

73 Lada, OK1ZIA

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2014-04-27 10:36:59 -05:00
Bill Somerville 2889f49392 Fix Icom IC-756Pro mode get/set.
The IC-756Pro doesn't have DATA mode but the capabilities incorrectly
used commands to get/set DATA sub modes.
2014-04-27 14:17:42 +01:00
Nate Bargmann 13c8cfa3ee Fix pkg-config generation on Windows
Merge branch 'fix_pkg-config' of git://git.code.sf.net/u/bsomervi/hamlib
2014-04-16 21:28:05 -05:00
Nate Bargmann 274bf21fdd Fix a buffer overflow in the Windows termios emulation.
Merge branch 'fix_windows_termios_segv' of git://git.code.sf.net/u/bsomervi/hamlib
2014-04-16 21:26:13 -05:00
Nate Bargmann 2885d56445 Add option to not use VFO XCHG command for Icom
Added option to not use VFO XCHG command when setting split
parameters.

Merge branch 'change_icom_sub_access' of git://git.code.sf.net/u/bsomervi/hamlib
2014-04-16 21:23:52 -05:00
Nate Bargmann 0b8a01e460 configure.ac: Fix a warning message.
Merge branch 'fix_k3' of git://git.code.sf.net/u/bsomervi/hamlib
2014-04-16 21:21:43 -05:00
Bill Somerville 99eec397d2 Fix pkg-config generation.
The NET_LIBS  configuration variable  was not  being exapanded  in the
pkgpconfig template file. This caused  static builds against hamlib to
fail on Windows because the WinSock library was not referenced.
2014-04-02 01:58:32 +01:00
Bill Somerville b27b423dce Fix a buffer overflow in the Windows termios emulation.
The  YACK() macro  generates  a  message of  variable  length due  the
__FILE__ string  and a  message returned  by MS  FormatMessage() being
inserted  into a  fixed length  string  buffer. I  have increased  the
buffer length to 1024 bytes and used snprintf to avoid overflows.

It looks like the whole YACK() macro should do nothing unless DEBUG is
defined so  there is probably  a small performance  gain to be  had by
doing that also. I have left that to the experts to decide.
2014-03-24 17:09:03 +00:00
Bill Somerville b0f6955740 Added option to not use VFO XCHG command when setting split parameters.
With Icom rigs that use MAIN?SUB VFOs there is a trade off when
setting the mode or frequency of the "other" VFO. Untill now Hamlib
uses the XCHG VFO command to address the "other" VFO. This has some
advantages, particularly it preserves the selected VFO and it
preserves memory mode of either VFO. The disadvantage is that any
split command causes the Rx to glitch when the VFO/MEMs are exchanged.

I have added a config parameter for Icom rigs called "no_xchg" which
forces the direct addressing of VFOs to set split mode/frequency. It
is a boolean option with a default of "0" (false) which equates to
prior behaviour. Setting it to "1" (true) will make the backend use
change VFO commands to set the "other" VFO. This means that TX on
"SUB" in split is assumed, that both are in VFO mode (not MEM), and
set/get split functions will leave the MAIN VFO selected.
2014-03-20 18:36:43 +00:00
Bill Somerville d9d8ed099c Fix a warning message.
A buffer was shorter than a max length being copied into it.
2014-03-18 22:00:02 +00:00
Nate Bargmann fafbb772c5 rigctl.c/rotctl.c: fix closing brace placement
A closing brace was improperly placed before a pair of CPP #endif
directives rather than between them.  Caught by a cppcheck audit.
2014-03-07 05:55:54 -06: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 6e44327a7c Fix configure.ac
Added missing bracket that was causing configure without pkg-config to
fail.
2014-03-04 15:45:54 +00:00
Nate Bargmann 0fa8a5656c Quell warning from MinGW on setting CM108 pttbitnum
MinGW was issuing the following warning:

  CC     rig.lo
rig.c: In function 'rig_init':
rig.c:330:36: warning: assignment makes integer from pointer without a cast [enabled by default]
  rs->rigport.parm.cm108.ptt_bitnum = DEFAULT_CM108_PTT_BITNUM;
                                    ^

The constant DEFAULT_CM108_PTT_BITNUM was being defined as a string on
non-linux platforms.  Now defined to an integer on these platforms.  The
actual value may need to be corrected at some point in the future when
CM108 support is completed for those platforms.
2014-02-16 07:33:42 -06:00
Bill Somerville ea49154813 Fix Yaesu FT1000MP and FT1000MP Mk V modes.
The get mode function was not taking account of the extra mode bit in
the IF passband status byte. Also the set mode function was not
supporting the full set of available rig modes.

Added tuning step and bandwidth data for the newly supported modes.
2014-02-15 15:36:24 +00:00