Wykres commitów

396 Commity (3709fcb9827d39948fb7b384d2c76caf02de059d)

Autor SHA1 Wiadomość Data
Bill Somerville 80a4097aba Add best guess transmit status to rig state structure
This flag can  be used by back  ends that need to  take special action
while the  rig is transmitting e.g.  the FT-747GX and similar  that do
not process CAT commands while transmitting.

The flag  is also used as  a default answer to  rig_get_ptt if nothing
better is available.

Deal with inaccurate CAT query for Rx/Tx on the Yaesu FT-847

This rig  doesn't set the Rx/Tx  status flag when PTT  is asserted via
the PTT pin on the rear PACKET  socket so we need to override which we
can do if we known we have asserted PTT via rig_set_ptt().

Adjust style and fix set PTT defects

Fix a warning from a declaration of a deleted function definition
2017-08-09 21:54:50 -05:00
Bill Somerville ffb9f21d3a Fix off-by-one issue in reading memory mode from IF command response 2017-08-03 11:17:45 +01:00
Michael Black W9MDB 0b1a58d308 Fixed indentation warnings detected by newer gcc
Fixed one error discovered by these warnings in easycomm.c
2017-06-28 18:00:20 +01:00
Michael Black W9MDB cab7eb1647 Fix FT-891/991 behavior with WSJT-X
Separate FT-891 features
Fix rigctl and rigctld to not abort on function not available
Change Yaesu detection of FA length to automatic method instead of rig specific
2017-06-27 16:48:44 +01:00
Tobias Wellnitz 42de040bcb fixed reading the rig's return value in newcat_get_tx_vfo 2017-05-14 20:41:21 -05:00
Nate Bargmann d2c2483e60 Merge pull request #51 from mdblack98/master
Fix FT-891 recognition
2017-02-09 18:11:37 -06:00
Daniel Estévez ef08446995 Fix DIG MODE for FT817-ND
The FT817-ND only has RTTY, PSK31-L, PSK31-U, USER-L, USER-U as
possible DIG MODEs.  Before this fix, the modes read by Hamlib were
completely wrong.

The RTTY mode in the FT817-ND is USB. I think that the corresponding
Hamlib mode is RIG_MODE_RTTYR but I'm not certain if this is supposed to
be USB or LSB.

This has been tested on an FT817-ND. The FT817 might be different.
2017-02-09 17:53:42 -06:00
Sean Sharkey 74160301d5 Break out FT-1000D file for full support.
As discussed please find attached the files which I modified to include
full support for the Yaesu FT-1000/D radios.

Kind regards,

Sean.
2017-02-09 17:34:56 -06:00
Michael Black f17ddfc676 Fix FT-891 recognition 2017-02-04 10:11:21 -06:00
Bill Somerville 7ab76d59df Simplify and fix defects in the FT991 back end
The FT991 only receives  on VFO A, VFO B is only used  for split Tx or
for exchanging with VFO A. There are no commands to set or query VFO B
mode. Added a set split mode function  that saves VFO A mode and VFO b
frequency then sets the required VFO B mode into VFO A and then copies
VFO  A  to  VFO  B  and  restores  the  VFO  B  frequency  and  VFO  A
mode. Bandwidth and narrow settings are not touched.

