Wykres commitów

3631 Commity (libusb-1-0)

Autor SHA1 Wiadomość Data
Bill Somerville 463bc7ae3b Increase communications timeout for Icom rigs
Icom  users, who  use  the  K9JM CI-V  router  to  protect their  PW-1
amplifiers from  damage due to  Icom's broken CI-V  protocol handling,
require a 1s delay  after opening the serial port. This  is due to the
router  using  an  Arduino  &  Arduino  USB  adapter  that  employs  a
bootloader which  holds the RS-232  interface for 1s after  reset (DTR
releases reset).   Hamlib already  has a  retry and  timeout mechanism
which was  set to 3 and  200ms respectively for most  Icom rigs.  This
change increses that  timeout to 1s. The increaased  timeout will have
little or no impact on clients as  it only comes into play if there is
a problem.
2014-12-08 12:23:06 +00:00
Bill Somerville cdb4c4a016 Yaesu newcat style command response reading improvements
After testing on an FT-450D which tends to send busy responses "?;" to
subsequent commands after a band  changing command it appears that the
undoumented "?;"  rig busy response  should be  treated as a  wait and
subsequent reads may return the  expected response i.e. the command is
still in progress and should not be resent.

As this is  all based on observations of failure  modes rater than any
doumentation from Yaesu, there may be further enhancements necessary.
2014-12-06 12:19:40 +00:00
Nate Bargmann b2f0062c6b Update outdated URL in ChangeLog 2014-11-30 07:51:01 -06:00
Bill Somerville 849f1e1bf8 Fix serial i/o on Windows.
Fix bytes read count accumulation in Windows serial I/O.

read_string  from  communications  port   doesn't  handle  timeout  on
anything but the first character read.

Honour VMIN tty parameter correctly.
2014-11-30 11:22:58 +00:00
Nate Bargmann 3cde4f4c2d Merge branch 'kenwood-ai-off-at-start'
of git://git.code.sf.net/u/bsomervi/hamlib
2014-11-26 20:03:04 -06:00
Bill Somerville a6fd825d3d Merge branch 'master' into ptt-control-on-cat-port 2014-11-24 01:48:27 +00:00
Bill Somerville b26d862d56 Merge branch 'master' into kenwood-ai-off-at-start 2014-11-24 01:47:58 +00:00
Bill Somerville 4e2a6adf12 Move serial line control error checks to lower level routines
Moved in preference to introducing errno.h into rig.c.
2014-11-24 00:51:12 +00:00
Bill Somerville 0e0779877d Add more diagnostics and error checks to serial line control 2014-11-24 00:18:48 +00:00
Bill Somerville 2049533381 Disable AI mode on open for Kenwood/Elecraft rigs 2014-11-23 22:18:53 +00:00
Bill Somerville e1a0e9121c Always clear serial control lines when used for PTT
When a serial  control line (DTR or  RTS) is used for  PTT control the
rig_open()  function clears  the PTT  control line  after opening  the
port. This  is necessary on Linux  because opening the port  sets them
both as part  of the normal RS-232 protocol. The  lines were not being
cleared when the PTT port was the same port as the CAT control port.
2014-11-21 20:58:18 +00:00
Nate Bargmann 5fbef72af3 Properly exclude non-Linux/MS Windows build of G313
While the Winradio G313 backend wasn't being compiled on a non-Linux
POSIX system, the register function in winradio.c was which caused an
error linking rigctl.  Also, the host_os test in the configure script
now looks for a string containg "*linux-gnu*" which accepts such systems
as the Raspberry Pi which is defined as "linux-gnueabihf".

Thanks to Lorenzo Simoncello, IW3HER, for reporting this build error on
the Raspberry Pi.
2014-11-19 22:02:30 -06: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 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