Several functins that had been  implemented specifically for the FT991
have been removed because existing newcat.c functions were suitable or
there should not have been a function as the rig doesn't support it.
2017-01-21 11:56:12 +00:00
Michael Black f1a9644d23 Added ft891 backend 2017-01-07 09:10:48 -06:00
Michael Black 329f69e85f Fix ft991_get_mode 2017-01-02 17:49:26 -06:00
Bill Somerville 4e76780242 Fix an issue presenting on the Yaesu FT-450(D)
this rig is prone to giving transitory busy responses to CAT commands,
the retry mechanism for set commands was looping rather than accepting
the results of  a successful command verification read.  This is fixed
and the notification trace message is reduced to a warning.
2016-08-23 09:44:19 +01:00
dh1tw 0b900c0b47 added get/set_conf for FT1200, FT2000, FT450, FT5000 and FT9000 2016-06-10 23:04:27 +02:00
dh1tw 092cad3112 small tab rectification 2016-06-10 23:00:43 +02:00
dh1tw 7ca35814c1 slightly improved documentation / comments 2016-06-10 22:58:14 +02:00
dh1tw ef89d52738 Removed I/O flush ask commented by Bill, G4WJS 2016-06-10 22:56:14 +02:00
Tobias Wellnitz 9603244910 changed token name to 'fast_commands_token' 2016-06-05 22:02:10 +00:00
Tobias Wellnitz 431e884a87 improved & hardend newcat_set_conf and newcat_get_conf;
implemented confparams array with TOK_FAST_SET_CMD for 'fast_set_commands';
implemented .cfgparams for Yaesu FT950;
2016-06-05 21:46:55 +00:00
dh1tw eff99058d6 implemented set_conf, get_conf and Token fast_set_commands for max throughput 2016-06-05 16:26:21 +02: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
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
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
Torsten Eberhardt 4f2b090b8a fixed get_vfo for FT-757GX(II) 2016-02-24 10:20:00 +01: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
Michael Black e1f0433620 Various Yaesu updates
Fix typo in ft990.c
Remove unused var in newcat.c
Make rit and xit use labs() to match data type
Fix frequency print in newcat.c to use PRIll

RRR
Mike W9MDB
2016-02-12 13:36:37 -06:00
Nate Bargmann 683853d669 Make sure new file frg100.h is distributed
Fix a goof from absent minded maintainer that resulted in an unbuildable
repository.  Always run 'make distcheck'!
2016-02-04 09:09:35 -06:00
Michael Black 03c04209d2 Add get_freq to FRG-100
This patch adds get_freq to frg100 allowing it to work with WSJT-X.
Added rest of Yaesu command set for future expansion too.

RRR
Mike W9MDB
2016-02-02 17:34:24 -06:00
Michael Black a55a72cd2a Fix possible frequency overflow on Kenwood and Yaesu
This patch fixes a frequency overflow problem on kenwood and yaesu that
can occur with frequencies that over a 32-bit signed int.  This has been
shown to fix the problem on kenwood.

73
Mike W9MDB
2016-01-15 10:18:42 -06:00
Bill Somerville ffa60fe0e3 Fix missing PKTUSB mode setting code for FT-817 & FT-897
Also made setting WFM an error on the FT-817/857/897 since they all do
it automatically and only on Band II.
2015-12-15 15:57:43 +00:00
Bill Somerville d438b73b8e Fix FT-817/857/897 issues and add some missing functionality
Correctly read SPLIT status TX STATUS is documented incorrectly.

Implement get_split_vfo () on all rigs.

Allow either  RTTY or PKTUSB to  be set, both  go to DIG mode  and rig
must be set appropriately. get_mode() returns what is actually set for
the rig DIG mode.
2015-12-07 19:32:51 +00:00
Bill Somerville aebe52a45e Add a new command line option '--no-restore-ai' ('-n') to rigctl
As Hamlib now restores the rig auto information state (AI) on exit
there is now a need to disable that functionality so that rigctl can
be used to set/reset AI mode on the rig explicitly.

A new  public API  function 'rig_no_restore_ai()'  is also  added that
allows any  client to  disable this auto  AI restore  functionality if
required. Most  clients should do nothing  as restoring AI state  is a
good thing.
2015-12-04 00:22:01 +00:00
Bill Somerville 0ab6d99ef5 Attempt to restore AI status on exit
Kenwood,  modern Yaesu  rigs and  many  SDRs use  an auto  information
mechanism that  broadcasts unsolicited rig state  changes, Hamlib does
not support this and turns  off the function.  Because several passive
devices rely  on this information  to detect band changes  for example
this change adds code to save the AI state on start up and restores it
on  exit. These  devices  do  no need  the  broadcasts  since when  an
application using Hamlib is running  as necessary state polling by the
application provides continuous rig state updates.
2015-11-29 18:26:39 +00:00
Nate Bargmann 2a51974a92 Merge branch 'yaesu-command-validation'
of git://git.code.sf.net/u/bsomervi/hamlib
2015-11-06 20:05:18 -06:00
Bill Somerville 1a02431da5 Command validation for Yaesu set commands
As with  Kenwood, the new  style Yaesu rigs  do not ACK  set commands.
Rather than  wait for  an error,  it is  quicker to  send a  follow up
simple query (e.g. ID;) and read the  reply, if it is a valid response
then the original set command worked; if it is a NACK response e.g. ?;
then  the original  command  failed. Use  this  mechanism to  initiate
retries of the original command.
2015-10-21 21:57:27 +01:00
Bill Somerville d4edc35827 Increase the number or retries for most Kenwood rigs
It appears  that these rigs  can go busy  for a significant  time when
switching between Tx and Rx.
2015-10-21 21:56:13 +01:00
Michael Black f8ccebc694 FT-857 and FT-991 patches
Fixes S meter reporting for FT857 and FT991.

Fixes rig split for FT991.working now for WSJT-X rig split mode.

73

Mike W9MDB
2015-08-15 12:30:00 -05:00
Michael Black 7b3c17646e Small FT-991 patch for WSJT support
A small patch.  Allows the FT-991 to work with Fake Split in WSJT-X.
FT-991 Rig Split does not work due to audio routing (at least not with
the USB port).

The 991 needs a delay after transmit is turned off and 50ms works.

73

Mike W9MDB
2015-07-26 21:54:56 -05:00
Michael Black dffa130175 FT-991 patch
Attached fixes some problems with the Yaesu FT-991 exposed by recent
WSJT-x releases.

Made Yaesu newcat_get_cmd globally available.

Fixes a small bug in a debug print for frequency.

Adds a couple of TRACE debugs.

FT-991 now does split mode.

Tested and working on WSJT-X r5675  JT65/JT9 and WSPR mode.

73

Mike W9MDB
2015-07-16 21:44:04 -05:00
Michael Black 0a5b00c58d New backend for FT-991
Also, change from using malloc to calloc in Yaesu backend.
2015-04-13 21:02:41 -05:00
David Fannin 699db23393 Submission for new backend model (134) for Yaesu FT-DX1200
All,

attached is a git patch for adding the Yaesu FT-DX1200 radio  to the yaesu
backend as model 134.    I am humbly asking for this to be included in
hamlib.

I've tested this using a 1200 radio, using both rigctl and cqrlog.    The
ft-dx1200 cat commands are a mix of ft-950 and ft-2000 radio commands, so
neither of those models will work correctly with the 1200.  It was tested
and build against the master branch from github on 4/3/2015, on an Ubuntu
14.04 server.

Let me know if you have any questions.

thanks

Dave

kk6df at arrl.net

From cc0351fddc245b6223ae6c21dc6e29c5422fc822 Mon Sep 17 00:00:00 2001
From: David Fannin <dfannin@sushisoft.com>
Date: Sat, 4 Apr 2015 09:23:49 -0700
Subject: [PATCH 1/2] adding yaesu ft-dx1200 model to yaesu backend
2015-04-04 13:19:19 -05:00
Bill Somerville 9f9d74c504 Yaesu FT540 can only change the frequency of the current VFO
On the  FT450 one must  select the target  VFO using the  VSn; command
before attempting  to change the  frequency. Ths change does  that and
reverts the current VFO if necessary.
2015-03-15 23:11:00 +00:00
Spencer Berger 24ae62b4e5 Add forced cache timeouts for ft980. 2015-02-06 12:15:09 -08:00
Spencer Berger b45bc3055c Added forced cache timeouts for the ft817. 2015-02-06 11:58:21 -08:00
Spencer Berger 8bc10a9fed Added forced cache timeouts for the ft857. 2015-02-06 08:31:45 -08:00
Spencer Berger 58c75aa2fe Add forced cache timeouts to other setters that affect cached getters. 2015-02-06 08:13:13 -08:00
Spencer Berger e78e6d1d42 Invalidate frequency cache after setting frequency for ft897. 2015-02-04 07:59:47 -08: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
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